/* --- VARIABLES & RESET --- */
:root {
    --primary: #2E7D32;      /* Bamboo Dark Green */
    --secondary: #81C784;    /* Bamboo Light Green */
    --accent: #FFD54F;       /* Gold/Sun */
    --earth: #5D4037;        /* Soil Brown */
    --blue: #007bff;         /* Agenda Blue */
    --cream: #F1F8E9;        /* Light Background */
    --purple: #6f42c1;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --font-main: 'Montserrat', sans-serif;
    --font-head: 'Playfair Display', serif;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { font-family: var(--font-main); color: var(--text-dark); line-height: 1.6; background-color: #FAFAFA; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; color: var(--primary); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- GLOBAL ANIMATIONS --- */
@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--cream); }
.bg-green { background-color: var(--primary); }
.text-white { color: var(--white) !important; }
.mt-4 { margin-top: 2rem; }

.sub-heading { text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; color: var(--earth); margin-bottom: 10px; font-family: var(--font-main); font-weight: 600; }
.section-heading { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary); }
.highlight-green { color: var(--primary); font-weight: 800; }

/* --- BUTTONS --- */
.btn-primary { display: inline-block; padding: 12px 30px; background-color: var(--primary); color: var(--white); border: 2px solid var(--primary); border-radius: 50px; font-weight: 700; transition: all 0.3s ease; }
.btn-primary:hover { background-color: var(--earth); border-color: var(--earth); color: var(--white); }

.btn-secondary { display: inline-block; padding: 12px 30px; background-color: var(--accent); color: var(--primary); border: 2px solid var(--accent); border-radius: 50px; font-weight: 700; margin-left: 10px; transition: all 0.3s ease; }
.btn-secondary:hover { background-color: var(--secondary); border-color: var(--secondary); color: var(--white); }

.btn-agenda { display: inline-block; padding: 12px 30px; background-color: var(--blue); color: var(--white); border: 2px solid var(--blue); border-radius: 50px; font-weight: 700; margin-left: 10px; transition: all 0.3s ease; }
.btn-agenda:hover { background-color: #0056b3; border-color: #0056b3; }

/* --- TOP BAR & NAV --- */
.top-bar { background: var(--earth); color: rgba(255,255,255,0.9); padding: 8px 0; font-size: 0.85rem; }
.contact-list span { margin-right: 20px; }
.partners strong { color: var(--accent); }

nav { background: var(--white); padding: 10px 0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-logo-img { max-height: 60px; width: auto; display: block; }
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }
.btn-nav { padding: 8px 20px; background: var(--accent); color: var(--text-dark) !important; border-radius: 4px; font-weight: 700; }
.hamburger { display: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--primary); margin: 5px 0; transition: 0.3s; }
.hamburger.toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.toggle .bar:nth-child(2) { opacity: 0; }
.hamburger.toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* --- HERO SECTION --- */
.hero { height: 90vh; background: #222; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-slides { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s ease-in-out; }
.slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(20, 50, 20, 0.7); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 0 20px; }
.badge { background: var(--accent); color: var(--text-dark); padding: 5px 15px; border-radius: 4px; font-weight: 700; font-size: 0.9rem; }
.hero-title-single { font-size: 3.5rem; margin: 20px 0 10px; color: var(--white); white-space: nowrap; }
.tagline { font-size: 1.5rem; font-style: italic; color: var(--secondary); margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; margin-bottom: 30px; opacity: 0.9; }

/* --- PRELUDE & OBJECTIVES --- */
.row { display: flex; gap: 50px; align-items: flex-start; }
.col-text { flex: 3; }
.col-img { flex: 2; }
.objectives-box { background: var(--white); padding: 25px; border-left: 5px solid var(--primary); margin-top: 30px; box-shadow: var(--shadow); }
.objectives-box ul { margin-top: 15px; }
.objectives-box li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.objectives-box li::before { content: '•'; color: var(--primary); position: absolute; left: 0; font-weight: bold; }
.bamboo-stat-card { background: var(--primary); color: var(--white); padding: 30px; border-radius: 10px; text-align: center; box-shadow: var(--shadow); }
.stat { margin: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; }
.stat .number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.stat .label { font-size: 0.9rem; text-transform: uppercase; }
.stat-sub-text { font-size: 0.85rem; margin-top: 5px; opacity: 0.9; }
.stat-desc { font-size: 0.9rem; font-style: italic; opacity: 0.9; }

