:root {
    --primary: #00509d;       
    --primary-dark: #00296b;
    --secondary: #001524;     
    --accent: #00b4d8;        
    --text-body: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    line-height: 1.2;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0); 
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(12px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}
header.scrolled {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none; 
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.logo img { height: 45px; width: auto; flex-shrink: 0; }
nav ul { display: flex; gap: 1.5rem; align-items: center; flex-wrap: nowrap; }
nav a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--white);
    opacity: 0.9;
    position: relative;
    padding: 5px 2px;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #00b4d8;
    transition: var(--transition);
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { opacity: 1; color: #00b4d8; }
header.scrolled nav a { color: var(--secondary); }
header.scrolled nav a:hover, header.scrolled nav a.active { color: var(--primary-dark); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--white); }
header.scrolled .menu-toggle { color: var(--secondary); }
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0; 
    z-index: 1001;
}
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content li { width: 100%; }
.dropdown-content a {
    color: var(--secondary) !important; 
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    opacity: 1;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
}

/* Modern Language Switch Button */
.global-lang-toggle {
    display: flex;
    align-items: center;
}

.lang-toggle-checkbox {
    display: none; 
}

.lang-toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 74px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0 4px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrolled .lang-toggle-label,
header.menu-open .lang-toggle-label {
    background-color: #e2e8f0; 
    border-color: #cbd5e1;
}

.lang-toggle-label span:not(.lang-slider) {
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    width: 50%;
    text-align: center;
    transition: var(--transition);
    user-select: none;
}

.lang-toggle-label span:not(.lang-slider) {
    color: var(--white);
}

header.scrolled .lang-toggle-label span:not(.lang-slider),
header.menu-open .lang-toggle-label span:not(.lang-slider) {
    color: var(--text-light);
}

.lang-toggle-checkbox:not(:checked) + .lang-toggle-label .lang-en,
.lang-toggle-checkbox:checked + .lang-toggle-label .lang-fil {
    color: var(--white) !important; 
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 28px;
    background-color: var(--accent);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-slider {
    transform: translateX(32px); 
}

/* Fade-in Animation for Text Changing */
.fade-text {
    animation: fadeInText 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.page-header {
    background: linear-gradient(135deg, rgba(0, 21, 36, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%),
                url('../images/lagunalake.jpeg') center/cover; 
    height: 50vh; 
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeUp 1s ease-out;
}
.breadcrumb {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.page-header h1 span { color: #00b4d8; }

/* --- TEAM SECTION BASE --- */
.team-section {
    padding-bottom: 6rem; 
    background: var(--bg-light);
}

.team-section .container {
    max-width: 100%;
    padding: 0 1rem;
}

.department-block {
    max-width: 100%; 
    margin: 0 auto 5rem; 
}
.department-block:last-child { margin-bottom: 0; }
.department-block h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

/* ==========================================================================
   CSS ORGANIZATIONAL CHART
   ========================================================================== */
.org-wrapper {
    width: 100%;
    overflow-x: auto; 
    padding: 1rem 1rem 3rem;
    display: block;      
    text-align: center;  
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.org-wrapper::-webkit-scrollbar { 
    height: 12px; 
    display: block; 
}
.org-wrapper::-webkit-scrollbar-track { background: transparent; }
.org-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 3px solid var(--bg-light); }
.org-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.org-unit-title {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 40px;
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.org-tree {
    display: table;
    margin: 0 auto;
    white-space: nowrap;
    padding-bottom: 2rem; 
}

.org-tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: max-content; 
}

.org-tree li {
    float: left; 
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 8px 0 8px; 
    transition: all 0.5s;
}

/* Connectors */
.org-tree li::before, .org-tree li::after {
    content: ''; position: absolute; top: 0; right: 50%;
    border-top: 2px solid #1b6da1;
    width: 50%; height: 20px;
}
.org-tree li::after {
    right: auto; left: 50%;
    border-left: 2px solid #1b6da1;
}
.org-tree li:only-child::after, .org-tree li:only-child::before { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before {
    border-right: 2px solid #1b6da1;
    border-radius: 0 5px 0 0;
}
.org-tree li:first-child::after { border-radius: 5px 0 0 0; }
.org-tree ul::before {
    content: ''; position: absolute; top: 0; left: 50%;
    border-left: 2px solid #1b6da1;
    width: 0; height: 20px;
}

/* Sub-Department Headers */
.org-header {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%) !important;
    color: var(--white) !important;
    padding: 6px 20px;
    border-radius: 30px; 
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; 
    white-space: normal; 
    max-width: 180px; 
    border: 2px solid var(--white); 
    position: relative;
    z-index: 2;
}

/* Profile Cards */
.org-card {
    border: 2px solid #a3c9e2;
    border-radius: 12px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7fb 100%);
    padding: 38px 8px 10px; 
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 160px;
    height: 145px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    white-space: normal; 
    margin-bottom: 0; 
    z-index: 2;
    text-align: center; 
}

.org-card[onclick] {
    cursor: pointer;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #1b6da1;
}

/* Profile Images */
.org-card img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px #2378ad;
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2394a3b8"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/50% no-repeat;
    object-fit: cover;
    color: transparent; 
}

.org-card h3 {
    font-size: 0.75rem; 
    color: #00296b;
    margin: 5px 0;
    font-weight: 700;
    text-transform: uppercase;
}
.org-card p {
    font-size: 0.65rem; 
    color: #475569;
    line-height: 1.3;
}

/* ==========================================================================
   CMU SPECIFIC EXACT LAYOUT
   ========================================================================== */
.cmu-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
.cmu-row-1 {
    z-index: 2;
    position: relative;
}
.cmu-row-2 {
    position: relative;
    width: 100%;
    height: 140px; 
    display: flex;
    justify-content: center;
}
.cmu-vertical-main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #1b6da1;
}
.cmu-horizontal-dotted {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; 
    height: 2px;
    border-top: 2px dotted #1b6da1;
}
.cmu-staff-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.cmu-staff-left { right: calc(50% + 190px); } 
.cmu-staff-right { left: calc(50% + 190px); } 
.cmu-row-3 {
    display: flex;
    justify-content: center;
    gap: 80px; 
    position: relative;
    padding-top: 20px; 
}
.cmu-horizontal-solid {
    position: absolute;
    top: 0;
    left: calc(50% - 110px); 
    right: calc(50% - 110px); 
    height: 2px;
    background-color: #1b6da1;
}
.cmu-dept {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px; 
    position: relative;
}
.cmu-dept::before {
    content: '';
    width: 2px;
    height: 20px;
    background-color: #1b6da1;
    position: absolute;
    top: 0;
}
.cmu-unit-pill {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    margin-bottom: 0;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    z-index: 2;
}
.cmu-dept-connector {
    width: 2px;
    height: 25px;
    background-color: #1b6da1;
}

/* ==========================================================================
   MODAL (POPUP) STYLES - SIDE-BY-SIDE LAYOUT
   ========================================================================== */
.member-modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 21, 36, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.member-modal.active { display: flex; opacity: 1; }

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 850px; 
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 2.5rem;
    max-height: 95vh;
    overflow-y: auto; 
}
.member-modal.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.close-modal:hover { color: var(--primary-dark); }

/* Left Column: Image */
.modal-image-col {
    flex: 0 0 200px; 
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}
.modal-image-col img {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Right Column: Information */
.modal-info-col {
    flex: 1; 
    text-align: left;
}
.modal-info-col h3 { 
    color: var(--primary-dark); 
    margin-bottom: 5px; 
    font-size: 1.6rem; 
}
.modal-info-col .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* --- BIO TYPOGRAPHY (NO SCROLL RESTRICTIONS) --- */
.modal-content .bio-scrollable {
    text-align: left;
    margin-top: 0; 
}
.modal-content .bio-scrollable h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 15px 0 10px 0;
    font-family: 'Poppins', sans-serif;
}
.modal-content .bio-scrollable ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}
.modal-content .bio-scrollable li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-body);
    line-height: 1.6;
}
.modal-content .bio-scrollable strong {
    color: var(--secondary);
}

