/* ======== VARIABLES ======== */
:root {
    --green-dark: #2d5a27;
    --green-mid: #4a8c3f;
    --green-light: #7bc144;
    --green-pale: #e8f5e1;
    --earth-brown: #8b6f47;
    --earth-light: #c4a97d;
    --cream: #faf8f2;
    --charcoal: #2c2c2c;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Nunito', sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

/* ======== NAVBAR ======== */
.navbar {
    background: rgba(250, 248, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(45, 90, 39, 0.08);
    padding: 0.8rem 0;
    transition: all 0.4s ease;
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.06); padding: 0.5rem 0; }
.navbar-brand img { height: 50px; transition: height 0.3s ease; }
.navbar.scrolled .navbar-brand img { height: 40px; }
.nav-link {
    font-weight: 600; color: var(--charcoal) !important;
    margin: 0 0.3rem; padding: 0.5rem 1rem !important;
    border-radius: 8px; transition: all 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--green-dark) !important; background: var(--green-pale); }
.nav-cta {
    background: var(--green-mid) !important; color: var(--white) !important;
    border-radius: 50px !important; padding: 0.5rem 1.5rem !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; transform: translateY(-1px); }

/* ======== DROPDOWN ======== */
.dropdown-menu {
    border: 1px solid rgba(45, 90, 39, 0.1);
    border-radius: 16px;
    padding: 0.5rem;
    background: var(--white);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.dropdown-item {
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.dropdown-item:hover { background: var(--green-pale); color: var(--green-dark); }
.dropdown-header {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem 0.3rem;
}

/* ======== PAGE HERO ======== */
.page-hero {
    position: relative; padding: 10rem 0 5rem;
    background: linear-gradient(160deg, var(--green-dark) 0%, #1a3d15 50%, var(--earth-brown) 100%);
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-content { position: relative; z-index: 2; text-align: center; }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); margin-bottom: 1rem; }
.page-hero h1 span { color: var(--green-light); font-style: italic; }
.page-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.breadcrumb-nav { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.9rem; flex-wrap: wrap; }
.breadcrumb-nav a { color: var(--green-light); text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span { color: rgba(255,255,255,0.5); }

.leaf { position: absolute; opacity: 0.12; animation: leafFloat 20s infinite ease-in-out; }
.leaf:nth-child(1) { top: 15%; left: 8%; font-size: 2.5rem; animation-delay: 0s; }
.leaf:nth-child(2) { top: 25%; right: 12%; font-size: 1.5rem; animation-delay: 4s; }
.leaf:nth-child(3) { top: 65%; left: 20%; font-size: 2rem; animation-delay: 8s; }
.leaf:nth-child(4) { top: 50%; right: 18%; font-size: 2.2rem; animation-delay: 2s; }
@keyframes leafFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(10deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-25px) rotate(8deg); }
}

/* ======== SECTIONS ======== */
section { padding: 6rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block; background: var(--green-pale); color: var(--green-dark);
    font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px;
    padding: 0.4rem 1.2rem; border-radius: 50px; margin-bottom: 1rem;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--green-dark); margin-bottom: 1rem; }
