/* ==========================================
   ROOT VARIABLES
   ========================================== */
:root {
    --primary-green: #1a5f3a;
    --secondary-green: #2d8659;
    --accent-gold: #c9a227;
    --accent-gold-light: #e8c55a;
    --accent-rust: #a85c3c;
    --text-charcoal: #1e1e1e;
    --text-muted: #6b7280;
    --light-bg: #f5f3ef;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-light: 0 4px 24px rgba(0, 0, 0, 0.07);
    --shadow-card: 0 2px 12px rgba(26, 95, 58, 0.08), 0 8px 32px rgba(0, 0, 0, 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    text-align: right;
    color: var(--text-charcoal);
    background-color: var(--light-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
    color: var(--primary-green);
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: clamp(1.8em, 4vw, 2.6em);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: block;
}

h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rust));
    margin: 14px auto 0;
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: var(--primary-green);
    transition: var(--transition);
}

img { display: block; max-width: 100%; }

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-rust), var(--accent-gold));
    background-size: 200% 100%;
    animation: shimmer-progress 2s linear infinite;
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

@keyframes shimmer-progress {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 700;
    font-size: 0.95em;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 0.02em;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn.primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 95, 58, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26, 95, 58, 0.45);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--primary-green);
    border: 2px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
}

.btn.secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.btn.large { padding: 16px 44px; font-size: 1.05em; }

/* ==========================================
   HEADER — FIX #1: Logo right, links left, proper sizing
   ========================================== */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    transition: var(--transition);
    background: transparent;
}

.header.scrolled {
    background: rgba(22, 78, 50, 0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo on the right (RTL start) */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 74px !important;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.25));
    transition: var(--transition);
}

.logo:hover img {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
    transform: scale(1.03);
}

/* Nav links on the left (RTL end) */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.84em;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: block;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 3px; left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 16px; height: 2px;
    background: var(--accent-gold);
    border-radius: 1px;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after { transform: translateX(-50%) scaleX(1); }

.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--accent-gold-light); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    gap: 5px;
    padding: 9px 11px;
    transition: var(--transition);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.hamburger:hover { background: rgba(255,255,255,0.18); }

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    background: rgba(22, 78, 50, 0.97);
    backdrop-filter: blur(20px);
    padding: 12px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu ul li a {
    display: block;
    padding: 11px 16px;
    color: rgba(255,255,255,0.82);
    border-radius: var(--radius-sm);
    font-size: 0.96em;
    transition: var(--transition);
}

.mobile-menu ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding-right: 22px;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;
    z-index: -3;
    animation: zoomIn 22s ease-in-out infinite alternate;
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 55, 33, 0.82) 0%,
        rgba(26, 95, 58, 0.65) 50%,
        rgba(45, 134, 89, 0.55) 100%
    );
    z-index: -2;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(45, 134, 89, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2em, 5.5vw, 3.8em);
    margin-bottom: 24px;
    line-height: 1.35;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1em, 2.5vw, 1.25em);
    max-width: 680px;
    margin: 0 auto 44px;
    line-height: 1.9;
    color: rgba(255,255,255,0.88);
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,162,39,0.5);
    border-radius: 50px;
    padding: 6px 20px;
    font-size: 0.82em;
    color: var(--accent-gold-light);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    letter-spacing: 0.04em;
}

.hero-badge::before { content: '✦'; font-size: 0.7em; }

.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 28px;
    height: 46px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 14px;
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollAnim 2.2s infinite;
}

@keyframes scrollAnim {
    0%, 20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(18px); }
}

/* ==========================================
   FADE IN ANIMATION
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 110px 0;
    background-color: var(--white);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 35%; height: 100%;
    background: linear-gradient(180deg, rgba(245,243,239,0.5) 0%, transparent 100%);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-green), var(--accent-rust));
    z-index: -1;
    opacity: 0.4;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
}

.about-image:hover .about-img { transform: scale(1.04); }

.about-content h2 { text-align: right; }
.about-content h2::after { margin: 14px 0 0; }

.about-content p {
    font-size: 1.02em;
    line-height: 1.9;
    margin-bottom: 18px;
    color: var(--text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 44px;
    padding-top: 44px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.stat:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: 40px; width: 1px;
    background: #eee;
}

.stat-value {
    display: block;
    font-size: 2.4em;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-rust));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9em;
}

/* ==========================================
   MISSION SECTION
   ========================================== */
.mission-section {
    padding: 50px 0;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.mission-section::before {
    content: '';
    position: absolute;
    top: -120px; left: -120px;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.mission-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold), var(--accent-rust));
}

