:root{
    --navy:#0b304c;
    --blue:#11607d;
    --accent:#d7624c;
    --paper:#f4f6f6;
    --text:#173446;
    --muted:#5e7380;
    --border:#d7e4e7;
    --danger:#8c2630;
}

/* LANGUAGE SWITCHER */

.lang-switch{
    display:inline-flex;
    gap:4px;
    margin-left:8px;
}

.lang-switch button{
    border:none;
    background:rgba(255,255,255,.15);
    color:#fff;
    padding:8px 14px;
    border-radius:20px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}

.lang-switch button:hover{
    background:rgba(255,255,255,.3);
}

.lang-switch button.active-lang{
    background:#fff;
    color:#08385b;
}

/* GLOBAL */

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--paper);
    color:var(--text);
    font-family:Arial, Helvetica, sans-serif;
}

img{
    display:block;
    max-width:100%;
}

h1,h2,h3{
    margin:0;
    font-family:Georgia, serif;
}

/* TOP HEADER */

.topHeader{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 30px;
    background:#fff;
}

.headerBrand,
.logoSection{
    display:flex;
    align-items:center;
    gap:15px;
    text-decoration:none;
}

.countySeal{
    width:80px;
    height:80px;
    object-fit:contain;
}

.headerSeal{
    width:50px;
    height:50px;
    object-fit:contain;
}

.headerText{
    display:flex;
    flex-direction:column;
}

.headerCounty{
    font-size:12px;
    font-weight:700;
    letter-spacing:3px;
    color:#cc5a42;
    text-transform:uppercase;
}

.headerTitle{
    font-size:18px;
    font-weight:700;
    line-height:1;
    color:#0c3b60;
    margin-top:4px;
}

/* TOP NAVIGATION */

.button-row,
.mainNav{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    padding:15px 20px;
    background:#08385b;
}

.main-btn,
.mainNav a{
    border:none;
    background:var(--blue);
    color:#fff;
    text-decoration:none;
    padding:10px 18px;
    border-radius:20px;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}

.main-btn:hover{
    background:#0b7ea4;
}

.activeNav{
    background:white;
    color:#08385b !important;
}

.seal{
    width:90px;
    height:90px;
    object-fit:contain;
    flex-shrink:0;
}

/* HERO */

.hero{
    position:relative;
    min-height:500px;
    background-image:url("Pine trees.jpg");
    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
    overflow:hidden;
}

.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        90deg,
        rgba(255,255,255,.95) 0%,
        rgba(255,255,255,.95) 0%,
        rgba(255,255,255,.45) 55%,
        rgba(255,255,255,0) 100%
    );
}

.heroContent{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    gap:36px;
    max-width:1100px;
    margin:0 auto;
    padding-top:110px;
    padding-bottom:110px;
    padding-left:25px;
    padding-right:80px;
}

.heroSeal{
    width:120px;
    height:auto;
    flex-shrink:0;
    filter:contrast(1.25) brightness(.9);
}

.heroText{
    max-width:700px;
}

.countyLabel{
    color:#d46a2e;
    font-size:24px;
    font-weight:800;
    letter-spacing:4px;
    text-transform:uppercase;
    margin-bottom:8px;
}

.heroText h1{
    color:#0b3556;
    font-size:72px;
    font-weight:700;
    line-height:.95;
    margin:0;
    white-space:nowrap;
}

.heroDescription{
    margin-top:18px;
    max-width:600px;
    font-weight:700;
    color:#0b3556;
    font-size:24px;
    line-height:1.6;
}

/* CARDS */

.routes{
    max-width:1100px;
    margin:30px auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.routeCard{
    background:white;
    border:1px solid var(--border);
    border-radius:14px;
    padding:22px;
    text-decoration:none;
    color:inherit;
    transition:.2s ease;
}

.routeCard:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 20px rgba(0,0,0,.08);
}

.cardIcon{
    font-size:24px;
    margin-bottom:10px;
}

.routeCard h3{
    color:var(--navy);
    font-size:20px;
    margin-bottom:8px;
}

.routeCard p{
    color:var(--muted);
    margin:0;
}

/* RIGHTS BANNER */