.section-header p { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ======== BUTTONS ======== */
.btn-nature {
    background: var(--green-light); color: var(--green-dark); border: none;
    padding: 0.85rem 2.2rem; border-radius: 50px; font-weight: 700; font-size: 1rem;
    transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-nature:hover { background: var(--white); color: var(--green-dark); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.btn-outline-nature {
    background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4);
    padding: 0.85rem 2.2rem; border-radius: 50px; font-weight: 700; font-size: 1rem;
    transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline-nature:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); transform: translateY(-3px); }
.btn-green-outline {
    background: transparent; color: var(--green-dark); border: 2px solid var(--green-mid);
    padding: 0.7rem 1.8rem; border-radius: 50px; font-weight: 700; font-size: 0.95rem;
    transition: all 0.3s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-green-outline:hover { background: var(--green-mid); color: var(--white); transform: translateY(-2px); }

/* ======== PROGRAMME CARDS (for category pages) ======== */
.programme-card {
    background: var(--white); border-radius: 24px; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06); transition: all 0.4s ease; height: 100%;
    text-decoration: none; display: flex; flex-direction: column;
}
.programme-card:hover { transform: translateY(-8px); box-shadow: 0 25px 60px rgba(0,0,0,0.1); }
.programme-card-img { height: 200px; overflow: hidden; position: relative; }
.programme-card-img-bg {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 4rem; transition: transform 0.5s ease;
}
.programme-card:hover .programme-card-img-bg { transform: scale(1.05); }
.programme-card-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.programme-card-body h4 { color: var(--green-dark); font-size: 1.2rem; margin-bottom: 0.3rem; }
.programme-card-age { display: inline-block; background: var(--green-pale); color: var(--green-mid); font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.8rem; width: fit-content; }
.programme-card-body p { color: #666; font-size: 0.92rem; line-height: 1.6; flex: 1; }
.programme-card-link { color: var(--green-mid); font-weight: 700; font-size: 0.9rem; margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.3rem; }

/* ======== PROGRAMME DETAIL (single programme page) ======== */
.programme-detail { background: var(--white); }
.programme-quote {
    background: var(--green-pale); border-left: 4px solid var(--green-mid);
    padding: 1.5rem 2rem; border-radius: 0 16px 16px 0; margin-bottom: 2rem;
    font-style: italic; color: var(--green-dark); font-size: 1.05rem; line-height: 1.7;
}
.programme-content { color: #555; font-size: 1.05rem; line-height: 1.8; }
.programme-content p { margin-bottom: 1.2rem; }
.programme-activities {
    background: var(--cream); border-radius: 20px; padding: 2rem;
    border: 1px solid rgba(45, 90, 39, 0.08); margin-top: 2rem;
}
.programme-activities h4 { color: var(--green-dark); margin-bottom: 1rem; font-size: 1.2rem; }
.activity-tag {
    display: inline-block; background: var(--white); color: var(--earth-brown);
    font-size: 0.85rem; font-weight: 600; padding: 0.4rem 0.9rem; border-radius: 10px;
    margin: 0.25rem; border: 1px solid rgba(0,0,0,0.06);
}
.programme-sidebar-card {
    background: var(--cream); border-radius: 20px; padding: 2rem;
    border: 1px solid rgba(45, 90, 39, 0.08); margin-bottom: 1.5rem;
}
.programme-sidebar-card h5 { color: var(--green-dark); margin-bottom: 1rem; font-size: 1.1rem; }
.sidebar-info-item { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; color: #555; }
.sidebar-info-item i { color: var(--green-mid); font-size: 1.1rem; width: 20px; text-align: center; }
.programme-gallery { margin-top: 2.5rem; }
.programme-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.programme-gallery-item {
    border-radius: 16px; overflow: hidden; height: 180px;
}
.programme-gallery-item-bg {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem;
}

/* ======== CATEGORY SECTION ======== */
.category-section { background: var(--cream); }
.category-section:nth-child(even) { background: var(--white); }

/* ======== CTA SECTION ======== */
.cta-section {
    background: linear-gradient(135deg, var(--green-dark), #1a3d15);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
    background: rgba(123, 193, 68, 0.08); top: -200px; right: -100px;
}
.cta-content { text-align: center; position: relative; z-index: 1; }
.cta-content h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ======== FOOTER ======== */
footer {
    background: var(--charcoal); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem;
}
footer h5 { color: var(--white); margin-bottom: 1.2rem; font-size: 1.1rem; }
.footer-logo img { height: 45px; filter: brightness(0) invert(1); margin-bottom: 1rem; }
footer p { font-size: 0.9rem; line-height: 1.7; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s ease; font-size: 0.9rem; }
.footer-links a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; margin-top: 3rem; text-align: center; font-size: 0.85rem; }

/* ======== SCROLL TOP ======== */
.scroll-top {
    position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px;
    border-radius: 50%; background: var(--green-mid); color: var(--white); border: none;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease;
    z-index: 999; box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ======== OTHER PROGRAMMES GRID ======== */
.other-programmes { background: var(--cream); }

/* ======== RESPONSIVE ======== */
@media (max-width: 991px) {
    .programme-gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .programme-gallery-grid { grid-template-columns: 1fr; }
}
