body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Times New Roman', Times, serif;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: auto; 
    background-color: var(--beige-bg);
}


header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--beige-bg);
    padding: 14px 0;
    text-align: center;
    z-index: 1000;
}

nav {
    margin-top: 6px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

nav a {
    color: black;
    margin: 0 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.7;
    color:#2c2c2c;
    text-decoration: underline;
}

nav a:visited {
    color: black;
}


main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding-top: 78px; /* space for fixed header */
}

.page-content {
    display: none; 
    background-color: var(--beige-bg);
    width: 100%;
}

.active {
    display: block; 
}

h1 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    margin-bottom: 10px;
    font-weight: bold;
}

p {
    font-size: clamp(1rem, 2.2vw, 1.2em);
    color: #333;
}

header.hidden-on-home {
    display: none;
}

.cta-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons button {
    background-color: #717d34;
    color: #fff;
    border: none;
    box-sizing: border-box;
    min-width: 160px;
    max-width: 420px;
    padding: 18px 28px;
    border-radius: 18px;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    text-align: center;
}

.cta-buttons button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* removed large background image */
    height: calc(100vh - 78px); /* fill viewport (accounting for fixed header) */
}

.hero-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: none; /* let images grow to fill screen */
    padding: 0 48px; /* side gap */
}

.hero-heading {
    text-align: center;
    margin: 8px 0;
    font-size: clamp(1.2rem, 2.4vw, 2rem);
}

.hero-gallery {
    display: flex;
    gap: 28px;
    justify-content: center;
    align-items: stretch;
    flex: 1 1 auto;
}

.hero-thumb {
    flex: 1 1 0;
    background-color: #bfbfbf;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    min-width: 0;
    height: 100%;
}

/* Ensure hero images fill their thumb boxes while preserving aspect ratio */
.hero-image,
.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.placeholder-label {
    padding: 12px;
    z-index: 1;
}

.hero-name {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white;
    font-weight: 700;
    font-size: clamp(1.4rem, 3.8vw, 2.6rem);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    pointer-events: none;
}


:root {
    --beige-bg: #d8ccb8;
    --dark-green: #5a6b5d;
    --text-color: #2c2c2c;
}

.intro-section {
    background-color: var(--beige-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    color: var(--text-color);
}

.vision-container {
    max-width: 1100px;
    width: 100%;
    padding: 0 18px;
}

.vision-title {
    font-family: 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 60px;
    color: #3e4a3f;
}

.vision-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    flex-wrap: wrap;
}


.vision-image-wrapper {
    position: relative;
    flex: 1 1 120px;
    min-width: 260px;
    border-radius: 100px;
}

.image-placeholder {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
}

.mission-box {
    position: absolute;
    top: 10px;
    left: 350px;
    background-color: var(--beige-bg);
    border: 1.5px solid var(--dark-green);
    padding: 18px;
    width: clamp(260px, 42%, 480px);
    text-align: left;
    z-index: 2;
}

.mission-intro {
    font-size: 1.6rem;
    font-style: italic;
    margin-bottom: 10px;
}

.mission-box p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 10px;
}


.vision-text {
    flex: 1 1 340px;
    text-align: left;
    margin-top: 300px; /* push vision text down further to clear the mission box */
}

.vision-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.vision-footer {
    font-weight: bold;
    margin-top: 30px;
}


@media (max-width: 900px) {
    .vision-content {
        flex-direction: column;
        align-items: center;
    }
    .mission-box {
        position: static;
        transform: none;
        margin-top: -30px;
        width: 90%;
    }
    .vision-text {
        padding-left: 0;
        margin-top: 20px;
    }
    .cta-buttons button {
        width: 100%;
        max-width: 380px;
    }
}

@media (max-width: 600px) {
    .hero {
        height: calc(100vh - 78px);
    }
    .hero-inner {
        padding: 0 18px;
    }
    .hero-gallery {
        flex-direction: column;
        gap: 14px;
        align-items: center;
    }
    .hero-thumb {
        width: 100%;
        max-width: none;
        height: calc((100vh - 78px - 48px) / 3); /* split available height across three thumbs */
    }
        
}
.hero-thumb {
    width: 100%;
    max-width: 420px;
    height: 90%;
}
.vision-title {
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    margin-bottom: 30px;
    margin-left: 100px;
}
.mission-intro {
    font-size: 1.1rem;
 }


.about-text {
    text-align: left;
}

.about-text h2 {
    margin-top: 0;
}