.dept-page {
    --dp-violet: #4b35e8;
    --dp-violet-2: #3723c6;
    --dp-mint: #36cba5;
    --dp-mint-soft: #e9fbf5;
    --dp-ink: #19203e;
    --dp-muted: #68728b;
    --dp-pale: #f6f7fc;
    --dp-line: #e9eaf4;
    --dp-max: 1440px;
    --dp-gutter: 48px;
    background: var(--dp-pale);
    color: var(--dp-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.dept-page .dp-wrap {
    width: min(var(--dp-max), calc(100% - var(--dp-gutter)));
    margin: 0 auto;
}

.dept-page .dp-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 278px;
    color: #fff;
    background: #2f22b8;
}

.dept-page .dp-hero__media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: 72% center;
}

.dept-page .dp-hero__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #3524d4 0%, rgba(53, 36, 212, 0.92) 34%, rgba(53, 36, 212, 0.42) 62%, rgba(53, 36, 212, 0.08) 100%),
        linear-gradient(180deg, rgba(20, 12, 90, 0.18), rgba(20, 12, 90, 0.08));
}

.dept-page .dp-hero__copy {
    position: relative;
    z-index: 1;
    padding: 48px 0 86px;
    max-width: 100%;
}

.dept-page .dp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
}

.dept-page .dp-crumbs a {
    color: inherit;
    text-decoration: none;
}

.dept-page .dp-crumbs a:hover {
    color: #fff;
}

.dept-page .dp-crumbs i {
    font-size: 12px;
    opacity: 0.7;
}

.dept-page .dp-hero__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 14px;
}

.dept-page .dp-hero h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.8px;
    white-space: nowrap;
    font-weight: 800;
    color: #fff;
}

.dept-page .dp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.dept-page .dp-hero__excerpt {
    margin: 0;
    max-width: 52ch;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.dept-page .dp-shell {
    position: relative;
    z-index: 2;
    margin-top: -42px;
    padding-bottom: 72px;
}

.dept-page .dp-tabs {
    display: flex;
    gap: 8px;
    padding: 8px;
    margin: 0 0 42px;
    background: #fff;
    border: 1px solid #eceef8;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(28, 25, 91, 0.08);
    overflow-x: auto;
}

.dept-page .dp-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #5b6480;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.dept-page .dp-tab i {
    font-size: 18px;
}

.dept-page .dp-tab:hover {
    background: #f4f5ff;
    color: var(--dp-violet);
}

.dept-page .dp-tab.is-active {
    background: var(--dp-violet);
    color: #fff;
    box-shadow: 0 10px 22px rgba(75, 53, 232, 0.28);
}

.dept-page .dept-content-section:not(.active) {
    display: none !important;
}

.dept-page .dept-content-section.active {
    display: block;
}

.dept-page .dp-overview h2,
.dept-page .dp-highlights h2,
.dept-page .dp-careers h2 {
    margin: 0 0 18px;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.8px;
    font-weight: 800;
}

.dept-page .dp-overview h2 {
    position: relative;
    padding-bottom: 14px;
}

.dept-page .dp-overview h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 54px;
    height: 4px;
    border-radius: 99px;
    background: var(--dp-violet);
}

.dept-page .dp-overview-copy,
.dept-page .dp-overview-copy p {
    font-size: 16.5px;
    line-height: 1.85;
    color: #4a5570;
}

.dept-page .dp-overview-copy p + p {
    margin-top: 16px;
}

.dept-page .dp-highlights {
    margin-top: 42px;
}

.dept-page .dp-highlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dept-page .dp-highlight {
    padding: 8px 6px 4px;
}

.dept-page .dp-highlight i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    color: var(--dp-violet);
    font-size: 28px;
}

.dept-page .dp-highlight h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--dp-ink);
}

.dept-page .dp-highlight p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--dp-muted);
}

.dept-page .dp-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 8px;
    margin-top: 36px;
    padding: 22px 18px;
    background: var(--dp-mint-soft);
    border-radius: 18px;
}

.dept-page .dp-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 10px;
}

.dept-page .dp-fact i {
    color: var(--dp-violet);
    font-size: 26px;
    line-height: 1;
}

.dept-page .dp-fact span {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--dp-muted);
}

.dept-page .dp-fact b {
    display: block;
    margin-top: 3px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--dp-ink);
}