.rightsBanner{
    max-width:1100px;
    margin:30px auto;
    padding:18px 25px;
    background:var(--navy);
    border-radius:20px;
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.rightsBanner h2{
    font-size:16px;
    line-height:1.3;
    font-family:Arial, Helvetica, sans-serif;
    font-weight:600;
}

.rightsBanner a{
    color:white;
    font-weight:700;
}

/* EMERGENCY CARD */

.emergencyCard{
    max-width:700px;
    margin:30px auto;
    background:white;
    border:1px solid var(--border);
    border-radius:18px;
    padding:25px;
    text-align:center;
}

.emergencyCard h3{
    color:var(--navy);
    margin-bottom:12px;
}

/* FLOATING BUTTONS */

#faqBox{
    position:fixed;
    right:15px;
    bottom:140px;
    background:var(--blue);
    color:white;
    padding:12px 16px;
    border-radius:25px;
    cursor:pointer;
    z-index:2000;
}

#rightsBox{
    position:fixed;
    right:15px;
    bottom:90px;
    background:var(--navy);
    color:white;
    padding:12px 16px;
    border-radius:25px;
    cursor:pointer;
    z-index:2000;
}

#exitBtn{
    position:fixed;
    right:15px;
    bottom:20px;
    border:none;
    background:var(--danger);
    color:white;
    padding:12px 18px;
    border-radius:25px;
    font-weight:700;
    cursor:pointer;
    z-index:2000;
}

/* MODALS */

#modal,
#securityModal,
#faqModal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:5000;
}

#modalContent,
#securityContent,
#faqContent{
    background:white;
    width:min(700px,90%);
    max-height:80vh;
    overflow:auto;
    padding:30px;
    border-radius:20px;
    position:relative;
}

/* Single FAQ item popup (class-based, used by #faqPopup) */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    justify-content:center;
    align-items:center;
    z-index:6000;
}

.modal-content{
    background:white;
    width:min(600px,90%);
    max-height:80vh;
    overflow:auto;
    padding:30px;
    border-radius:20px;
    position:relative;
}

.modal-content .closeBtn{
    position:absolute;
    top:12px;
    right:14px;
    font-size:28px;
    background:none;
    border:none;
    cursor:pointer;
    color:#173446;
}

.modal-content #faqPopupQuestion{
    color:#0b3556;
    font-size:24px;
    margin-bottom:16px;
    padding-right:20px;
}

.modal-content #faqPopupAnswer{
    color:#4f6277;
    font-size:17px;
    line-height:1.7;
}

.closeBtn,
#securityClose{
    position:absolute;
    top:12px;
    right:14px;
    font-size:28px;
    cursor:pointer;
}

/* (old unused FAQ popup markup/CSS removed — the popup now uses
   the .modal / .modal-content classes defined above) */

