:root {
    --primary: #1d6f42;
    --primary-dark: #104e2d;
    --accent: #d7f0dc;
    --secondary: #2b6a8c;
    --ink: #173126;
    --muted: #5f6d6a;
    --soft: #eef5ef;
    --surface: #ffffff;
    --border: rgba(19, 56, 39, 0.1);
    --shadow: 0 18px 45px rgba(15, 35, 25, 0.09);
    --radius: 20px;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 rgba(29, 111, 66, 0.0);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(29, 111, 66, 0.05);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(180deg, #f5faf6 0%, #edf4f0 100%);
    color: var(--ink);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(17, 39, 27, 0.05);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-image {
    max-height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(29, 111, 66, 0.15));
}

.logo i {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #2d8a57);
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 12px 22px rgba(29, 111, 66, 0.18);
}

.logo span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
}

.logo small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-toggle .hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
}
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--ink);
}
.nav-toggle .hamburger::before { top: -7px; }
.nav-toggle .hamburger::after { top: 7px; }

/* Responsive layout */
@media (max-width: 900px) {
    .hero {
        padding: 3.2rem 0 2.2rem;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: fixed; top: 72px; right: 12px; background: white; flex-direction: column; padding: 1rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(10,20,10,0.12); z-index: 9999; }
    .nav-links a { padding: 0.8rem 1rem; display: block; }
    html.nav-open .nav-links { display: flex; }
    .team-grid { grid-template-columns: 1fr; gap: 1rem; }
    .team-card { padding: 0.9rem; }
    .team-card h3 { font-size: 1.05rem; }
    .team-image-wrapper { height: 160px; }
}

@media (max-width: 720px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-image-wrapper { height: 180px; }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    .hero p { font-size: 0.98rem; }
    .gallery-item, .activity-card { min-height: auto; }
    .gallery-item img, .activity-card img { height: auto; max-height: 320px; }
}

/* Mobile horizontal card scroller for team, activities, and map-contact */
@media (max-width: 720px) {
    .team-grid, .activity-grid, .map-contact-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.6rem;
        scroll-snap-type: x mandatory;
    }

    .team-grid .team-card,
    .activity-grid > .activity-card-image,
    .map-contact-grid > .state-map-card,
    .map-contact-grid > .contact-card {
        flex: 0 0 92%;
        scroll-snap-align: start;
        min-width: 92%;
    }

    /* reduce card padding for compact mobile look */
    .team-card, .activity-card-image, .state-map-card, .contact-card {
        padding: 0.9rem;
        border-radius: 12px;
    }

    /* hide default scrollbar in a subtle way */
    .team-grid::-webkit-scrollbar, .activity-grid::-webkit-scrollbar, .map-contact-grid::-webkit-scrollbar { height: 8px; }
    .team-grid::-webkit-scrollbar-thumb, .activity-grid::-webkit-scrollbar-thumb, .map-contact-grid::-webkit-scrollbar-thumb { background: rgba(17,39,27,0.12); border-radius: 999px; }
}

/* On small screens, ensure staggered children are visible if animations haven't run */
@media (max-width: 900px) {
    .animate-stagger .team-card,
    .animate-stagger .gallery-item,
    .animate-stagger .hero-activity-card,
    .animate-stagger .activity-card,
    .animate-stagger .partner-logo {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 420px) {
    .logo-image { max-height: 40px; }
    .hero { padding: 2.2rem 0 1.6rem; }
    .team-image-wrapper { height: 140px; }
    .modal-content { width: calc(100% - 24px); padding: 1rem; border-radius: 12px; }
    #memberModal .member-modal-content { width: 100%; max-width: 420px; margin: 0 12px; }
}

/* Ensure staggered children (nested) are hidden initially when JS is present */
.js .animate-stagger .team-card,
.js .animate-stagger .gallery-item,
.js .animate-stagger .hero-activity-card,
.js .animate-stagger .activity-card,
.js .animate-stagger .partner-logo {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.48s ease, transform 0.48s ease;
}
.animate-stagger .team-card.in-view,
.animate-stagger .gallery-item.in-view,
.animate-stagger .hero-activity-card.in-view,
.animate-stagger .activity-card.in-view,
.animate-stagger .partner-logo.in-view {
    opacity: 1;
    transform: none;
}

.nav-links a {
    font-weight: 600;
    color: var(--ink);
    opacity: 0.85;
    padding: 0.7rem 0.9rem;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: var(--primary);
    background: rgba(29, 111, 66, 0.06);
    opacity: 1;
}

.nav-links a.btn-outline {
    border: 1px solid rgba(29, 111, 66, 0.2);
    background: rgba(29, 111, 66, 0.04);
    color: var(--primary-dark);
}

.nav-links a.danger-link {
    border-color: rgba(185, 28, 28, 0.25);
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.04);
}

