/* ================= Phase 2: Advanced Animations ================= */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulse-growth {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ================= Phase 2: Ticker ================= */
.news-ticker {
    background: var(--primary-dark);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    z-index: 999;
    margin-top: var(--nav-height);
    /* Ensure it sits below fixed nav */
    font-size: 0.9rem;
    white-space: nowrap;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 25s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 20px;
}

.ticker-separator {
    color: var(--accent-gold);
    margin: 0 10px;
}


/* ================= Re-add Basic Variables & Reset (from previous Phase) ================= */
:root {
    --primary-color: #7c8c4f;
    --primary-dark: #5e6b3b;
    --secondary-color: #5c5e60;
    --bg-light: #f9fbf7;
    --white: #ffffff;
    --accent-gold: #d4af37;

    --font-main: 'Tajawal', sans-serif;
    --border-radius-soft: 24px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--secondary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* ================= Updated Navbar ================= */
/* (Keeping basic navbar styles from existing setup, just updated logic is handled in CSS/JS) */
.navbar {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 100px;
    /* 200% of original 50px */
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    position: relative;
    /* Context for absolute box */
    height: 100%;
}

.logo a {
    display: flex;
    /* Ensure link takes space */
    height: 100%;
    align-items: flex-start;
    /* Align to top */
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    color: var(--secondary-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* ================= Phase 2: Parallax Hero ================= */
.hero {
    height: 90vh;
    /* Adjustment */
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(94, 107, 59, 0.85), rgba(44, 46, 48, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    /* Boosted z-index for buttons */
    max-width: 700px;
}

.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 5;
    /* Lower than content */
    line-height: 0;
}

.hero-shape path {
    fill: #f9fbf7;
    /* Matches next section bg */
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
}

/* Parallax Layers */
.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.layer-1 i {
    position: absolute;
    top: 20%;
    right: 10%;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.layer-2 i {
    position: absolute;
    bottom: 30%;
    left: 5%;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite reverse;
}

/* Buttons with Organic Growth */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary,
.btn-cta {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(124, 140, 79, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-right: 15px;
}

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

/* ================= Phase 2: Restructured Programs Hub ================= */
.programs-hub {
    padding: 80px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

.section-desc {
    color: #777;
    max-width: 600px;
    margin: 0 auto;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-column {
    background: var(--white);
    border-radius: var(--border-radius-soft);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.program-column:hover {
    transform: translateY(-5px);
}

.program-header {
    text-align: center;
    margin-bottom: 25px;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(124, 140, 79, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-color);
    font-size: 2rem;
}

.program-column h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
}

.program-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #555;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ================= Phase 2: Interactive Impact Cards (New) ================= */
.map-section {
    padding: 100px 0;
    min-height: auto;
    background: linear-gradient(to bottom, #f9fbf7, #e8f5e9);
}

.map-header h1 {
    color: var(--primary-dark);
    font-size: 3rem;
    margin-bottom: 15px;
}

.map-header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 50px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.impact-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s;
}

.impact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(124, 140, 79, 0.15);
}

.impact-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(124, 140, 79, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.impact-card:hover .card-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotateY(180deg);
}

.impact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
    font-weight: 800;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px dashed #e0e0e0;
}

.card-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-stats .value {
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--accent-gold);
    line-height: 1.2;
}

.card-stats .label {
    font-size: 0.8rem;
    color: #999;
    font-weight: 600;
}

.card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
}

/* ================= Media News Block ================= */
.latest-news-block {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-right: 4px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-label {
    align-self: flex-start;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.news-updates {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.news-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-text {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.news-date {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    margin-right: 15px;
}

.more-news-btn {
    align-self: flex-end;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ================= Phase 2: Media Center (Existing) ================= */
.media-center {
    padding: 80px 0;
    background: #f4f6fa;
}

.media-filters {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.media-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    cursor: pointer;
}

.media-item:hover {
    transform: translateY(-5px);
}

.media-thumb {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.media-item:hover .media-thumb img {
    transform: scale(1.1);
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.media-info {
    padding: 20px;
}

.media-tag {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.media-info h4 {
    font-size: 1.1rem;
    color: #333;
}

/* ================= Phase 2: Governance ================= */
.governance {
    padding: 80px 0;
    background: #fff;
}

.governance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.doc-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f9fbf7;
    border: 1px solid #eee;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.doc-card:hover {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.doc-card i {
    font-size: 2.5rem;
    color: #aaa;
    margin-bottom: 15px;
    transition: 0.3s;
}

.doc-card:hover i {
    color: var(--primary-color);
}

.doc-card span {
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    display: block;
}

.download-icon {
    font-size: 1rem !important;
    color: var(--primary-color) !important;
    opacity: 0;
    transform: translateY(10px);
}

.doc-card:hover .download-icon {
    opacity: 1;
    transform: translateY(0);
}

/* ================= Phase 2: Service Request Portal ================= */
.request-help {
    padding: 60px 0 100px;
    background: var(--bg-light);
}

.request-box {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--accent-gold);
}

.request-content h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.request-content p {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.help-form .form-group {
    margin-bottom: 20px;
}

.help-form .form-row {
    display: flex;
    gap: 20px;
}

.help-form .form-row .form-group {
    flex: 1;
}

.help-form input,
.help-form select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

.help-form input:focus,
.help-form select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 140, 79, 0.1);
}

.help-form .btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .help-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .navbar {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: white;
        width: 100%;
        height: 90vh;
        padding: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .map-tooltip {
        position: relative;
        width: 100%;
        top: 0;
        right: 0;
        transform: none;
        text-align: center;
        margin-top: 20px;
        box-shadow: none;
        border: 1px solid #eee;
    }

    .news-ticker {
        margin-top: var(--nav-height);
    }
}

/* ================= Professional Footer Redesign ================= */
.main-footer {
    background: #1e2022;
    color: #b0b3b8;
    padding: 0;
    position: relative;
    font-size: 0.95rem;
    overflow: hidden;
    margin-top: 50px;
}

/* Footer Content Wrapper Fix */
.footer-content-wrapper {
    background: transparent;
    padding: 100px 0 60px;
    position: relative;
    z-index: 2;
}

/* Footer Wave Divider */
.footer-wave {
    display: none;
    /* Removed as per request
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    */
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    fill: var(--bg-light);
}

/* Footer Content */
.footer-content-wrapper {
    padding: 100px 0 60px;
    position: relative;
    z-index: 2;
    background: transparent;
    /* Fix white background issue */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 50px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Brand Column */
.footer-brand p {
    margin-top: 20px;
    line-height: 1.8;
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

/* Social Links */
.social-links-pro {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.social-btn {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-btn.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.social-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

/* Quick Links */
.footer-links ul li {
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-links ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b0b3b8;
    transition: 0.3s;
}

.footer-links ul li a i {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-right: 8px;
}

.footer-links ul li a:hover i {
    color: var(--white);
}

/* Contact Info */
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-list .icon-wrapper {
    min-width: 40px;
    height: 40px;
    background: rgba(124, 140, 79, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.contact-list span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.contact-list p {
    color: var(--white);
    font-weight: 500;
    margin: 0;
}

/* Newsletter */
.footer-newsletter p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-form .input-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    transition: 0.3s;
}

.newsletter-form .input-group:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form input {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: white;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    border: none;
    width: 50px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-form button:hover {
    background: #fff;
    color: var(--primary-color);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #888;
}

.trust-badge i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Copyright Bar */
.footer-bottom-pro {
    background: #151618;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links-inline a {
    color: #888;
    transition: 0.3s;
}

.footer-links-inline a:hover {
    color: var(--primary-color);
}

.footer-links-inline .separator {
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links-inline {
        justify-content: center;
        font-size: 0.85rem;
    }
}

/* ================= About Us Page Styles ================= */

/* Page Hero */
.page-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1593113598332-cd288d649433?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    margin-bottom: 0;
}

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

/* Pillars (Vision & Mission) */
.pillars {
    padding: 80px 0;
    background: var(--white);
}

.pillars-grid {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.pillar-card {
    flex: 1;
    min-width: 300px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-soft);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid rgba(124, 140, 79, 0.1);
}

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

.pillar-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.pillar-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.pillar-card p {
    font-size: 1.1rem;
    color: #666;
}

/* History Timeline */
.history {
    padding: 80px 0;
    background: var(--bg-light);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Line */
/* Vertical Line (Right Aligned) */
/* Vertical Line (Mobile - Right Aligned) */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    right: 30px;
    /* Default for mobile */
    left: auto;
    border-radius: 2px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.timeline-item {
    position: relative;
    background: inherit;
    width: 100%;
    padding-right: 80px;
    padding-left: 0;
    margin-bottom: 40px;
    text-align: right;
}

.timeline-item .timeline-dot {
    right: 22px;
    /* aligns with line at right:30px */
    left: auto;
    top: 5px;
    z-index: 1;
}

/* Desktop Centered Timeline */
@media (min-width: 768px) {
    .timeline::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        /* Perfectly center the 4px line */
    }

    .timeline-item {
        width: 50%;
        /* padding: 0 40px; */
        margin-bottom: 0;
        clear: both;
        /* Ensure they don't float weirdly if mixed */
    }

    /* Odd items (Right side in RTL) */
    /* In RTL, standard flow starts from Right. So width 50% sits on Right. */
    /* Re-do without floats for better vertical stacking */
    .timeline-item:nth-child(odd) {
        float: none;
        margin-left: 50%;
        /* Pushes to Right Side */
        margin-right: 0;
        text-align: left;
        /* Text aligns towards Center (Left) */
        padding-left: 40px;
        /* Space from Center Line */
        padding-right: 0;
    }

    /* Even items (Left side in RTL) */
    /* To put it on Left, we can float left or use margin */
    .timeline-item:nth-child(even) {
        float: none;
        margin-right: 50%;
        /* Pushes to Left Side */
        margin-left: 0;
        text-align: right;
        /* Text aligns towards Center (Right) */
        padding-right: 40px;
        /* Space from Center Line */
        padding-left: 0;
    }

    /* Dots Positioning */
    .timeline-item:nth-child(odd) .timeline-dot {
        right: auto;
        left: -10px;
        /* Center Line is on Left edge of this item */
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: auto;
        right: -10px;
        /* Center Line is on Right edge of this item */
    }

    /* Content Borders: Accent Line facing the center */
    .timeline-item:nth-child(odd) .timeline-content {
        border-left: 3px solid var(--primary-color);
        border-right: none;
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-right: 3px solid var(--primary-color);
        border-left: none;
    }
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 25px;
    z-index: 10;
    transition: all 0.3s;
}

.timeline-date {
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Reach */
.reach {
    padding: 80px 0;
    background: var(--primary-dark);
    color: white;
    text-align: center;
}

.reach .section-title {
    color: white;
}

.reach .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.reach-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.reach-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.reach-item:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* Team */
.team {
    padding: 80px 0;
}

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

.team-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: 0.3s;
    border: 1px solid #eee;
}

.team-card:hover {
    transform: translateY(-10px);
}

.member-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.team-card:hover .member-img img {
    transform: scale(1.1);
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.member-info .role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}


/* ================= Mini Hero (Shared) ================= */
.hero-mini {
    height: 50vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/2.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-mini h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* ================= Impact Slider (New) ================= */
.impact-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.impact-slider-container {
    overflow: hidden;
    width: 100%;
}

.impact-slider-track {
    display: flex;
    /* transition: transform 0.5s ease-in-out; */
    /* JS animation is safer for simple scroll */
    gap: 20px;
    scroll-behavior: smooth;
    /* Native smooth scroll */
    overflow-x: auto;
    /* Allow native scroll */
    scrollbar-width: none;
    /* Hide scrollbar for aesthetics */
    padding: 10px 0;
    /* Space for shadows */
}

/* Hide scrollbar for Chrome/Safari */
.impact-slider-track::-webkit-scrollbar {
    display: none;
}

.impact-slider-track .impact-card {
    /* Fixed width for 3 items: 100% / 3 minus gap adjustment */
    /* width = (100% - (2 * 20px))/3 = (100% - 40px)/3 */
    min-width: calc((100% - 40px) / 3);
    width: calc((100% - 40px) / 3);
    flex: 0 0 auto;
    /* Don't shrink */
}

/* Reset for Impact Page Grid */
.impact-grid .impact-card {
    min-width: 0;
    width: 100%;
}

/* Responsive adjustments for Slider ONLY */
@media (max-width: 992px) {
    .impact-slider-track .impact-card {
        min-width: calc(50% - 10px);
        /* 2 items */
        width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .impact-slider-track .impact-card {
        min-width: 100%;
        width: 100%;
        /* 1 item */
    }
}

.slider-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.slider-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ================= Request Help (Premium Gold Design) ================= */
.request-help {
    padding: 80px 0;
    background: #f9f9f9;
    /* Light background to make white card pop */
}

.request-box {
    background: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 6px solid var(--accent-gold);
    /* The Gold Strip */
}

/* Optional: Additional Gold Curve Effect (if needed, but strip is cleaner) */
/* .request-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-gold);
} */

.request-content h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.request-content p {
    color: #777;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.request-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: right;
    /* Inputs need to be right aligned for Arabic */
}

.request-form .form-group {
    margin-bottom: 20px;
}

.request-form input,
.request-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* Slightly rounded */
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    text-align: right;
    /* Ensure text starts from right */
}

.request-form input:focus,
.request-form select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 140, 79, 0.1);
}

.request-form .btn-primary {
    background: var(--primary-color);
    color: #fff;
    width: 100%;
    /* Full width button */
    padding: 14px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    margin-top: 10px;
}

.request-form .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ================= News Details Page Styles ================= */
.news-details-section {
    padding: 80px 0;
    direction: rtl;
    text-align: right;
}

.news-article {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 0 0 50px;
}

.news-hero-image-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-hero-image-wrapper:hover .news-hero-image {
    transform: scale(1.05);
}

.news-hero-image-wrapper::after {
    content: '\f00e';
    /* fa-search-plus */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0;
    transition: 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-hero-image-wrapper:hover::after {
    opacity: 1;
}

.news-meta {
    display: flex;
    gap: 20px;
    color: #888;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.news-meta span i {
    color: var(--primary-color);
    margin-left: 8px;
}

.news-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 30px;
    line-height: 1.3;
}

.news-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.news-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 30px 0 15px;
}

/* ================= Lightbox / Popup Styles ================= */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 900px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
    text-align: center;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 20px;
    font-weight: 700;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-gold);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


.back-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.back-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}


.logo-box {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo-box img {
    height: 90px;
    width: auto;
    display: block;
}

.logo:hover .logo-box {
    transform: translateY(-5px);
}


.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
}

.whatsapp-pulse {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}