/* --- FOOTER --- */
footer { background: var(--secondary); color: var(--white); padding: 5rem 0 2rem; }
.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 4rem;
}
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; position: relative; padding-left: 15px; }
.footer-col h4::before { content: ''; position: absolute; left: 0; top: 5px; height: 18px; width: 4px; background: var(--accent); border-radius: 2px; }
.footer-col a, .footer-col p { color: #94a3b8; display: block; margin-bottom: 0.8rem; font-size: 0.95rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); transform: translateX(5px); }
.socials { display: flex; gap: 12px; margin-top: 1.5rem; }
.socials a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--white); border: 1px solid rgba(255,255,255,0.1);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--secondary); }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: #64748b; font-size: 0.85rem; }
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   ORG CHART COMPACT FIX (Vertical Stack for Desktop)
   ========================================================================== */
.org-tree ul.vertical-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    padding-top: 20px !important;
    gap: 20px; 
}
.org-tree ul.vertical-stack li {
    padding: 0 !important;
    float: none !important;
    display: flex;
    justify-content: center;
    width: 100%;
}
.org-tree ul.vertical-stack li::before,
.org-tree ul.vertical-stack li::after {
    display: none !important;
}
.org-tree ul.vertical-stack li:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 2px !important;
    height: 20px !important;
    background-color: #1b6da1 !important;
    display: block !important;
    border: none !important;
}

/* ==========================================================================
   MOBILE VIEW - STACKED LAYOUT (Overrides Desktop Structure)
   ========================================================================== */
