:root {
    --green-950: #123c34;
    --green-800: #1b594d;
    --green-700: #246d5d;
    --green-100: #eaf3ee;
    --green-50: #f5f8f5;
    --orange-600: #bd643b;
    --orange-100: #f8eee8;
    --ink: #26332f;
    --muted: #64716b;
    --line: #e3e9e4;
    --paper: #fffefa;
    --white: #fff;
    --shadow-sm: 0 2px 8px rgba(22, 47, 38, .06);
    --shadow-md: 0 10px 28px rgba(22, 47, 38, .10);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    /* Compatibility aliases for legacy inline styles in the HTML pages. */
    --primary-color: var(--green-800);
    --secondary-color: var(--orange-600);
    --text-dark: var(--ink);
    --text-light: var(--white);
    --bg-light: var(--paper);
    --bg-gray: var(--green-50);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.65 Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, h4 { margin-top: 0; color: var(--green-950); line-height: 1.2; }
p { margin-top: 0; }
a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
.container { width: min(1160px, 100%); margin: 0 auto; padding: 0 26px; }

/* Header and navigation */
.header {
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(255, 254, 250, .97);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 14px rgba(17, 49, 40, .07);
    backdrop-filter: blur(10px);
}
.header-content { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 62px; }
.logo { flex: 0 0 auto; }
.logo-link { color: inherit; text-decoration: none; }
.logo h1 { margin: 0; color: var(--green-950); font: 700 1.12rem/1.1 Arial, Helvetica, sans-serif; letter-spacing: -.35px; }
.logo span { display: block; margin-top: 4px; color: var(--orange-600); font-size: .69rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav { display: flex; align-items: center; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 3px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 9px 11px; border-radius: 7px; color: #46564f; font-size: .83rem; font-weight: 700; text-decoration: none; transition: background .16s, color .16s; }
.nav a:hover, .nav a.active { color: var(--green-800); background: var(--green-100); }
.menu-toggle { display: none; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: 700 .9rem/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--white); background: var(--green-700); border-color: var(--green-700); }
.btn-primary:hover { color: var(--white); background: var(--green-800); border-color: var(--green-800); }
.btn-secondary { color: var(--white); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.75); }
.btn-secondary:hover { color: var(--green-950); background: var(--white); }

/* Homepage and page banners */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 570px;
    height: min(680px, calc(100vh - 82px));
    color: var(--white);
    background: #214e43 url('hero-bg.jpg') center 45% / cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 43, 36, .84), rgba(15, 54, 45, .61) 56%, rgba(17, 55, 47, .22)); }
.hero-content { position: relative; z-index: 1; }
.hero-content > * { max-width: 700px; }
.hero h2 { margin: 0 0 18px; color: var(--white); font-size: clamp(2.35rem, 4.5vw, 3.5rem); line-height: 1.08; letter-spacing: -1.2px; }
.hero p { margin-bottom: 26px; color: rgba(255,255,255,.94); font-size: 1.08rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-block; margin-bottom: 16px; padding: 6px 11px; border: 1px solid rgba(255,255,255,.3); border-radius: 6px; color: var(--white); background: rgba(255,255,255,.13); font-size: .74rem; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.page-hero {
    padding: 64px 0 58px !important;
    color: var(--white);
    text-align: center;
    background: linear-gradient(120deg, var(--green-950), #287565) !important;
    background-image: linear-gradient(120deg, var(--green-950), #287565) !important;
}
.page-hero h1 { margin: 0 auto 12px; color: var(--white); font-size: clamp(2rem, 4vw, 2.7rem) !important; letter-spacing: -.7px; }
.page-hero p { max-width: 690px; margin: 0 auto; color: rgba(255,255,255,.9); font-size: 1.04rem; }
.page-header { padding: 38px 0 32px !important; color: var(--white) !important; text-align: center; background: linear-gradient(120deg, var(--green-950), #287565) !important; }
.page-header h1, .page-header h2 { margin-bottom: 8px; color: var(--white) !important; font-size: 2rem !important; }
.page-header p { margin: 0; color: rgba(255,255,255,.9); }

/* Section layout and headings */
.section { padding: 64px 0; }
.bg-gray, .project-section, .faq-section, .timeline-section, .legal-content { background: var(--green-50); }
.section-header { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.section-header h2 { margin: 0 0 11px; color: var(--green-950); font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.55px; }
.section-header p { margin: 0; color: var(--muted); font-size: 1rem; }
.mission-section, .stats-section { color: var(--white); background: var(--green-950) !important; }
.mission-section h2, .mission-section h3, .mission-section h4, .stats-section h2 { color: var(--white) !important; }

/* Cards */
.activities-grid, .news-grid, .blog-grid, .team-grid, .supporting-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card, .activity-card, .news-card, .blog-card, .team-card, .supporting-card, .faq-item, .contact-form, .policy-content, .timeline-content {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.card, .news-card, .team-card, .supporting-card { padding: 24px; }
.card, .activity-card, .news-card, .team-card, .supporting-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover, .activity-card:hover, .news-card:hover, .team-card:hover, .supporting-card:hover { transform: translateY(-3px); border-color: #cfddd2; box-shadow: var(--shadow-md); }
.card-img, .activity-card-image, .blog-card-img { overflow: hidden; background-color: #edf2ed; }
.card-img { min-height: 185px; border-radius: 10px 10px 0 0; background-size: cover; background-position: center; }
.card-content, .activity-card-content, .blog-card-content { padding: 22px; }
.activity-card { display: flex; flex-direction: column; overflow: hidden; }
.activity-card-image { height: 210px; }
.activity-card-image img, .blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.activity-card-content { display: flex; flex: 1; flex-direction: column; }
.activity-card-content h3, .news-card h3, .blog-card-content h3, .team-card h3, .supporting-card h3 { margin-bottom: 10px; color: var(--green-950); font-size: 1.18rem; }
.activity-card-content p, .news-card p, .blog-card-content p, .team-card p, .supporting-card p { color: #596760; font-size: .95rem; line-height: 1.65; }
.card-link, .read-more-btn, .news-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-700); font-weight: 700; text-decoration: none; }
.card-link:hover, .read-more-btn:hover, .news-link:hover { color: var(--orange-600); }
.blog-card { display: flex; flex-direction: column; overflow: hidden; }
.blog-card-img { height: 210px; }
.blog-card-content { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.blog-card-content p { flex-grow: 1; }
.blog-meta, .news-date { margin-bottom: 8px; color: var(--orange-600); font-size: .76rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }

/* Project, about, stats, and timeline layouts */
.project-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-grid, .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; }
.project-grid.reverse .project-image { order: 2; }
.project-grid.reverse .project-content { order: 1; }
.project-image, .about-img { overflow: hidden; border-radius: var(--radius-md); background: #edf2ed; }
.project-image img, .about-img img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.project-content h2, .project-content h3, .about-content h2 { margin-bottom: 14px; color: var(--green-950); font-size: 1.8rem; letter-spacing: -.4px; }
.project-content p, .about-content p { color: #52615a; font-size: 1rem; }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--green-50); }
.facts-list li strong, .facts-list li span { display: block; }
.facts-list li strong { margin-bottom: 3px; color: var(--green-800); font-size: .82rem; }
.facts-list li span { color: var(--muted); font-size: .87rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.activity-tag { padding: 4px 9px; border: 1px solid #dce9df; border-radius: 20px; color: var(--green-800); background: var(--green-100); font-size: .75rem; font-weight: 700; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.stat-card { padding: 20px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }
.stat-num { color: #fff; font-size: 2rem; font-weight: 700; }
.stat-label { color: rgba(255,255,255,.82); font-size: .84rem; }
.timeline { display: grid; grid-template-columns: 1fr; gap: 14px; max-width: 850px; margin: auto; }
.timeline-content { padding: 20px 22px; }
.timeline-date { margin-bottom: 6px; color: var(--orange-600); font-size: .78rem; font-weight: 700; }
.timeline-content h3 { margin-bottom: 8px; font-size: 1.12rem; }
.timeline-content p { margin-bottom: 0; color: var(--muted); }

/* Forms, FAQs, legal pages */
.contact-container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; padding: 54px 0; }
.contact-info-block { padding: 30px; border-radius: var(--radius-md); color: var(--white); background: var(--green-950); }
.contact-info-block h2 { color: var(--white); font-size: 1.5rem; }
.contact-info-block p { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 15px; }
.contact-info-block strong { min-width: 78px; color: #efbd93; }
.contact-info-block a { color: white; }
.office-hours {
    margin-top: 24px;
    padding: 14px 16px;
    border-left: 3px solid #e5a779;
    border-radius: 8px;
    color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.09);
    font-size: .9rem;
}
.office-hours strong { display: block; margin-bottom: 3px; color: #efbd93; }
.office-hours p { display: block; margin: 0; color: rgba(255,255,255,.95); }
.contact-form { padding: 30px; }
.contact-form h2, .contact-form h3 { margin-bottom: 8px; font-size: 1.45rem; }
.contact-form > p { color: var(--muted); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #3d4c45; font-size: .9rem; font-weight: 700; }
.form-control { width: 100%; padding: 12px 13px; border: 1px solid #d4ddd5; border-radius: 7px; background: white; color: var(--ink); font: 1rem Arial, Helvetica, sans-serif; }
.form-control:focus { outline: none; border-color: #398675; box-shadow: 0 0 0 3px rgba(57,134,117,.13); }
textarea.form-control { min-height: 130px; resize: vertical; }
.faq-section { padding: 52px 0; }
.faq-container { max-width: 850px; margin: auto; }
.faq-item { margin-bottom: 10px; padding: 17px 20px; }
.faq-question { color: var(--green-950); font-weight: 700; cursor: pointer; }
.faq-answer { padding-top: 8px; color: var(--muted); }
.policy-content { max-width: 850px; margin: auto; padding: clamp(22px, 4vw, 42px); }
.policy-content h2, .legal-content h2 { margin-top: 24px; color: var(--green-950); font-size: 1.3rem; }
.policy-content p, .legal-content p, .legal-content li { color: #52615a; }
.legal-content { padding: 42px 0; }
.legal-content .container > p, .legal-content .container > h2, .legal-content .container > ul { max-width: 850px; margin-right: auto; margin-left: auto; }
.projects-intro { padding: 36px 0; background: var(--green-50); }
.projects-intro .container { padding: 25px; }
.projects-intro h2 { margin-bottom: 8px; font-size: 1.45rem; }
.projects-intro p { margin-bottom: 0; color: var(--muted); }
.post-container { max-width: 900px; margin: 48px auto; padding: 0 24px; }
.post-container article { padding: clamp(22px, 5vw, 44px); border: 1px solid var(--line); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.post-header { margin-bottom: 18px; }
.post-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.post-img { display: block; width: 100%; max-height: 420px; margin: 20px 0; border-radius: 10px; object-fit: cover; }
.post-body { color: #4f5f57; }
.back-link { display: inline-block; margin-top: 20px; font-weight: 700; text-decoration: none; }

/* Footer */
.footer { padding: 44px 0 18px; color: #d8e2dd; background: #123c34; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; margin-bottom: 30px; }
.footer-col h2, .footer-col h3, .footer-col h4 { margin-bottom: 12px; color: white; font-size: 1.05rem; }
.footer-col p { margin-bottom: 9px; color: #d8e2dd; font-size: .9rem; }
.footer-col strong { color: white; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col ul li { position: relative; margin-bottom: 7px; padding-left: 14px; color: #d8e2dd; font-size: .9rem; }
.footer-col ul li::before { position: absolute; left: 0; color: #e5a779; content: '•'; }
.footer a { color: #f0bd96 !important; }
.footer-bottom { padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.72); text-align: center; font-size: .82rem; }
.footer-bottom p { margin-bottom: 8px; }

@media (max-width: 980px) {
    .header-content { gap: 10px; }
    .nav a { padding-right: 8px; padding-left: 8px; font-size: .77rem; }
    .activities-grid, .news-grid, .blog-grid, .team-grid, .supporting-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .container { padding-right: 20px; padding-left: 20px; }
    .header { padding: 8px 0; }
    .header-content { min-height: 54px; flex-wrap: wrap; }
    .logo h1 { font-size: 1rem; }
    .menu-toggle {
        display: block;
        position: absolute;
        top: 12px;
        right: 20px;
        padding: 5px 10px;
        border: 1px solid #dce6de;
        border-radius: 7px;
        color: var(--green-800);
        background: var(--green-50);
        font-size: 1.3rem;
        cursor: pointer;
    }
    .nav { display: none; width: 100%; margin: 6px 0 0; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: white; }
    .header-content.menu-open .nav { display: block; }
    .nav ul { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
    .nav a { padding: 10px 12px; font-size: .88rem; }
    .header-content > .btn { display: none; width: 100%; margin: 5px 0 0; }
    .header-content.menu-open > .btn { display: inline-flex; }
    .hero { min-height: 510px; height: auto; padding: 72px 0 56px; background-position: 57% center; }
    .hero-overlay { background: linear-gradient(90deg, rgba(11,43,36,.85), rgba(15,54,45,.65)); }
    .hero h2 { font-size: clamp(2.15rem, 9vw, 2.8rem); }
    .hero p { font-size: 1rem; }
    .hero-actions { gap: 9px; }
    .hero-actions .btn { min-width: 150px; }
    .page-hero { padding: 46px 0 40px !important; }
    .page-hero h1 { font-size: 2rem !important; }
    .page-header { padding: 32px 0 26px !important; }
    .section { padding: 44px 0; }
    .section-header { margin-bottom: 26px; }
    .activities-grid, .news-grid, .blog-grid, .team-grid, .supporting-grid { grid-template-columns: 1fr; gap: 15px; }
    .project-grid, .about-grid, .contact-container { grid-template-columns: 1fr; gap: 22px; }
    .project-grid.reverse .project-image, .project-grid.reverse .project-content { order: initial; }
    .project-image img, .about-img img { min-height: 220px; max-height: 340px; }
    .facts-list { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-container { padding: 34px 0; }
    .contact-info-block, .contact-form { padding: 23px; }
    .footer { padding-top: 36px; }
    .footer-col { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