.popupCloseButton{
    background:#d96c3f;
    color:white;
    border:none;
    padding:12px 22px;
    margin-top:20px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

/* FOOTER */

.siteFooter{
    background:#0b3558;
    color:white;
    text-align:center;
    width:100%;
    padding:45px 30px;
    margin-top:60px;
    box-sizing:border-box;
}

.footerContent{
    max-width:1400px;
    margin:0 auto;
    position:relative;
    text-align:center;
}

.footerText h3{
    font-size:1.1rem;
    font-weight:600;
}

.footerText p{
    font-size:0.85rem;
}

.footerExitBtn{
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    background:#9c3434;
    color:white;
    border:none;
    border-radius:40px;
    padding:18px 40px;
    font-size:1.1rem;
    font-weight:700;
    cursor:pointer;
}

/* MOBILE */

@media(max-width:900px){
    .hero{
        height:auto;
        padding:40px 20px;
    }
    .heroContent{
        flex-direction:column;
        text-align:center;
        padding-left:20px;
        padding-right:20px;
    }
    .heroText{
        text-align:center;
    }
    .heroText h1{
        font-size:36px;
        white-space:normal;
    }
    .routes{
        grid-template-columns:1fr;
    }
    .rightsBanner{
        flex-direction:column;
        gap:20px;
        text-align:center;
    }

    /* ---- Header / nav on small screens ---- */
    .topHeader{
        flex-direction:column;
        gap:14px;
        text-align:center;
        padding:16px;
    }
    .headerBrand{
        flex-direction:column;
    }
    .button-row{
        gap:8px;
        padding:12px;
    }
    .main-btn{
        font-size:12px;
        padding:8px 12px;
    }
    .lang-switch{
        width:100%;
        justify-content:center;
        margin-left:0;
        margin-top:6px;
    }

    /* ---- Page hero (Law Enforcement / District Attorney) ---- */
    .pageHero{
        padding-top:40px;
    }
    .pageWrapper{
        margin:20px auto;
        padding:0 16px;
    }
    .sectionLabel{
        font-size:18px;
        letter-spacing:2px;
    }
    .pageHero h1{
        font-size:30px;
    }
    .heroIntro{
        font-size:16px;
    }

    /* ---- Law Enforcement agency cards ---- */
    .agencyBanner{
        height:160px;
    }
    .agencyInfo{
        flex-direction:column;
        text-align:center;
        gap:14px;
        padding:18px;
    }
    .agencyText h2{
        font-size:22px;
    }
    .agencyActions{
        flex-direction:column;
        width:100%;
        gap:10px;
    }
    .callBtn{
        width:100%;
        text-align:center;
    }

    /* ---- District Attorney page ---- */
    .daHero{
        margin:30px auto;
        padding:0 16px;
    }
    .daHero h1{
        font-size:34px;
    }
    .daProfileCard{
        flex-direction:column;
        align-items:center;
        text-align:center;
        padding:18px;
        margin:24px auto;
    }
    .daPhoto{
        width:140px;
        height:170px;
    }
    .officeCard{
        grid-template-columns:1fr;
    }
    .officeImage{
        height:220px;
    }
    .officeInfo{
        padding:18px;
    }
    .appointmentBanner{
        flex-direction:column;
        text-align:center;
        gap:14px;
        padding:20px;
        margin:20px auto;
    }
    .appointmentTime{
        font-size:36px;
    }
    .processSection{
        margin:24px auto;
        padding:18px;
    }

    /* ---- FAQ sections (all pages) ---- */
    .faqSection{
        padding:16px;
        margin-top:30px;
        margin-bottom:30px;
    }
    .faqItem{
        padding:16px 0;
        font-size:15px;
    }
    #faqContent, #modalContent, #securityContent{
        width:94%;
        padding:20px;
    }
    .modal-content{
        width:94%;
        padding:20px;
    }
    .modal-content #faqPopupQuestion{
        font-size:20px;
    }
    .modal-content #faqPopupAnswer{
        font-size:15px;
    }

    /* ---- Support & Help page ---- */
    .supportContainer{
        padding:30px 16px;
    }
    .supportHero h1{
        font-size:30px;
    }
    .resourceGrid{
        grid-template-columns:1fr;
    }
    .resourceCard{
        min-height:auto;
    }
    .ivssGrid{
        grid-template-columns:1fr;
    }
    .compensationCard{
        flex-direction:column;
        text-align:center;
        gap:20px;
        padding:20px;
    }
    .compensationActions{
        width:100%;
    }

    /* ---- Floating action buttons ---- */
    #exitBtn, #rightsBox, #faqBox{
        padding:10px 14px;
        font-size:13px;
        right:10px;
    }
    #faqBox{ bottom:130px; }
    #rightsBox{ bottom:85px; }
    #exitBtn{ bottom:16px; }
}

/* ============================================= */
/* Law Enforcement page                           */
/* ============================================= */

.pageHero{
    padding-top:80px;
    margin-bottom:40px;
}

