/* --- GLOBAL STYLES --- */
* { box-sizing: border-box; scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url('images/background.jpg') no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main.content,
body > .content {
    flex: 1;
}

/* --- NAVBAR --- */
.navbar {
    width: 100%;
    background: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 2px solid #0000ff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 255, 0.2);
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 999;
    height: 140px;
    flex-shrink: 0;
    overflow: visible;
}

.nav-content-centered { 
    display: grid; 
    grid-template-columns: 1fr minmax(220px, 280px) 1fr; 
    align-items: center; 
    width: 100%;
    max-width: 1450px;
    padding: 0 24px;
    gap: 0;
    position: relative;
    overflow: visible;
}

.nav-links { 
    display: flex; 
    gap: 10px; 
    align-items: center; 
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: center;
}
.nav-links.left { justify-content: flex-end; padding-right: 12px; }
.nav-links.right { 
    justify-content: flex-start; 
    padding-left: 12px;
}

.nav-item {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 12px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.nav-item:hover { color: #ffffff; background: rgba(255, 255, 255, 0.05); }
.nav-item.active { color: #0000ff; background: rgba(0, 0, 255, 0.1); }

.nav-logo { 
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    pointer-events: none;
    grid-column: 2;
}
.nav-logo a {
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.nav-logo img {
    height: 128px;
    max-height: 128px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    transform: translateY(28px);
}

/* --- DISCORD STATUS BOX --- */
.discord-status-box {
    background: rgba(0, 0, 255, 0.05);
    border: 2px solid #0000ff;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.4), inset 0 0 10px rgba(0, 0, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    border-left-width: 4px;
    flex-shrink: 0;
}

.discord-status-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 0, 255, 0.7);
    background: rgba(0, 0, 255, 0.1);
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #51ff85;
    border-radius: 50%;
    box-shadow: 0 0 12px #51ff85;
    animation: pulse 2s infinite;
}

.status-text-wrapper {
    display: flex;
    flex-direction: row; 
    align-items: center;
    gap: 8px;
}

.status-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0084ff;
    white-space: nowrap;
}

.status-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

/* --- HERO CONTENT --- */
.content { text-align: center; padding-top: 40px; }

.neon-outline-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 8px; 
    margin-bottom: 5px;
    color: #ffffff;
    -webkit-text-stroke: 2px #0000ff;
    text-shadow: 0 0 15px rgba(0, 0, 255, 0.8);
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* --- COUNTDOWN BOX --- */
.countdown-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.countdown-box {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #0000ff;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.2);
}

.countdown-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0000ff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.timer-display {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #ffffff;
}

/* --- DISCORD CTA BOX --- */
.cta-container { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 30px; 
}

.discord-cta-box {
    text-decoration: none;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #0000ff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px #0000ff;
}

.discord-cta-box:hover {
    transform: translateY(-3px);
    background: rgba(20, 20, 20, 0.9);
    box-shadow: 0 0 25px rgba(0, 0, 255, 0.5);
}

/* --- TEAM DIVIDER --- */
.team-divider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 80px auto 40px;
    width: 90%;
    max-width: 1200px;
}

.team-divider-container .line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 0 30px;
    color: #ffffff;
}

/* --- TEAM CARDS --- */
.team-section { padding: 0 20px 100px 20px; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 240px));
    justify-content: center;
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}
.team-grid .team-card {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    box-sizing: border-box;
}
.team-card {
    background: #0f121d; 
    border: 1px solid var(--team-color);
    border-radius: 15px;
    padding: 28px 18px 32px;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.team-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 26px var(--team-color);
}

/* Fixed 1:1 photo box — compact, same size everywhere */
.team-photo-frame {
    box-sizing: border-box;
    width: 96px;
    height: 96px;
    max-width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--team-color);
    margin: 0 auto 12px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.35);
}
.team-photo-frame--hierarchy {
    width: 84px;
    height: 84px;
    max-width: 84px;
    margin-bottom: 10px;
}
.team-photo-frame__img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    flex: 0 0 auto;
}

.team-dept {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--team-color);
    margin-bottom: 8px;
    opacity: 0.9;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--team-color);
    background: rgba(0, 0, 0, 0.35);
    max-width: 100%;
}

