:root {
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: light;
    }
    body {
        background-color: #ffffff;
        color: #000000;
    }
}

@font-face {
    font-family: 'Charis SIL Regular';
    src: url(../../Fonts/Charis-SIL/CharisSIL-Regular.ttf);
}
@font-face {
    font-family: 'Charis SIL Bold';
    src: url(../../Fonts/Charis-SIL/CharisSIL-Bold.ttf);
}
@font-face {
    font-family: 'Charis SIL Bold Italic';
    src: url(../../Fonts/Charis-SIL/CharisSIL-BoldItalic.ttf);
}
@font-face {
    font-family: 'Charis SIL Italic';
    src: url(../../Fonts/Charis-SIL/CharisSIL-Italic.ttf);
}
@font-face {
    font-family: 'Geist';
    src: url(../../Fonts/Geist/Geist-VariableFont_wght.ttf);
}
body {
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    color: #000000;
    background-color: #ffffff;
}
.banner {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: center;
}
.bannerImage {
    width: 100%;
    height: auto;
    display: block;
}
.bannerText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    padding: 20px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Charis SIL Bold', serif;
    color: #FE993C;
}
#imgLandscape {
    width: 510px;
    height: 270px;
}
#goToTop {
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 30px; 
    z-index: 99; 
    border: none; 
    outline: none; 
    background-color: #DE710C;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Geist', sans-serif;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}
#goToTop:hover {
  background-color: #ffffff;
  color: #DE710C;
  outline: #DE710C solid 2px;
  font-family: 'Geist', sans-serif;
  box-shadow: 2px 2px 6 rgba(0, 0, 0, 0.2);
}
.fa-arrow-up:hover, .fa-solid:hover {
    color: #DE710C !important;
}
.pageDivider {
    width: 100%;
    height: 50px;
    background-color: #FE993C;
    display: block;
    margin: 0;
    padding: 0;
}
.brgyCaptainSection, .deptSection, .servicesSection {
    margin-top: 60px;
}
.labelDivider {
    width: 100%;
    height: 100px;
    background-color: #FE993C;
    color: #FFFFFF;
    font-family: 'Charis SIL Bold', serif;
    font-size: 40px;
    text-align: center;
    display: block;
    margin: 60px 0;
    align-content: center;
}
#officialImg {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
}
.deptBox, .servBox {
    border: #FE993C solid 2px;
    border-radius: 20px;
    padding: 20px;
    margin: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}
.vicinityMapSection {
    margin-top: 40px;
}
.mapCard {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 0;
}
.mapOverlay {
    position: absolute;
    z-index: 450;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: #FFFFFF;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    cursor: pointer;
    padding: 20px;
}
.mapOverlay.is-hidden {
    display: none;
}
.vicinityMap {
    height: 420px;
    width: 100%;
    z-index: 0;
}
.leaflet-container {
    z-index: 0;
}
.mapBadge {
    position: absolute;
    z-index: 400;
    left: 16px;
    top: 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    line-height: 1.35;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}
.mapBadge b {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}
.servicesSection .col {
    display: flex;
}
.servicesSection .servBox {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
}
.servicesSection .servBox h3 {
    text-align: center;
}
.vicinityGrid .col {
    display: flex;
}
.vicinityCard {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 170px;
}
.vicinitySub {
    margin-top: 8px;
    color: #555555;
    font-size: 14px;
    line-height: 1.5;
}
.vicinityCard h3 {
    font-size: 22px;
    text-align: center;
}
#deptBtn {
    background-color: #FE993C;
    border-radius: 8px;
    color: #FFFFFF;
    font-family: 'Geist', sans-serif;
    transition: all 0.2s ease-in-out;
    padding: 7px 25px;
}
#deptBtn:hover {
    background-color: #FFFFFF;
    outline: #FE993C solid 2px;
    color: #FE993C;
}
#kapDesign {
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .bannerImage {
        width: 100%;
        height: auto;
    }
    .bannerText {
        font-size: 10px;
        padding: 10px;
        width: 90%;
        margin-top: 5px;
    }
    .pageDivider {
        height: 20px;
    }
    .labelDivider {
        height: 70px;
        font-size: 24px;
        margin: 50px 0;
    }
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    h4 {
        font-size: 16px;
    }
    .brgyCaptainSection, .deptSection, .servicesSection {
        margin-top: 50px;
    }
    .brgyCaptainSection .col-md-8 {
        margin-top: 20px;
    }
    .brgyCaptainSection p, .deptSection p, .servicesSection p {
        font-size: 14px;
    }
    #officialImg {
        max-width: 200px;
    }
    .deptBox, .servBox {
        padding: 10px;
        margin: 5px;
    }
    .vicinityCard {
        min-height: 0;
    }
    #goToTop {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0;
    }
    #goToTop i {
        font-size: 18px;
        margin: 0;
    }
    .servicesSection .servBox {
        min-height: 0;
        padding: 16px;
    }
    .servicesSection .servBox h3 {
        font-size: 20px;
    }
    .vicinityGrid {
        text-align: center;
    }
    .vicinityMap {
        height: 300px;
    }
    .mapBadge {
        max-width: 280px;
    }
}
