:root {
    --primary: #0B4F9E;
    --primary-light: #1A73E8;
    --accent: #3B82F6;
    --blue-gradient: linear-gradient(135deg, #0A3D7E 0%, #1E40AF 50%, #2C2E7E 100%);

    --surface: #F8FAFC;
    --card-bg: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;

    --radius: 24px;
    --radius-sm: 16px;
    --radius-pill: 9999px;
}

/* BASE */
body { margin: 0; background: var(--surface); font-family: 'Inter', system-ui, sans-serif; color: var(--text); }

/* HERO */
.hero {
    background: var(--blue-gradient);
    color: white;
    padding: 170px 20px 130px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 48px 48px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(59,130,246,0.28), transparent 65%);
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--surface));
}

.hero-content { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    padding: 10px 26px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.hero-text {
    max-width: 780px;
    margin: 0 auto;
    font-size: 19.5px;
    opacity: 0.93;
    line-height: 1.55;
}

/* GRID */
.grid-wrap {
    max-width: 1280px;
    margin: -95px auto 100px;
    padding: 0 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}

/* CARD */
.dept-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 460px;
    position: relative;
}

.dept-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(11, 79, 158, 0.17);
}

.dept-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.dept-card:hover::before { transform: scaleX(1); }

/* MEDIA */
.dept-card__media {
    height: 225px;
    background: linear-gradient(135deg, #F1F5F9, #E0E7FF);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.dept-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dept-card:hover .dept-card__media img {
    transform: scale(1.08);
}

.placeholder-icon {
    font-size: 68px;
    color: #94A3B8;
    transition: all 0.4s ease;
}

.dept-card:hover .placeholder-icon {
    transform: scale(1.08);
    color: var(--primary);
}

/* BODY */
.dept-card__body {
    padding: 28px 26px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.dept-card__title {
    font-size: 21px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.dept-card__desc {
    font-size: 15.2px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
}

.dept-card__meta {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 14.5px;
    color: var(--muted);
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 9px;
}

/* BUTTON */
.dept-card__btn {
    margin-top: auto;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    box-shadow: 0 6px 20px rgba(11, 79, 158, 0.25);
    transition: all 0.3s ease;
}

.dept-card__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(11, 79, 158, 0.35);
}

/* EMPTY STATE */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero { padding: 120px 20px 90px; }
    .hero-title { font-size: 40px; }
    .grid-wrap { margin-top: -65px; }
    .grid { grid-template-columns: 1fr; }
}