@media (max-width: 1150px) {
    nav ul { gap: 1rem; }
    nav a { font-size: 0.78rem; }
    .header-right { gap: 0.6rem; }
}
@media (max-width: 768px) {
    /* Menu & Navigation Overrides */
    .menu-toggle { display: block; }
    nav ul.nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid #eee;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        visibility: hidden;
        transition: clip-path 0.3s ease-in-out, visibility 0.3s;
    }
    nav li { width: 100%; }
    nav ul.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
    nav a { color: var(--secondary); padding: 1rem 2rem; display: block; width: 100%; font-size: 1rem; text-align: center; }
    nav a:hover { background: #f1f5f9; color: var(--primary-dark); }
    nav a::after { display: none; }
    nav a.active { color: var(--primary); background: rgba(0, 80, 157, 0.05); font-weight: 700; border-left: 4px solid var(--primary); }
    .dropdown > a.dropbtn { display: none; }
    .dropdown { width: 100%; display: block; }
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static; 
        box-shadow: none;
        background-color: transparent; 
        width: 100%;
        border-radius: 0;
        padding: 0;
        visibility: visible;
        clip-path: none;
    }
    .dropdown-content a { padding: 1rem 2rem; font-size: 1rem; text-align: center; }
    .page-header { height: 40vh; min-height: 320px; margin-bottom: 2.5rem; }
    .page-header h1 { font-size: 2.2rem; }
    .breadcrumb { font-size: 0.75rem; }
    .team-section { padding-bottom: 3rem; }
    .department-block { margin-bottom: 3rem; } 
    .department-block h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
    
    /* Responsive Modal layout */
    .modal-content {
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 1.5rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }
    .modal-image-col {
        flex: none;
        width: 100%;
        position: static;
    }
    .modal-image-col img {
        width: 140px;
        height: 140px;
    }
    .modal-info-col {
        text-align: center;
    }
    .modal-content .bio-scrollable {
        text-align: left; 
    }

    /* -----------------------------------------------------------
       Flatten the Standard Org Tree 
       ----------------------------------------------------------- */
    .org-tree ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 1.5rem !important; 
    }
    
    .org-tree li {
        float: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Hide all standard connector lines */
    .org-tree li::before, 
    .org-tree li::after, 
    .org-tree ul::before,
    .org-tree ul.vertical-stack li:not(:last-child)::after {
        display: none !important;
    }

    /* -----------------------------------------------------------
       Flatten the CMU Specific Layout 
       ----------------------------------------------------------- */
    .cmu-diagram {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 0 !important;
    }

    .cmu-row-1, 
    .cmu-row-2, 
    .cmu-row-3 {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        height: auto !important;
        width: 100% !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        align-items: center !important;
    }

    /* Hide all CMU connecting lines */
    .cmu-vertical-main, 
    .cmu-horizontal-dotted, 
    .cmu-horizontal-solid, 
    .cmu-dept-connector,
    .cmu-dept::before {
        display: none !important;
    }

    /* Fix the CMU staff floating positions */
    .cmu-staff-card {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    /* Hide the inline dotted line between Driver and Records */
    .cmu-staff-left div[style*="border-top"] {
        display: none !important;
    }

    .cmu-dept {
        width: 100% !important;
        position: static !important;
        margin-bottom: 0 !important;
    }

    .cmu-unit-pill {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        width: auto !important;
    }

    /* -----------------------------------------------------------
       Adjust Profile Cards and Headers for the Mobile Stack 
       ----------------------------------------------------------- */
    .org-card {
        margin: 0 auto !important;
        position: relative !important; 
        height: auto !important;
        min-height: 145px;
        padding: 38px 10px 15px !important;
        width: 160px !important; 
    }

    .org-card img {
        top: -27px !important; 
    }

    .org-header {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #00b4d8;
    transition: var(--transition);
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { opacity: 1; color: #00b4d8; }
header.scrolled nav a:hover, header.scrolled nav a.active { color: var(--primary-dark); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--white); }
header.scrolled .menu-toggle { color: var(--secondary); }
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0; 
    z-index: 1001;
}
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content li { width: 100%; }
.dropdown-content a {
    color: var(--secondary) !important; 
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    opacity: 1;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
}

/* Modern Language Switch Button */
.global-lang-toggle {
    display: flex;
    align-items: center;
}

.lang-toggle-checkbox {
    display: none; 
}

.lang-toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 74px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0 4px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrolled .lang-toggle-label,
header.menu-open .lang-toggle-label {
    background-color: #e2e8f0; 
    border-color: #cbd5e1;
}

.lang-toggle-label span:not(.lang-slider) {
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    width: 50%;
    text-align: center;
    transition: var(--transition);
    user-select: none;
}

.lang-toggle-label span:not(.lang-slider) {
    color: var(--white);
}

header.scrolled .lang-toggle-label span:not(.lang-slider),
header.menu-open .lang-toggle-label span:not(.lang-slider) {
    color: var(--text-light);
}

.lang-toggle-checkbox:not(:checked) + .lang-toggle-label .lang-en,
.lang-toggle-checkbox:checked + .lang-toggle-label .lang-fil {
    color: var(--white) !important; 
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 28px;
    background-color: var(--accent);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-slider {
    transform: translateX(32px); 
}

/* Fade-in Animation for Text Changing */
.fade-text {
    animation: fadeInText 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.page-header {
    background: linear-gradient(135deg, rgba(0, 21, 36, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%),
                url('../images/lagunalake.jpeg') center/cover; 
    height: 50vh; 
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeUp 1s ease-out;
}
.breadcrumb {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.page-header h1 span { color: #00b4d8; }

/* --- TEAM SECTION BASE --- */
.team-section {
    padding-bottom: 6rem; 
    background: var(--bg-light);
}

.team-section .container {
    max-width: 100%;
    padding: 0 1rem;
}

.department-block {
    max-width: 100%; 
    margin: 0 auto 5rem; 
}
.department-block:last-child { margin-bottom: 0; }
.department-block h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

/* ==========================================================================
   CSS ORGANIZATIONAL CHART
   ========================================================================== */
.org-wrapper {
    width: 100%;
    overflow-x: auto; 
    padding: 1rem 1rem 3rem;
    display: block;      
    text-align: center;  
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.org-wrapper::-webkit-scrollbar { 
    height: 12px; 
    display: block; 
}
.org-wrapper::-webkit-scrollbar-track { background: transparent; }
.org-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 3px solid var(--bg-light); }
.org-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.org-unit-title {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 40px;
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.org-tree {
    display: table;
    margin: 0 auto;
    white-space: nowrap;
    padding-bottom: 2rem; 
}

.org-tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: max-content; 
}

.org-tree li {
    float: left; 
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 8px 0 8px; 
    transition: all 0.5s;
}

/* Connectors */
.org-tree li::before, .org-tree li::after {
    content: ''; position: absolute; top: 0; right: 50%;
    border-top: 2px solid #1b6da1;
    width: 50%; height: 20px;
}
.org-tree li::after {
    right: auto; left: 50%;
    border-left: 2px solid #1b6da1;
}
.org-tree li:only-child::after, .org-tree li:only-child::before { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before {
    border-right: 2px solid #1b6da1;
    border-radius: 0 5px 0 0;
}
.org-tree li:first-child::after { border-radius: 5px 0 0 0; }
.org-tree ul::before {
    content: ''; position: absolute; top: 0; left: 50%;
    border-left: 2px solid #1b6da1;
    width: 0; height: 20px;
}

/* Sub-Department Headers */
.org-header {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%) !important;
    color: var(--white) !important;
    padding: 6px 20px;
    border-radius: 30px; 
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; 
    white-space: normal; 
    max-width: 180px; 
    border: 2px solid var(--white); 
    position: relative;
    z-index: 2;
}

/* Profile Cards */
.org-card {
    border: 2px solid #a3c9e2;
    border-radius: 12px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7fb 100%);
    padding: 38px 8px 10px; 
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 160px;
    height: 145px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    white-space: normal; 
    margin-bottom: 0; 
    z-index: 2;
    text-align: center; 
}

.org-card[onclick] {
    cursor: pointer;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #1b6da1;
}

/* Profile Images */
.org-card img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px #2378ad;
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2394a3b8"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/50% no-repeat;
    object-fit: cover;
    color: transparent; 
}

.org-card h3 {
    font-size: 0.75rem; 
    color: #00296b;
    margin: 5px 0;
    font-weight: 700;
    text-transform: uppercase;
}
.org-card p {
    font-size: 0.65rem; 
    color: #475569;
    line-height: 1.3;
}

/* ==========================================================================
   CMU SPECIFIC EXACT LAYOUT
   ========================================================================== */
.cmu-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
.cmu-row-1 {
    z-index: 2;
    position: relative;
}
.cmu-row-2 {
    position: relative;
    width: 100%;
    height: 140px; 
    display: flex;
    justify-content: center;
}
.cmu-vertical-main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #1b6da1;
}
.cmu-horizontal-dotted {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; 
    height: 2px;
    border-top: 2px dotted #1b6da1;
}
.cmu-staff-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.cmu-staff-left { right: calc(50% + 190px); } 
.cmu-staff-right { left: calc(50% + 190px); } 
.cmu-row-3 {
    display: flex;
    justify-content: center;
    gap: 80px; 
    position: relative;
    padding-top: 20px; 
}
.cmu-horizontal-solid {
    position: absolute;
    top: 0;
    left: calc(50% - 110px); 
    right: calc(50% - 110px); 
    height: 2px;
    background-color: #1b6da1;
}
.cmu-dept {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px; 
    position: relative;
}
.cmu-dept::before {
    content: '';
    width: 2px;
    height: 20px;
    background-color: #1b6da1;
    position: absolute;
    top: 0;
}
.cmu-unit-pill {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    margin-bottom: 0;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    z-index: 2;
}
.cmu-dept-connector {
    width: 2px;
    height: 25px;
    background-color: #1b6da1;
}

/* ==========================================================================
   MODAL (POPUP) STYLES - SIDE-BY-SIDE LAYOUT
   ========================================================================== */
.member-modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 21, 36, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.member-modal.active { display: flex; opacity: 1; }

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 850px; 
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 2.5rem;
    max-height: 95vh;
    overflow-y: auto; 
}
.member-modal.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.close-modal:hover { color: var(--primary-dark); }

/* Left Column: Image */
.modal-image-col {
    flex: 0 0 200px; 
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}
.modal-image-col img {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Right Column: Information */
.modal-info-col {
    flex: 1; 
    text-align: left;
}
.modal-info-col h3 { 
    color: var(--primary-dark); 
    margin-bottom: 5px; 
    font-size: 1.6rem; 
}
.modal-info-col .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* --- BIO TYPOGRAPHY (NO SCROLL RESTRICTIONS) --- */
.modal-content .bio-scrollable {
    text-align: left;
    margin-top: 0; 
}
.modal-content .bio-scrollable h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 15px 0 10px 0;
    font-family: 'Poppins', sans-serif;
}
.modal-content .bio-scrollable ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}
.modal-content .bio-scrollable li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-body);
    line-height: 1.6;
}
.modal-content .bio-scrollable strong {
    color: var(--secondary);
}

