/* Reset */
html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
}

/* body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
} */

/* ==== Global Font Sizes ==== */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

/* Headings */
h1 {
    font-size: clamp(3rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 500;
}

/* Paragraph */
p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Main header container */
.main-header {
    position: relative;
    height: 100vh;
    background-image: url('images/caoyuan.jpg');
    background-size: cover;
    background-position: center;
    color: black;
    overflow: hidden;
}



/* White overlay */
/* /* .main-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0; */
/* } */
/* Darker overlay */
/* /* .main-header { */
/* position: relative;
    min-height: 100vh;
    /* Use min-height instead of fixed height */
/* background-image: url('overview.jpg');
    background-size: cover;
    background-position: center;
    color: black;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
} */



.main-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
    z-index: 0;
    /* display: none; */
}

/* Navbar styling */
nav.navbar {
    /* position: relative; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background-color: transparent !important;
    background-color: rgba(255, 255, 255, 0.6) !important;
    /* Soft white background */
    backdrop-filter: blur(1px);
    /* Optional: modern frosted-glass effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Slight shadow for separation */
    border-radius: 0 0 5px 5px;
    /* Rounded bottom for polish */
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #222 !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: #87bd55 !important;
    /* Your brand color */
}

/* Hero text container */
.hero-text {
    position: relative;
    z-index: 1;
    height: calc(100vh - 56px);
    /* adjust 56px to navbar height if different */
    display: flex;
    flex-direction: column;
    /* justify-content: flex-start; */
    justify-content: center;
    padding-left: 20vh;
    padding-top: 15vh;
    max-width: 700px;
}

/* .hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
} */

.hero-text h1 {
    /* font-size: 4.2rem; */
    /* font-size: clamp(2.2rem, 5vw, 3.2rem); */
    line-height: 1.2;
    margin-bottom: 1rem;
    margin-left: 2rem;
    color: #fefdfd;
    font-weight: 700;
    /* background: linear-gradient(273deg, #1c3520 0%, #333d27 40%, #4e966e 100%); */
    /* color: transparent; */
    /* -webkit-background-clip: text; */
    /* background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
    /* text-fill-color: transparent; */
    /* text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 12px rgba(0, 0, 0, 0.5); */
}

.hero-text p {
    /* font-size: 1.15rem; */
    /* font-size: clamp(1rem, 1.5vw, 1.3rem); */
    line-height: 1.6;
    /* background-color: rgba(255, 255, 255, 0.2); */
    /* softer white */
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: #fff;
    ;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
    max-width: 100%;
    /* backdrop-filter: blur(3px); */
}

.card-column {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}


.card-column:hover {
    transform: translateY(-5px);
}

.three-pillars-section {
    background-color: #f8f9fa;
    /* or a soft gradient */
    padding: 4rem 2rem;
}

.vision-section {
    padding: 4rem 4rem;
    background-color: #f9f9f9;
    /* height: 100vh; */
}



.vision-section .row {
    height: 100%;
    width: 90%;
    margin: 0 auto;
}



.vision-section .col-md-6.p-0 img {
    height: auto;
    max-height: 85%;
    width: 100%;
    object-fit: cover;
}

.vision-section p {
    margin-bottom: 4rem;
}

.vision-section .text-column {
    padding: 2rem;
}

.vision-section .text-column h2 {
    /* font-size: 2rem; */
    /* font-size: clamp(1.5rem, 3vw, 2rem); */
    font-weight: bold;
    margin-bottom: 1rem;
}



.vision-section .text-column p {
    /* font-size: 1rem; */
    /* font-size: clamp(0.9rem, 1.2vw, 1rem); */
    line-height: 1.6;
    color: #333;
    margin-bottom: 2rem;
}

.btn-read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: black;
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-read-more:hover {
    background-color: #333;
}

.vision-section .image-column img {
    width: 100%;
    border-radius: 10px;
}