.team-name { font-family: 'Inter', sans-serif; font-weight: 900; font-size: 1.5rem; margin-bottom: 15px; color: #ffffff; }

.role-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--team-color);
    border-radius: 50px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.team-card:hover .role-pill {
    background: var(--team-color);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 10px var(--team-color);
}

/* --- COMMAND PAGE EXCLUSIVES --- */
.hierarchy-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.tree-level {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 40px; 
    gap: 40px;
}

.tree-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.tree-level.top-level { padding-top: 0; }
.tree-level.top-level::before { display: none; }

/* Homepage staff hierarchy: vertical spine + clear steps (Command-style chain) */
.team-chain-intro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 1.75rem;
    padding: 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.team-spine-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.team-spine-step {
    width: 100%;
    max-width: 1040px;
}
.team-spine-step:not(:first-child) {
    margin-top: 2px;
}
.team-branch-heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 2.25rem auto 0.35rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
}
.team-hierarchy-wrapper .tree-level.team-spine-row:not(.top-level)::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.12));
    width: 3px;
    height: 44px;
    left: 50%;
    margin-left: -1px;
}
/* Same step / same team: flex row; min-width:0 stops huge images (logos) from widening cards via flex min-content */
.team-hierarchy-wrapper .tree-level.team-spine-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}
.team-hierarchy-wrapper .tree-level.team-spine-row .org-card.team-org-card {
    flex: 0 0 220px;
    width: 220px;
    max-width: min(100%, 240px);
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}
/* Branch columns: two across when possible; flex-grow disabled so cards stay equal */
.subdept-column .subdept-levels--team-branch .tree-level.team-spine-row .org-card.team-org-card {
    flex: 0 1 calc((100% - 0.75rem) / 2);
    max-width: 200px;
    min-width: 0;
    width: auto;
}
.subdept-column .subdept-levels--team-branch .team-spine-row {
    max-width: none;
    width: 100%;
}

/* Sub-departments: side-by-side columns below primary hierarchy */
.subdept-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.subdept-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}
.subdept-column .subdept-title {
    margin: 0 0 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}
