.section {
    scroll-margin-top: 100px !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    flex: 1;
    min-height: 0;
}



@media (min-width: 1200px) {
    .section {
        height: 100vh;
    }
}

@media (max-width: 768px) {
    .section {
        margin-bottom: 15px;
    }
}

/* ===== Header ===== */

header {
    top: 0;
    z-index: 1000;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    padding-top: 20px;
    padding-right: 40px !important;
    padding-left: 40px !important;
}

/* Apply sticky positioning only on screens wider than 768px (desktop) */
@media (min-width: 768px) {
    header {
        position: sticky;
    }
}

header img {
    height: 40px;
}

.header-right {
    display: flex;
    gap: 45px;
    align-items: center;
}

.header-right a {
    color: #000;
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.6px;
}

.header-right button {
    border-radius: 30px;
    background: #004587;
    color: #FFF;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.6px;
    padding: 10px 20px;
    border: none;
}

/* Base hamburger styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
}

.hamburger span {
    width: 100%;
    display: block;
    height: 2px;
    background: #000;
    transition: 0.3s ease;
}

/* Transform to X when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive styles */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        position: relative;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 20px;
        right: 40px;
        z-index: 1500;
        color: black;
    }

    .header-right {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 20px;
        margin-top: 20px;
        align-items: end;
    }

    .header-right.active {
        display: flex;
    }
}

/* ===== hero section ===== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 40px 0 40px;
}

.hero img {
    max-height: 80vh;
    border-radius: 25px;
}

.hero-left {
    padding-right: 10px;
}

.hero h1 {
    font-size: 75px;
    line-height: 75px;
    font-weight: 400;
    color: black;
    margin-bottom: 50px;
}

.hero p {
    font-size: 30px;
    line-height: 36px;
    font-weight: 400;
    color: black;
    letter-spacing: 1px;
}

@media (max-width: 768px) {

    .hero {
        min-height: auto;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 100%;
        margin-bottom: 25px;
    }

    .hero p {
        font-size: 16px;
        line-height: 140%;
    }

    .hero img {
        height: auto;
    }
}

/* ===== era help section ===== */

.era-help-section {
    padding: 0;
    margin-bottom: 0px;
}

.era-helps-left {
    padding-left: 40px;
    min-height: 200px;
}

@media (min-width: 992px) {
    .era-help-section {
        height: 90vh;
        margin-bottom: 30px;
    }
}

.era-helps {
    margin-top: 100px !important;
    color: #000;
    font-size: 40px;
    line-height: 1.2;
    padding: 40px 0;
    line-height: 25px;
}

@media (max-width: 768px) {
    .era-helps {
        padding: 20px 0;
    }
}

@media (min-width: 768px) {
    .era-helps {
        font-size: 60px;
        padding: 0px 0;
    }
}

/* ===== rotate text ===== */


#rotating-text {
    margin-top: 20px;
    display: inline-block;
    position: relative;
    overflow: hidden;
    height: 1.2em;
    min-width: -webkit-fill-available;
}

#rotating-text>span {
    background: radial-gradient(circle, #004587, #FC0064);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: inherit;
    font-weight: 400;
    line-height: 1.2;
    position: absolute;
    width: 100%;
    text-align: left;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.5s ease-in-out;
}

#rotating-text>span.active {
    opacity: 1;
}

#rotating-text>span.slide-up {
    transform: translateY(0);
}

/* ===== scroll image section ===== */

.image-scroll-container {
    position: relative;
    overflow: hidden;
    height: 90vh;
    padding: 0px;
}

.progress-bar {
    position: absolute;
    width: 100%;
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    z-index: 10;
}

.progress-fill {
    background-color: #868686;
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.3s ease-in-out;
}

.progress-bar-vertical {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #eee;
    border-radius: 5px;
    z-index: 10;
}

.progress-fill-vertical {
    background-color: #868686;
    width: 100%;
    height: 0%;
    border-radius: 5px;
    transition: height 0.3s ease-in-out;
}

.mobile-image-scroll-wrapper {
    display: none;
}


