:root {
    --primary-color: #1f6b3d;
    --primary-light: #2f8753;
    --primary-dark: #144a2a;
    --secondary-color: #c9971b;
    --secondary-light: #f0c968;
    --secondary-dark: #8d6510;
    --accent-color: #2b7a78;
    --text-dark: #193126;
    --text-light: #f8f6ee;
    --bg-light: #f8f7f2;
    --bg-muted: #eef4eb;
    --surface-color: #ffffff;
    --transition: all 0.3s ease;
    --card-shadow: 0 12px 40px rgba(20, 74, 42, 0.08);
    --hover-shadow: 0 18px 44px rgba(20, 74, 42, 0.14);
}

[data-theme="dark"] {
    --bg-light: #121712;
    --bg-muted: #1c241e;
    --text-dark: #e8efe8;
    --text-light: #ffffff;
    --surface-color: #16211a;
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-light) 0%, #f1f6eb 100%);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

p {
    color: #556b5f;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: #627a69 !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-muted {
    background-color: var(--bg-muted) !important;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--secondary-light);
}

[data-theme="dark"] p {
    color: #c7d4c7;
}

/* Navbar Customization */
.navbar {
    background: transparent;
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar .container {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(20, 74, 42, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(20, 74, 42, 0.08);
    padding: 0.7rem 1.1rem;
    backdrop-filter: blur(14px);
}

[data-theme="dark"] .navbar {
    background: transparent;
}

[data-theme="dark"] .navbar .container {
    background: rgba(18, 24, 20, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.navbar.scrolled {
    padding: 0.6rem 0;
}

.navbar.scrolled .container {
    padding: 0.6rem 1rem;
    box-shadow: 0 10px 24px rgba(20, 74, 42, 0.12);
}

.navbar-brand {
    gap: 0.7rem;
}

.navbar-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    padding: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 8px 18px rgba(31, 107, 61, 0.16);
}

.navbar-brand .fw-bold {
    color: var(--primary-color);
    font-size: 1.05rem;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark) !important;
    margin: 0 0.25rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(31, 107, 61, 0.08);
    color: var(--primary-color) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0.35rem;
    left: 0.9rem;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    transition: var(--transition);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: calc(100% - 1.8rem);
}

.dropdown-menu {
    border: 0;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.navbar-toggler {
    border: 0;
    padding: 0.35rem 0.45rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .navbar .container {
        border-radius: 24px;
    }

    .navbar-nav {
        padding-top: 0.6rem;
    }

    .nav-link {
        padding: 0.7rem 0.95rem;
    }
}

/* Buttons */
.btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px rgba(31, 107, 61, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 107, 61, 0.28);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    color: white;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.14);
}

/* Shared institutional style for public listings and detail pages */
.public-listing-page { min-height: 65vh; padding-bottom: 5rem; background: linear-gradient(180deg, #f3f7f1 0, #fbfcf9 42rem, #fff 100%); }
.public-listing-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 7rem); color: #fff; background: linear-gradient(120deg, #123f2d 0%, #1f6b3d 62%, #2b7a62 100%); }
.public-listing-hero::after { position: absolute; z-index: -1; top: -8rem; right: -3rem; width: min(42rem, 70vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 2rem rgba(255,255,255,.035), 0 0 0 5rem rgba(255,255,255,.025); content: ''; }
.public-listing-hero .container { position: relative; z-index: 1; }
.public-listing-hero h1 { max-width: 820px; margin: .7rem 0 .6rem; color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.045em; }
.public-listing-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.8); font-size: clamp(1rem, 2vw, 1.2rem); }
.public-hero-kicker { display: inline-flex; align-items: center; gap: .55rem; color: #f3d98f; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.public-listing-content { position: relative; z-index: 2; margin-top: -2.3rem; }
.public-search-form { display: flex; align-items: center; gap: .8rem; max-width: 720px; margin: 0 auto 2.2rem; padding: .6rem; border: 1px solid #e4ebe4; border-radius: 999px; background: #fff; box-shadow: 0 14px 36px rgba(20,74,42,.1); }
.public-search-form > i { margin-left: .8rem; color: #718579; }
.public-search-form .form-control { min-width: 0; border: 0; box-shadow: none; }
.public-search-form .btn { flex: 0 0 auto; padding-inline: 1.4rem; }
.public-content-card { overflow: hidden; border: 1px solid #e5ece5; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,74,42,.055); transition: transform .25s ease, box-shadow .25s ease; }
.public-content-card:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(20,74,42,.13); }
.public-card-image-link { display: block; overflow: hidden; background: #eaf1e8; }
.public-card-image { display: block; width: 100%; height: 225px; object-fit: cover; transition: transform .45s ease; }
.public-content-card:hover .public-card-image { transform: scale(1.035); }
.public-card-placeholder { display: grid; height: 170px; place-items: center; color: rgba(255,255,255,.88); background: radial-gradient(circle at 78% 20%, rgba(240,201,104,.5), transparent 28%), linear-gradient(135deg, #1f6b3d, #2b7a62); font-size: 2.2rem; }
.public-card-body { display: flex; min-height: 245px; flex-direction: column; align-items: flex-start; padding: 1.45rem; }
.public-card-kicker { color: #7a661f; font-size: .75rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.public-card-body h2 { margin: .55rem 0 .5rem; font-size: 1.22rem; line-height: 1.35; }
.public-card-body h2 a { color: #174e39; text-decoration: none; }
.public-card-body h2 a:hover { color: #27845e; }
.public-card-body p { margin-bottom: 1rem; color: #5d7064; }
.public-card-location { margin: -.3rem 0 1rem; color: #627a69; font-size: .88rem; }
.public-card-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: auto; color: #176b4d; font-weight: 750; text-decoration: none; }
.public-card-link i, .public-related-card i { transition: transform .2s ease; }
.public-card-link:hover i, .public-related-card:hover i { transform: translateX(4px); }
.public-empty-state { padding: 3.5rem 1.5rem; border: 1px dashed #cddace; border-radius: 20px; background: rgba(255,255,255,.75); text-align: center; }
.public-empty-state > i { margin-bottom: 1rem; color: #32815b; font-size: 2rem; }
.public-empty-state h2 { font-size: 1.3rem; }
.public-empty-state p { margin: 0; }
.public-pagination { display: flex; justify-content: center; margin-top: 2.5rem; }
.public-detail-page { min-height: 65vh; padding: clamp(2.5rem, 6vw, 5rem) 0; background: linear-gradient(180deg, #f2f6ef 0, #fbfcfa 28rem, #fff 100%); }
.public-detail { max-width: 980px; }
.public-back-link { display: inline-flex; align-items: center; gap: .6rem; color: #176b4d; font-weight: 700; text-decoration: none; }
.public-back-link:hover { color: #0f4a34; }
.public-detail-header { margin: 2rem 0 1.8rem; }
.public-eyebrow { margin-bottom: .8rem; color: #7a661f; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.public-detail-header h1 { max-width: 850px; margin: 0 0 .8rem; color: #174e39; font-size: clamp(2.1rem, 5vw, 3.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.public-detail-lead { max-width: 780px; margin: 0; color: #52675a; font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.65; }
.public-meta-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.35rem; color: #5e7466; font-size: .92rem; }
.public-meta-row span, .public-meta-row strong { display: inline-flex; align-items: center; gap: .5rem; }
.public-meta-row i { color: #27845e; }
.public-detail-image { display: block; width: 100%; max-height: 540px; margin: 2rem 0; border-radius: 22px; object-fit: cover; box-shadow: 0 18px 45px rgba(20,74,42,.13); }
.public-detail-content { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid #e7ede7; border-radius: 20px; background: #fff; box-shadow: 0 10px 34px rgba(20,74,42,.045); color: #374b3e; font-size: 1.05rem; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.public-related { margin-top: 3.5rem; }
.public-related h2 { margin-bottom: 1.2rem; font-size: 1.5rem; }
.public-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.public-related-card { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; padding: 1.2rem; border: 1px solid #e4ebe4; border-radius: 16px; background: #fff; color: #174e39; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.public-related-card:hover { transform: translateY(-2px); border-color: #99bea5; box-shadow: 0 12px 24px rgba(20,74,42,.08); color: #174e39; }
.public-related-card span { grid-column: 1 / -1; color: #7a661f; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.public-related-card strong { line-height: 1.4; }
.public-related-card i { align-self: center; color: #27845e; }
.library-list-card { display: flex; align-items: center; gap: 1.25rem; padding: 1.3rem; border: 1px solid #e3ebe3; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20,74,42,.045); transition: border-color .2s ease, box-shadow .2s ease; }
.library-list-card:hover { border-color: #a8c9b0; box-shadow: 0 12px 30px rgba(20,74,42,.09); }
.library-list-icon, .library-resource-icon { display: grid; flex: 0 0 58px; width: 58px; height: 58px; place-items: center; border-radius: 17px; color: #1f6b3d; background: #edf5ed; font-size: 1.35rem; }
.library-list-copy { flex: 1; min-width: 0; }
.library-list-copy h2 { margin: .35rem 0; font-size: 1.12rem; }
.library-list-copy h2 a { color: #174e39; text-decoration: none; }
.library-list-copy p { margin: 0; }
.library-list-actions { display: flex; align-items: center; gap: .5rem; }
.library-list-actions .btn { padding: .65rem 1rem; }
.library-list-actions .btn-primary { padding-inline: .9rem; }
.library-resource-panel { display: flex; align-items: center; gap: 1.25rem; padding: clamp(1.3rem, 4vw, 2rem); border: 1px solid #e3ebe3; border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(20,74,42,.07); }
.library-resource-icon { flex-basis: 72px; width: 72px; height: 72px; font-size: 1.7rem; }
.library-resource-copy { flex: 1; }
.library-resource-copy > span { color: #7a661f; font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.library-resource-copy h2 { margin: .35rem 0; font-size: 1.25rem; }
.library-resource-copy p { margin: 0; }
.library-download { flex: 0 0 auto; }
[data-theme="dark"] .public-listing-page, [data-theme="dark"] .public-detail-page { background: linear-gradient(180deg, #17221a 0, #121712 100%); }
[data-theme="dark"] .public-content-card, [data-theme="dark"] .public-empty-state, [data-theme="dark"] .public-detail-content, [data-theme="dark"] .public-related-card, [data-theme="dark"] .library-list-card, [data-theme="dark"] .library-resource-panel, [data-theme="dark"] .public-search-form { border-color: rgba(255,255,255,.1); background-color: #19251c; }
[data-theme="dark"] .public-detail-header h1, [data-theme="dark"] .public-card-body h2 a, [data-theme="dark"] .library-list-copy h2 a, [data-theme="dark"] .public-related-card { color: #d7e8d9; }
[data-theme="dark"] .public-detail-content, [data-theme="dark"] .public-card-body p, [data-theme="dark"] .library-list-copy p, [data-theme="dark"] .library-resource-copy p { color: #c7d4c7; }
@media (max-width: 575.98px) {
    .public-listing-page { padding-bottom: 3.5rem; }
    .public-listing-content { margin-top: -1.7rem; }
    .public-search-form { gap: .35rem; padding: .4rem; }
    .public-search-form > i { margin-left: .55rem; }
    .public-search-form .btn { padding: .65rem .9rem; }
    .public-card-image { height: 205px; }
    .public-card-body { min-height: 0; }
    .library-list-card { align-items: flex-start; flex-wrap: wrap; gap: .9rem; }
    .library-list-icon { flex-basis: 48px; width: 48px; height: 48px; border-radius: 14px; }
    .library-list-copy { width: calc(100% - 65px); flex: 1 1 calc(100% - 65px); }
    .library-list-actions { width: 100%; justify-content: flex-end; }
    .library-resource-panel { align-items: flex-start; flex-wrap: wrap; }
    .library-resource-icon { flex-basis: 54px; width: 54px; height: 54px; border-radius: 15px; }
    .library-resource-copy { flex: 1 1 calc(100% - 75px); }
    .library-download { width: 100%; }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 88vh;
    padding: 150px 0 100px;
    background: linear-gradient(120deg, rgba(20, 74, 42, 0.94), rgba(15, 49, 31, 0.82), rgba(201, 151, 27, 0.55)), url('../images/hero-home.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: left;
    overflow: hidden;
}

.hero-section h1 {
    color: #fffef5;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.hero-section::before {
    width: 280px;
    height: 280px;
    top: -40px;
    right: -40px;
    background: rgba(240, 201, 104, 0.22);
}

.hero-section::after {
    width: 220px;
    height: 220px;
    bottom: -40px;
    left: -20px;
    background: rgba(59, 122, 120, 0.25);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 1.2rem;
}

/* Cards */
.card {
    border: 1px solid rgba(20, 74, 42, 0.06);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    background-color: var(--surface-color);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.card-img-top {
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    padding: 0.8rem 0.7rem;
    border-radius: 16px;
    border: 1px solid rgba(20, 74, 42, 0.12);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,244,235,0.95));
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(20, 74, 42, 0.06);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark), #0b2b1b);
    color: white;
    padding: 80px 0 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--secondary-light);
    padding-left: 5px;
}

/* Statistics */
.stat-card {
    padding: 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.counter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-light);
    display: block;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Form, Table & Modal Styling */
[data-theme="dark"] .form-control, 
[data-theme="dark"] .form-select {
    background-color: #233126;
    border-color: #3f5145;
    color: #fff;
}
[data-theme="dark"] .form-control:focus, 
[data-theme="dark"] .form-select:focus {
    background-color: #28372c;
    color: #fff;
    border-color: var(--secondary-color);
}
[data-theme="dark"] .table {
    color: var(--text-dark);
    background-color: var(--surface-color);
}
[data-theme="dark"] .table-hover tbody tr:hover {
    color: var(--text-dark);
    background-color: rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .bg-white {
    background-color: var(--surface-color) !important;
}
[data-theme="dark"] .bg-light {
    background-color: var(--bg-muted) !important;
}
[data-theme="dark"] .list-group-item {
    background-color: var(--surface-color);
    color: var(--text-dark);
    border-color: #3f5145;
}
[data-theme="dark"] .modal-content {
    background-color: var(--surface-color);
    color: var(--text-dark);
}
[data-theme="dark"] .btn-close {
    filter: invert(1);
}
[data-theme="dark"] .bg-muted {
    background-color: var(--bg-muted) !important;
}

[data-theme="dark"] .text-dark,
[data-theme="dark"] button.text-dark,
[data-theme="dark"] a.text-dark,
[data-theme="dark"] i.text-dark {
    color: var(--text-light) !important;
}

/* ANEA public site art direction and reusable page components */
.hero-section { min-height: min(780px, 86vh); padding: 150px 0 110px; background-image: linear-gradient(105deg, rgba(12,54,37,.88), rgba(20,74,42,.7) 48%, rgba(22,76,52,.28)), url('../images/anea-rural-green.jpg'); background-position: center 47%; }
.hero-section::before { position: absolute; inset: 0; z-index: 0; background: linear-gradient(0deg, rgba(9,36,25,.26), transparent 55%); content: ''; }
.hero-section > .container { position: relative; z-index: 1; }
.hero-section .col-lg-8 { max-width: 900px; }
.hero-section .display-3 { max-width: 850px; margin-inline: auto; font-size: clamp(2.55rem, 6.1vw, 5.2rem); line-height: 1.02; }
.hero-section .lead { max-width: 690px; margin-inline: auto; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-section .btn { min-width: 178px; }
.hero-badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.2rem; padding: .65rem 1rem; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #f2dc9a; background: rgba(10,49,33,.32); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
.hero-badge i { color: #a9d097; }
.home-intro-image { display: block; width: 100%; min-height: 330px; max-height: 440px; border: 8px solid rgba(255,255,255,.85); border-radius: 26px; object-fit: cover; box-shadow: 0 22px 55px rgba(20,74,42,.16); }
.home-section-heading { max-width: 720px; margin: 0 auto 2.6rem; text-align: center; }
.home-section-heading > span { color: #8b721c; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.home-section-heading h2 { margin: .55rem 0; color: #174e39; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.home-section-heading p { margin: 0; }
.public-page-card { height: 100%; overflow: hidden; border: 1px solid #e2eae2; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,74,42,.06); transition: transform .25s ease, box-shadow .25s ease; }
.public-page-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(20,74,42,.12); }
.public-page-card-body { padding: 1.4rem; }
.public-page-card-body h3 { margin: .55rem 0; font-size: 1.2rem; }
.public-page-card-body h3 a { color: #174e39; text-decoration: none; }
.public-page-card-image { width: 100%; height: 210px; object-fit: cover; }
.public-page-card-meta { color: #758479; font-size: .8rem; font-weight: 700; }
.home-values-section { padding: 5rem 0; background: linear-gradient(145deg,#edf4eb,#f8faf5 68%); }
.home-value-card { height: 100%; padding: 1.8rem; border: 1px solid rgba(31,107,61,.1); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 10px 28px rgba(20,74,42,.055); }
.home-value-card > i { display: grid; width: 58px; height: 58px; margin-bottom: 1.2rem; place-items: center; border-radius: 18px; color: #1f6b3d; background: #edf5ed; }
.home-value-card p { margin: 0; }
.home-stats-section { position: relative; overflow: hidden; padding: 4.5rem 0; background: linear-gradient(120deg,#123f2d,#1f6b3d 64%,#2b7a62); }
.home-stats-section::after { position: absolute; right: -4rem; bottom: -15rem; width: 30rem; height: 30rem; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 2rem rgba(255,255,255,.025),0 0 0 4rem rgba(255,255,255,.02); content: ''; }
.home-stats-section .container { position: relative; z-index: 1; }
.home-news-card { overflow: hidden; border: 1px solid #e3ebe3; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(20,74,42,.06); }
.home-news-card img { width: 100%; height: 220px; object-fit: cover; }
.home-news-card-body { padding: 1.4rem; }
.home-news-card-body h3 { font-size: 1.15rem; }
.home-news-card-body h3 a { color: #174e39; text-decoration: none; }
.home-cta-section { position: relative; overflow: hidden; padding: 5rem 0; color: #fff; background: linear-gradient(115deg,rgba(15,62,42,.93),rgba(31,107,61,.85)),url('../images/anea-rural-green.jpg') center 55%/cover; }
.home-cta-section h2, .home-cta-section p { color: #fff; }
.home-partners-section { padding: 4rem 0; background: #f5f7f1; }
.partner-logo { display: grid; min-height: 82px; padding: 1rem; place-items: center; border: 1px solid #e5ebe2; border-radius: 16px; background: #fff; color: #46634f; font-weight: 750; }
.partner-logo img { max-width: 100%; object-fit: contain; }
.contact-content { margin-top: -2.4rem; padding-bottom: 3.5rem; }
.contact-info-panel { padding: clamp(1.5rem,3vw,2.2rem); border-radius: 22px; color: #fff; background: linear-gradient(150deg,#123f2d,#1f6b3d 70%,#2b7a62); box-shadow: 0 18px 45px rgba(20,74,42,.17); }
.contact-info-panel h2 { margin: .5rem 0; color: #fff; font-size: 1.7rem; }
.contact-info-panel > p { margin-bottom: 1.7rem; color: rgba(255,255,255,.78); }
.contact-info-panel .public-card-kicker { color: #e5ce83; }
.contact-info-item { display: flex; align-items: flex-start; gap: .9rem; margin-top: 1rem; color: #fff; text-decoration: none; }
.contact-info-item > span:first-child { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; color: #f0d88e; background: rgba(255,255,255,.08); }
.contact-info-item > span:last-child { display: grid; gap: .18rem; }
.contact-info-item small { color: rgba(255,255,255,.68); }
.contact-info-item strong { font-size: .92rem; font-weight: 650; overflow-wrap: anywhere; }
.contact-form-panel { height: 100%; }
.join-panel { overflow: hidden; border: 1px solid rgba(20,74,42,.11); border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(20,74,42,.11); }
.join-panel-head { padding: 1.35rem 1.6rem; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; background: linear-gradient(115deg,#123f2d,#1f6b3d 70%,#2b7a62); }
.join-panel-head h2 { color: #fff; }
.join-panel-head .text-muted { color: rgba(255,255,255,.76) !important; }
.join-panel-body { padding: clamp(1.2rem,3vw,2rem); }
.join-required { color: #9f2929; font-weight: 800; }
.join-submit.btn { min-height: 48px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(120deg,#176b4d,#2a875b); box-shadow: 0 12px 24px rgba(23,107,77,.18); font-weight: 750; transition: transform .2s ease,box-shadow .2s ease; }
.join-submit.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(23,107,77,.25); }
.contact-form .form-control { min-height: 48px; border-color: #d2ded5; border-radius: 10px; }
.contact-form textarea.form-control { min-height: 150px; }
.contact-form .form-control:focus { border-color: #27845e; box-shadow: 0 0 0 .22rem rgba(39,132,94,.14); }
.leadership-content { padding-bottom: 4rem; }
.president-feature { display: grid; grid-template-columns: minmax(200px, .7fr) 1.5fr; gap: clamp(1.5rem,4vw,3.5rem); align-items: center; padding: clamp(1.5rem,4vw,3rem); border: 1px solid #dfe9df; border-radius: 26px; background: linear-gradient(130deg,#fff,#f5f8f1); box-shadow: 0 18px 45px rgba(20,74,42,.09); }
.president-photo-wrap { display: flex; justify-content: center; }
.president-photo, .leader-placeholder-large { width: min(100%,260px); aspect-ratio: 1; border: 8px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 12px 32px rgba(20,74,42,.16); }
.leader-placeholder, .leader-placeholder-large { display: grid; place-items: center; color: #fff; background: linear-gradient(145deg,#1f6b3d,#c9971b); font-size: 3rem; font-weight: 800; }
.leader-role-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 999px; color: #705a10; background: #f7efd2; font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.president-copy h2 { margin: .9rem 0 .3rem; color: #174e39; font-size: clamp(1.8rem,4vw,2.5rem); }
.leader-position { color: #27704b; font-weight: 750; }
.leader-bio { color: #5d7064; }
.leader-contact-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.2rem; }
.leader-contact-links a, .leader-contact { display: inline-flex; align-items: center; gap: .5rem; color: #176b4d; font-size: .85rem; font-weight: 650; text-decoration: none; overflow-wrap: anywhere; }
.leadership-team { margin-top: 3.5rem; }
.leadership-section-heading { margin-bottom: 1.3rem; }
.leadership-section-heading h2 { margin: .35rem 0; }
.leader-card { overflow: hidden; border: 1px solid #e4ebe4; border-radius: 19px; background: #fff; box-shadow: 0 9px 26px rgba(20,74,42,.055); transition: transform .25s ease,box-shadow .25s ease; }
.leader-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(20,74,42,.11); }
.leader-card-photo { display: block; width: 100%; height: 220px; object-fit: cover; }
.leader-card .leader-placeholder { height: 220px; }
.leader-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 1.25rem; }
.leader-card-body h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.leader-card-body .leader-position { margin-bottom: .65rem; font-size: .9rem; }
.leader-card-body .leader-contact + .leader-contact { margin-top: .45rem; }
.about-content { padding-bottom: 4rem; }
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; padding: clamp(1.2rem,4vw,3rem); border: 1px solid #e0e9df; border-radius: 24px; background: #fff; box-shadow: 0 14px 38px rgba(20,74,42,.075); }
.about-story-copy h2 { margin: .55rem 0 1rem; color: #174e39; font-size: clamp(1.65rem,3vw,2.25rem); }
.about-story-image { margin: 0; }
.about-story-image img { width: 100%; max-height: 360px; border-radius: 18px; object-fit: cover; }
.about-story-image figcaption { margin-top: .65rem; color: #718176; font-size: .82rem; }
.about-values-heading { margin: 3.5rem 0 1.35rem; }
.about-values-heading h2 { margin: .3rem 0; }
.about-value-card { padding: 1.55rem; border: 1px solid #e3ebe3; border-radius: 18px; background: #fff; box-shadow: 0 8px 25px rgba(20,74,42,.05); }
.about-value-icon { display: grid; width: 52px; height: 52px; margin-bottom: 1rem; place-items: center; border-radius: 16px; color: #1f6b3d; background: #edf5ed; }
.about-value-card h3 { font-size: 1.18rem; }
.about-value-card p { margin: 0; }
.about-objectives { margin-top: 1.5rem; }
.about-objectives article { height: 100%; padding: 1.25rem; border-left: 3px solid #c9971b; background: rgba(255,255,255,.65); }
.about-objectives article > span { color: #8b721c; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.about-objectives h3 { margin: .4rem 0; font-size: 1.12rem; }
.about-objectives p { margin: 0; }
.partner-card { overflow: hidden; border: 1px solid #e2eae2; border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(20,74,42,.055); transition: transform .25s ease,box-shadow .25s ease; }
.partner-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(20,74,42,.11); }
.partner-card-logo { display: grid; min-height: 170px; margin: 1rem 1rem 0; padding: 1.4rem; place-items: center; border-radius: 15px; background: #f5f8f3; }
.partner-card-logo img { max-width: 100%; max-height: 100px; object-fit: contain; }
.partner-card-logo > span { color: #38815a; font-size: 2rem; }
.partner-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.partner-card-body h2 { font-size: 1.2rem; }
.partner-card-body p { color: #627267; }
.members-content { padding-bottom: 4rem; }
.members-search { max-width: 950px; }
.members-search .form-select { max-width: 265px; border: 0; box-shadow: none; }
.members-table-panel { overflow: hidden; border: 1px solid #e1e9e1; border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(20,74,42,.06); }
.members-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem; border-bottom: 1px solid #e9eee8; }
.members-table-heading h2 { margin: .3rem 0 0; font-size: 1.2rem; }
.members-table { margin: 0; vertical-align: middle; }
.members-table thead th { padding: 1rem 1.3rem; border-bottom: 0; color: #557060; background: #f4f7f2; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.members-table tbody td { padding: 1rem 1.3rem; border-color: #edf1ed; color: #46594c; }
.members-table tbody tr:hover { background: #f8faf7; }
.members-table a { color: #176b4d; font-weight: 700; text-decoration: none; }
.members-table .members-empty { padding: 2rem; color: #6e7c72; text-align: center; }
.members-table-panel .public-pagination { padding: 0 1.25rem 1rem; }
.credential-content { max-width: 850px; padding-bottom: 4rem; }
.verification-search-panel { margin-bottom: 1.5rem; }
.credential-result { display: flex; align-items: flex-start; gap: 1rem; margin-top: 1.5rem; padding: 1.35rem; border-radius: 17px; }
.credential-result-success { border: 1px solid #cce2d0; background: #f1f8f1; color: #174e39; }
.credential-result-success strong { display: block; margin-top: .3rem; font-size: 1.25rem; }
.credential-result-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: #fff; background: #268354; }
.credential-result-warning { border: 1px solid #f0dcaf; background: #fff9e8; color: #765d19; }
.credential-result-warning > i { font-size: 1.3rem; }
.credential-result-warning p { margin: .25rem 0 0; }
.credential-card { overflow: hidden; border: 1px solid #e0e8df; border-radius: 24px; background: #fff; box-shadow: 0 18px 45px rgba(20,74,42,.09); }
.credential-card-top { display: flex; align-items: center; gap: 1.4rem; padding: clamp(1.4rem,4vw,2.5rem); color: #fff; background: linear-gradient(120deg,#123f2d,#1f6b3d 70%,#2b7a62); }
.credential-photo, .credential-photo-placeholder { display: grid; flex: 0 0 100px; width: 100px; height: 100px; place-items: center; border: 4px solid rgba(255,255,255,.7); border-radius: 50%; color: #1f6b3d; background: #edf5ed; font-size: 1.8rem; object-fit: cover; }
.credential-status { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .5rem; color: #e4d494; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credential-card-top h2 { margin: 0; color: #fff; font-size: clamp(1.3rem,3vw,1.8rem); }
.credential-card-top p { margin: .3rem 0; color: rgba(255,255,255,.75); }
.credential-number { color: #f3dc94; letter-spacing: .06em; }
.credential-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; padding: 1rem clamp(1.4rem,4vw,2.5rem); }
.credential-details > div { padding: 1rem .3rem; border-bottom: 1px solid #edf1ed; }
.credential-details dt { color: #758478; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.credential-details dd { margin: .3rem 0 0; color: #244233; font-weight: 700; }
.site-footer { position: relative; overflow: hidden; background: linear-gradient(120deg,#0d3827,#123f2d 58%,#1b573a); }
.site-footer::before { position: absolute; top: -14rem; right: -7rem; width: 29rem; height: 29rem; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 2rem rgba(255,255,255,.018),0 0 0 5rem rgba(255,255,255,.015); content: ''; }
.site-footer .container { position: relative; z-index: 1; }
.site-footer h5 { color: #fff; }
.site-footer .footer-link { color: rgba(255,255,255,.68); text-decoration: none; transition: color .2s ease; }
.site-footer .footer-link:hover { color: #f1d88f; }
.public-detail-header .public-meta-row { align-items: center; }
.public-detail-header .public-meta-row > span { padding: .45rem .7rem; border: 1px solid #e2eae1; border-radius: 999px; background: rgba(255,255,255,.75); }
.public-news-hero { background-image: linear-gradient(110deg,rgba(12,54,37,.9),rgba(20,74,42,.72)),url('../images/anea-rural-green.jpg'); background-position: center 42%; }
.public-events-hero { background-image: linear-gradient(110deg,rgba(12,54,37,.9),rgba(20,74,42,.72)),url('../images/anea-rural-green.jpg'); background-position: center 52%; }
.public-library-hero { background-image: linear-gradient(110deg,rgba(12,54,37,.92),rgba(20,74,42,.78)),url('../images/anea-rural-green.jpg'); background-position: center 70%; }
[data-theme="dark"] .public-value-card, [data-theme="dark"] .president-feature, [data-theme="dark"] .leader-card, [data-theme="dark"] .partner-card, [data-theme="dark"] .members-table-panel, [data-theme="dark"] .credential-card, [data-theme="dark"] .about-story, [data-theme="dark"] .about-value-card { border-color: rgba(255,255,255,.1); background: #19251c; }
[data-theme="dark"] .president-copy h2, [data-theme="dark"] .leader-card-body h3, [data-theme="dark"] .about-story-copy h2, [data-theme="dark"] .about-value-card h3, [data-theme="dark"] .partner-card-body h2, [data-theme="dark"] .members-table-heading h2 { color: #d7e8d9; }
[data-theme="dark"] .leader-bio, [data-theme="dark"] .about-objectives p, [data-theme="dark"] .partner-card-body p { color: #c7d4c7; }
[data-theme="dark"] .join-panel, [data-theme="dark"] .public-payment-card { border-color: rgba(255,255,255,.1); background: #19251c; }
[data-theme="dark"] .join-panel .form-label { color: #e0e9df; }
[data-theme="dark"] .members-table thead th { color: #c7d4c7; background: #202d23; }
[data-theme="dark"] .members-table tbody td, [data-theme="dark"] .credential-details dd { color: #c7d4c7; }
[data-theme="dark"] .credential-details > div, [data-theme="dark"] .members-table tbody td { border-color: rgba(255,255,255,.1); }
@media (max-width: 767.98px) {
    .hero-section { min-height: 720px; padding: 125px 0 86px; background-position: 55% center; }
    .hero-section .display-3 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
    .hero-section .btn { margin: .35rem !important; }
    .about-story, .president-feature { grid-template-columns: 1fr; }
    .president-copy { text-align: center; }
    .leader-contact-links { justify-content: center; }
    .members-search { flex-wrap: wrap; border-radius: 20px; }
    .members-search .form-control, .members-search .form-select { flex: 1 1 100%; max-width: none; min-height: 44px; }
    .members-search > i { display: none; }
    .members-search .btn { width: 100%; }
    .members-table-heading { align-items: flex-start; flex-direction: column; }
    .members-table { display: block; }
    .members-table thead { display: none; }
    .members-table tbody { display: grid; gap: .7rem; padding: .75rem; }
    .members-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; padding: .35rem .8rem; border: 1px solid #e7eee7; border-radius: 14px; }
    .members-table tbody td { display: grid; gap: .2rem; padding: .55rem .25rem; border: 0; font-size: .88rem; }
    .members-table tbody td::before { color: #7b897e; content: attr(data-label); font-size: .67rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
    .members-table tbody .members-empty { grid-column: 1 / -1; text-align: center; }
    .credential-details { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .contact-form-panel .join-panel-body { padding: 1.15rem; }
    .credential-card-top { align-items: flex-start; flex-direction: column; }
    .credential-photo, .credential-photo-placeholder { flex-basis: 82px; width: 82px; height: 82px; }
}
.public-payment-page { display: flow-root; }
.public-payment-shell { max-width: 850px; margin-top: 3rem; margin-bottom: 3rem; }
.public-payment-card { padding: clamp(1.4rem,4vw,2.6rem); border: 1px solid #e1e9e1; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(20,74,42,.09); }
.public-payment-card .card-body { padding: 0 !important; }
.public-payment-card h1 { color: #174e39; }
.public-payment-card .form-label { color: #30483a; font-weight: 700; }
.public-payment-card .form-control, .public-payment-card .form-select { min-height: 48px; border-color: #d2ded5; border-radius: 10px; }
.public-payment-card .form-control:focus, .public-payment-card .form-select:focus { border-color: #27845e; box-shadow: 0 0 0 .22rem rgba(39,132,94,.14); }
.public-payment-card .alert { border: 0; border-radius: 14px; }
.payment-success-card { display: grid; justify-items: center; padding: clamp(2rem,6vw,4rem); text-align: center; }
.payment-success-card .payment-success-icon { display: grid; width: 76px; height: 76px; margin-bottom: 1rem; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#258352,#4b9c68); box-shadow: 0 12px 28px rgba(37,131,82,.22); font-size: 1.8rem; }
.payment-success-card h1 { margin-bottom: .7rem; }
.payment-success-card p { max-width: 580px; color: #5d7064; }
[data-theme="dark"] .public-payment-card { border-color: rgba(255,255,255,.1); color: #e8efe8; background: #19251c; }
[data-theme="dark"] .public-payment-card h1, [data-theme="dark"] .public-payment-card .form-label { color: #d7e8d9; }
[data-theme="dark"] .public-payment-card .form-control, [data-theme="dark"] .public-payment-card .form-select { border-color: #3d5142; color: #e8efe8; background-color: #202d23; }
@media (max-width: 575.98px) {
    .public-payment-shell { margin-top: 1.5rem; margin-bottom: 1.5rem; }
}