.vision-section .col-md-6.p-0 img {
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.stats-row {
    margin-top: 3rem;
}

.stats-section .container {
    max-width: 80% !important;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    /* max-width: 900px; */
    margin: 0 auto;
    flex-wrap: nowrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
    /* ensures they don’t get too small */
}

.stat-item h3 {
    font-size: 3rem;
    /* font-size: clamp(1.5rem, 4vw, 2rem); */
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    /* font-size: 1rem; */
    /* font-size: clamp(0.9rem, 1.2vw, 1rem); */
    color: #555;
}

.initiatives-section {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 0 auto;
    width: 85%;

}

.initiative-box {
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fefefe;
    height: 100%;
}

.initiative-box h5 {
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.initiative-box p {
    /* font-size: 0.95rem; */
    color: #333;
}

.read-more-link {
    font-weight: bold;
    text-decoration: none;
    color: #000;
    border-bottom: 1px solid black;
}

.read-more-link:hover {
    color: #007bff;
    border-color: #007bff;
}

.image-overlay-container {
    position: relative;
    height: 96%;
    /* 桌面端固定高度 */
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.image-overlay-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f0f0f0;
    background-color: rgba(0, 0, 0, 0.75);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 450px;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    backdrop-filter: blur(2px);
}

.overlay-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #fff;
}

.overlay-text p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Optional: icon spacing */
.initiative-box i {
    /* font-size: 1.8rem; */
    /* font-size: clamp(1.2rem, 2vw, 1.8rem); */
    color: #3a7e3b;
}

/* .awareness-section h2 { */
/* font-size: 2rem; */
/* font-size: clamp(1.5rem, 3vw, 2rem); */

/* } */

.awareness-section .lead {
    max-width: 900px;
    margin: 0 auto;
}

footer img {
    display: inline-block;
    vertical-align: middle;
}

.social-icons a img {
    display: block;
}

.contact-section input,
.contact-section textarea {
    background-color: #fff;
    border-radius: 0.375rem;
}

footer img {
    vertical-align: middle;
}

footer {
    background-color: #353535;
    padding: 2rem;
    text-align: center;
    /* font-size: 0.9rem; */
    /* font-size: clamp(0.8rem, 1vw, 0.95rem); */
    color: #666;
}

@media (max-width: 576px) {
    footer .text-md-end {
        text-align: left !important;
    }

    .hero-text h1 {
        color: #fefdfd;
        /* font-size: 2.2rem; */
        /* text-shadow:
            1px 1px 3px rgba(0, 0, 0, 1),
            0 4px 8px rgba(0, 0, 0, 0.4); */
    }

    .hero-text p {
        /* font-size: 1rem; */
        /* background-color: rgba(255, 255, 255, 0.2); */
        color: #fff;
    }


    .overlay-text {
        padding: 1rem;
        width: 95%;
        max-width: 350px;
    }

    .image-overlay-container {
        height: 300px;
        /* 手机端较小高度 */
    }

    .overlay-text h1 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .overlay-text p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    /* 确保整体布局在移动端有足够空间 */
    body {
        padding-bottom: 1rem;
    }

    /* 调整卡片布局 */
    .initiative-box {
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .stat-item h3 {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }


}

@media (max-width: 768px) {
    .hero-text {
        /* background-color: rgba(0, 0, 0, 0.4); */
        padding: 1rem;
        border-radius: 8px;
    }

    .hero-text h1 {
        color: #fefdfd;
        /* font-size: 3.2rem; */
        /* text-shadow:
            1px 1px 3px rgba(0, 0, 0, 1),
            0 4px 8px rgba(0, 0, 0, 0.4); */
    }

    .hero-text p {
        /* font-size: 1rem; */
        /* background-color: rgba(255, 255, 255, 0.2); */
        color: #fff;
    }

    .vision-section .row {
        height: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .stats-section .stat-item h3 {
        font-size: 1.5rem;
        /* smaller number on smaller screens */
    }

    .stats-section .stat-item p {
        font-size: 1rem;
        /* slightly smaller label */
    }

    .stats-section .stat-item {
        margin-bottom: 1.5rem;
        /* vertical spacing between items when stacked */
    }
}

@media (min-width: 700px) and (max-width: 1200px) {
    .vision-section .stats-container {
        gap: 0.2rem;
        /* Reduce space between items */
    }

    .vision-section .stat-item h3 {
        font-size: 1.5rem;
        /* Smaller number size */
    }

    .vision-section .stat-item p {
        font-size: 0.9rem;
        /* Smaller label size */
    }

    .vision-section {
        padding: 4rem 2rem;
        background-color: #f9f9f9;
        width: 100%;
        margin: 0 auto;
    }

    .vision-section .row {
        height: 100%;
        width: 100%;
        margin: 0;
    }

    .vision-section .col-md-6.p-0 img {
        height: auto;
        max-height: 85%;
        width: 100%;
        object-fit: cover;
    }

    .stats-container {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        flex-wrap: wrap;
        align-self: flex-start;
        /* aligns to left inside flex-column */
    }

}


@media (min-width: 576px) and (max-width: 700px) {
    .vision-section .stats-container {
        gap: 0.2rem;
        /* Reduce space between items */
    }

    .vision-section .stat-item h3 {
        font-size: 1.5rem;
        /* Smaller number size */
    }

    .vision-section .stat-item p {
        font-size: 0.9rem;
        /* Smaller label size */
    }

    .vision-section {
        padding: 4rem 2rem;
        background-color: #f9f9f9;
        width: 100%;
        margin: 0 auto;
    }

    .vision-section .row {
        height: 100%;
        width: 100%;
        margin: 0;
    }

    .vision-section .col-md-6.p-0 img {
        height: auto;
        max-height: 85%;
        width: 100%;
        object-fit: cover;
    }

    .stats-container {
        display: flex;
        justify-content: space-between;
        gap: 2rem;
        flex-wrap: wrap;
        align-self: flex-start;
        /* aligns to left inside flex-column */
    }

}

#map {
    height: 500px;
    /* or whatever height you prefer */
    width: 80%;
    margin: 2rem auto;
    z-index: 0;
}