.mission-card::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26,95,58,0.04) 0%, transparent 70%);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(26, 95, 58, 0.14), 0 4px 16px rgba(0,0,0,0.08);
}

.mission-card:hover::after { transform: scale(2); }

.card-icon {
    width: 72px; height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(26,95,58,0.08), rgba(45,134,89,0.12));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: var(--primary-green);
    transition: var(--transition);
}

.mission-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    transform: rotate(-5deg) scale(1.05);
}

.mission-card h3 { font-size: 1.6em; margin-bottom: 14px; }
.mission-card p { color: var(--text-muted); line-height: 1.8; }

.mission-card ul { list-style: none; text-align: right; }

.mission-card ul li {
    padding: 9px 24px 9px 0;
    color: var(--text-muted);
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.mission-card ul li:last-child { border-bottom: none; }

.mission-card ul li::before {
    content: '✦';
    position: absolute;
    right: 0;
    color: var(--accent-gold);
    font-size: 0.75em;
    top: 11px;
}

/* ==========================================
   ACTIVITIES SECTION — FIX #3: proper carousel
   ========================================== */
.activities-section {
    padding: 50px 0;
    background-color: var(--white);
}

.activities-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 44px;
    direction: rtl;
}

.activities-header h2 {
    margin-bottom: 0;
    text-align: right;
    display: inline-block;
    width: auto;
}

.activities-header h2::after { margin: 12px 0 0; }

.carousel-arrows { display: flex; gap: 10px; flex-shrink: 0; }

.arrow-btn {
    width: 44px; height: 44px;
    border: 1.5px solid rgba(26,95,58,0.2);
    background: var(--white);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--primary-green);
    box-shadow: var(--shadow-light);
}

.arrow-btn:hover {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(26,95,58,0.25);
}

.activities-carousel-wrapper {
    overflow: hidden;
    padding: 4px 2px 12px;
}

.activities-carousel {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    touch-action: pan-y;
}

/* Each card: width is computed by JS, set via flex */
.activity-card {
    flex: 0 0 calc((100% - 48px) / 3); /* 3 per page with 2 gaps */
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    cursor: default;
}

.activity-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.activity-card:hover::before { transform: scaleX(1); }

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 48px rgba(26, 95, 58, 0.13), 0 4px 16px rgba(0,0,0,0.07);
}

.card-number {
    font-size: 3em;
    font-weight: 800;
    color: var(--accent-gold);
    opacity: 0.2;
    margin-bottom: 4px;
    line-height: 1;
    font-family: 'Tajawal', sans-serif;
}

.activity-card i {
    font-size: 2.2em;
    color: var(--primary-green);
    margin-bottom: 16px;
    display: block;
    transition: var(--transition);
}

.activity-card:hover i {
    transform: scale(1.15);
    color: var(--secondary-green);
}

.activity-card h3 { font-size: 1.25em; margin-bottom: 10px; }
.activity-card p { color: var(--text-muted); line-height: 1.65; font-size: 0.93em; }

.carousel-dots-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.act-dot {
    height: 6px;
    border-radius: 3px;
    background: rgba(26,95,58,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.act-dot.active {
    background: var(--primary-green);
    width: 28px !important;
}

.act-dot:not(.active) {
    width: 6px;
}

/* ==========================================
   FEATURED SECTION
   ========================================== */
.featured-section {
    padding: 50px 0;
    background: linear-gradient(160deg, #f0ede6 0%, var(--light-bg) 100%);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.featured-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-green));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.featured-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.featured-card:hover::after { transform: scaleX(1); }

.featured-icon {
    font-size: 2.8em;
    margin-bottom: 18px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-icon { transform: scale(1.1) rotate(-3deg); }

.featured-card h3 { font-size: 1.35em; margin-bottom: 12px; }
.featured-card p { color: var(--text-muted); line-height: 1.7; }

/* ==========================================
   GALLERY SECTION — FIX #2: event-grouped with lightbox
   ========================================== */

.more-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0px;
}

.more-btn-wrapper .btn {
    width: auto;
    min-width: 220px;
}
.gallery-section {
    padding: 20px 0;
    background-color: var(--white);
}
.more-btn-wrapper {
    background-color: white;
    padding: 40px 0;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05em;
    margin-bottom: 52px;
    margin-top: -34px;
}

/* Event Groups Grid */
.gallery-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 36px;
}

.gallery-event-group {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.gallery-event-group:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.gallery-event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.event-tag {
    font-size: 1.6em;
    flex-shrink: 0;
}

.gallery-event-header h3 {
    font-size: 1.1em;
    color: var(--primary-green);
    margin: 0;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.gallery-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover img { transform: scale(1.08); }

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 55, 33, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.2em;
}

.gallery-thumb:hover .thumb-overlay { opacity: 1; }

.btn-show-more {
    width: 100%;
    padding: 11px 20px;
    background: transparent;
    border: 1.5px solid var(--primary-green);
    border-radius: 50px;
    color: var(--primary-green);
    font-family: 'Cairo', sans-serif;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-show-more:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,95,58,0.25);
}

/* ==========================================
   LIGHTBOX
   ========================================== */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gallery-lightbox.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 12, 0.92);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    z-index: 1;
    background: #0f2018;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox.open .lightbox-container {
    transform: scale(1) translateY(0);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.lightbox-close:hover {
    background: var(--accent-rust);
    border-color: var(--accent-rust);
    transform: rotate(90deg);
}

.lightbox-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.lightbox-event-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--accent-gold-light);
}

