/* =========================================
   1. GLOBAL RESET & BRAND COLORS
   ========================================= */
:root {
    --primary-green: #2d5a5e; 
    --emerald-green: #0a8a5f; 
    --leaf-green: #78a442;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Cairo', sans-serif; 
    direction: ltr; 
    text-align: left; 
    background: #f9fbfb; 
    overflow-x: hidden; 
    line-height: 1.6;
}

.container { 
    width: 92%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

ul, li { list-style: none !important; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header { 
    background: var(--white); 
    padding: 12px 0; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 2000; 
}

.header-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
}

.logo-area { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    flex-shrink: 0; 
}

.main-logo { height: 50px; width: auto; }
.site-name { font-size: 22px; font-weight: 800; color: var(--primary-green); }

.nav-wrapper { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-grow: 1; 
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
}

.nav-links li a { 
    font-weight: 700; 
    font-size: 17px; 
    color: #444; 
    white-space: nowrap; 
}

.nav-links li a.active { color: var(--emerald-green); }
.nav-links li a:hover { color: var(--leaf-green); }

/* DROPDOWN STYLES */
.dropdown { position: relative; }
.dropbtn {
    background-color: transparent; 
    color: #444; 
    padding: 10px 18px;
    font-size: 17px; 
    font-weight: 700; 
    border: none; 
    border-radius: 8px;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-family: 'Cairo', sans-serif;
}

@media (min-width: 1251px) {
    .dropdown:hover .dropbtn { 
        background-color: var(--emerald-green); 
        color: white; 
    }
    .dropdown:hover .dropdown-content { display: block; }
}

.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    background-color: white; 
    min-width: 230px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
    border-radius: 0 0 8px 8px;
    padding: 10px 0; 
    z-index: 9999;
}

.dropdown-content li a { 
    padding: 12px 20px !important; 
    display: block; 
    border-bottom: 1px solid #f5f5f5; 
    color: #444 !important; 
}

.dropdown-content li a:hover { 
    background: #f8fbfb; 
    color: var(--leaf-green) !important; 
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0; 
}

.btn-lang-outline { 
    border: 2px solid var(--primary-green); 
    padding: 6px 18px; 
    border-radius: 20px; 
    color: var(--primary-green); 
    font-weight: 700; 
    font-size: 14px; 
}

.menu-toggle { 
    display: none; 
    font-size: 24px; 
    cursor: pointer; 
    color: var(--primary-green); 
}

/* =========================================
   3. POLICY GRID CONTENT
   ========================================= */
.policy-container { padding: 60px 0; }
.policy-intro { text-align: center; margin-bottom: 50px; }
.policy-intro h1 { 
    font-size: 36px; 
    color: var(--primary-green); 
    margin-bottom: 15px; 
    font-weight: 800; 
}
.policy-intro p { max-width: 800px; margin: 0 auto; color: #666; }

.policy-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 25px; 
}

.policy-card { 
    background: #fff; 
    padding: 35px; 
    border-radius: 12px; 
    border: 1px solid #eee; 
    transition: var(--transition); 
}

.policy-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--emerald-green); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.card-icon { 
    font-size: 32px; 
    color: var(--emerald-green); 
    margin-bottom: 20px; 
}

.policy-card h3 { 
    color: var(--primary-green); 
    font-size: 20px; 
    margin-bottom: 15px; 
    font-weight: 700; 
}

.policy-card ul li { 
    font-size: 15px; 
    color: #666; 
    margin-bottom: 8px; 
    position: relative; 
    padding-left: 20px; 
}

.policy-card ul li::before { 
    content: '•'; 
    position: absolute; 
    left: 0; 
    color: var(--emerald-green); 
    font-weight: bold; 
}

/* =========================================
   4. FOOTER
   ========================================= */
.main-footer { 
    background: var(--primary-green); 
    color: white; 
    padding: 60px 0 20px; 
    margin-top: 80px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 40px; 
}

.footer-logo { 
    height: 60px; 
    filter: brightness(0) invert(1); 
    margin-bottom: 25px; 
}

.org-details { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    font-size: 14px; 
    opacity: 0.9; 
}

.footer-links h3, .footer-social h3 { 
    font-size: 18px; 
    margin-bottom: 25px; 
    position: relative; 
    padding-bottom: 10px; 
}

.footer-links h3::after, .footer-social h3::after { 
    content: ''; 
    position: absolute; 
    left: 0; 
    bottom: 0; 
    width: 40px; 
    height: 2px; 
    background: var(--emerald-green); 
}

.footer-links ul li { margin-bottom: 12px; }
.footer-links ul li a { 
    color: #bdc3c7; 
    text-decoration: none; 
    font-size: 15px; 
}

.social-icons { display: flex; gap: 15px; }
.social-icons a { color: white; font-size: 20px; opacity: 0.8; }

/* =========================================
   5. RESPONSIVE (MOBILE & TABLET)
   ========================================= */
@media (max-width: 992px) {
    /* Show the hamburger menu icon */
    .menu-toggle { 
        display: block !important; 
        z-index: 2100;
    }

    /* Center the menu overlay */
    .nav-wrapper {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 40px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        text-align: center;
        align-items: center;
    }

    /* Triggered by JS classList.toggle('active') */
    .nav-wrapper.active {
        display: flex !important;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 25px;
        align-items: center; 
    }

    .nav-links li a {
        font-size: 18px;
        width: 100%;
        display: block;
    }

    .dropbtn {
        justify-content: center;
        width: 100%;
        font-size: 18px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        width: 100%;
        padding: 10px 0;
        background-color: #fcfdfd;
    }

    /* Triggered by JS classList.toggle('is-open') */
    .dropdown.is-open .dropdown-content {
        display: block !important;
    }

    .dropdown-content li a {
        padding: 10px 0 !important;
        font-size: 16px;
    }

    .nav-links li a:hover, 
    .nav-links li a.active {
        color: var(--emerald-green) !important;
    }

    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links h3::after, .footer-social h3::after { 
        left: 50%; 
        transform: translateX(-50%); 
    }
    .social-icons { justify-content: center; }
}