/* --- FOOTER --- */
footer { background: var(--secondary); color: var(--white); padding: 5rem 0 2rem; }
.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 4rem;
}
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; position: relative; padding-left: 15px; }
.footer-col h4::before { content: ''; position: absolute; left: 0; top: 5px; height: 18px; width: 4px; background: var(--accent); border-radius: 2px; }
.footer-col a, .footer-col p { color: #94a3b8; display: block; margin-bottom: 0.8rem; font-size: 0.95rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); transform: translateX(5px); }
.socials { display: flex; gap: 12px; margin-top: 1.5rem; }
.socials a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--white); border: 1px solid rgba(255,255,255,0.1);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--secondary); }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: #64748b; font-size: 0.85rem; }
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   ORG CHART COMPACT FIX (Vertical Stack for Desktop)
   ========================================================================== */
.org-tree ul.vertical-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    padding-top: 20px !important;
    gap: 20px; 
}
.org-tree ul.vertical-stack li {
    padding: 0 !important;
    float: none !important;
    display: flex;
    justify-content: center;
    width: 100%;
}
.org-tree ul.vertical-stack li::before,
.org-tree ul.vertical-stack li::after {
    display: none !important;
}
.org-tree ul.vertical-stack li:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 2px !important;
    height: 20px !important;
    background-color: #1b6da1 !important;
    display: block !important;
    border: none !important;
}