/* Connector line from subdept title down to cards (same for single- and multi-card columns) */
.subdept-column .subdept-title::after {
    content: '';
    display: block;
    width: 2px;
    height: 20px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0.5rem auto 0;
}
.subdept-levels {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.subdept-levels .tree-level {
    padding-top: 24px;
}
.subdept-levels .tree-level.top-level {
    padding-top: 0.25rem;
}
.subdept-levels .tree-level::before {
    height: 24px;
}
.tree-level.subdept-heading {
    padding-top: 32px;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.tree-level.subdept-heading::before { display: none; }
.subdept-title {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.org-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 260px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px; 
}

.org-rank {
    display: block;
    color: #000;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    width: 100%; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

.org-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    width: 100%;
    word-wrap: break-word; 
}

.org-pill {
    display: block;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 1px;
    width: 100%; 
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tier-gold { background: linear-gradient(to bottom, #f1c40f, #d4ac0d); }
.tier-silver { background: linear-gradient(to bottom, #bdc3c7, #95a5a6); }
.tier-bronze { background: linear-gradient(to bottom, #d35400, #a04000); }

/* Rank pill: border + text only, no fill; match header tier colour */
.org-pill.tier-gold { background: none; border: 1px solid #d4ac0d; color: #f1c40f; }
.org-pill.tier-silver { background: none; border: 1px solid #95a5a6; color: #bdc3c7; }
.org-pill.tier-bronze { background: none; border: 1px solid #a04000; color: #d35400; }

.dept-nav { display: flex; justify-content: center; gap: 15px; margin: 40px 0; flex-wrap: wrap; }
.dept-btn {
    padding: 12px 24px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    background: rgba(10, 10, 10, 0.6);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-ps.active { background: #003399; border-color: #003399; box-shadow: 0 0 20px rgba(0, 51, 153, 0.5); }
.btn-sas.active { background: #00703c; border-color: #00703c; box-shadow: 0 0 20px rgba(0, 112, 60, 0.5); }
.btn-sfrs.active { background: #e2001a; border-color: #e2001a; box-shadow: 0 0 20px rgba(226, 0, 26, 0.5); }
.btn-mca.active { background: #f39c12; border-color: #f39c12; box-shadow: 0 0 20px rgba(243, 156, 18, 0.5); }

.dept-content { display: none; }
.dept-content.active { display: block; }

/* Department-coloured outline on org cards (command hierarchy) */
.org-card.dept-ps { border: 2px solid #003399; box-shadow: 0 0 15px rgba(0, 51, 153, 0.3); }
.org-card.dept-sas { border: 2px solid #00703c; box-shadow: 0 0 15px rgba(0, 112, 60, 0.3); }
.org-card.dept-sfrs { border: 2px solid #e2001a; box-shadow: 0 0 15px rgba(226, 0, 26, 0.3); }
.org-card.dept-mca { border: 2px solid #f39c12; box-shadow: 0 0 15px rgba(243, 156, 18, 0.3); }

.dept-ps .org-pill { border-color: #003399; }
.dept-sas .org-pill { border-color: #00703c; }
.dept-sfrs .org-pill { border-color: #e2001a; }
.dept-mca .org-pill { border-color: #f39c12; }

/* Homepage team hierarchy (mirrors Command layout; uses member accent colour) */
.team-hierarchy-wrapper {
    padding-bottom: 20px;
}
.org-card.team-org-card {
    min-height: 0;
    min-width: 0;
    padding: 14px 12px 16px;
    box-sizing: border-box;
    overflow: hidden;
}
.team-hierarchy-wrapper .org-card.team-org-card.dept-team {
    /* Hard cap — flex min-width:auto was letting large PNG/SVG assets expand each card */
    width: 220px;
    max-width: min(100%, 240px);
}
.subdept-column .subdept-levels--team-branch .org-card.team-org-card.dept-team {
    width: auto;
    max-width: 200px;
}
.team-hierarchy-wrapper .org-card.team-org-card .org-name {
    font-size: 1.12rem;
    line-height: 1.25;
}
.team-hierarchy-wrapper .org-card.team-org-card .org-pill.org-pill--filled {
    font-size: 0.80rem;
    padding: 7px 9px;
    line-height: 1.25;
}
.org-card.dept-team {
    border: 2px solid var(--team-color, rgba(255, 255, 255, 0.2));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.team-hierarchy-wrapper .org-card.team-org-card.dept-team:hover {
    transform: translateY(-6px) scale(1.04);
    z-index: 4;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 32px var(--team-color);
}
/* Small department chip (replaces full-width tier bar on homepage staff cards) */
.team-dept-chip {
    display: inline-block;
    max-width: 100%;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.80rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
    padding: 2px 7px;
    margin-bottom: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.42);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Rank / role pill: filled gradient matching tier (homepage + branch team cards only) */
.team-hierarchy-wrapper .org-pill.org-pill--filled.team-rank-pill.tier-gold,
.subdept-column .org-pill.org-pill--filled.team-rank-pill.tier-gold {
    background: linear-gradient(to bottom, #f1c40f, #d4ac0d);
    border: 1px solid #a88608;
    color: #1a1400;
}
.team-hierarchy-wrapper .org-pill.org-pill--filled.team-rank-pill.tier-silver,
.subdept-column .org-pill.org-pill--filled.team-rank-pill.tier-silver {
    background: linear-gradient(to bottom, #cfd8dc, #90a4ae);
    border: 1px solid #607d8b;
    color: #121618;
}
.team-hierarchy-wrapper .org-pill.org-pill--filled.team-rank-pill.tier-bronze,
.subdept-column .org-pill.org-pill--filled.team-rank-pill.tier-bronze {
    background: linear-gradient(to bottom, #e67e22, #a04000);
    border: 1px solid #6e2f00;
    color: #fff;
}
.team-unplaced-note {
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.5);
    margin: 2.5rem auto 1rem;
}
.subdept-columns.team-branch-columns:not(.team-branch-after-spine) {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.team-branch-heading + .subdept-columns.team-branch-columns {
    margin-top: 0.75rem;
}

/* --- FOOTER --- */
footer {
    width: 100%;
    background: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(25px) saturate(200%);
    border-top: 2px solid #0000ff;
    padding: 20px 0;
    flex-shrink: 0;
    margin-top: auto;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
}
.copyright { font-family: 'Rajdhani', sans-serif; font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); text-transform: uppercase; }
.admin-portal-btn {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 20px;
    border: 1px solid rgba(0, 0, 255, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
}
.admin-portal-btn:hover { color: #ffffff; background: rgba(0, 0, 255, 0.2); border-color: #0000ff; }

/* Section / department area – match site UI */
.section-gate-wrap { max-width: 900px; margin: 0 auto 3rem; padding: 0 20px; }
.section-gate-card {
    background: rgba(15, 18, 29, 0.95);
    border: 2px solid #0000ff;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.2);
}
.section-gate-card-wide { text-align: left; }

.dept-command-card {
    border-color: rgba(0, 0, 255, 0.5);
    background: linear-gradient(135deg, rgba(0, 0, 255, 0.12), rgba(15, 18, 29, 0.98));
}
.dept-command-card-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.dept-command-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    color: #7df;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.dept-command-btn {
    background: #0000ff;
    border-color: #0000ff;
    color: #fff;
    white-space: nowrap;
}
.dept-command-btn:hover {
    background: #2222ff;
    border-color: #2222ff;
    color: #fff;
}

.section-gate-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 0.75rem;
    -webkit-text-stroke: 1px #0000ff;
    text-shadow: 0 0 12px rgba(0, 0, 255, 0.5);
}
.section-gate-text {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.section-gate-muted { font-size: 0.9rem; color: rgba(255, 255, 255, 0.5); margin: 0; }
.section-gate-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #5865F2;
    border: 2px solid #5865F2;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}
.section-gate-btn:hover { background: #4752c4; border-color: #4752c4; box-shadow: 0 0 25px rgba(88, 101, 242, 0.6); transform: translateY(-2px); }
.section-gate-btn-secondary { background: transparent; border-color: rgba(255,255,255,0.3); color: #fff; box-shadow: none; }
.section-gate-btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: #0000ff; box-shadow: 0 0 15px rgba(0,0,255,0.3); }
.section-gate-btn.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.section-gate-header { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.section-gate-header .section-gate-muted { margin-left: auto; }

.section-choose-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    margin-bottom: 0.5rem;
    text-align: center;
}
.section-choose-sub {
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 2rem;
}
.dept-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.dept-choice-card {
    display: block;
    background: rgba(15, 18, 29, 0.95);
    border: 2px solid var(--dept-color, #0000ff);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dept-choice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--dept-color);
}
.dept-choice-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.section-hierarchy { max-width: 900px; margin: 0 auto 3rem; padding: 0 20px; }
.section-hierarchy-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Department dashboard (section.php when in a department) */
.dept-dashboard { max-width: 900px; margin: 0 auto 2rem; padding: 0 20px; display: grid; gap: 1.5rem; }
.dept-dashboard-section { padding: 1.5rem; }
.dept-dashboard-heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0000ff;
    margin: 0 0 0.5rem;
}
.dept-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 1rem; }
.dept-input {
    flex: 1;
    min-width: 200px;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(0, 0, 255, 0.4);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: inherit;
}
.dept-request-list, .dept-calendar-list, .dept-docs-list { list-style: none; padding: 0; margin: 0; }
.dept-request-item, .dept-calendar-item, .dept-doc-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
}
.dept-request-item:last-child, .dept-calendar-item:last-child, .dept-doc-item:last-child { border-bottom: none; }
.dept-request-date { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.dept-request-notes { flex: 1; }
.dept-request-status { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }
.dept-status-pending { color: #f1c40f; }
.dept-status-cancelled { color: rgba(255,255,255,0.4); }
.dept-status-approved,
.dept-status-accepted { color: #51ff85; }
.dept-status-declined { color: #e74c3c; }
.dept-calendar-item { flex-direction: column; align-items: flex-start; }
.dept-doc-link { color: #0084ff; text-decoration: none; }
.dept-doc-link:hover { text-decoration: underline; }
.dept-doc-type { font-size: 0.85rem; color: rgba(255,255,255,0.5); }