/* Dropdown Team */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    cursor: pointer;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    padding: 5px 10px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--light-color);
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 2000; /* فوق الصورة */
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

.search-input {
    width: 250px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    outline: none;
    font-size: 16px;
    background-color: transparent;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

.search-icon {
    font-size: 18px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: var(--primary-color);
}

.highlight {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    display: inline;
}
/* ================================== */

/* --- Top Hero Section --- */
.top-hero-section {
    background-image: url(hands.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.top-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.top-hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.top-hero-content .call-to-action {
    font-size: 68px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 100px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--light-color);
}

.hero-content {
    flex: 1;
    max-width: 55%;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 18px;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 85%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 40%;
}

.trophy-img {
    width: 370px;
    height: auto;
}

.stats-dashboard {
    display: flex;
    gap: 70px;
    margin-top: 50px;
    margin-bottom: 70px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 15px;
    color: var(--gray-text);
    margin: 0;
}

/* --- Timeline Section --- */
.timeline-section {
    padding: 80px 100px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--light-color);
}

.timeline-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-align: left;
}

.timeline-year-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.year-button {
    background-color: var(--light-color);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-button.active,
.year-button:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.timeline-card {
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-card .card-description {
    font-size: 16px;
    color: var(--gray-text);
    margin-bottom: 25px;
    flex-grow: 1;
}

.timeline-card .card-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.timeline-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.full-timeline-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--light-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    transition: all 0.3s ease;
}

/* --- Map Section --- */
#travelMap {
    height: 700px;
    width: 80%;
    margin: 50px auto;
    border: 5px solid var(--map-primary-color);
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    direction: rtl;
    position: relative;
}

.palestine-label {
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 800;
    color: #2a688a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.leaflet-popup-content {
    direction: rtl;
    text-align: right;
}

.add-marker-form {
    text-align: right;
    direction: rtl;
}

/* --- Footer Styles --- */
.footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer .social-icons a {
    color: var(--light-color);
    margin: 0 10px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition:
        transform 0.18s ease,
        background 0.18s ease;
}

@media (max-width: 992px) {
    .top-hero-content .call-to-action {
        font-size: 52px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .nav-select-menu {
        display: block;
        order: 1;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .search-container {
        order: 2;
        margin-left: auto;
    }

    .search-input {
        width: 150px;
    }

    .hero-section {
        padding: 40px 20px;
        flex-direction: column;
        text-align: center;
    }

    .stats-dashboard {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-hero-content .call-to-action {
        font-size: 38px;
    }
}

/* start about section */

/* --- Search Bar Styles --- */

.search-icon:hover {
    color: var(--primary);
}

.page-title {
    background: #f5f7fa;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title h1 {
    font-size: 40px;
    margin: 0;
    font-weight: 800;
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.grid {
    display: grid;
    gap: 30px;
}

.two-col {
    grid-template-columns: 1fr 1fr;
}

.card {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: var(--secondary);
    font-weight: 700;
}

p.lead {
    color: var(--gray);
    margin: 0 0 15px 0;
}

.values {
    display: flex;
    gap: 20px;
}

.value {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fbfdff;
}

.value h3 {
    margin-top: 0;
    color: var(--accent);
    font-size: 20px;
}

.approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.approach-box {
    padding: 25px;
    border-radius: 10px;
    background: #f4f8ff;
    border: 1px solid #dbe6f4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.approach-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    border-radius: 10px;
    object-fit: cover;
}

.approach-box h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.achievements ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.achievements li {
    background: #f9f9f9;
    margin: 12px 0;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    font-size: 16px;
}

.cta {
    text-align: center;
    background: #f1f5f9;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.cta h2 {
    margin-bottom: 15px;
}

.cta a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.cta a:hover {
    background: #0056b3;
}

.donate_now {
    display: inline-block;
    background: var(--primary);
    color: #000 !important;
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.donate_now:hover {
    display: inline-block;
    color: #fff !important;
}

@media (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
    }

    .values {
        flex-direction: column;
    }
}

/* end about section */

/* start archivments section */

/* CSS Variables for easy theme adjustments */

/* Style for text highlighting (used by the search function) */
.highlight {
    background-color: var(--highlight-color);
    color: var(--secondary);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    display: inline;
}

/* Navigation Bar Styles */

/* Styles for the desktop navigation links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Styles for the active or hovered navigation link */
.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
    font-weight: 600;
}

/* Search input container in the navbar */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes the search to the right */
}

/* Text input field for searching page content */
.search-input {
    width: 250px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid var(--primary); /* Blue underline border */
    outline: none;
    font-size: 16px;
    background-color: transparent;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

/* Search icon style */
.search-icon {
    font-size: 18px;
    color: var(--secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 0;
}

.search-icon:hover {
    color: var(--primary);
}

/* Mobile Navigation Select Menu - initially hidden on desktop */
.nav-select-menu {
    display: none;
    width: 180px;
    margin-right: auto;
}

.nav-select-menu select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    outline: none;
}

/* Page Title Section */
.page-title {
    background: #f5f7fa;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title h1 {
    font-size: 36px;
    margin: 0;
    font-weight: 800;
    color: var(--secondary);
}

/* Main content container */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Section Block for text and image layout */
.section-block {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
}

.section-block img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
}

.section-block div {
    flex: 1; /* Allows the text div to take up remaining space */
}

/* Row for displaying charts side-by-side */
.chart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* Individual chart container style */
.chart-container {
    flex: 0 0 280px; /* Fixed width/base size */
    height: 200px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    margin-top: 2%;
}

.chart-container h3 {
    color: var(--primary);
    margin-bottom: 8px;
    text-align: center;
    font-size: 16px;
}

/* Timeline/Card Filter and Sort Controls */
.timeline-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: flex-start;
}

.timeline {
    text-align: right !important;
}

.timeline-controls select,
.timeline-controls input {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 14px;
}

/* ===== Cards Style ===== */
.cards-container {
    display: grid;
    /* Creates a responsive grid layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual achievement card style */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--primary);
}

