/* Home page — departments grid */
.home-departments-section {
    position: relative;
    padding: 52px 0 58px;
    background:
        radial-gradient(circle at 92% 12%, rgba(249, 200, 51, 0.08) 0%, transparent 38%),
        radial-gradient(circle at 8% 88%, rgba(6, 26, 40, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

.home-departments-header {
    margin-bottom: 34px;
}

.home-departments-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #061a28;
    background: linear-gradient(135deg, rgba(249, 200, 51, 0.22) 0%, rgba(240, 180, 41, 0.14) 100%);
    border: 1px solid rgba(249, 200, 51, 0.35);
    border-radius: 999px;
}

.home-departments-heading {
    margin: 0 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.2;
    color: #061a28;
}

.home-departments-subheading {
    margin: 0 auto;
    max-width: 620px;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    line-height: 1.6;
    color: #64748b;
}

.home-departments-grid {
    row-gap: 22px;
}

.home-departments-col {
    display: flex;
}

.home-department-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 26px 20px 22px;
    text-align: center;
    text-decoration: none !important;
    background: #ffffff;
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(6, 26, 40, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-department-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 200, 51, 0.35);
    box-shadow: 0 18px 40px rgba(6, 26, 40, 0.12);
}

.home-department-card-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #061a28;
    background: linear-gradient(135deg, rgba(249, 200, 51, 0.24) 0%, rgba(240, 180, 41, 0.12) 100%);
    border: 1px solid rgba(249, 200, 51, 0.32);
    border-radius: 16px;
    font-size: 1.35rem;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.home-department-card:hover .home-department-card-icon {
    color: #061a28;
    background: linear-gradient(135deg, #f9c833 0%, #f0b429 100%);
    transform: scale(1.06);
}

.home-department-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
}

.home-department-card-name {
    display: block;
    margin-bottom: 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    color: #061a28;
}

.home-department-card-stream {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 4px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #475569;
    background: rgba(6, 26, 40, 0.04);
    border: 1px solid rgba(6, 26, 40, 0.08);
    border-radius: 999px;
}

.home-department-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.home-department-card:hover .home-department-card-link {
    color: #92400e;
}

.home-department-card-link i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.home-department-card:hover .home-department-card-link i {
    transform: translateX(3px);
}

.home-departments-empty {
    padding: 44px 24px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed rgba(6, 26, 40, 0.14);
    border-radius: 18px;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.home-departments-empty i {
    display: block;
    margin-bottom: 10px;
    font-size: 2rem;
    color: #cbd5e1;
}

@media (max-width: 991px) {
    .home-departments-section {
        padding: 44px 0 50px;
    }

    .home-departments-header {
        margin-bottom: 28px;
    }
}

@media (max-width: 575px) {
    .home-department-card {
        padding: 22px 18px 20px;
    }

    .home-department-card-icon {
        width: 56px;
        height: 56px;
        font-size: 1.2rem;
    }
}