.hero {
    padding: 5.5rem 0 4rem;
    background:
        radial-gradient(circle at top left, rgba(99, 177, 115, 0.22), transparent 25%),
        linear-gradient(135deg, #f1fbe8 0%, #edf7f1 40%, #f7fbf8 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.2rem;
}

.hero h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.06em;
    color: var(--ink);
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.07rem;
    color: var(--muted);
    max-width: 640px;
    margin-bottom: 1.6rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2rem;
}

.hero-stats div {
    min-width: 150px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(17, 39, 27, 0.06);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow);
}

.hero-stats strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.6rem;
    line-height: 1.3;
}

.hero-stats span {
    color: var(--muted);
    font-size: 0.85rem;
}

.hero-gallery {
    position: relative;
    display: block;
    min-height: 420px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(18, 63, 45, 0.18);
    background: linear-gradient(180deg, rgba(17, 39, 27, 0.18), rgba(17, 39, 27, 0.7));
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-gallery::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29,111,66,0.38), rgba(9, 30, 24, 0.18));
    z-index: 1;
    pointer-events: none;
}

.hero-activity-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s ease, filter 0.9s ease;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(17, 39, 27, 0.2), rgba(17, 39, 27, 0.7));
    transform: translate3d(0, 24px, 0) scale(1.04);
    filter: blur(6px) saturate(0.82) brightness(0.8);
    will-change: opacity, transform, filter;
    z-index: 0;
}

.hero-activity-card.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0) saturate(1.08) brightness(1);
    z-index: 2;
}

.hero-activity-card img,
.hero-activity-icon {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.08);
}

.hero-activity-icon {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(29,111,66,0.9), rgba(18, 63, 45, 0.9));
    color: white;
    font-size: 4.5rem;
}

.hero-activity-meta {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 1.4rem 1.2rem 1.5rem;
    background: linear-gradient(180deg, rgba(12, 25, 18, 0.05), rgba(11, 23, 18, 0.9));
    transform: translateY(18px);
    opacity: 0.82;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.hero-activity-card.active .hero-activity-meta {
    transform: translateY(0);
    opacity: 1;
}

.hero-activity-meta h3 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

section {
    padding: 4rem 0;
}

.section-title {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 2vw, 2.6rem);
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.04em;
}

.section-sub {
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1rem;
}

.activity-grid,
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.activity-card,
.gallery-item,
.admin-panel,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.activity-card {
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.section-header-group {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header-group .eyebrow {
    display: block;
    margin-bottom: 0.8rem;
}

.section-header-group .section-sub {
    margin: 0;
}

.activity-card-image {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(17, 39, 27, 0.06);
    border: 1px solid rgba(29,111,66,0.08);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.activity-card-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(29, 111, 66, 0.14);
    border-color: rgba(29,111,66,0.12);
}

.activity-img-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #eaf8ee 0%, #dfeffc 100%);
}

.activity-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.activity-card-image:hover .activity-img {
    transform: scale(1.08);
}

.activity-img-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 2.8rem;
    opacity: 0.3;
}

.activity-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29,111,66,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.activity-card-image:hover .activity-overlay {
    opacity: 1;
}

.overlay-link {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transform: scale(0.75);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.activity-card-image:hover .overlay-link {
    transform: scale(1);
}

.activity-card-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex-grow: 1;
}

.activity-card-image h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.4;
    font-weight: 700;
}

.activity-card-content > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.activity-footer {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(29,111,66,0.06);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(29,111,66,0.08);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-link {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.card-link:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(-45deg);
}

.gallery-grid-elegant {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.gallery-card-elegant {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(17, 39, 27, 0.06);
    border: 1px solid rgba(29,111,66,0.08);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.gallery-card-elegant:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(29, 111, 66, 0.16);
    border-color: rgba(29,111,66,0.14);
}

.gallery-image-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #eaf8ee 0%, #dfeffc 100%);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card-elegant:hover .gallery-image {
    transform: scale(1.12);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 3rem;
    opacity: 0.25;
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(29,111,66,0.18), rgba(29,111,66,0.35));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(2px);
}

.gallery-card-elegant:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-lightbox {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.6rem;
    box-shadow: 0 10px 28px rgba(0,0,0,0.2);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.gallery-card-elegant:hover .gallery-lightbox {
    transform: scale(1);
}

.gallery-card-info {
    padding: 1.6rem 1.4rem;
}

.gallery-card-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.5;
    font-weight: 700;
}