.image-scroll-wrapper {
    overflow: hidden;
    position: relative;
    height: 90vh;
    scroll-behavior: smooth;
}

.image-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.image-scroll-section {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.scroll-images {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.scroll-images img {
    opacity: 0;
    scroll-snap-align: start;
    object-fit: contain;
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.mobile-scroll-images img {
    opacity: 0;
    scroll-snap-align: start;
    object-fit: contain;
    width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.scroll-images img.active {
    opacity: 1;
    visibility: visible;
}

.image-block {
    background: linear-gradient(321deg, #FFF 30.81%, #F0F0F0 68.53%);
    height: 90vh;
    padding: 5rem;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.image-title {
    margin-bottom: 40px;
    color: #000;
    font-size: 45px;
    line-height: 45px;
    margin-top: 40px;
    text-align: center;
}

.image-desc {
    color: #000;
    font-size: 18px;
    line-height: 21px;
    letter-spacing: 0.9px;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .image-scroll-container {
        height: auto;
        padding: 0px;
    }

    .mobile-image-block {
        padding: 5rem;
    }

    .image-scroll-wrapper {
        overflow-y: scroll;
        height: 100vh;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        display: none;
    }

    .mobile-image-scroll-wrapper {
    position: relative;
        display: block;
    }

    .mobile-scroll-images {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .mobile-scroll-images img {
         opacity: 1;
        visibility: visible;
        transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    }

}

/* ===== Map Section ===== */

.map-section {
    padding-top: 80px !important;
    margin-bottom: 30px;
    height: 100vh;
    width: 100%;
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.map-section .d-flex {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .map-details h3 {
        font-size: 60px !important;
    }
}

.map-details {
    max-height: 100vh;
    display: flex;
    justify-content: start;
    flex-direction: column;
    background: white;
    padding: 0 30px 40px 30px;
    z-index: 2;
    position: relative;
}

.map-details h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.map-details p {
    font-size: 18px;
    font-weight: 400;
    color: black;
}

.map-description {
    overflow-y: auto;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.map-description::-webkit-scrollbar {
    width: 12px;
}

.map-description::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    border: 1px solid #fff;
}

.map-description::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.1);
}

.map-description:hover::-webkit-scrollbar-thumb,
.map-description:focus::-webkit-scrollbar-thumb,
.map-description:active::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.7);
}

.map-details button {
    border-radius: 25px;
    background-color: #004587;
    width: 210px;
    padding: 16px 20px;
    gap: 10px;
    color: white;
    font-size: 16px;
    border: none;
    display: flex;
    align-items: center;
}

.map-button-icon {
    margin-left: 10px;
}

#map {
    max-height: 90vh;
    flex: 1 1 65%;
    height: 100%;
    position: relative;
    z-index: 1;
}

#fly {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
    min-width: 250px;
    border-radius: 25px;
    padding: 15px 35px;
    border: none;
    font-size: 15px;
    color: #fff;
    background: #004587;
    letter-spacing: 0.6px;
}

#district-info-table {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    padding: 12px;
    border-radius: 8px;
    max-width: 300px;
    font-size: 14px;
    z-index: 10;
    display: block;
}

.info-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    z-index: 1000;
}

.maplibregl-ctrl-bottom-right {
    display: none;
}

.hover-info {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 12px;
    z-index: 2;
    pointer-events: none;
}

.popup-content {
    max-height: 150px;
    overflow-y: auto;
}

.info-lines {
    font-family: monospace;
    white-space: nowrap;
}

#scroll-container {
    overflow: hidden;
    transition: overflow ease-out 0.3s;
}

.scroll-enabled {
    overflow: auto !important;
}