.dept-page .dp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.dept-page .dp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 0;
}

.dept-page .dp-btn--solid {
    background: var(--dp-violet);
    color: #fff;
}

.dept-page .dp-btn--solid:hover {
    background: var(--dp-violet-2);
    color: #fff;
}

.dept-page .dp-btn--ghost {
    background: #fff;
    color: var(--dp-violet);
    border: 1.5px solid #d9d7f5;
}

.dept-page .dp-btn--ghost:hover {
    border-color: var(--dp-violet);
    color: var(--dp-violet);
}

.dept-page .dp-careers {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 36px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid var(--dp-line);
    border-radius: 22px;
}

.dept-page .dp-careers__intro {
    display: flex;
    gap: 14px;
}

.dept-page .dp-careers__intro i {
    color: var(--dp-violet);
    font-size: 32px;
}

.dept-page .dp-careers h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.dept-page .dp-careers__intro p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--dp-muted);
}

.dept-page .dp-careers ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
}

.dept-page .dp-careers li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--dp-ink);
}

.dept-page .dp-careers li i {
    color: var(--dp-mint);
    font-size: 18px;
}

.dept-page .dept-content-card {
    background: #fff;
    border: 1px solid var(--dp-line);
    border-radius: 22px;
    box-shadow: 0 13px 28px rgba(41, 35, 81, 0.05);
    padding: 28px;
}

.dept-page .faculty-section {
    justify-content: flex-start;
    padding: 0;
    gap: 18px;
}

.dept-page .faculty-section .faculty-card {
    width: min(100%, 280px);
    padding: 22px 18px 24px;
    border-radius: 20px;
}

.dept-page .faculty-section .profile-img {
    width: 120px;
    height: 120px;
    border-color: #ece9ff;
    object-fit: cover;
    background: #ece9ff;
}

.dept-page .faculty-section .faculty-name {
    font-size: 18px;
    color: var(--dp-ink);
}

.dept-page .nav-tabs.dept-faculty-tabs {
    display: none;
}

@media (max-width: 980px) {
    .dept-page { --dp-gutter: 32px; }
    .dept-page .dp-highlight-grid,
    .dept-page .dp-facts {
        grid-template-columns: 1fr 1fr;
    }
    .dept-page .dp-careers {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 720px) {
    .dept-page { --dp-gutter: 32px; }
    .dept-page .dp-hero {
        min-height: 0;
    }
    .dept-page .dp-hero__media {
        background-position: center 28%;
    }
    .dept-page .dp-hero__shade {
        background:
            linear-gradient(180deg, rgba(35, 24, 140, 0.78) 0%, rgba(35, 24, 140, 0.42) 46%, rgba(18, 12, 70, 0.72) 100%);
    }
    .dept-page .dp-hero__copy {
        padding: 36px 0 92px;
        max-width: none;
    }
    .dept-page .dp-hero h1 {
        font-size: clamp(26px, 7.4vw, 32px);
        letter-spacing: -0.6px;
        white-space: normal;
    }
    .dept-page .dp-hero__excerpt {
        font-size: 14.5px;
        max-width: none;
    }
    .dept-page .dp-shell { margin-top: -36px; padding-bottom: 48px; }
    .dept-page .dp-tabs {
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
        margin-bottom: 28px;
    }
    .dept-page .dp-tab {
        flex-direction: column;
        gap: 4px;
        min-height: 64px;
        padding: 10px 8px;
        font-size: 12px;
        border-radius: 12px;
    }
    .dept-page .dp-highlight-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .dept-page .dp-highlight {
        display: grid;
        grid-template-columns: 36px 1fr;
        column-gap: 12px;
        align-items: start;
        padding: 0;
    }
    .dept-page .dp-highlight i {
        grid-row: 1 / 3;
        width: auto;
        height: auto;
        margin: 2px 0 0;
        font-size: 26px;
    }
    .dept-page .dp-facts {
        grid-template-columns: 1fr 1fr;
        gap: 16px 8px;
        padding: 18px 14px;
    }
    .dept-page .dp-actions {
        flex-direction: column;
    }
    .dept-page .dp-btn { width: 100%; }
    .dept-page .dp-careers ul { grid-template-columns: 1fr; }
    .dept-page .dept-content-card { padding: 18px; }
    .dept-page .faculty-section .faculty-card { width: 100%; }
}