/* ==========================================================================
   MOBILE VIEW - STACKED LAYOUT (Overrides Desktop Structure)
   ========================================================================== */
@media (max-width: 1150px) {
    nav ul { gap: 0.4rem; }
    nav a { font-size: 0.78rem; }
    .header-right { gap: 0.6rem; }
}
@media (max-width: 768px) {
    /* Menu & Navigation Overrides */
    .menu-toggle { display: block; }
    nav ul.nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid #eee;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        visibility: hidden;
        transition: clip-path 0.3s ease-in-out, visibility 0.3s;
    }
    nav li { width: 100%; }
    nav ul.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
    nav a { color: var(--secondary); padding: 1rem 2rem; display: block; width: 100%; font-size: 1rem; text-align: center; }
    nav a:hover { background: #f1f5f9; color: var(--primary-dark); }
    nav a::after { display: none; }
    nav a.active { color: var(--primary); background: rgba(0, 80, 157, 0.05); font-weight: 700; border-left: 4px solid var(--primary); }
    .dropdown > a.dropbtn { display: none; }
    .dropdown { width: 100%; display: block; }
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static; 
        box-shadow: none;
        background-color: transparent; 
        width: 100%;
        border-radius: 0;
        padding: 0;
        visibility: visible;
        clip-path: none;
    }
    .dropdown-content a { padding: 1rem 2rem; font-size: 1rem; text-align: center; }
    .page-header { height: 40vh; min-height: 320px; margin-bottom: 2.5rem; }
    .page-header h1 { font-size: 2.2rem; }
    .breadcrumb { font-size: 0.75rem; }
    .team-section { padding-bottom: 3rem; }
    .department-block { margin-bottom: 3rem; } 
    .department-block h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
    
    /* Responsive Modal layout */
    .modal-content {
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 1.5rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }
    .modal-image-col {
        flex: none;
        width: 100%;
        position: static;
    }
    .modal-image-col img {
        width: 140px;
        height: 140px;
    }
    .modal-info-col {
        text-align: center;
    }
    .modal-content .bio-scrollable {
        text-align: left; 
    }

    /* -----------------------------------------------------------
       Flatten the Standard Org Tree 
       ----------------------------------------------------------- */
    .org-tree ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 1.5rem !important; 
    }
    
    .org-tree li {
        float: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Hide all standard connector lines */
    .org-tree li::before, 
    .org-tree li::after, 
    .org-tree ul::before,
    .org-tree ul.vertical-stack li:not(:last-child)::after {
        display: none !important;
    }

    /* -----------------------------------------------------------
       Flatten the CMU Specific Layout 
       ----------------------------------------------------------- */
    .cmu-diagram {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 0 !important;
    }

    .cmu-row-1, 
    .cmu-row-2, 
    .cmu-row-3 {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        height: auto !important;
        width: 100% !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        align-items: center !important;
    }

    /* Hide all CMU connecting lines */
    .cmu-vertical-main, 
    .cmu-horizontal-dotted, 
    .cmu-horizontal-solid, 
    .cmu-dept-connector,
    .cmu-dept::before {
        display: none !important;
    }

    /* Fix the CMU staff floating positions */
    .cmu-staff-card {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    /* Hide the inline dotted line between Driver and Records */
    .cmu-staff-left div[style*="border-top"] {
        display: none !important;
    }

    .cmu-dept {
        width: 100% !important;
        position: static !important;
        margin-bottom: 0 !important;
    }

    .cmu-unit-pill {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        width: auto !important;
    }

    /* -----------------------------------------------------------
       Adjust Profile Cards and Headers for the Mobile Stack 
       ----------------------------------------------------------- */
    .org-card {
        margin: 0 auto !important;
        position: relative !important; 
        height: auto !important;
        min-height: 145px;
        padding: 38px 10px 15px !important;
        width: 160px !important; 
    }

    .org-card img {
        top: -27px !important; 
    }

    .org-header {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
header.scrolled nav a:hover, header.scrolled nav a.active { color: var(--primary-dark); }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--white); }
header.scrolled .menu-toggle { color: var(--secondary); }
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    flex-direction: column;
    gap: 0; 
    z-index: 1001;
}
.dropdown:hover .dropdown-content { display: flex; }
.dropdown-content li { width: 100%; }
.dropdown-content a {
    color: var(--secondary) !important; 
    padding: 12px 20px;
    display: block;
    font-size: 0.9rem;
    opacity: 1;
}
.dropdown-content a::after { display: none; }
.dropdown-content a:hover {
    background-color: #f8fafc;
    color: var(--primary) !important;
}

/* Modern Language Switch Button */
.global-lang-toggle {
    display: flex;
    align-items: center;
}

.lang-toggle-checkbox {
    display: none; 
}

.lang-toggle-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 74px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0 4px;
    cursor: pointer;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

header.scrolled .lang-toggle-label,
header.menu-open .lang-toggle-label {
    background-color: #e2e8f0; 
    border-color: #cbd5e1;
}

