:root {
    --navy: #0e2a4d;
    --navy-d: #091b33;
    --red: #b4232f;
    --red-d: #951b26;
    --gold: #ffd700;
    --ink: #1d2733;
    --muted: #66758a;
    --line: #e3e8ef;
    --soft: #f6f8fb;
    --font: 'Sora', system-ui, sans-serif;
    --serif: 'Sora', system-ui, sans-serif;
}

.dept-section,
.dept-section * {
    box-sizing: border-box;
}

.dept-section {
    padding: 80px 24px 90px;
    background: var(--soft);
    font-family: 'Sora', system-ui, sans-serif;
}

.dept-container {
    max-width: 1600px;
    margin: auto;
}

/* ---------- HEADER (unchanged) ---------- */
.dept-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.dept-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--gold);
    color: var(--red);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.dept-head h2 {
    margin: 0;
    color: var(--navy-d);
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1.2px;
}
.dept-head h2 span {
    color: #B92332;
    font-style: italic;
    font-weight: 800;
    background: linear-gradient(to top, #FFF0A6 0%, #FFF0A6 25%, transparent 25%, transparent 100%);
    padding: 0 4px;
    display: inline;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.dept-head p {
    max-width: 680px;
    margin: 0;
    color: #000;
    font-size: 14.5px;
    line-height: 1.8;
}

/* ---------- SHOWCASE LAYOUT ---------- */
.dept-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    height: 680px;
}

/* ---------- PREVIEW PANEL ---------- */
.dept-preview {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(150deg, var(--navy), var(--navy-d));
    box-shadow: 0 24px 50px rgba(14, 42, 77, 0.22);
}

.dept-slide {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s;
}
.dept-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dept-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 6s cubic-bezier(.2, .6, .2, 1);
}
.dept-slide.is-active img { transform: scale(1); }

.dept-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(9, 27, 51, 0.95) 0%, rgba(9, 27, 51, 0.55) 35%, rgba(9, 27, 51, 0) 65%),
        linear-gradient(to bottom, rgba(9, 27, 51, 0.45), rgba(9, 27, 51, 0) 25%);
}

.dept-count {
    position: absolute;
    top: 24px;
    right: 28px;
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}
.dept-count b {
    color: var(--gold);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.dept-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 44px 42px;
    display: block;
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.7s ease 0.15s, opacity 0.7s ease 0.15s;
}
.dept-slide.is-active .dept-caption {
    transform: none;
    opacity: 1;
}

/* .dept-caption-line {
    display: block;
    width: 56px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: var(--gold);
} */

.dept-caption strong {
    display: block;
    max-width: 560px;
    font-size: clamp(22px, 2.4vw, 32px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.6px;
}

.dept-caption em {
    display: block;
    max-width: 480px;
    margin-top: 10px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
}

.dept-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 11px 22px;
    border-radius: 50px;
    background: var(--gold);
    color: var(--navy-d);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: gap 0.3s ease, background 0.3s ease;
}
.dept-cta i { font-style: normal; font-size: 15px; }
.dept-slide:hover .dept-cta { gap: 16px; background: #fff; }

/* ---------- INDEX LIST ---------- */
.dept-list {
    display: grid;
    grid-template-rows: repeat(12, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(14, 42, 77, 0.06);
}

.dept-list li + li { border-top: 1px solid var(--line); }
.dept-list li { min-height: 0; }

.dept-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 26px 0 28px;
    color: var(--ink);
    text-decoration: none;
    transition: background 0.3s ease, padding 0.3s ease;
}

/* red indicator bar */
.dept-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--red);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.dept-thumb { display: none; }

.dept-num {
    flex: 0 0 auto;
    min-width: 26px;
    color: #b6c0cd;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.dept-name {
    flex: 1;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--navy-d);
    transition: color 0.3s ease;
}

.dept-arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    transform: translateX(-6px);
    opacity: 0;
    transition: all 0.3s ease;
}

.dept-item.is-active,
.dept-item:focus-visible {
    background: linear-gradient(90deg, #fff6f6, #fff);
    padding-left: 36px;
    outline: none;
}
.dept-item.is-active::before,
.dept-item:focus-visible::before { transform: scaleY(1); }
.dept-item.is-active .dept-num { color: var(--red); }
.dept-item.is-active .dept-name { color: var(--red); }
.dept-item.is-active .dept-arrow {
    opacity: 1;
    transform: none;
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

/* ---------- TABLET ---------- */
@media (max-width: 1100px) {
    .dept-showcase { gap: 20px; height: 640px; }
    .dept-caption { padding: 0 30px 32px; }
    .dept-name { font-size: 14px; }
}

/* ---------- MOBILE / TOUCH: card grid ---------- */
@media (max-width: 900px) {
    .dept-section { padding: 54px 20px 60px; }
    .dept-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 28px; }

    .dept-showcase { display: block; height: auto; }
    .dept-preview { display: none; }

    .dept-list {
        grid-template-rows: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        background: transparent;
        border: 0;
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
    }
    .dept-list li + li { border-top: 0; }

    .dept-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 4px 14px rgba(14, 42, 77, 0.07);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .dept-item::before { display: none; }
    .dept-item.is-active,
    .dept-item:focus-visible { background: #fff; padding-left: 0; }
    .dept-item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(14, 42, 77, 0.14); }

    .dept-thumb {
        display: block;
        position: relative;
        aspect-ratio: 4 / 3;
        background: linear-gradient(150deg, var(--navy), var(--navy-d));
        overflow: hidden;
    }
    .dept-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .dept-thumb::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 36px;
        height: 3px;
        background: var(--gold);
    }

    .dept-num {
        order: 2;
        padding: 12px 14px 0;
        font-size: 11px;
        color: var(--red);
    }
    .dept-name {
        order: 3;
        padding: 4px 14px 16px;
        font-size: 14px;
        flex: 1;
    }
    .dept-item.is-active .dept-name { color: var(--navy-d); }
    .dept-item.is-active .dept-num { color: var(--red); }
    .dept-arrow { display: none; }
}

@media (max-width: 720px) {
    .dept-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 420px) {
    .dept-section { padding: 44px 14px 50px; }
    .dept-name { font-size: 13px; padding: 3px 11px 13px; }
    .dept-num { padding: 10px 11px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dept-slide,
    .dept-slide img,
    .dept-caption,
    .dept-item,
    .dept-item::before,
    .dept-arrow,
    .dept-cta { transition: none; }
}