.card p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--gray);
    text-align: right;
}

.card .card-button {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 10px;
    background: var(--primary);
    color: var(--light);
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
}

/* Footer Styles */
.footer {
    background: var(--secondary);
    color: var(--light);
    text-align: center;
    padding: 25px 15px;
    margin-top: 40px;
}

.footer p {
    margin: 6px 0 0;
    font-size: 13px;
}

/* ===== Modal styles (Popup window) ===== */
/* Full-screen overlay to dim the background */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    padding: 20px;
}

.modal-overlay.show {
    display: flex; /* Show the modal */
}

/* The actual modal content box */
.modal {
    background: #fff;
    border-radius: 10px;
    max-width: 700px;
    width: 100%;
    padding: 22px 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh; /* Limits height for tall content */
    overflow: auto; /* Allows scrolling if content is too tall */
}

.modal h3 {
    margin-top: 0;
    color: var(--primary);
}

.modal p {
    color: var(--gray);
    font-size: 15px;
    margin: 6px 0;
}

/* Close button for the modal */
.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    color: var(--gray);
}

/* Media Queries for Responsiveness */
@media (max-width: 1000px) {
    /* Adjusts navbar layout for medium screens (e.g., tablets) */
    .navbar {
        justify-content: space-between;
    }

    .nav-links {
        display: none; /* Hides desktop links */
    }

    .nav-select-menu {
        display: block; /* Shows mobile select menu */
        order: 1;
        margin-right: auto;
    }

    .search-container {
        order: 2;
        margin-left: 0;
    }

    .search-input {
        width: 140px;
    }
}

@media (max-width: 768px) {
    /* Adjusts layout for small screens (e.g., phones) */
    .section-block {
        flex-direction: column; /* Stacks image and text vertically */
        text-align: center;
    }

    .chart-row {
        flex-direction: row; /* Keeps charts side-by-side but allows wrapping */
        justify-content: center;
    }

    .chart-container {
        margin-top: 10px;
        flex: 0 0 45%; /* Makes charts take up about half the screen width */
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        flex-wrap: nowrap;
    }

    .nav-select-menu {
        width: 50%;
        margin-bottom: 0;
        margin-right: 5px;
        order: 1;
    }

    .search-container {
        width: 45%;
        margin-top: 0;
        margin-left: 0;
        order: 2;
    }

    .search-input {
        width: calc(100% - 30px);
        margin-right: 0;
    }

    .page-title h1 {
        font-size: 28px;
    }

    .chart-container {
        flex: 0 0 90%;
        margin-bottom: 20px;
    }
}

