:root {
    --dept-bg: #07090c;
    --dept-card-bg: #12151b;
    --dept-card-border: rgba(255, 255, 255, 0.07);
    --dept-accent: #00b4ff;
    --dept-muted: rgba(255, 255, 255, 0.50);
    --dept-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

html,
body {
    min-height: 100%;
    overflow-x: hidden;
    background-color: var(--dept-bg);
}

body {
    background: var(--dept-bg);
}

main {
    padding-top: 0 !important;
}

/* ═══ HERO ═══ */
.dept-hero {
    padding: 140px 20px 52px;
    text-align: center;
    background: var(--dept-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Rectangular box — matches hero-kicker on main page */
.dept-hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.82rem;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.dept-hero-dot {
    display: none;
}

.dept-hero-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dept-accent);
    display: inline-block;
    flex-shrink: 0;
}

.dept-hero-title {
    margin-top: 0;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}

.dept-hero-sub {
    margin: 16px auto 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 15px;
    line-height: 1.65;
}

/* Hero stats */
.dept-stats-row {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 56px;
}

.dept-stat-item {
    text-align: center;
}

.dept-stat-value {
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--dept-accent);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.dept-stat-label {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dept-muted);
}

/* ═══ GRID ═══ */
.dept-section {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* FIX 1: align-items start — cards don't stretch to match row partner */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

@media (max-width: 820px) {
    .dept-grid {
        grid-template-columns: 1fr;
    }

    .dept-stats-row {
        gap: 28px;
    }
}

/* ═══ CARD ═══ */
.dept-card {
    background: var(--dept-card-bg);
    border: 1px solid var(--dept-card-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--dept-shadow);
    transition: border-color 0.2s ease;
}

.dept-card:hover {
    border-color: rgba(255, 255, 255, 0.13);
}

/* FIX 3: LEFT-ALIGN all text — override leadership.css centering */
.dept-card-main {
    padding: 20px 20px 18px;
    text-align: left !important;
}

.dept-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

/* Tag badge */
.dept-tag {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 5px;
    background: var(--dept-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.3);
}

/* Icon top-right */
.dept-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

/* FIX 3: Name/subtitle/desc explicitly left-aligned */
.dept-card-name {
    font-size: 20px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 3px;
    text-align: left !important;
}

.dept-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 12px;
    text-align: left !important;
}

.dept-card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.60);
    line-height: 1.6;
    text-align: left !important;
}

/* Stats row — 3 bordered cells */
.dept-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.dept-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
}

.dept-stat:last-child {
    border-right: none;
}

.dept-stat-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--dept-accent);
    line-height: 1;
    letter-spacing: -0.5px;
}

.dept-stat-name {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══ ACCORDION ═══ */
/* FIX 3: Match reference photos — button with full border, content below with divider */
.dept-accordion {
    padding: 0 16px 16px;
    margin-top: 4px;
}

.dept-accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    text-align: left;
}

.dept-accordion-toggle:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
}

.dept-accordion-toggle.open {
    border-color: rgba(0, 180, 255, 0.4);
    color: #fff;
    background: rgba(0, 180, 255, 0.04);
}

.dept-accordion-toggle:focus,
.dept-accordion-toggle:focus-visible,
.dept-accordion-toggle:active {
    outline: none !important;
    box-shadow: none !important;
}

.dept-accordion-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.45);
}

.dept-accordion-toggle.open .dept-accordion-arrow {
    transform: rotate(180deg);
}

/* Content expands below button with top divider — like reference photo 3 */
.dept-accordion-body {
    display: none;
    padding: 0 4px 4px;
    text-align: left;
}

.dept-accordion-body.open {
    display: block;
}

/* Divider line between button and content (like photo 3) */
.dept-accordion-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 12px 0;
}

.dept-section-label {
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
    margin-top: 14px;
    text-align: left !important;
}

.dept-duties-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.dept-duties-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    text-align: left;
}

.dept-duties-list li::before {
    content: '—';
    color: var(--dept-accent);
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.4;
}

.dept-requirements {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.55;
    margin-top: 4px;
    text-align: left !important;
}

/* Apply button */
.dept-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-top: 20px;
    border-radius: 8px;
    background: var(--dept-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.25);
}

.dept-apply-btn:hover {
    background: #0099ce;
}

/* DB manual override */
.dept-db-override {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.dept-db-override input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 7px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.dept-db-override button {
    padding: 8px 16px;
    background: var(--dept-accent);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .dept-stats-row {
        gap: 24px;
    }

    .dept-hero {
        padding: 90px 16px 40px;
    }
}