/* ===== Responsive Layout ===== */
@media (max-width: 768px) {

    #scroll-container {
        min-height: 60dvh;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        box-sizing: border-box;
    }

    #How-it-works {
        height: auto;
    }

    .map-section .d-flex {
        flex-direction: column;
    }

    .map-details {
        max-height: none;
        position: static;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        order: 2;
        padding: 20px;
        overflow-y: unset;
    }

    .map-details button {
        font-size: 12px;
        padding: 12px 18px;
        width: 170px;
        justify-content: center;
    }

    .map-description {
        overflow-y: unset;
        background-color: #F3F3F3;
    }

    .map-description p {
        font-size: 12px;
    }

    #map {
        width: 100%;
        height: 100vh;
    }

    #controls {
        bottom: 20px;
        right: 20px;
    }


    #fly {
        width: 150px;
        bottom: 80px;
        left: 20px;
    }
}

/* ===== era video and tabs section ===== */

@media (min-width: 1400px) {
    #resources {
        width: 70%;
    }
}

.tabs-section {
    padding-top: 80px !important;
}

.tabs-section h3.era-section-title {
    color: black;
    font-size: 45px !important;
    margin-bottom: 30px;
}

.era-tabs {
    display: flex;
}

.era-tabs .nav-item {
    flex: 1;
}

.era-tabs .nav-link {
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    background-color: transparent;
    color: black;
    position: relative;
    text-align: center;
}

.era-tabs .nav-link .tab-title {
    padding-bottom: 14px;
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 45px;
    display: block;
    width: 100%;
    overflow-wrap: break-word;
}

.tab-description {
    min-height: 70px;
}

.era-tabs .nav-link .tab-description {
    padding: 0 14px 14px 14px;
    font-size: 14px;
    font-weight: 450;
    line-height: 1.2;
    letter-spacing: 0.7px;
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    color: black;
}

.era-tabs .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 10px;
    background-color: transparent;
}

.era-tabs .nav-link.active {
    color: inherit;
}

.era-tabs .nav-link.active[aria-controls="tab1"] {
    color: #FC0064;
}

.era-tabs .nav-link.active[aria-controls="tab1"] .tab-description {
    color: #FC0064;
}

.era-tabs .nav-link.active[aria-controls="tab1"]::after {
    background-color: #FC0064;
}

.era-tabs .nav-link.active[aria-controls="tab2"] {
    color: #00C587;
}

.era-tabs .nav-link.active[aria-controls="tab2"] .tab-description {
    color: #00C587;
}

.era-tabs .nav-link.active[aria-controls="tab2"]::after {
    background-color: #00C587;
}

.era-tabs .nav-link.active[aria-controls="tab3"] {
    color: #8D1EB8;
}

.era-tabs .nav-link.active[aria-controls="tab3"] .tab-description {
    color: #8D1EB8;
}

.era-tabs .nav-link.active[aria-controls="tab3"]::after {
    background-color: #8D1EB8;
}

.tabs-section .tab-content .tab-pane {
    padding-top: 10px;
}

.video-wrapper {
    position: relative;
}

.video-wrapper video {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    position: relative;
}

.video-wrapper h4.video-title {
    position: absolute;
    bottom: 100px;
    left: 25px;
    color: #FFF;
    font-size: 45px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    margin: 0;
    padding: 10px 15px;
    border-radius: 5px;
    display: block;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-wrapper video:playing+h4.video-title {
    display: none;
}

.video-wrapper h4.video-title svg {
    height: 100px;
}

.mobile-video {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    #resources {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tabs-section h3.era-section-title {
        font-size: 32px;
    }

    .era-tabs {
        flex-direction: column;
        align-items: center;
    }

    .era-tabs .nav-link {
        padding: 1rem;
        min-width: 90vw !important;
    }

    .era-tabs .nav-link .tab-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .era-tabs .nav-link .tab-description {
        font-size: 13px;
        padding: 0 10px 12px;
    }

    .video-wrapper h4.video-title {
        font-size: 28px;
        bottom: 60px;
        left: 15px;
        gap: 5px;
    }

    .video-wrapper h4.video-title svg {
        height: 60px;
    }

    .mobile-video {
        display: block !important;
    }

    .desktop-video {
        display: none !important;
    }

    .mobile-video-wrapper {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }

    .mobile-video-wrapper.active {
        max-height: 500px;
    }

    .era-tabs .nav-link::after {
        height: 5px;
        bottom: 0;
        top: 0;
    }

    .era-tabs .nav-link {
        padding: 1rem 1rem 0 1rem;
    }
}