/* end archivements section */

/* start donate section */

.highlight {
    background-color: var(--highlight-color);
    color: var(--secondary-color);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    display: inline;
}

/* ================================== */

/* ---------------------------------- */
/* --- UPDATED NAVBAR STYLES --- */
/* ---------------------------------- */

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0;
    margin-right: 0;
}

.nav-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-select-menu {
    display: none;
    margin-left: 15px;
    width: 180px;
}

.nav-select-menu select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    outline: none;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}

.search-input {
    width: 250px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid var(--primary-color);
    outline: none;
    font-size: 16px;
    background-color: transparent;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

.search-icon {
    font-size: 18px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 0;
}

/* ---------------------------------- */
/* --- END UPDATED NAVBAR STYLES --- */
/* ---------------------------------- */

/* Main hero */
.hero {
    max-width: 1100px;
    margin: 34px auto 12px;
    padding: 0 20px;
    text-align: center;
}

.hero h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin: 6px 0 8px;
}

.hero p {
    max-width: 840px;
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 16px;
}

/* Card container */
.card {
    max-width: 1100px;
    margin: 0 auto 40px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 30px rgba(26, 43, 61, 0.03);
}

/* Progress */
.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.progress-info strong {
    color: var(--primary-color);
    font-size: 18px;
}

.progress-bar {
    height: 12px;
    background: var(--light-color);
    border-radius: 999px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.6s ease;
}

/* Controls */
.controls {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
    margin-bottom: 10px;
}

.preset-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    min-width: 80px;
    transition: all 0.2s ease;
}

.amount-btn[aria-pressed="true"] {
    box-shadow: 0 8px 22px rgba(0, 123, 255, 0.14);
    transform: translateY(-3px);
}

.custom-amount input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    width: 150px;
}

.options {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-left: auto;
}

.frequency label {
    margin-right: 12px;
    font-weight: 700;
    color: var(--secondary-color);
}

.currency-select select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

/* Form */
.donation-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    margin-top: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

.form-row input,
.form-row textarea {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d7dee6;
    font-size: 14px;
}