.lang-toggle-label span:not(.lang-slider) {
    z-index: 1;
    font-size: 0.75rem;
    font-weight: 700;
    width: 50%;
    text-align: center;
    transition: var(--transition);
    user-select: none;
}

.lang-toggle-label span:not(.lang-slider) {
    color: var(--white);
}

header.scrolled .lang-toggle-label span:not(.lang-slider),
header.menu-open .lang-toggle-label span:not(.lang-slider) {
    color: var(--text-light);
}

.lang-toggle-checkbox:not(:checked) + .lang-toggle-label .lang-en,
.lang-toggle-checkbox:checked + .lang-toggle-label .lang-fil {
    color: var(--white) !important; 
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 28px;
    background-color: var(--accent);
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.lang-toggle-checkbox:checked + .lang-toggle-label .lang-slider {
    transform: translateX(32px); 
}

/* Fade-in Animation for Text Changing */
.fade-text {
    animation: fadeInText 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- HERO SECTION --- */
.page-header {
    background: linear-gradient(135deg, rgba(0, 21, 36, 0.5) 0%, rgba(0, 0, 0, 0.4) 50%),
                url('../images/lagunalake.jpeg') center/cover; 
    height: 50vh; 
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    animation: fadeUp 1s ease-out;
}
.breadcrumb {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
.page-header h1 span { color: #00b4d8; }

/* --- TEAM SECTION BASE --- */
.team-section {
    padding-bottom: 6rem; 
    background: var(--bg-light);
}

.team-section .container {
    max-width: 100%;
    padding: 0 1rem;
}

.department-block {
    max-width: 100%; 
    margin: 0 auto 5rem; 
}
.department-block:last-child { margin-bottom: 0; }
.department-block h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

/* ==========================================================================
   CSS ORGANIZATIONAL CHART
   ========================================================================== */
.org-wrapper {
    width: 100%;
    overflow-x: auto; 
    padding: 1rem 1rem 3rem;
    display: block;      
    text-align: center;  
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.org-wrapper::-webkit-scrollbar { 
    height: 12px; 
    display: block; 
}
.org-wrapper::-webkit-scrollbar-track { background: transparent; }
.org-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 3px solid var(--bg-light); }
.org-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.org-unit-title {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 40px;
    display: inline-block;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.org-tree {
    display: table;
    margin: 0 auto;
    white-space: nowrap;
    padding-bottom: 2rem; 
}

.org-tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    width: max-content; 
}

.org-tree li {
    float: left; 
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 8px 0 8px; 
    transition: all 0.5s;
}

/* Connectors */
.org-tree li::before, .org-tree li::after {
    content: ''; position: absolute; top: 0; right: 50%;
    border-top: 2px solid #1b6da1;
    width: 50%; height: 20px;
}
.org-tree li::after {
    right: auto; left: 50%;
    border-left: 2px solid #1b6da1;
}
.org-tree li:only-child::after, .org-tree li:only-child::before { display: none; }
.org-tree li:only-child { padding-top: 0; }
.org-tree li:first-child::before, .org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before {
    border-right: 2px solid #1b6da1;
    border-radius: 0 5px 0 0;
}
.org-tree li:first-child::after { border-radius: 5px 0 0 0; }
.org-tree ul::before {
    content: ''; position: absolute; top: 0; left: 50%;
    border-left: 2px solid #1b6da1;
    width: 0; height: 20px;
}

/* Sub-Department Headers */
.org-header {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%) !important;
    color: var(--white) !important;
    padding: 6px 20px;
    border-radius: 30px; 
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 0; 
    white-space: normal; 
    max-width: 180px; 
    border: 2px solid var(--white); 
    position: relative;
    z-index: 2;
}

/* Profile Cards */
.org-card {
    border: 2px solid #a3c9e2;
    border-radius: 12px;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f7fb 100%);
    padding: 38px 8px 10px; 
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 160px;
    height: 145px;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    white-space: normal; 
    margin-bottom: 0; 
    z-index: 2;
    text-align: center; 
}

.org-card[onclick] {
    cursor: pointer;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #1b6da1;
}

/* Profile Images */
.org-card img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px #2378ad;
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-light) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2394a3b8"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') center/50% no-repeat;
    object-fit: cover;
    color: transparent; 
}

.org-card h3 {
    font-size: 0.75rem; 
    color: #00296b;
    margin: 5px 0;
    font-weight: 700;
    text-transform: uppercase;
}
.org-card p {
    font-size: 0.65rem; 
    color: #475569;
    line-height: 1.3;
}

/* ==========================================================================
   CMU SPECIFIC EXACT LAYOUT
   ========================================================================== */