.pageWrapper{
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

.sectionLabel{
    color:#d96c3f;
    font-weight:800;
    letter-spacing:4px;
    font-size:28px;
    margin-bottom:12px;
}

.pageHero h1{
    color:#0b3556;
    font-size:50px;
    line-height:.95;
    margin:0;
}

.heroIntro{
    max-width:1000px;
    color:#5b6f80;
    font-size:22px;
    margin-top:20px;
}

.agencyContainer{
    display:flex;
    flex-direction:column;
    gap:35px;
}

.agencyCard{
    background:white;
    border-radius:22px;
    overflow:hidden;
    border:1px solid #dde4e8;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
    margin-bottom:35px;
}

.agencyBanner{
    width:100%;
    height:280px;
    object-fit:cover;
}

.agencyInfo{
    display:flex;
    align-items:center;
    gap:30px;
    padding:24px;
}

.agencyLogo{
    width:90px;
    height:90px;
    object-fit:contain;
    flex-shrink:0;
}

.agencyText{
    display:flex;
    flex-direction:column;
}

.agencyText h2{
    margin:0 0 10px 0;
    color:#0b3556;
    font-size:32px;
    font-weight:700;
}

.agencyAddress{
    margin:0 0 14px 0;
    color:#6a7b89;
    font-size:18px;
}

.agencyActions{
    display:flex;
    align-items:center;
    gap:16px;
}

.callBtn{
    background:#0d6b84;
    color:white;
    text-decoration:none;
    padding:12px 18px;
    border-radius:8px;
    font-weight:700;
}

.callBtn:hover{
    background:#09556a;
}

.websiteLink{
    color:#0d6b84;
    text-decoration:none;
    font-weight:600;
}

.dpsCircle{
    width:70px;
    height:70px;
    background:#002f53;
    color:white;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    font-weight:700;
}

.faqSection{
    background:white;
    border:1px solid #dde4e8;
    border-radius:22px;
    padding:25px;
    margin-top:50px;
    margin-bottom:60px;
}

.faqSection h2{
    color:#0b3556;
    margin-top:10px;
}

/* NOTE: your original file had three conflicting .faqItem definitions.
   Kept the flex / space-between version (matches the ">" arrow in
   .faqItem span). Delete this note once confirmed. */
.faqItem{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 0;
    border-top:1px solid #e2e8ed;
    color:#0b3556;
    font-weight:600;
    cursor:pointer;
}

.faqItem span{
    color:#d96c3f;
    font-size:24px;
    font-weight:700;
}


/* ============================================= */
/* District Attorney page                         */
/* ============================================= */

.daHero{
    max-width:1000px;
    margin:60px auto;
}

.daHero h1{
    max-width:1000px;
    font-size:64px;
    line-height:.92;
}

.daProfileCard{
    display:flex;
    align-items:flex-start;
    gap:28px;
    background:white;
    border-radius:20px;
    padding:20px;
    margin:40px auto;
    max-width:1200px;
    border:1px solid #dde4e8;
}

.daPhoto{
    width:180px;
    height:220px;
    object-fit:cover;
    border-radius:12px;
}

.daContainer{
    max-width:1180px;
    margin:0 auto;
    padding:50px 20px;
}

.bioBox{
    background:#f4ecd3;
    border-left:4px solid #d9a62e;
    padding:15px;
    margin-top:15px;
}

.officeCard{
    display:grid;
    grid-template-columns:55% 45%;
    overflow:hidden;
    background:white;
    border-radius:20px;
    max-width:1200px;
    margin:0 auto 30px auto;
}

.officeImage{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.officeInfo{
    padding:25px;
    background:#e3f0f3;
}

.noticeBox{
    background:#f4ecd3;
    padding:12px;
    margin:15px 0;
}

.appointmentBanner{
    max-width:1200px;
    margin:30px auto;
    background:#062f50;
    color:white;
    display:flex;
    gap:30px;
    padding:30px;
    border-radius:18px;
}

.appointmentTime{
    font-size:56px;
    font-weight:700;
    line-height:.9;
}

.processSection{
    max-width:1200px;
    margin:40px auto;
    background:white;
    border-radius:20px;
    padding:30px;
    border:1px solid #dde4e8;
}

.processGraphic{
    width:100%;
    margin-top:20px;
    border-radius:10px;
}

/* ============================================= */
/* Help & Support page                            */
/* ============================================= */

.supportContainer{
    max-width:1000px;
    margin:0 auto;
    padding:50px 20px;
}

.supportHero{
    margin-bottom:40px;
}

.supportHero h1{
    color:#0b3556;
    font-size:50px;
    line-height:.95;
    margin:12px 0;
}

.resourceGrid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    margin-top:30px;
}

.resourceCard{
    background:white;
    border:1px solid #d6e0e5;
    border-radius:20px;
    padding:22px;
    min-height:250px;
    display:flex;
    flex-direction:column;
}

.resourceLabel{
    color:#d96c3f;
    font-size:12px;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.resourceCard h3{
    color:#0b3556;
    font-size:24px;
    line-height:1.1;
    margin:0 0 12px 0;
}

.resourceCard p{
    color:#617488;
    font-size:16px;
    line-height:1.5;
    margin-bottom:20px;
}

.resourceActions{
    margin-top:auto;
    display:flex;
    align-items:center;
    gap:16px;
}

.ivssSection{
    background:white;
    border:1px solid #d6e0e5;
    border-radius:20px;
    padding:30px;
    margin-top:40px;
}

.ivssGrid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    margin-top:20px;
}

.ivssCard{
    background:#eaf3f5;
    border-radius:14px;
    padding:22px;
}

.ivssCard h3{
    margin-top:0;
    color:#0b3556;
}

.ivssCard p{
    color:#4f6277;
    line-height:1.6;
}

.compensationCard{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:white;
    border:1px solid #d6e0e5;
    border-radius:20px;
    padding:30px;
    margin-top:40px;
}

.compensationText{
    max-width:700px;
}

.compensationActions{
    display:flex;
    flex-direction:column;
    gap:14px;
}