.lightbox-main {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.lightbox-img-wrap {
    flex: 1;
    aspect-ratio: 16/9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1a2e1f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.lightbox-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: rgba(255,255,255,0.1);
}

.lightbox-nav {
    width: 48px; height: 48px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: white;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.1);
}

.lightbox-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lightbox-thumb-item {
    width: 64px; height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    background: #1a2e1f;
    flex-shrink: 0;
}

.lightbox-thumb-item img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.lightbox-thumb-item.active {
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.lightbox-thumb-item:hover {
    border-color: rgba(201,162,39,0.5);
}

.lightbox-counter {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85em;
}

/* ==========================================
   EVENTS SECTION
   ========================================== */
.events-section {
    padding: 50px 0;
    background: linear-gradient(160deg, #f0ede6 0%, var(--light-bg) 100%);
}

.events-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 52px;
    background: rgba(255,255,255,0.7);
    border-radius: 50px;
    padding: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.06);
}

.tab-button {
    background: transparent;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    transition: var(--transition);
    color: var(--text-muted);
    font-family: 'Cairo', sans-serif;
}

.tab-button.active {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(26,95,58,0.3);
}

.event-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 28px;
    animation: fadeIn 0.5s ease;
}

.event-list.hidden { display: none; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(26,95,58,0.12), 0 4px 16px rgba(0,0,0,0.07);
}

