/* ===================================================================
   AFJ-DZ — LIGHT PROFESSIONAL DESIGN SYSTEM
   Clean white/cream + emerald green accent
   Pixel-perfect match to visual reference
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --green-900: #064e3b;
    --green-800: #065f46;
    --green-700: #047857;
    --green-600: #059669;
    --green-500: #10b981;
    --green-400: #34d399;
    --green-100: #d1fae5;
    --green-50: #ecfdf5;

    --bg-body: #f0f5f1;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-topbar: var(--green-800);

    --text-dark: #1e293b;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;

    --border-light: #e2e8f0;
    --border-card: rgba(0,0,0,0.06);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --font-main: 'Cairo', 'Tajawal', sans-serif;
    --transition: all 0.25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; border: none; outline: none; }

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 1.25rem; }

/* ===================================================================
   BOTTOM INFORMATION BAR (Placed cleanly above Footer)
   =================================================================== */
.bottom-info-bar {
    background: var(--green-900);
    color: var(--text-white);
    font-size: 0.85rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
}
.bottom-info-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.top-social { display: flex; gap: 0.6rem; align-items: center; }
.top-social a {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: var(--transition);
}
.top-social a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

.top-contact { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.top-contact-item {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: rgba(255,255,255,0.95);
    font-size: 0.88rem; font-weight: 500;
}
.top-contact-item svg { color: var(--green-400); flex-shrink: 0; }

/* STATS COUNTER STRIP */
.stats-strip {
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 100%);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    color: #fff;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}
.stats-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}
.stat-item .count {
    font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 0.35rem; color: #fff;
}
.stat-item .label {
    font-size: 0.9rem; font-weight: 600; opacity: 0.9;
}

/* FAQ ACCORDION */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: #fff; border: 1px solid var(--border-light);
    border-radius: var(--radius-md); overflow: hidden; transition: var(--transition);
}
.faq-question {
    padding: 1.1rem 1.25rem; font-weight: 800; font-size: 1rem; color: var(--text-dark);
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
    background: #fff; user-select: none;
}
.faq-question:hover { color: var(--green-600); }
.faq-answer {
    padding: 0 1.25rem 1.1rem; color: var(--text-body); font-size: 0.92rem;
    line-height: 1.7; display: none; border-top: 1px solid rgba(0,0,0,0.04);
}
.faq-item.active .faq-answer { display: block; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--green-600); }
.faq-icon { transition: transform 0.25s ease; width: 20px; height: 20px; }

/* PARTNERS SECTION */
.partners-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem; align-items: center; text-align: center; padding: 1.5rem 0;
}
.partner-logo {
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
    padding: 1rem; font-weight: 800; color: var(--text-muted); font-size: 0.9rem;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.partner-logo:hover { color: var(--green-700); border-color: var(--green-300); transform: translateY(-3px); }

/* ===================================================================
   NAVBAR (White/Light)
   =================================================================== */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 0.6rem 0;
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 0.65rem; }
.nav-logo {
    width: 46px; height: 46px; border-radius: 50%;
    border: 2px solid var(--green-600);
    object-fit: cover;
}
.nav-title {
    font-size: 1.2rem; font-weight: 800;
    color: var(--text-dark);
}
.nav-links { display: flex; list-style: none; gap: 1.6rem; align-items: center; }
.nav-links a {
    font-size: 0.92rem; font-weight: 600;
    color: var(--text-body); padding-bottom: 0.15rem;
    position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-600); }
.nav-links a.active::after {
    content: ''; position: absolute; bottom: -6px; right: 0; left: 0;
    height: 2.5px; background: var(--green-600); border-radius: 2px;
}
.mobile-menu-btn {
    display: none; background: var(--green-50); border-radius: var(--radius-sm);
    padding: 0.4rem; color: var(--green-700); cursor: pointer;
}

/* ===================================================================
   HERO SECTION (Light Theme with Algerian Flag & Cityscape backdrop)
   =================================================================== */
