:root {
    --primary-green: #205122;
    --primary-dark: #132513;
    --bg: #f5f5f5;
    --text: #1b1b1b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.alert {
    border-radius: 8px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.alert.error {
    background: #fdecea;
    color: #b32727;
    border: 1px solid #f5c6cb;
}

.alert.success {
    background: #ecf9f2;
    color: #1f5a35;
    border: 1px solid #c8e6c9;
}

.alert.info {
    background: #edf3ff;
    color: #1b3e7b;
    border: 1px solid #c5d7ff;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.site-wrapper {
    min-height: 100vh;
    background: #fff;
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.admin-sidebar {
    background: var(--primary-green);
    color: #fff;
    padding: 1.5rem;
    border-radius: 16px;
    min-height: 400px;
    position: sticky;
    top: 1.25rem;
    align-self: flex-start;
}

.admin-sidebar a {
    color: #fff;
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.admin-sidebar a.active {
    text-decoration: underline;
}

.admin-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.25rem 4rem;
}

.main-header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.main-header .brand {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.main-nav {
    display: flex;
    gap: 1.6rem;
}

.main-nav a {
    padding: 0.35rem 0.15rem;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 0.5rem;
    cursor: pointer;
    gap: 4px;
    align-items: center;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    background: #0f5a42;
    margin: 5px 0;
    border-radius: 2px;
}

.hero {
    background: var(--primary-green);
    color: #fff;
    padding: 4rem 3rem;
    border-radius: 0 0 0 60px;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-hero {
    background: #0f5a42;
    color: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.section.page-hero {
    padding: 3.5rem;
}

.section-title {
    font-size: 2.1rem;
    color: #0f5a42;
    margin: 0;
}

.section-lead {
    color: #4b5563;
    font-size: 1.05rem;
    max-width: 800px;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #0f5a42;
}

.cta-link::after {
    content: "→";
}

.feature-list {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 1.35rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    color: #0f5a42;
}

.team-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    display: block;
}

.stats-strip {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 1.5rem;
    border-radius: 18px;
    background: #f3f8f5;
    border: 1px solid #e2eee7;
}

.stats-item {
    text-align: center;
}

.stats-item strong {
    display: block;
    font-size: 2rem;
    color: #0f5a42;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 720px;
}

.hero .actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.button-primary,
.button-secondary {
    border-radius: 6px;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    border: 2px solid #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.button-primary {
    background: #fff;
    color: var(--primary-green);
}

.button-secondary {
    background: transparent;
    color: #fff;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-2px);
}

.section {
    padding: 2rem 0;
}

.section h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.section p {
    max-width: 760px;
}

.card-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 1.7rem;
    min-height: 220px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    margin-top: 0;
}

.compact-card {
    padding: 1.25rem;
}

.compact-card ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.compact-card p {
    margin-bottom: 0.5rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(15, 90, 66, 0.12);
    color: #0f5a42;
}

.image-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.image-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    background: #fff;
}

.image-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 0.75rem 1rem 1rem;
    font-size: 0.9rem;
    color: #344054;
}

#eligibility form {
    margin-top: 1.5rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    max-width: 540px;
}

#eligibility input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    font-size: 1rem;
}

#eligibility button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.6rem;
    font-size: 1rem;
    cursor: pointer;
}

#contact .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.bg-gradient-to-br {
    background: linear-gradient(135deg, #0f2a12 0%, #145a24 50%, #1f7a2e 100%);
}

.bg-green-900 {
    background-color: #064e3b;
}

.bg-green-800 {
    background-color: #065f46;
}

.bg-green-700 {
    background-color: #047857;
}

.text-white {
    color: #fff;
}

.text-green-200 {
    color: #bbf7d0;
}

.text-green-100 {
    color: #d1fae5;
}

.text-lg {
    font-size: 1.125rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-3xl {
    font-size: 1.9rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-xl {
    font-size: 1.25rem;
}

.font-semibold {
    font-weight: 600;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.25em;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.rounded-2xl {
    border-radius: 1.25rem;
}

.border {
    border: 1px solid #e5e7eb;
}

.bg-white\/70 {
    background-color: rgba(255, 255, 255, 0.7);
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.shadow-lg {
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.shadow-xl {
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.text-green-800 {
    color: #065f46;
}

.text-green-600 {
    color: #059669;
}

.text-sm {
    font-size: 0.875rem;
}

.bg-green-700 {
    background-color: #047857;
}

.bg-green-700:hover {
    background-color: #065f46;
}

.bg-green-700:focus,
.bg-green-800:focus,
.bg-green-900:focus {
    outline: none;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-800 {
    color: #111827;
}

.rounded-xl {
    border-radius: 1rem;
}

.border-green-200 {
    border-color: #a7f3d0;
}

.border-green-50 {
    border-color: #ecfdf5;
}

.bg-green-50 {
    background-color: #ecfdf5;
}

.border-red-200 {
    border-color: #fecaca;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.text-gray-900 {
    color: #111827;
}

.text-center {
    text-align: center;
}

.grid {
    display: grid;
}

.gap-8 {
    gap: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.transition {
    transition: all 0.2s ease;
}

.hover\\:bg-green-800:hover {
    background-color: #065f46;
}

.focus\\:border-green-600:focus {
    border-color: #059669;
}

.focus\\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.focus\\:ring-green-200:focus {
    box-shadow: 0 0 0 2px rgba(187, 247, 208, 0.9);
}

.lg\\:grid-cols-\\[1fr_0\\.9fr\\] {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.lg\\:grid-cols-\\[1fr_0\\.9fr\\] > * {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-\\[1fr_0\\.9fr\\] {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    }
}

.md\\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\\:grid-cols-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.lg\\:grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.md\\:col-span-2 {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .md\\:col-span-2 {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}
.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.border-green-200 {
    border-color: #a7f3d0;
}

.shadow-xl {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.section + .section {
    margin-top: 0;
    border-top: 1px solid #f0f0f0;
}

table {
    border-collapse: collapse;
}

.table-container {
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
}

.table-container th,
.table-container td {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    text-align: left;
}

details summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.filter-form select,
.filter-form input,
.filter-form button {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.4rem 0.75rem;
    font-size: 0.95rem;
}

.filter-form button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    cursor: pointer;
}

.pagination-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.pagination-controls a {
    color: var(--primary-green);
    font-weight: 600;
}

.pagination-controls a[aria-disabled="true"] {
    color: #999;
    pointer-events: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
}

.form-grid button {
    grid-column: span 2;
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.print-button {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.pdf-button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media print {
    body {
        background: #fff;
    }

    header,
    .filter-form,
    .pagination-controls,
    .print-button,
    form[action="admin.php"] button,
    .card-grid {
        display: none !important;
    }

    .table-container,
    section {
        page-break-after: avoid;
    }

    table,
    tbody,
    thead,
    tr,
    th,
    td {
        border: 1px solid #000 !important;
    }

    .section {
        padding: 0;
    }
}
@media (max-width: 800px) {
    .main-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        display: none;
        padding-top: 0.5rem;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
        align-self: flex-end;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .section.page-hero {
        padding: 2.5rem 1.75rem;
    }
}