/* --- SDG SECTION --- */
#sdg-section { background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('images/background.png'); background-size: cover; background-position: center; background-attachment: fixed; }
.sdg-grid-container { max-width: 1000px; margin: 40px auto; }
.sdg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; justify-items: center; }
.sdg-card { width: 100%; aspect-ratio: 1 / 1; background-color: #e0e0e0; border-radius: 8px; overflow: hidden; cursor: pointer; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.2s ease; }
.sdg-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.15); }
.sdg-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wheel-card-grid { background: transparent; display: flex; justify-content: center; align-items: center; cursor: default; }
.mini-wheel { width: 70%; height: 70%; border-radius: 50%; background: conic-gradient(#E5243B 0% 5.88%, #DDA63A 5.88% 11.76%, #4C9F38 11.76% 17.65%, #C5192D 17.65% 23.53%, #FF3A21 23.53% 29.41%, #26BDE2 29.41% 35.29%, #FCC30B 35.29% 41.18%, #A21942 41.18% 47.06%, #FD6925 47.06% 52.94%, #DD1367 52.94% 58.82%, #FD9D24 58.82% 64.71%, #BF8B2E 64.71% 70.59%, #3F7E44 70.59% 76.47%, #0A97D9 76.47% 82.35%, #56C02B 82.35% 88.24%, #00689D 88.24% 94.12%, #19486A 94.12% 100%); animation: spin 10s linear infinite; border: 3px solid white; box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.rotate-default { animation: spin 12s linear infinite; }
#bamboo-info-box { margin-top: 40px; background-color: var(--white); border-left: 8px solid var(--primary); padding: 0; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); overflow: hidden; transition: all 0.3s ease; }
.info-content-wrapper { display: flex; align-items: center; gap: 30px; padding: 30px; }
.info-icon-container { flex-shrink: 0; width: 120px; height: 120px; display: flex; justify-content: center; align-items: center; }
.info-icon-container img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.info-text-container { flex-grow: 1; }
#goal-title { margin-top: 0; color: var(--primary); font-size: 1.8rem; font-family: var(--font-head); margin-bottom: 10px; }
#goal-text { font-size: 1.1rem; color: #555; line-height: 1.6; margin: 0; }

/* --- RESOURCE PERSONS MARQUEE --- */
.rp-marquee-wrapper { overflow: hidden; width: 100%; padding: 20px 0; position: relative; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.rp-marquee-track { display: flex; gap: 30px; width: max-content; animation: scroll 40s linear infinite; }
.rp-marquee-track:hover { animation-play-state: paused; }
.rp-card { background: var(--white); width: 250px; padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border-bottom: 4px solid var(--primary); flex-shrink: 0; }
.rp-img-box { width: 120px; height: 120px; margin: 0 auto 15px; border-radius: 50%; overflow: hidden; border: 3px solid var(--cream); }

/* --- FIX: Align images to the top edge of the circle --- */
.rp-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top; /* This line fixes the cropped head issue */
}

.rp-card h3 { font-size: 1rem; color: var(--primary); margin-bottom: 15px; height: 40px; display: flex; align-items: center; justify-content: center; }
.btn-bio { background: var(--secondary); color: var(--white); border: none; padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: 600; font-size: 0.8rem; transition: 0.3s; }
.btn-bio:hover { background: var(--primary); }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 11 - 30px * 11)); } }