.gallery-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.activity-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.activity-preview {
    color: var(--muted);
    margin: 0;
    min-height: 72px;
}

.activity-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: auto;
}

.read-more-btn {
    border: none;
    border-radius: 999px;
    background: rgba(29,111,66,0.08);
    color: var(--primary-dark);
    font: inherit;
    font-weight: 700;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.read-more-btn:hover {
    background: rgba(29,111,66,0.12);
}

.activity-card:hover,
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 40px rgba(17, 39, 27, 0.08);
}

.activity-card .icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 1rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 1.5rem;
}

.activity-card h3 {
    margin: 0 0 0.7rem;
    font-size: 1.25rem;
    color: var(--ink);
}

.activity-card p{
    color: var(--muted);
    margin: 0 0 1rem;
}

.tag,
.badge {
    display: inline-block;
    background: rgba(29,111,66,0.08);
    color: var(--primary-dark);
    border: 1px solid rgba(29,111,66,0.15);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(180deg, #f5faf6 0%, #ffffff 100%);
    border: 1px solid rgba(25, 77, 53, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 39, 27, 0.04), rgba(17, 39, 27, 0.56));
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 40px rgba(17, 39, 27, 0.12);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img,
.gallery-icon {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 18px 18px 0 0;
}

.gallery-icon {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(29,111,66,0.15), rgba(43,106,140,0.1));
    color: var(--primary);
    font-size: 3.2rem;
}

.gallery-item .gallery-content {
    position: relative;
    z-index: 1;
    padding: 1.1rem 1.1rem 1.3rem;
}

.gallery-item .caption {
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--ink);
    margin-bottom: 0.65rem;
}

.gallery-item .meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.gallery-item img,
.about-image img,
.team-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.gallery-item img {
    height: 220px;
    border-radius: 18px 18px 0 0;
    transition: transform 0.4s ease;
}

.hero-slider-controls {
    position: absolute;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
    z-index: 5;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.58);
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(255,255,255,0.16);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(13, 24, 18, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    width: min(680px, 100%);
    max-height: 80vh;
    background: white;
    border-radius: 22px;
    padding: 1.5rem 1.5rem 1.2rem;
    box-shadow: 0 28px 60px rgba(10, 18, 15, 0.28);
    position: relative;
    overflow: hidden;
    animation: floatUp 0.24s ease;
}

.modal-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    border: none;
    background: rgba(17, 39, 27, 0.06);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
}

.modal-content h3 {
    margin: 0 0 0.8rem;
    padding-right: 2.5rem;
    font-size: 1.7rem;
    color: var(--ink);
}

