* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #55834D;    /* Olive Green */
    --secondary-color: #FC8C4E;  /* Coral Orange */
    --accent-color: #FFB704;     /* Yellow */
    --sage-green: #76BBA4;       /* Sage Green */
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER & HERO ============ */

.site-header {
    position: relative;
    background: radial-gradient(circle at top, rgba(255,255,255,0.1), rgba(0,0,0,0.6)),
                linear-gradient(135deg, #1d3020, #304b32);
    color: #fff;
    padding-bottom: 60px;
    overflow: hidden;
}

/* If you ever add a background video <video class="header-video"> it will still work */
.header-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.35;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top, rgba(0,0,0,0.35), rgba(0,0,0,0.75));
    z-index: 2;
}

/* Top bar: logo + nav + language + donate */
.header-bar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0 10px;
}

.logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.35));
}

/* Main navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.95rem;
}

.main-nav a {
    color: #f3f3f3;
    text-decoration: none;
    padding: 4px 0;
    position: relative;
    transition: color 0.2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.25s;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Right side: language + donate */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language switcher now inline, not fixed */
.lang-switcher {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
}

.lang-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    color: #f3f3f3;
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.lang-btn.active,
.lang-btn:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* Generic button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 9px 22px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #1a1a1a;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.3);
}

/* Hero under the bar */
.hero {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 0 10px;
}

.hero-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 10px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.7);
}

.tagline {
    font-size: 1.05rem;
    opacity: 0.95;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    max-width: 580px;
    margin: 0 auto 18px;
}

.hero-cta {
    margin-top: 8px;
}

/* ============ SECTIONS ============ */

section {
    padding: 70px 0;
}

.section {
    padding: 70px 0;
}

.mission {
    background: var(--bg-light);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.mission-text h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 20px;
}

.mission-text p {
    color: var(--text-light);
    font-size: 0.98rem;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.stat-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

/* Programs */

.programs h2,
.donation h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2rem;
}

.programs .container > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.98rem;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.program-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s transform, 0.25s box-shadow;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.program-icon {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.program-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.program-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.learn-more-link {
    margin-top: auto;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.learn-more-link::after {
    content: '›';
    font-size: 1rem;
    transition: transform 0.2s;
}

.learn-more-link:hover::after {
    transform: translateX(3px);
}

/* ============ DONATION ============ */

.donation {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.donation h2 {
    color: white;
}

.donation p {
    max-width: 520px;
    margin: 0 auto;
}

.donation-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.donation-amount-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
}

.donation-amount-wrapper label {
    font-size: 0.95rem;
    opacity: 0.9;
}

#donation_amount {
    padding: 12px;
    border-radius: 10px;
    border: none;
    text-align: center;
    width: 200px;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: bold;
    outline: none;
}

#donation_amount:focus {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.5);
    background: #fff9e6;
}

.donate-btn {
    padding: 12px 40px;
    border-radius: 30px;
    border: none;
    background: white;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.donate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.payment-info {
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.95;
}

/* Logos */
.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 36px;
    align-items: center;
}

.payment-logo {
    height: 35px;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    transition: 0.3s;
}

.payment-logo:hover {
    opacity: 0.8 !important;
}

img[alt="Idbank"] { height: 32px !important; }
img[alt="Idram"] { height: 28px !important; }
img[alt="ArCa"] { height: 22px !important; }
img[alt="Visa"] { height: 24px !important; margin-top: 2px; }
img[alt="Mastercard"] { height: 40px !important; }

/* ============ FOOTER ============ */

footer {
    background: #1a1a1a;
    color: #bbb;
    padding: 70px 0 30px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a,
.contact-link {
    color: #bbb;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover,
.contact-link:hover {
    color: var(--secondary-color);
}

/* Socials */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor;
}

.social-link img {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain;
    filter: brightness(0) invert(1) !important;
    border-radius: 0 !important;
    padding: 0;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #888;
}

/* ============ CONTENT PAGES ============ */

.content-page {
    padding: 80px 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.content-page h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-page p {
    margin-bottom: 15px;
}

/* ============ ANIMATIONS ============ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px) {
    .main-nav {
        display: none; /* keep it super simple for now; we can add mobile menu later */
    }

    .logo img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
    }

    .mission-stats {
        grid-template-columns: 1fr 1fr;
    }

    .social-links {
        justify-content: center;
    }

    .footer-content {
        text-align: center;
    }

    .site-header {
        padding-bottom: 50px;
    }

    .hero {
        padding-top: 24px;
    }
}

@media (max-width: 480px) {
    .mission-stats {
        grid-template-columns: 1fr;
    }

    section,
    .section {
        padding: 55px 0;
    }

    .donation-form {
        width: 100%;
    }

    #donation_amount {
        width: 70%;
        max-width: 260px;
    }
}