.form-opts {
    grid-column: 1 / -1;
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 6px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Summary & actions */
.summary {
    grid-column: 1 / -1;
    margin-top: 14px;
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.summary .lines {
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.legal {
    margin-top: 10px;
    color: var(--muted);
    font-size: 13px;
    text-align: left;
}

/* Footer */
.site-footer {
    background: var(--secondary-color);
    color: var(--light-color);
    padding: 26px 18px;
    margin-top: 36px;
    text-align: center;
}

.socials {
    margin-bottom: 12px;
}

.socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    margin: 0 8px;
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    transition: all 0.2s ease;
}

.socials a:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1000px) {
    .nav-links {
        display: none;
    }

    .nav-select-menu {
        display: block;
        order: 1;
        width: 48%;
        margin: 0;
    }

    .search-container {
        order: 2;
        width: 48%;
        margin-left: 0;
        justify-content: flex-end;
    }

    .search-input {
        width: 100%;
        margin-right: 10px;
    }
}

@media (max-width: 880px) {
    .donation-form {
        grid-template-columns: 1fr;
    }

    .summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .actions {
        width: 100%;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        flex-grow: 1;
    }

    .hero h1 {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .nav-select-menu,
    .search-container {
        width: 50%;
    }
}

/* end donate section */

/* start out-team section */

.highlight {
    background-color: var(--highlight-color);
    color: var(--secondary);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    display: inline;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
    font-weight: 600;
}

/* --- Search Bar Styles --- */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.search-input {
    width: 250px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid var(--primary);
    outline: none;
    font-size: 16px;
    background-color: transparent;
    margin-right: 10px;
    transition: border-color 0.3s ease;
}

.search-icon {
    font-size: 18px;
    color: var(--secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    margin-left: 0;
}

.search-icon:hover {
    color: var(--primary);
}

.nav-select-menu {
    display: none;
    width: 180px;
    margin-right: auto;
}

.nav-select-menu select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    outline: none;
}
.page-title {
    background: #f5f7fa;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title h1 {
    font-size: 40px;
    margin: 0;
    font-weight: 800;
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-card h3 {
    margin: 10px 0 5px;
    color: var(--primary);
}

.team-card p {
    margin: 0;
    color: var(--gray);
}

.footer {
    background: var(--secondary);
    color: var(--light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer .social-icons a {
    color: var(--light);
    margin: 0 10px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.footer p {
    margin: 8px 0 0;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .navbar {
        justify-content: space-between;
    }

    .nav-links {
        display: none;
    }

    .nav-select-menu {
        display: block;
        order: 1;
        margin-right: auto;
    }

    .search-container {
        order: 2;
        margin-left: 0;
    }

    .search-input {
        width: 140px;
    }
}

.team-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.team-card img {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-card h3 {
    margin-bottom: 8px;
    color: #2a688a;
    font-size: 1.3rem;
}

.team-card p {
    color: #555;
    font-size: 1rem;
    margin: 0;
    margin-top: auto;
}

section.container > h2 {
    margin-top: 40px;
    margin-bottom: 25px;
    color: #2a688a;
    font-weight: 700;
    text-align: center;
}

/* end our-team section */

/* start contact section */

.highlight {
    background-color: var(--highlight-color);
    color: var(--secondary);
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: bold;
    display: inline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 1;
    min-width: 0;
}

.nav-links a {
    white-space: nowrap;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary);
    font-weight: 600;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-input {
    width: 250px;
    padding: 5px 10px;
    border: none;
    border-bottom: 2px solid var(--primary);
    outline: none;
    font-size: 16px;
    background-color: transparent;
    margin-right: 10px;
}

.nav-select-menu {
    display: none;
    width: 180px;
}

.nav-select-menu select {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    outline: none;
}
/* ---------------------------------- */

.page-title {
    background: #f5f7fa;
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.page-title h1 {
    font-size: 40px;
    margin: 0;
    font-weight: 800;
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: var(--secondary);
    font-weight: 700;
}

p.lead {
    color: var(--gray);
    margin: 0 0 15px 0;
}

.form-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.field.message-field {
    grid-column: 1 / -1;
}

.form-grid > .field:nth-child(3) {
    grid-column: 3 / span 1;
}

.form-grid > .field:nth-child(4) {
    grid-column: 4 / span 1;
}

.field {
    position: relative;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--secondary);
}

/* .vis-label {
    position: absolute;
    left: -9999px;
} */

input,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    gap: 12px;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    display: none;
    z-index: 1000;
    font-weight: 600;
}

.toast.show {
    display: block;
}

.footer {
    background: var(--secondary);
    color: var(--light);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.footer .social-icons a {
    color: var(--light);
    margin: 0 10px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.footer p {
    margin: 8px 0 0;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .nav-links {
        gap: 10px;
    }

    .search-input {
        width: 180px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid > .field:nth-child(3),
    .form-grid > .field:nth-child(4) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .navbar {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .nav-select-menu {
        display: block;
        order: 1;
        margin-right: 15px;
        width: 160px;
    }

    .search-container {
        order: 2;
        margin-left: 0;
        flex-grow: 1;
        justify-content: flex-end;
    }

    .search-input {
        width: 140px;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-select-menu {
        display: block;
        width: 50%;
        margin: 0;
        order: 1;
    }

    .search-container {
        width: 50%;
        order: 2;
        justify-content: flex-end;
        margin: 0;
    }

    .search-input {
        width: 100%;
        margin-right: 10px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid > .field {
        grid-column: 1 / -1 !important;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-actions div:last-child {
        display: flex;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        flex-grow: 1;
    }
}

@media (max-width: 400px) {
    .page-title h1 {
        font-size: 30px;
    }
}

/* end contact section */

/* start banner slider */

.top-hero-section {
    width: 100%;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.top-hero-content {
    text-align: center;
    color: #fff;
    z-index: 2;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

/* end banner slider */

/* start contact page */

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* end contact page */

/* active nav */
.nav-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    display: inline-block;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    border-radius: 4px;
}

.nav-links a:hover {
    background-color: #e0e0e0;
}

.nav-links a.active {
    color: #fff;
    background-color: #007bff;
    font-weight: bold;
}

.dropdown .dropbtn {
    cursor: pointer;
    padding: 8px 12px;
    display: inline-block;
    color: #333;
    border-radius: 4px;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.dropdown .dropbtn.active {
    color: #fff;
    background-color: #007bff;
    font-weight: bold;
}

.dropdown .dropbtn:hover,
.dropdown-content a:hover {
    background-color: #e0e0e0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 5px 0;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    border-radius: 0;
}

.dropdown-content a.active {
    color: #fff;
    background-color: #007bff;
    font-weight: bold;
}

body {
    margin: 0;
}

#homeCarousel .carousel-caption,
#homeCarousel .carousel-caption h1 {
    color: #ffffff !important;
    z-index: 10 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.top-hero-section {
    width: 100%;
}

#homeCarousel {
    width: 100%;
}

.carousel-item {
    height: 100vh;
}

.banner-image {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.carousel-inner {
    background: #000;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
}

.carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
    .carousel-item,
    .banner-image {
        height: 70vh;
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .carousel-item,
    .banner-image {
        height: 60vh;
    }

    .carousel-caption h1 {
        font-size: 1.3rem;
    }
}

.top-hero-section .hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.top-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

.top-hero-content h1 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 5;
}

.slider-arrow.prev {
    left: 15px;
}
.slider-arrow.next {
    right: 15px;
}

.hero-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    gap: 30px;
    background: #f9f9f9;
}

.hero-content {
    flex: 1 1 400px;
    max-width: 600px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.stats-dashboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.stat-item {
    flex: 1 1 120px;
    min-width: 100px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.timeline-section {
    padding: 50px 20px;
}

.timeline-year-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.year-button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.year-button.active {
    background: #2a688a;
    color: #fff;
    border-color: #2a688a;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.timeline-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#travelMap {
    width: 100%;
    height: 400px;
}

#donate-preview {
    padding: 50px 20px;
}

@media (max-width: 992px) {
    .hero-slide {
        height: 55vh;
    }
}

@media (max-width: 768px) {
    .hero-slide {
        height: 45vh;
    }

    .hero-section {
        flex-direction: column-reverse;
    }

    .top-hero-content h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-slide {
        height: 40vh;
    }

    .top-hero-content h1 {
        font-size: 1.2rem;
    }

    .slider-arrow {
        font-size: 1.5rem;
        padding: 6px 10px;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }
}

/* header */

/* =========================
FORCE HEADER LTR ONLY
========================= */

.custom-header {
    direction: ltr !important;
}

/* =========================
WRAPPER
========================= */

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

/* =========================
TOP ROW
========================= */

.top-row {
    display: flex;
    justify-content: flex-start;
    padding: 4px 20px;
}

/* LANG */
.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-switch a {
    border: 1px solid #2a688a;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 4px;
    text-decoration: none;
    color: #2a688a;
    font-weight: bold;
}

.lang-switch a.active-lang {
    background: #2a688a;
    color: white;
}

/* =========================
MAIN ROW
========================= */

.main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    padding: 6px 20px;
}

/* LOGO */
.logo img {
    height: 45px;
}

/* MENU */
.nav-menu {
    display: flex;
    gap: 60px;
    direction: rtl;
}

/* links */
.nav-menu a {
    text-decoration: none;
    font-weight: 600;
    color: #333;
}

.nav-menu a.active {
    color: #2a688a;
}

/* =========================
MOBILE BUTTON (ADDED ONLY)
========================= */

.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: #2a688a;
}

/* =========================
MOBILE
========================= */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;

        position: absolute;
        top: 70px; /* تحت الهيدر */
        left: 20px; /* 👈 بدل right */

        background: white;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;

        min-width: 180px;
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }
}