.hero {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 0%, #f4fbf7 100%);
    padding: 3.5rem 0 2.5rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../assets/images/hero_bg.jpg') right center / cover no-repeat;
    opacity: 0.18;
    pointer-events: none;
}
.hero-inner {
    display: grid; grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem; align-items: center; position: relative; z-index: 1;
}
.hero-text { color: var(--text-dark); }
.hero-text h1 {
    font-size: 2.9rem; font-weight: 900; line-height: 1.15;
    margin-bottom: 0.6rem;
    color: #134e4a;
}
.hero-text .subtitle {
    font-size: 1.25rem; font-weight: 700;
    color: #334155; margin-bottom: 0.6rem;
}
.hero-text .desc {
    font-size: 1rem; color: #64748b;
    line-height: 1.7; margin-bottom: 1.8rem; max-width: 480px;
}
.hero-btns { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn-primary {
    background: #059669; color: #fff;
    font-weight: 700; font-size: 0.95rem;
    padding: 0.65rem 1.6rem; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; gap: 0.4rem;
    box-shadow: 0 4px 14px rgba(5,150,105,0.25);
    cursor: pointer; transition: var(--transition);
}
.btn-primary:hover { background: #047857; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(5,150,105,0.35); }
.btn-outline {
    background: #ffffff; color: #1e293b;
    border: 1.5px solid #cbd5e1;
    font-weight: 700; font-size: 0.95rem;
    padding: 0.65rem 1.6rem; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; gap: 0.4rem;
    cursor: pointer; transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: #f8fafc; border-color: #94a3b8; transform: translateY(-2px); }

.hero-emblem { display: flex; justify-content: center; align-items: center; }
.hero-emblem img {
    width: 280px; height: 280px; border-radius: 50%;
    object-fit: cover;
    border: 6px solid #ffffff;
    box-shadow: 0 12px 36px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ===================================================================
   QUICK CARDS
   =================================================================== */
.quick-section { padding: 2rem 0 1.5rem; }
.quick-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.q-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.q-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-400);
}
.q-icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--green-50); border: 1.5px solid var(--green-100);
    display: flex; align-items: center; justify-content: center;
    color: var(--green-600);
}
.q-card h3 { font-size: 1rem; font-weight: 800; color: var(--text-dark); }
.q-card p { font-size: 0.82rem; color: var(--text-body); line-height: 1.45; }

/* ===================================================================
   DUAL SECTION: ACTIVITIES + GALLERY
   =================================================================== */