.cmu-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}
.cmu-row-1 {
    z-index: 2;
    position: relative;
}
.cmu-row-2 {
    position: relative;
    width: 100%;
    height: 140px; 
    display: flex;
    justify-content: center;
}
.cmu-vertical-main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #1b6da1;
}
.cmu-horizontal-dotted {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; 
    height: 2px;
    border-top: 2px dotted #1b6da1;
}
.cmu-staff-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.cmu-staff-left { right: calc(50% + 190px); } 
.cmu-staff-right { left: calc(50% + 190px); } 
.cmu-row-3 {
    display: flex;
    justify-content: center;
    gap: 80px; 
    position: relative;
    padding-top: 20px; 
}
.cmu-horizontal-solid {
    position: absolute;
    top: 0;
    left: calc(50% - 110px); 
    right: calc(50% - 110px); 
    height: 2px;
    background-color: #1b6da1;
}
.cmu-dept {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px; 
    position: relative;
}
.cmu-dept::before {
    content: '';
    width: 2px;
    height: 20px;
    background-color: #1b6da1;
    position: absolute;
    top: 0;
}
.cmu-unit-pill {
    background: linear-gradient(135deg, #1b6da1 0%, #358fbd 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    margin-bottom: 0;
    text-transform: uppercase;
    width: 100%;
    text-align: center;
    z-index: 2;
}
.cmu-dept-connector {
    width: 2px;
    height: 25px;
    background-color: #1b6da1;
}

/* ==========================================================================
   MODAL (POPUP) STYLES - SIDE-BY-SIDE LAYOUT
   ========================================================================== */
.member-modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 21, 36, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.member-modal.active { display: flex; opacity: 1; }

.modal-content {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 850px; 
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    gap: 2.5rem;
    max-height: 95vh;
    overflow-y: auto; 
}
.member-modal.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}
.close-modal:hover { color: var(--primary-dark); }

/* Left Column: Image */
.modal-image-col {
    flex: 0 0 200px; 
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}
.modal-image-col img {
    width: 180px; 
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* Right Column: Information */
.modal-info-col {
    flex: 1; 
    text-align: left;
}
.modal-info-col h3 { 
    color: var(--primary-dark); 
    margin-bottom: 5px; 
    font-size: 1.6rem; 
}
.modal-info-col .role {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

/* --- BIO TYPOGRAPHY (NO SCROLL RESTRICTIONS) --- */
.modal-content .bio-scrollable {
    text-align: left;
    margin-top: 0; 
}
.modal-content .bio-scrollable h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin: 15px 0 10px 0;
    font-family: 'Poppins', sans-serif;
}
.modal-content .bio-scrollable ul {
    padding-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}
.modal-content .bio-scrollable li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-body);
    line-height: 1.6;
}
.modal-content .bio-scrollable strong {
    color: var(--secondary);
}

/* --- FOOTER --- */
footer { background: var(--secondary); color: var(--white); padding: 5rem 0 2rem; }
.footer-content {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 4rem;
}
.footer-col h4 { color: var(--white); margin-bottom: 1.5rem; font-size: 1.2rem; position: relative; padding-left: 15px; }
.footer-col h4::before { content: ''; position: absolute; left: 0; top: 5px; height: 18px; width: 4px; background: var(--accent); border-radius: 2px; }
.footer-col a, .footer-col p { color: #94a3b8; display: block; margin-bottom: 0.8rem; font-size: 0.95rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); transform: translateX(5px); }
.socials { display: flex; gap: 12px; margin-top: 1.5rem; }
.socials a {
    width: 36px; height: 36px; background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--white); border: 1px solid rgba(255,255,255,0.1);
}
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--secondary); }
.copyright { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: #64748b; font-size: 0.85rem; }
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(20px); } 
    to { opacity: 1; transform: translateY(0); } 
}

/* ==========================================================================
   ORG CHART COMPACT FIX (Vertical Stack for Desktop)
   ========================================================================== */
.org-tree ul.vertical-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    padding-top: 20px !important;
    gap: 20px; 
}
.org-tree ul.vertical-stack li {
    padding: 0 !important;
    float: none !important;
    display: flex;
    justify-content: center;
    width: 100%;
}
.org-tree ul.vertical-stack li::before,
.org-tree ul.vertical-stack li::after {
    display: none !important;
}
.org-tree ul.vertical-stack li:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: 2px !important;
    height: 20px !important;
    background-color: #1b6da1 !important;
    display: block !important;
    border: none !important;
}

/* ==========================================================================
   MOBILE VIEW - STACKED LAYOUT (Overrides Desktop Structure)
   ========================================================================== */