.modal-content p {
    margin: 0;
    max-height: 62vh;
    overflow-y: auto;
    color: var(--muted);
    white-space: pre-line;
    line-height: 1.8;
    padding-right: 0.35rem;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.map-contact-section {
    background: linear-gradient(180deg, rgba(240, 247, 243, 0.9), rgba(255, 255, 255, 0.9));
    border-top: 1px solid rgba(29,111,66,0.08);
    border-bottom: 1px solid rgba(29,111,66,0.08);
}

.map-contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.state-map-card,
.contact-card {
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(29,111,66,0.08);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.state-map {
    margin-top: 1rem;
    background: linear-gradient(180deg, rgba(233, 244, 236, 0.5), rgba(215, 235, 221, 0.8));
    border: 1px solid rgba(29,111,66,0.08);
    border-radius: 22px;
    padding: 1rem;
}

.state-map svg {
    display: block;
    width: 100%;
    height: auto;
}

.map-base path {
    fill: #a9d7af;
    stroke: #1c6d43;
    stroke-width: 4;
    filter: drop-shadow(0 10px 18px rgba(29,111,66,0.18));
}

.map-ridges path {
    fill: rgba(42, 156, 88, 0.7);
    stroke: rgba(24, 93, 55, 0.7);
    stroke-width: 2.5;
}

.map-points circle {
    fill: #ffffff;
    stroke: #1d6f42;
    stroke-width: 4;
    filter: drop-shadow(0 0 10px rgba(29,111,66,0.35));
}

.map-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.map-stats div {
    background: rgba(29,111,66,0.04);
    border: 1px solid rgba(29,111,66,0.06);
    border-radius: 16px;
    padding: 1rem 0.8rem;
    text-align: center;
}

.map-stats strong {
    display: block;
    color: var(--primary-dark);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.map-stats span {
    color: var(--muted);
    font-size: 0.8rem;
}

.partner-band {
    background: linear-gradient(180deg, rgba(245, 250, 246, 0.96), rgba(255,255,255,1));
    border-top: 1px solid rgba(29,111,66,0.08);
    border-bottom: 1px solid rgba(29,111,66,0.08);
    padding: 2.5rem 0 1rem;
}

.partner-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.partner-header .section-title {
    margin-bottom: 0;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.partner-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 1.2rem 1rem;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(29,111,66,0.08);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(17, 39, 27, 0.04);
    text-align: center;
    height: 100%;
}

.partner-logo img {
    max-height: 75px;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 1rem;
    display: block;
}

.partner-logo strong {
    display: block;
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.4;
    font-weight: 600;
}

.contact-form {
    margin-top: 1.2rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.contact-form span {
    display: block;
    margin-bottom: 0.45rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(29,111,66,0.15);
    border-radius: 14px;
    background: rgba(247, 250, 248, 1);
    color: var(--ink);
    padding: 0.9rem 1rem;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(29,111,66,0.45);
    box-shadow: 0 0 0 4px rgba(29,111,66,0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-message.success {
    background: rgba(29,111,66,0.08);
    color: #155c39;
    border: 1px solid rgba(29,111,66,0.15);
}

.form-message.error {
    background: rgba(185, 28, 28, 0.06);
    color: #991b1b;
    border: 1px solid rgba(185, 28, 28, 0.12);
}

.leadership-header {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.leadership-header p {
    margin: 0.8rem auto 0;
    color: var(--muted);
    max-width: 620px;
}

.hero-activity-card,
.activity-card,
.gallery-item,
.team-card,
.stat-card {
    animation: floatUp 0.7s ease both;
}

.hero-activity-card:nth-child(2) { animation-delay: 0.08s; }
.hero-activity-card:nth-child(3) { animation-delay: 0.14s; }
.team-card:nth-child(2) { animation-delay: 0.08s; }
.team-card:nth-child(3) { animation-delay: 0.14s; }
.gallery-item:nth-child(2n) { animation-delay: 0.06s; }

.eyebrow {
    display: inline-block;
    margin-bottom: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 800;
}

.center {
    text-align: center;
}

.about-section,
.team-section {
    background: rgba(255, 255, 255, 0.45);
}

.about-simple-wrap {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(239,246,241,0.94));
    border: 1px solid rgba(29,111,66,0.06);
    border-radius: 30px;
    padding: 2.5rem 2.2rem;
    box-shadow: 0 18px 32px rgba(17, 39, 27, 0.04);
}

.about-simple-wrap .eyebrow {
    margin-bottom: 0.8rem;
}

.about-simple-wrap .section-title {
    margin-bottom: 0.9rem;
}

.about-simple-wrap p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.9;
    white-space: pre-line;
    margin: 0;
}

.about-livestock-header {
    padding: 0.25rem 0.1rem 0;
}

.about-livestock-header h3 {
    margin: 0.25rem 0 0;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.3;
}

.about-livestock-slider {
    position: relative;
    min-height: 260px;
    border-radius: 18px;
    background: rgba(29,111,66,0.05);
    overflow: hidden;
}

.livestock-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
}

.livestock-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.livestock-slide img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.livestock-slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding-bottom: 0.2rem;
}

.livestock-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(29,111,66,0.25);
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.livestock-dot.active {
    background: var(--primary);
    transform: scale(1.25);
}

.about-livestock-header {
    margin-bottom: 0.8rem;
}

.about-livestock-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.25rem;
}

.about-livestock-slider {
    position: relative;
    min-height: 240px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(29,111,66,0.04);
}

.livestock-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.04);
}

.livestock-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.livestock-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: 18px;
}

.livestock-slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.livestock-dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(29,111,66,0.25);
    cursor: pointer;
    transition: all 0.25s ease;
}

.livestock-dot.active {
    background: var(--primary);
    transform: scale(1.25);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.team-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
}

.team-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
    color: var(--ink);
}

.member-role {
    color: var(--primary);
    font-weight: 700;
    margin: 0 0 0.7rem;
}

.team-image-wrapper {
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf8ee, #dfeffc);
    margin-bottom: 1rem;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-card img,
.team-avatar {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf8ee, #dfeffc);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--muted);
    margin: 0 0 0.8rem;
    line-height: 1.6;
    min-height: 3.2em;
}

.read-more-btn {
    background: rgba(29, 111, 66, 0.08);
    border: none;
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
}

.read-more-btn:hover {
    background: rgba(29, 111, 66, 0.15);
    transform: translateX(2px);
}

/* Management Modal Styles */
#memberModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#memberModal.open {
    display: flex;
}