.event-date {
    background: linear-gradient(160deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 28px 22px;
    text-align: center;
    min-width: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.event-date::after {
    content: '';
    position: absolute;
    top: -20px; right: -20px;
    width: 70px; height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
}

.event-date .day { font-size: 2.2em; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 0.85em; margin-top: 6px; opacity: 0.85; }

.event-content { padding: 24px 28px; flex: 1; text-align: right; }
.event-content h3 { margin-bottom: 10px; font-size: 1.25em; }
.event-content p { color: var(--text-muted); margin-bottom: 8px; font-size: 0.92em; }
.event-content .btn { margin-top: 16px; }

/* ==========================================
   PARTNERS SECTION — FIX #4: Circles
   ========================================== */
.partners-section {
    padding: 50px 0;
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    justify-items: center;
}

.partner-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.partner-item:hover {
    transform: translateY(-6px);
}

/* The circle itself */
.partner-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background:
        linear-gradient(var(--white), var(--white)) padding-box,
        linear-gradient(135deg, var(--accent-gold), var(--primary-green)) border-box;
    box-shadow: 0 8px 32px rgba(26,95,58,0.15), 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.partner-item:hover .partner-circle {
    box-shadow: 0 16px 48px rgba(26,95,58,0.25), 0 4px 16px rgba(0,0,0,0.12);
    transform: scale(1.06);
}

.partner-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.partner-icon-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3em;
    color: var(--primary-green);
    background: linear-gradient(135deg, rgba(26,95,58,0.08), rgba(45,134,89,0.12));
    border-radius: 50%;
}

.partner-item p {
    font-weight: 700;
    color: var(--text-charcoal);
    font-size: 0.88em;
    line-height: 1.4;
    max-width: 120px;
}

.partner-item.floating { animation: float 4s ease-in-out infinite; }
.partner-item:nth-child(2) { animation-delay: 0.7s; }
.partner-item:nth-child(3) { animation-delay: 1.4s; }
.partner-item:nth-child(4) { animation-delay: 2.1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ==========================================
   JOIN SECTION — FIX #5: RTL alignment
   ========================================== */
.join-section {
    padding: 50px 0;
    background: linear-gradient(160deg, #f0ede6 0%, var(--light-bg) 100%);
    text-align: center;
}

.join-section .container { max-width: 760px; }

.join-section > .container > p {
    font-size: 1.08em;
    color: var(--text-muted);
    margin-bottom: 36px;
    line-height: 1.9;
}

.benefits-list {
    list-style: none;
    margin-bottom: 44px;
    text-align: right;
    display: grid;
    gap: 4px;
}

.benefits-list li {
    padding: 14px 20px;
    font-size: 1em;
    color: var(--text-charcoal);
    display: flex;
    align-items: center;
    /* RTL: icon on right, text to its left — flex-direction row-reverse achieves this */
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    direction: rtl;
}

.benefits-list li:hover {
    background: rgba(26,95,58,0.04);
}

.benefits-list i {
    color: var(--accent-gold);
    font-size: 1.1em;
    flex-shrink: 0;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #0f3721 0%, var(--primary-green) 50%, var(--secondary-green) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,39,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-section h2 { color: var(--white); }
.testimonials-section h2::after {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
}

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

.testimonial-card {
    background: rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px; right: 24px;
    font-size: 5em;
    color: rgba(201,162,39,0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.testimonial-stars { font-size: 1.1em; margin-bottom: 16px; }
.testimonial-card p {
    font-style: italic;
    margin-bottom: 18px;
    line-height: 1.85;
    color: rgba(255,255,255,0.88);
    font-size: 0.97em;
}

.testimonial-card h4 { color: var(--accent-gold-light); font-size: 1em; }

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 50px 0;
    background-color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-form h3, .contact-info h3 {
    font-size: 1.45em;
    margin-bottom: 28px;
    color: var(--primary-green);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 18px;
    margin-bottom: 18px;
    border: 1.5px solid #e8e8e8;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.97em;
    transition: var(--transition);
    direction: rtl;
    background: var(--light-bg);
    color: var(--text-charcoal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26,95,58,0.08);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.contact-info p {
    margin-bottom: 18px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
}

.contact-info i { color: var(--accent-gold); font-size: 1.2em; flex-shrink: 0; }
.contact-info a { color: var(--primary-green); font-weight: 600; }
.contact-info a:hover { color: var(--secondary-green); }

.social-links {
    display: flex;
    gap: 12px;
    margin: 32px 0;
    justify-content: flex-end;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    border-radius: 12px;
    font-size: 1.1em;
    transition: var(--transition);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-rust));
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(201,162,39,0.3);
}

.map-placeholder {
    margin-top: 28px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0,0,0,0.06);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: linear-gradient(145deg, #0f1f14, #1a2e1f);
    color: #ccc;
    padding: 64px 0 24px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold), var(--accent-rust), var(--primary-green));
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 44px;
    margin-bottom: 44px;
}

.footer h3 { color: var(--accent-gold-light); margin-bottom: 20px; font-size: 1.2em; }
.footer p { line-height: 1.9; color: rgba(255,255,255,0.5); font-size: 0.93em; }

.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 0.93em;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer ul li a::before { content: '←'; font-size: 0.8em; opacity: 0; transition: var(--transition); }
.footer ul li a:hover { color: var(--accent-gold-light); }
.footer ul li a:hover::before { opacity: 1; }

.footer-social { display: flex; flex-direction: column; }
.footer-social .social-icon { width: 40px; height: 40px; margin-top: 8px; border-radius: 10px; }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.3);
    font-size: 0.88em;
}
/* ==========================================
   GALLERY PAGE
   ========================================== */
.gallery-page .header {
    background: var(--primary-green);
}

.gallery-page .header.scrolled {
    background: var(--primary-green);
}
/* ==========================================
   RIPPLE EFFECT
   ========================================== */
@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* ==========================================
   SCROLL REVEAL
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
    .nav-links a { font-size: 0.78em; padding: 6px 8px; }
}

@media (max-width: 900px) {
    /* 2 cards on tablets */
    .activity-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
    .gallery-events-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links { display: none; }

    .hero-title { font-size: 2.2em; }
    .hero-subtitle { font-size: 1em; }

    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
    .mission-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }

    .event-card { flex-direction: column; }
    .event-date { flex-direction: row; gap: 16px; padding: 16px 20px; }

    h2 { font-size: 1.9em; }
    .hero-ctas { flex-direction: column; align-items: center; }
    .benefits-list li { justify-content: flex-start; }
    .social-links { justify-content: flex-start; }
    .contact-info p { justify-content: flex-start; }

    /* 1 card on mobile */
    .activity-card {
        flex: 0 0 100%;
    }

    .lightbox-container { padding: 20px 16px; }
    .lightbox-main { flex-direction: column; }
    .lightbox-nav { display: none; }

    .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75em; }
    .featured-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .stat:not(:last-child)::after { display: none; }
    .stat { padding: 16px 0; border-bottom: 1px solid #eee; }
    .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
    .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .partner-circle { width: 100px; height: 100px; }
}