@media (max-width: 1150px) {
    nav ul { gap: 0.4rem; }
    nav a { font-size: 0.78rem; }
    .header-right { gap: 0.6rem; }
}
@media (max-width: 768px) {
    /* Menu & Navigation Overrides */
    .menu-toggle { display: block; }
    nav ul.nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid #eee;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        visibility: hidden;
        transition: clip-path 0.3s ease-in-out, visibility 0.3s;
    }
    nav li { width: 100%; }
    nav ul.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; }
    nav a:hover { background: #f1f5f9; color: var(--primary-dark); }
    nav a::after { display: none; }
    nav a.active { color: var(--primary); background: rgba(0, 80, 157, 0.05); font-weight: 700; border-left: 4px solid var(--primary); }
    .dropdown > a.dropbtn { display: none; }
    .dropdown { width: 100%; display: block; }
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static; 
        box-shadow: none;
        background-color: transparent; 
        width: 100%;
        border-radius: 0;
        padding: 0;
        visibility: visible;
        clip-path: none;
    }
    .dropdown-content a { padding: 1rem 2rem; font-size: 1rem; text-align: center; }
    .page-header { height: 40vh; min-height: 320px; margin-bottom: 2.5rem; }
    .page-header h1 { font-size: 2.2rem; }
    .breadcrumb { font-size: 0.75rem; }
    .team-section { padding-bottom: 3rem; }
    .department-block { margin-bottom: 3rem; } 
    .department-block h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
    
    /* Responsive Modal layout */
    .modal-content {
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 1.5rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }
    .modal-image-col {
        flex: none;
        width: 100%;
        position: static;
    }
    .modal-image-col img {
        width: 140px;
        height: 140px;
    }
    .modal-info-col {
        text-align: center;
    }
    .modal-content .bio-scrollable {
        text-align: left; 
    }

    /* -----------------------------------------------------------
       Flatten the Standard Org Tree 
       ----------------------------------------------------------- */
    .org-tree ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 1.5rem !important; 
    }
    
    .org-tree li {
        float: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Hide all standard connector lines */
    .org-tree li::before, 
    .org-tree li::after, 
    .org-tree ul::before,
    .org-tree ul.vertical-stack li:not(:last-child)::after {
        display: none !important;
    }

    /* -----------------------------------------------------------
       Flatten the CMU Specific Layout 
       ----------------------------------------------------------- */
    .cmu-diagram {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 0 !important;
    }

    .cmu-row-1, 
    .cmu-row-2, 
    .cmu-row-3 {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        height: auto !important;
        width: 100% !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        align-items: center !important;
    }

    /* Hide all CMU connecting lines */
    .cmu-vertical-main, 
    .cmu-horizontal-dotted, 
    .cmu-horizontal-solid, 
    .cmu-dept-connector,
    .cmu-dept::before {
        display: none !important;
    }

    /* Fix the CMU staff floating positions */
    .cmu-staff-card {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    /* Hide the inline dotted line between Driver and Records */
    .cmu-staff-left div[style*="border-top"] {
        display: none !important;
    }

    .cmu-dept {
        width: 100% !important;
        position: static !important;
        margin-bottom: 0 !important;
    }

    .cmu-unit-pill {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        width: auto !important;
    }

    /* -----------------------------------------------------------
       Adjust Profile Cards and Headers for the Mobile Stack 
       ----------------------------------------------------------- */
    .org-card {
        margin: 0 auto !important;
        position: relative !important; 
        height: auto !important;
        min-height: 145px;
        padding: 38px 10px 15px !important;
        width: 160px !important; 
    }

    .org-card img {
        top: -27px !important; 
    }

    .org-header {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
    nav a:hover { background: #f1f5f9; color: var(--primary-dark); }
    nav a::after { display: none; }
    nav a.active { color: var(--primary); background: rgba(0, 80, 157, 0.05); font-weight: 700; border-left: 4px solid var(--primary); }
    .dropdown > a.dropbtn { display: none; }
    .dropdown { width: 100%; display: block; }
    .dropdown-content {
        display: flex;
        flex-direction: column;
        position: static; 
        box-shadow: none;
        background-color: transparent; 
        width: 100%;
        border-radius: 0;
        padding: 0;
        visibility: visible;
        clip-path: none;
    }
    .dropdown-content a { padding: 1rem 2rem; font-size: 1rem; text-align: center; }
    .page-header { height: 40vh; min-height: 320px; margin-bottom: 2.5rem; }
    .page-header h1 { font-size: 2.2rem; }
    .breadcrumb { font-size: 0.75rem; }
    .team-section { padding-bottom: 3rem; }
    .department-block { margin-bottom: 3rem; } 
    .department-block h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
    
    /* Responsive Modal layout */
    .modal-content {
        flex-direction: column;
        align-items: center;
        padding: 2.5rem 1.5rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }
    .modal-image-col {
        flex: none;
        width: 100%;
        position: static;
    }
    .modal-image-col img {
        width: 140px;
        height: 140px;
    }
    .modal-info-col {
        text-align: center;
    }
    .modal-content .bio-scrollable {
        text-align: left; 
    }

    /* -----------------------------------------------------------
       Flatten the Standard Org Tree 
       ----------------------------------------------------------- */
    .org-tree ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        gap: 1.5rem !important; 
    }
    
    .org-tree li {
        float: none !important;
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* Hide all standard connector lines */
    .org-tree li::before, 
    .org-tree li::after, 
    .org-tree ul::before,
    .org-tree ul.vertical-stack li:not(:last-child)::after {
        display: none !important;
    }

    /* -----------------------------------------------------------
       Flatten the CMU Specific Layout 
       ----------------------------------------------------------- */
    .cmu-diagram {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 0 !important;
    }

    .cmu-row-1, 
    .cmu-row-2, 
    .cmu-row-3 {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        height: auto !important;
        width: 100% !important;
        gap: 1.5rem !important;
        padding: 0 !important;
        align-items: center !important;
    }

    /* Hide all CMU connecting lines */
    .cmu-vertical-main, 
    .cmu-horizontal-dotted, 
    .cmu-horizontal-solid, 
    .cmu-dept-connector,
    .cmu-dept::before {
        display: none !important;
    }

    /* Fix the CMU staff floating positions */
    .cmu-staff-card {
        position: static !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    /* Hide the inline dotted line between Driver and Records */
    .cmu-staff-left div[style*="border-top"] {
        display: none !important;
    }

    .cmu-dept {
        width: 100% !important;
        position: static !important;
        margin-bottom: 0 !important;
    }

    .cmu-unit-pill {
        margin-top: 0 !important;
        margin-bottom: 1rem !important;
        width: auto !important;
    }

    /* -----------------------------------------------------------
       Adjust Profile Cards and Headers for the Mobile Stack 
       ----------------------------------------------------------- */
    .org-card {
        margin: 0 auto !important;
        position: relative !important; 
        height: auto !important;
        min-height: 145px;
        padding: 38px 10px 15px !important;
        width: 160px !important; 
    }

    .org-card img {
        top: -27px !important; 
    }

    .org-header {
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
    }
}