/* Scroll & Load Animations — only hide when JS is active (avoid hiding if JS fails) */
.js .animate-on-scroll,
.js .animate-on-load {
    /* keep visible but slightly offset so content never appears missing */
    opacity: 1;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.animate-on-scroll.in-view,
.animate-on-load.in-view {
    opacity: 1;
    transform: none;
}

/* Staggered children for lists/grids (only hidden when .js is present) */
.js .animate-stagger > * {
    /* keep parent visible; animate children from hidden -> visible */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.48s ease, transform 0.48s ease;
}
.animate-stagger > *.in-view {
    opacity: 1;
    transform: none;
}

/* Fallback: ensure staggered grid/list children remain visible if JS timing or browser quirks hide them.
   This keeps the management cards visible while we debug client-specific issues. Remove after fixes. */
.animate-stagger > * {
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure section wrappers remain visible (avoid accidental hiding) */
.animate-on-scroll,
.animate-on-load {
    opacity: 1 !important;
}

/* Utility for small delays when needed via inline style */
.animated-delay {
    transition-delay: var(--delay, 0ms) !important;
}

.member-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.member-modal-header {
    position: sticky;
    top: 0;
    padding: 2rem;
    border-bottom: 1px solid #edf2ef;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    border-radius: 20px 20px 0 0;
}

.member-modal-header button {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7a8a;
    padding: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.member-modal-header button:hover {
    background: rgba(29, 111, 66, 0.08);
    color: var(--primary);
}

.member-modal-body {
    padding: 2rem;
}

.member-modal-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: block;
}

.member-modal-title {
    font-size: 1.8rem;
    color: var(--ink);
    margin: 0 0 0.4rem;
}

.member-modal-role {
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 1.5rem;
}

.member-modal-bio {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
    font-size: 0.95rem;
}

.about-content,
.team-section .section-title,
.about-section .section-title {
    max-width: 700px;
}

.btn-primary,
.btn-secondary,
.btn-outline,
.btn-edit,
.btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 12px;
    padding: 0.9rem 1.4rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #2f9b61);
    color: white;
    box-shadow: 0 12px 25px rgba(29,111,66,0.22);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(29,111,66,0.25);
}

.btn-secondary {
    background: white;
    color: var(--primary-dark);
    border: 1px solid rgba(29,111,66,0.15);
}

.btn-secondary:hover {
    background: var(--soft);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(29,111,66,0.18);
    color: var(--primary-dark);
}

.btn-edit {
    background: rgba(17, 94, 138, 0.08);
    color: var(--secondary);
    border: 1px solid rgba(17, 94, 138, 0.12);
}

.btn-danger {
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
    border: 1px solid rgba(185, 28, 28, 0.12);
}

.footer {
    background: linear-gradient(180deg, #10271e, #18382b 100%);
    color: #e6f1ea;
    padding-top: 3rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer h4 {
    margin: 0 0 1rem;
    color: white;
    font-size: 1.1rem;
}

.footer p,
.footer a,
.footer span {
    color: rgba(230, 241, 234, 0.8);
    margin: 0.4rem 0;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(230, 241, 234, 0.75);
    font-size: 0.9rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0 0 2rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stat-card .number {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.stat-card .label {
    color: var(--muted);
    font-weight: 600;
}

.admin-panel {
    padding: 1.5rem;
    margin: 0 auto 1.5rem;
}

.admin-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--ink);
}

table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
}

th,
td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid rgba(17, 39, 27, 0.08);
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--primary-dark);
    background: rgba(29,111,66,0.03);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

label {
    display: block;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(17, 39, 27, 0.12);
    border-radius: 12px;
    font: inherit;
    color: var(--ink);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(29,111,66,0.45);
    box-shadow: 0 0 0 4px rgba(29,111,66,0.1);
}

textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group {
    margin-bottom: 1.2rem;
}

.error {
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
    border: 1px solid rgba(185, 28, 28, 0.16);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.admin-login {
    max-width: 520px;
    margin: 4rem auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.admin-login h1 {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.4rem);
    color: var(--ink);
}

@media (max-width: 980px) {
    .activity-grid,
    .gallery-grid,
    .admin-stats,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .nav-flex,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
    }

    .nav-links a {
        flex: 1 1 auto;
        text-align: center;
    }

    .activity-grid,
    .gallery-grid,
    .admin-stats,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        padding-top: 4rem;
    }
}