@media (max-width: 576px) {
    .tabs-section h3.era-section-title {
        font-size: 24px;
    }

    .era-tabs .nav-link .tab-title {
        font-size: 20px;
    }

    .era-tabs .nav-link .tab-description {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .video-wrapper h4.video-title {
        font-size: 20px;
        bottom: 40px;
        left: 10px;
        padding: 8px 10px;
    }

    .video-wrapper h4.video-title svg {
        height: 40px;
    }
}

/* ===== CTA section ===== */

.cta-section {
    background-color: #004587;
    color: white;
    padding: 60px 40px;
}

.cta-section h2 {
    color: #FFF;
    font-size: 75px;
    line-height: 75px;
    margin: 0;
}

.cta-section p {
    color: #FFF;
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 20px;
}

#cta-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#cta-desc button {
    border-radius: 25px;
    background-color: #fff;
    width: 200px;
    padding: 16px 20px;
    gap: 10px;
    color: #004587;
    border: none;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 36px;
        line-height: 120%;
    }

    .cta-section p {
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0.8px;
    }

    #cta-desc button {
        width: 230px;
        justify-content: center;
    }
}

/* ===== Footer ===== */

footer {
    background: #f9f9f9;
    padding: 40px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 100px;
}

.footer-top img {
    height: 90px;
    margin-right: 15px;
}

.partner-logos {
    display: flex;
    align-items: center;
}

.footer-top .partner-logos img {
    height: 90px;
    margin: 0 20px;
}

.footer-top .partner-logos p {
    margin: 0 20px;
}

.footer-top button {
    display: inline-flex;
    height: 50px;
    border-radius: 25px;
    background: #004587;
    padding: 16px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 400;
    border: none;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-middle a {
    color: #004587;

    text-align: right;
    font-size: 15px;
    font-style: normal;
    line-height: normal;
    letter-spacing: 0.6px;
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom {
    border-top: 1px solid #004587;
    text-align: center;
    padding-top: 15px;
    color: #004587;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.6px;
}

.copy-right {
    color: #004587;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
}

.footer-creater {
    color: #A0A0A0;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 21px;
}

.mobile-btn {
    display: none !important;
}

@media (max-width: 1024px) {

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        margin-bottom: 60px;
    }

    .footer-top img {
        margin: 0;
    }

    .partner-logos {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .partner-logos img {
        margin: 0;
        height: auto;
        max-height: 60px;
        width: auto;
    }

    .footer-top button {
        width: 100%;
        max-width: 280px;
    }

    .footer-middle {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 13px;
    }

    .footer-middle a {
        margin: 0 10px 0 0;
        display: inline-block;
    }

    .footer-bottom {
        text-align: left;
        font-size: 13px;
    }
}

@media (max-width: 992px) {


    footer {
        padding: 20px;
    }

    .mobile-footer-top {
        margin-bottom: 30px;
    }

    .mobile-btn {
        display: block !important;
        line-height: normal;
    }

    .desktop-btn {
        display: none !important;
    }

    .mobile-footer-top {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .mobile-footer-top img {
        max-height: 60px;
        width: 173px;
        height: 38px;
        aspect-ratio: 173/38;
    }

    .footer-top .partner-logos {
        margin-bottom: 30px;
    }

    .footer-top,
    .footer-middle {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 20px;
    }

    .footer-top .partner-logos img {
        height: auto;
        max-height: 60px;
        width: auto;
    }

    .footer-top button {
        max-width: 125px;
        font-size: 12px;
    }

    .footer-top .partner-logos {
        flex-direction: row;
    }


    .footer-middle {
        font-size: 13px;
    }

    .footer-middle .copy-right {
        text-align: left !important;
    }

    .footer-middle .links {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .footer-middle a {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-bottom {
        text-align: left;
        font-size: 13px;
        text-align: center;
    }
}