.dual-section { padding-bottom: 2rem; }
.dual-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.25rem; }

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card);
}
.panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 0.75rem; margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.panel-title { display: flex; align-items: center; gap: 0.5rem; }
.panel-title svg { color: var(--green-600); }
.panel-title span { font-size: 1.15rem; font-weight: 800; color: var(--text-dark); }
.panel-link {
    font-size: 0.78rem; font-weight: 700; color: var(--green-600);
    background: var(--green-50); border: 1px solid var(--green-100);
    padding: 0.25rem 0.7rem; border-radius: var(--radius-sm);
    transition: var(--transition);
}
.panel-link:hover { background: var(--green-600); color: #fff; }

/* Activity Mini Cards */
.acts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.act-card {
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius-md); overflow: hidden;
    display: flex; flex-direction: column;
    transition: var(--transition);
}
.act-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--green-400); }
.act-img { position: relative; height: 105px; }
.act-img img { width: 100%; height: 100%; object-fit: cover; }
.act-badge {
    position: absolute; bottom: 6px; right: 6px;
    background: var(--green-600); color: #fff;
    padding: 0.15rem 0.5rem; border-radius: 6px;
    text-align: center; line-height: 1; font-weight: 800;
}
.act-badge .d { font-size: 1rem; display: block; }
.act-badge .m { font-size: 0.62rem; display: block; }
.act-body { padding: 0.65rem; display: flex; flex-direction: column; gap: 0.3rem; flex-grow: 1; }
.act-body h4 { font-size: 0.82rem; font-weight: 800; color: var(--text-dark); line-height: 1.25; }
.act-meta {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.7rem; color: var(--text-muted);
}
.act-meta svg { color: var(--green-500); flex-shrink: 0; }
.act-tag {
    align-self: flex-start; margin-top: auto;
    font-size: 0.65rem; font-weight: 700;
    padding: 0.1rem 0.45rem; border-radius: var(--radius-full); color: #fff;
}
.tag-env { background: #22c55e; } .tag-train, .tag-training { background: #3b82f6; }
.tag-sport { background: #f97316; } .tag-forum, .tag-forums { background: #a855f7; }
.tag-culture { background: #ec4899; } .tag-volunteer { background: #14b8a6; }

/* Gallery Mini Grid */
.gal-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 95px; gap: 0.5rem;
}
.gal-thumb {
    border-radius: var(--radius-sm); overflow: hidden;
    cursor: pointer; border: 1px solid var(--border-light); position: relative;
}
.gal-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gal-thumb:hover img { transform: scale(1.08); }

/* ===================================================================
   NEWSLETTER BAR
   =================================================================== */
.nl-bar {
    background: linear-gradient(135deg, var(--green-800), var(--green-600));
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    margin-bottom: 1.5rem; color: #fff;
}
.nl-info { display: flex; align-items: center; gap: 1rem; }
.nl-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.nl-info h3 { font-size: 1.1rem; font-weight: 800; }
.nl-info p { font-size: 0.82rem; color: rgba(255,255,255,0.8); }
.nl-form {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md); padding: 0.25rem 0.35rem 0.25rem 0.75rem;
    width: 100%; max-width: 400px; backdrop-filter: blur(4px);
}
.nl-form input {
    flex-grow: 1; background: transparent; padding: 0.4rem 0.5rem;
    color: #fff; font-size: 0.88rem;
}
.nl-form input::placeholder { color: rgba(255,255,255,0.6); }
.nl-form button {
    background: #fff; color: var(--green-700); font-weight: 700;
    font-size: 0.85rem; padding: 0.5rem 1.2rem; border-radius: var(--radius-sm);
    cursor: pointer; white-space: nowrap; transition: var(--transition);
}
.nl-form button:hover { background: var(--green-50); }
.nl-social { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.nl-social span { font-size: 0.78rem; font-weight: 700; color: rgba(255,255,255,0.8); }
.nl-social-row { display: flex; gap: 0.5rem; }
.s-btn {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: var(--transition);
}
.s-btn:hover { transform: translateY(-2px); }
.s-fb { background: #3b5998; } .s-ig { background: #c13584; } .s-yt { background: #ff0000; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
    text-align: center; padding: 1.25rem 0;
    color: var(--text-body); font-size: 0.85rem;
    border-top: 1px solid var(--border-light);
}
.footer span { color: var(--green-600); }

/* ===================================================================
   PAGE CONTENT (Inner Pages)
   =================================================================== */
.page-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
}
.page-title {
    font-size: 2rem; font-weight: 900;
    color: var(--text-dark); margin-bottom: 0.5rem;
}
.page-subtitle {
    color: var(--text-body); font-size: 1rem; margin-bottom: 1.5rem;
}

/* Forms */
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.form-label { font-size: 0.88rem; font-weight: 700; color: var(--text-dark); }
.form-control {
    background: #f8fafc; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); padding: 0.65rem 0.85rem;
    color: var(--text-dark); font-size: 0.9rem; transition: var(--transition);
}
.form-control:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Modal */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px); z-index: 5000;
    display: flex; align-items: center; justify-content: center; padding: 1rem;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-backdrop.active { opacity: 1; pointer-events: auto; }
.modal-box {
    background: var(--bg-white); border-radius: var(--radius-xl);
    padding: 2rem; width: 100%; max-width: 480px;
    box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
    position: absolute; top: 1rem; left: 1rem;
    background: #f1f5f9; border-radius: 50%; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-body); cursor: pointer;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
        border-bottom: 2px solid var(--green-600);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        text-align: center;
    }
    .nav-links.open { display: flex; }
    .mobile-menu-btn { display: flex; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-text .desc { margin-inline: auto; }
    .hero-btns { justify-content: center; }
    .hero-emblem img { width: 180px; height: 180px; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .dual-grid { grid-template-columns: 1fr; }
    .acts-grid { grid-template-columns: repeat(2, 1fr); }
    .nl-bar { flex-direction: column; align-items: stretch; text-align: center; }
    .nl-form { max-width: 100%; }
    .nl-social { align-items: center; }
}
@media (max-width: 640px) {
    .top-bar-inner { flex-direction: column; gap: 0.5rem; }
    .hero-text h1 { font-size: 2rem; }
    .quick-grid { grid-template-columns: 1fr; }
    .acts-grid { grid-template-columns: 1fr; }
    .gal-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-2 { grid-template-columns: 1fr; }
}