/* --- FEATURES GRID --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.feature-card { background: var(--white); padding: 30px 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--primary); transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card i { font-size: 2rem; color: var(--earth); margin-bottom: 15px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: #666; }

/* --- PARTICIPATE (CARDS) --- */
.participate-grid .part-card {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 20px; border-radius: 10px; text-align: center; transition: 0.3s;
}
.part-card:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-5px); }
.part-card i { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; }
.part-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.part-card p { font-size: 0.9rem; opacity: 0.9; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.reg-box { background: var(--white); padding: 40px; border-radius: 10px; border: 1px solid #eee; margin-top: 30px; box-shadow: var(--shadow); display: inline-block; max-width: 700px; width: 100%; }
.date-box { background: var(--cream); padding: 15px; border-radius: 5px; margin: 20px 0; color: var(--primary); }
.date-box strong { display: block; font-size: 1.5rem; margin-top: 5px; }
.btn-large { padding: 15px 40px; font-size: 1.1rem; margin: 20px 0; }

/* --- FOOTER STYLES --- */
#main-footer { background: #1a1a1a; color: #cfcfcf; padding: 60px 0 0; border-top: 5px solid var(--primary); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #333; }
.footer-col h3 { color: var(--white); font-size: 1.2rem; margin: 10px 0 5px; }
.footer-logo.large-logo { max-width: 150px; margin-bottom: 15px; display: block; }
.footer-tagline { font-size: 0.85rem; color: #aaa; font-style: italic; }
.footer-col h4 { color: var(--accent); margin-bottom: 20px; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #cfcfcf; font-size: 0.9rem; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--secondary); padding-left: 5px; }
.visitor-box { margin-top: 20px; background: #333; padding: 10px 15px; border-radius: 4px; display: inline-block; border-left: 3px solid var(--accent); }
.visitor-box span { font-size: 0.8rem; display: block; color: #aaa; }
.visitor-box strong { font-size: 1.2rem; color: var(--white); letter-spacing: 2px; }

/* PARTNERS LAYOUT */
.partners-layout { display: flex; flex-direction: column; gap: 15px; }
.partners-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.partners-row.single { grid-template-columns: 1fr; width: 100%; display: flex; justify-content: center; }
.partner-card { text-align: center; }
.partner-card h5 { color: var(--accent); font-size: 0.75rem; letter-spacing: 1px; margin-bottom: 5px; font-family: var(--font-main); text-transform: uppercase; }
.partner-img-wrapper { background: white; border-radius: 4px; padding: 10px; height: 100px; display: flex; align-items: center; justify-content: center; width: 100%; }
.partner-img-wrapper img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.8rem; color: #777; }

/* --- FOOTER LOGO CARD --- */
.footer-logo-card {
    background-color: #ffffff;
    padding: 10px 15px;       /* Spacing inside the card */
    border-radius: 8px;       /* Rounded corners */
    display: inline-block;    /* Fits the size of the logo */
    margin-bottom: 15px;      /* Space below the card */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Subtle shadow for depth */
}

.footer-logo {
    max-width: 120px;         /* Adjust logo size if needed */
    height: auto;
    display: block;
}

/* Modal Styles */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.modal-content { background: var(--white); padding: 40px; width: 90%; max-width: 600px; border-radius: 12px; position: relative; max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.4); animation: slideUp 0.3s ease; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; border: none; background: none; cursor: pointer; color: #666; transition: 0.3s; }
.close-modal:hover { color: var(--primary); transform: rotate(90deg); }
#modal-name, .modal-content h3 { color: var(--primary); margin-top: 0; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-bottom: 20px; }
.modal-body { font-size: 0.95rem; line-height: 1.7; color: #444; text-align: justify; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* --- PARTNERSHIP BUTTON CSS --- */
.btn-proposal {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--purple); /* This will now work */
    color: var(--white);
    border: 2px solid var(--purple);
    border-radius: 50px;
    font-weight: 700;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-proposal:hover {
    background-color: #5a32a3; /* Darker Purple */
    border-color: #5a32a3;
    color: var(--white);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .btn-proposal {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .top-bar { display: none; }
    .hamburger { display: block; cursor: pointer; }
    .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; height: auto; flex-direction: column; background: var(--white); padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1); transition: 0.3s; }
    .nav-links.active { left: 0; }
    .nav-links li { margin: 15px 0; }
    .hero-title-single { font-size: 1.8rem; white-space: normal; }
    .hero-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }
    .btn-secondary, .btn-agenda { margin-left: 0; }
    .row, .grid-2 { flex-direction: column; }
    .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer-logo.large-logo { margin: 0 auto 10px; }
    .partners-row { grid-template-columns: 1fr; gap: 20px; }
    .partner-img-wrapper { height: 90px; max-width: 200px; margin: 0 auto; }
}