/* style.css */
:root {
    --primary: #2d5a27;
    --primary-light: #4a7c3f;
    --secondary: #f0b86c;
    --light: #f8f5e9;
    --dark: #1a3316;
    --accent: #8a9a5b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    background-color: var(--light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    color: var(--dark);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.text-center .section-title:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.section {
    padding: 100px 0;
}

/* Navigation */
.navbar {
    background-color: rgb(234 223 204);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    padding: 1px 0;
}

.navbar.scrolled {
    padding: 1px 0;
    background-color: rgb(234 223 204);
}

.navbar-brand {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--primary) !important;
}

.navbar-brand i {
    color: var(--primary-light);
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}



/* Vision Section */
.vision-section {
    background-color: white;
}

.vision-image,
.why-image {
    position: relative;
}

.image-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.image-frame:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.image-placeholder {
    height: 400px;
    background-size: cover;
    background-position: center;
}

.vision-img {
    background-image: url('child/6.jpeg');
}

.why-img {
    background-image: url('sli/20251124_130100.jpg');
}

.principle-card {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    height: 100%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--primary-light);
}

.principle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.principle-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(45, 90, 39, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Why Section */
.why-section {
    background-color: #f9f9f5;
}

.reassurance-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.reassurance-item:hover {
    transform: translateY(-5px);
}

.reassurance-item i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* About Section */
.about-section {
    background-color: white;
}

.founder-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.founder-image {
    height: 300px;
    background-size: cover;
    background-position: center;
}

.founder1 {
    background-image: url('https://images.unsplash.com/photo-1582750433449-648ed127bb54?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=687&q=80');
}

.founder2 {
    background-image: url('https://images.unsplash.com/photo-1551836026-d5c2c5af78e4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
}

.founder-info {
    padding: 30px;
}

/* Programs Section */
.programs-section {
    background-color: #f9f9f5;
}

.program-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-header {
    background-color: var(--primary);
    color: white;
    padding: 25px;
}

.program-card.saplings .program-header {
    background-color: var(--primary);
}

.program-card.explorers .program-header {
    background-color: var(--primary-light);
}

.program-card.stewards .program-header {
    background-color: var(--accent);
}

.program-header h3 {
    color: white;
    margin-bottom: 5px;
}

.age-range {
    font-weight: 600;
    opacity: 0.9;
}

.program-body {
    padding: 30px;
    background-color: white;
}

/* Join Section */
.join-section {
    background-color: var(--primary);
    color: white;
}

.join-section .section-title,
.join-section .section-subtitle {
    color: white;
}

.join-section .section-title:after {
    background-color: var(--secondary);
}

.invitation-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    height: 100%;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.invitation-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.invitation-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 25px;
    color: white;
}

.contact-item {
    padding: 20px;
    background-color: rgb(234 223 204);
    border-radius: 15px;
    height: 100%;
}

.contact-item i {
    font-size: 40px;
    margin-bottom: 15px;
    color: rgb(0, 0, 0);
}

.contact-item p {
    color: rgb(0, 0, 0);
}

.contact-item {

    color: black;
}

.contact-info h4 {
    color: white;
    font-size: 35px;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: rgb(255, 255, 255);
    padding: 60px 0 30px;
}

.footer-note {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.invitation-line {
    color: var(--secondary);
    font-style: italic;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

.fade-in.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(45, 90, 39, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(45, 90, 39, 0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .section {
        padding: 70px 0;
    }

    .image-frame {
        transform: none;
        margin-bottom: 30px;
    }

    .image-frame:hover {
        transform: none;
    }
}

.logog {
    width: 88px;

}

.invitation-card h3 {
    color: white;
}


.contact-item {
    color: black;
    width: 100%;
    display: inline-block;
    /* important for transform */
    transition: color 0.3s ease;
}

.contact-item:hover {
    animation: softBounce 0.6s ease;
}

@keyframes softBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }

    55% {
        transform: translateY(2px);
    }

    75% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}




.invitation-card {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invitation-card:hover {
    animation: softCardBounce 0.7s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

@keyframes softCardBounce {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(3px);
    }

    75% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}


.principle-card {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    animation: softPrincipleBounce 0.7s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

@keyframes softPrincipleBounce {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-5px);
    }

    50% {
        transform: translateY(2px);
    }

    75% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}


.program-card {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    animation: softProgramBounce 0.7s ease;
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
}

@keyframes softProgramBounce {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-6px);
    }

    50% {
        transform: translateY(3px);
    }

    75% {
        transform: translateY(-2px);
    }

    100% {
        transform: translateY(0);
    }
}






.top-header {
   
    width: 100%;
    background: #2d5a27;
    z-index: 1050;
        padding: 5px 0;
    font-size: 14px;

}
.navbar.fixed-top {
    top: 40px;
}

/* Sticky Navbar on Scroll */
.navbar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background-color: rgb(234 223 204);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    animation: slideDown 0.35s ease-in-out;
}

/* Smooth entry animation */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}



/* @media (max-width: 991px) {
    .navbar.fixed-top {
        top: 45px;
    }

    body {
        padding-top: 110px;
    }
} */









.top-header-info,
.top-header-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 18px;
}

.top-header-info li,
.top-header-social li {
    display: flex;
    align-items: center;
}

.top-header-info i {
    color: #ffb703;
    margin-right: 6px;
    font-size: 15px;
}

.top-header-info a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-header-info a:hover {
    color: #ffb703;
}

/* Social Icons */
.top-header-social a {
    color: #ddd;
    font-size: 16px;
    transition: all 0.3s ease;
}

.top-header-social a:hover {
    color: #ffb703;
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 767px) {

    .top-header-info,
    .top-header-social {
        justify-content: center;
        flex-wrap: wrap;
    }
}

.top-header-right {
    display: flex;
    justify-content: flex-end;
    /* force icons to right */
}

.top-header-social {
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}


@media (max-width: 767px) {
    .top-header-right {
        justify-content: center;
        margin-top: 6px;
    }
}

.forest-gallery-section {
    padding: 90px 0;
    background: linear-gradient(to bottom, #f7faf6, #ffffff);
}

.forest-gallery-header h2 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1f3d2b;
}

.forest-gallery-header p {
    color: #5f6f66;
    max-width: 600px;
    margin: 0 auto;
}

.forest-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* ✅ FORCE 3 PER ROW */
    gap: 22px;
}

.forest-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.forest-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.forest-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.forest-gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay */
.forest-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(24, 70, 45, 0.85),
            rgba(24, 70, 45, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.forest-gallery-overlay span {
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.forest-gallery-item:hover .forest-gallery-overlay {
    opacity: 1;
}



.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    border-radius: 50px !important;
    transition: var(--transition) !important;
}