/* ═══════════════════════════════════════════
   منظمة زاد - فرع كركوك
   Modern Islamic Design System
   ═══════════════════════════════════════════ */

:root {
    /* ═══ الهوية الرسمية الجديدة ═══ */
    --emerald: #1A5C3A;
    --emerald-dark: #0B3D2E;
    --emerald-light: #E8F3EB;
    --gold: #D4AF37;
    --gold-dark: #B8962E;
    --gold-light: #FDF6E0;
    --navy: #0B3D2E;
    --navy-light: #2D7A4F;
    --cream: #FAF8F0;
    --white: #ffffff;
    --text: #111111; --ink-v29:#1d2b24;
    --text-light: #444444;
    --text-muted: #888888;
    --border: #E8E5DE;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

/* إجبار الأرقام الإنجليزية في كل مكان */
[data-count], .stat-number, .stat-box-num, .mgmt-stat-num,
.badge-gold, .points-num, td strong {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-family: 'Inter', 'Segoe UI', system-ui, 'Noto Sans Arabic', sans-serif !important;
}

body {
    font-family: 'Noto Sans Arabic', sans-serif;
    color: var(--text);
    background: #dfd9c7;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    line-height: 1.3;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

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

/* ═══════════════════════════════════════════
   NEWS TICKER
   ═══════════════════════════════════════════ */
.news-ticker {
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.ticker-label {
    background: var(--gold);
    color: var(--navy);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.ticker-label::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    border: 20px solid transparent;
    border-right: 12px solid var(--gold);
}

[dir="ltr"] .ticker-label::after {
    left: auto;
    right: -12px;
    border-right: none;
    border-left: 12px solid var(--gold);
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
    font-size: 13px;
    padding: 0 20px;
}

.ticker-item a { color: var(--gold-light); }
.ticker-item a:hover { color: var(--gold); }
.ticker-sep { margin: 0 20px; color: #D4AF37; font-size: 8px; }

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

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
    transition: var(--transition);
}

.site-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    height: 54px;
    gap: 8px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; margin-left: 20px; gap: 12px; }
.logo img, .logo-img { height: 64px !important; width: 64px !important; max-height: 64px; max-width: 64px; object-fit: contain; }
.logo-placeholder { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    font-size: 24px;
    color: var(--emerald);
}

.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-name { font-family: 'Noto Kufi Arabic', sans-serif; font-weight: 800; font-size: 22px; color: var(--emerald-dark); line-height: 1.2; }
.logo-branch { font-size: 13px; color: var(--emerald); font-weight: 700; letter-spacing: 0.5px; }

.main-nav { display: flex; align-items: center; gap: 0; flex: 1; justify-content: center; flex-wrap: nowrap; }

.nav-link {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

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

.nav-link.active {
    color: var(--emerald-dark);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 8px;
    left: 8px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
}

.nav-cta {
    background: var(--emerald) !important;
    color: var(--white) !important;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    margin: 0 2px;
}

.nav-cta:hover { background: var(--emerald-dark) !important; }

/* Right Actions — forced single row */
.header-actions {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: nowrap !important;
}

.nav-user-btn {
    background: var(--navy);
    color: var(--white);
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.nav-user-btn:hover { background: var(--navy-light); color: var(--white); }
.nav-user-btn i { font-size: 12px; }

.theme-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 6px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition);
}

.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

.lang-switcher { display: inline-flex; gap: 2px; }

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.lang-btn:hover { color: var(--emerald); }
.lang-btn.active { background: var(--emerald-dark); color: var(--gold); border-radius: 6px; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ═══════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════ */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,75,58,0.85) 0%, rgba(26,39,68,0.75) 100%);
}

.slide-islamic-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 24px;
    z-index: 2;
}

.slide-title {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeUp 0.8s ease;
}

.slide-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease 0.2s both;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gold);
    color: var(--navy);
    padding: 14px 36px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    animation: fadeUp 0.8s ease 0.4s both;
}

.slide-btn:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.slider-controls {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.slider-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.slider-btn:hover { background: var(--gold); color: var(--navy); }

.slider-dots { display: flex; gap: 8px; }

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }

/* ═══════════════════════════════════════════
   STATISTICS
   ═══════════════════════════════════════════ */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    position: relative;
}

.islamic-border-top, .islamic-border-bottom {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--emerald), var(--gold), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-card {
    padding: 24px 16px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); }

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--emerald-light), var(--gold-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--emerald);
}

.stat-number {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--emerald-dark);
    margin-bottom: 4px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   SECTIONS COMMON
   ═══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    background: var(--emerald-light);
    color: var(--emerald);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.section-ornament {
    color: var(--gold);
    font-size: 16px;
    letter-spacing: 8px;
}

.section-more {
    text-align: center;
    margin-top: 40px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--emerald);
    color: var(--emerald);
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--emerald);
    color: var(--white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════
   VIDEO SECTION
   ═══════════════════════════════════════════ */
.video-section {
    padding: 80px 0;
    background: #dfd9c7;
}

/* v21.17: حجم مناسب للفيديو - max-width + هوامش + radius كبير */


/* fallback لمتصفحات لا تدعم aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    
}



/* responsive - أصغر على الموبايل */
@media (max-width: 768px) {
    .video-section { padding: 50px 0; }
    
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    gap: 16px;
}

.video-placeholder i { font-size: 64px; opacity: 0.5; }
.video-placeholder p { opacity: 0.6; }

/* ═══════════════════════════════════════════
   DEPARTMENTS
   ═══════════════════════════════════════════ */
.departments-section {
    padding: 80px 0;
    background: var(--white);
}

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

.dept-card {
    background: #F4F2EB;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    transform: scaleX(0);
    transition: var(--transition);
}

.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

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

.dept-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.dept-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.dept-card p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.dept-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gold-dark);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   ACTIVITIES
   ═══════════════════════════════════════════ */
.activities-section {
    padding: 80px 0;
    background: #dfd9c7;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: var(--transition);
    display: block;
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.activity-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--emerald-light), var(--gold-light));
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover .activity-img img { transform: scale(1.05); }

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--emerald);
    opacity: 0.3;
}

.activity-date {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--emerald);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.2;
}

[dir="ltr"] .activity-date { right: auto; left: 12px; }

.activity-date .day { display: block; font-size: 20px; font-weight: 800; }
.activity-date .month { display: block; font-size: 11px; opacity: 0.8; }

.activity-info { padding: 20px; }
.activity-info h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.activity-info p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.activity-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }

/* ═══════════════════════════════════════════
   VISION PARALLAX
   ═══════════════════════════════════════════ */
.vision-parallax {
    position: relative;
    padding: 100px 0;
    background: var(--navy);
    background-attachment: fixed;
    overflow: hidden;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13,75,58,0.9), rgba(26,39,68,0.95));
}

.parallax-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z' fill='none' stroke='%23c9a84c' stroke-width='0.5'/%3E%3Ccircle cx='40' cy='40' r='15' fill='none' stroke='%23c9a84c' stroke-width='0.3'/%3E%3C/svg%3E");
}

.vision-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.vision-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 12px rgba(201,168,76,0.3));
}

.vision-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.vision-text {
    font-family: 'Amiri', serif;
    font-size: 22px;
    line-height: 2;
    opacity: 0.9;
}

.vision-ornament {
    margin-top: 28px;
    color: var(--gold);
    letter-spacing: 12px;
    font-size: 12px;
}

/* Vision Verse Card */
.vision-verse {
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.12);
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 24px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.verse-text {
    font-family: 'Amiri', serif;
    font-size: 24px;
    color: var(--gold);
    line-height: 2;
    margin: 0;
}

.verse-ref {
    font-size: 12px;
    color: rgba(212,175,55,0.5);
    display: block;
    margin-top: 6px;
}

/* ═══════════════════════════════════════════
   IMPACT SECTION (Achievements)
   ═══════════════════════════════════════════ */
.impact-section {
    position: relative;
    padding: 80px 0;
    background: var(--emerald-dark);
    overflow: hidden;
}

.impact-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23D4AF37' stroke-width='0.5'/%3E%3C/svg%3E");
}

.impact-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.impact-badge {
    display: inline-block;
    background: rgba(212,175,55,0.12);
    color: var(--gold);
    padding: 6px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid rgba(212,175,55,0.15);
}

.impact-header h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.impact-card {
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 16px;
    padding: 28px 16px;
    transition: var(--transition);
}

.impact-card:hover {
    background: rgba(212,175,55,0.1);
    transform: translateY(-4px);
}

.impact-icon {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 12px;
    opacity: 0.7;
}

.impact-number {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 4px;
    direction: ltr;
    unicode-bidi: bidi-override;
}

.impact-label {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.impact-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 12px auto 0;
    border-radius: 1px;
}

/* Activity Badge */
.activity-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(26,92,58,0.9);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

[dir="ltr"] .activity-badge { left: auto; right: 12px; }

/* Hero Animated Gradient */
.slide-animated-bg {
    background: linear-gradient(135deg, #0B3D2E 0%, #1A5C3A 25%, #0d4a35 50%, #0B3D2E 75%, #1A5C3A 100%);
    background-size: 300% 300%;
    animation: heroGradient 12s ease infinite;
}

.slide-animated-bg--blue {
    background: linear-gradient(135deg, #1a3a5c 0%, #2a5a8c 25%, #1a4a6c 50%, #1a3a5c 75%, #2a5a8c 100%);
    background-size: 300% 300%;
}

.slide-animated-bg--gold {
    background: linear-gradient(135deg, #4a2d0d 0%, #6b4f1a 25%, #5a3e12 50%, #4a2d0d 75%, #6b4f1a 100%);
    background-size: 300% 300%;
}

@keyframes heroGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════
   JOIN SECTION
   ═══════════════════════════════════════════ */
.join-section {
    padding: 80px 0;
    background: var(--white);
}

.join-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.join-step {
    background: #F4F2EB;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    width: 260px;
    position: relative;
    transition: var(--transition);
}

.join-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--emerald);
}

.step-number {
    position: absolute;
    top: -16px;
    right: 50%;
    transform: translateX(50%);
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 800;
    font-size: 16px;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
}

.join-step h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.join-step p {
    font-size: 13px;
    color: var(--text-light);
}

.join-connector {
    color: var(--gold);
    font-size: 20px;
}

/* ═══════════════════════════════════════════
   MAP SECTION
   ═══════════════════════════════════════════ */
.map-section {
    padding: 80px 0;
    background: var(--white);
}

.map-contact-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: start;
}

.map-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
    border: 1px solid var(--border);
}

#publicMap {
    width: 100%;
    height: 420px;
    z-index: 1;
}

/* Custom map marker with pulse */
.map-marker-custom {
    width: 48px; height: 48px; position: relative;
    display: flex; align-items: center; justify-content: center;
}
.map-marker-custom span {
    width: 40px; height: 40px; border-radius: 50%;
    background: #1A5C3A; color: #D4AF37;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900;
    font-family: 'Noto Kufi Arabic', sans-serif;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    border: 2.5px solid #D4AF37;
    position: relative; z-index: 2;
}
.map-marker-pulse {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(26,92,58,.2);
    animation: markerPulse 2s ease-out infinite;
}
@keyframes markerPulse {
    0% { width:40px; height:40px; opacity:.6; }
    100% { width:80px; height:80px; opacity:0; }
}

/* Contact cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    background: var(--cream);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    transition: all .35s;
}
.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.04);
}

.contact-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(26,92,58,.06);
    color: var(--emerald);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all .35s;
}
.contact-item:hover .contact-icon {
    transform: scale(1.08) rotate(-5deg);
}

.contact-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.contact-social {
    background: var(--cream);
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
}

.contact-social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: all .35s;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.social-link::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--emerald);
    transform: translateY(100%);
    transition: transform .35s;
}
.social-link:hover::before { transform: translateY(0); }
.social-link:hover { color: #fff; border-color: var(--emerald); transform: translateY(-3px); }
.social-link i { position: relative; z-index: 1; }

/* Dark mode */
html.dark-mode .map-section { background: var(--cream); }
html.dark-mode .map-card { border-color: var(--border); }
html.dark-mode .contact-item { background: var(--white); border-color: var(--border); }
html.dark-mode .contact-value { color: var(--text); }
html.dark-mode .contact-social { background: var(--white); border-color: var(--border); }
html.dark-mode .social-link { background: var(--cream); border-color: var(--border); }
html.dark-mode #publicMap { filter: brightness(.85) contrast(1.1); }

/* Responsive */

.map-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.8);
    padding-top: 60px;
    position: relative;
}

.footer-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo .logo-icon { color: var(--gold); font-size: 28px; }

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.7;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-col h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

[dir="ltr"] .footer-col h4::after { right: auto; left: 0; }

.footer-links { list-style: none; }

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-links a:hover { opacity: 1; color: var(--gold); }

.footer-contact { display: flex; flex-direction: column; gap: 16px; }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 14px;
    line-height: 1.7;
}

.footer-contact-item i { color: var(--gold); font-size: 16px; width: 20px; flex: 0 0 auto; margin-top: 3px; text-align: center; }
.footer-contact-item .fci-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: start; align-items: flex-start; }
.footer-contact-item .fci-text a { color: inherit; text-decoration: none; transition: color .15s; width: fit-content; }
.footer-contact-item .fci-text a:hover { color: var(--gold); }
.footer-contact-item .fci-sub { opacity: .8; font-size: 13px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-ornament {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 8px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.footer-bottom p { font-size: 13px; opacity: 0.5; }

/* Newsletter in Footer */
.footer-newsletter-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    line-height: 1.6;
}

.newsletter-input-wrap {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.newsletter-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-size: 13px;
    font-family: 'Noto Sans Arabic', sans-serif;
    outline: none;
    min-width: 0;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-input:focus { background: rgba(255,255,255,0.1); }

.newsletter-btn {
    padding: 10px 16px;
    background: var(--gold);
    border: none;
    color: var(--navy);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.newsletter-btn:hover { background: #e8c341; }

html.dark-mode .newsletter-input { background: rgba(255,255,255,0.04); }
html.dark-mode .newsletter-input:focus { background: rgba(255,255,255,0.08); }

/* Mobile Volunteer FAB */
.mobile-fab {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(212,175,55,0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
}

[dir="ltr"] .mobile-fab { left: auto; right: 24px; }

.mobile-fab.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.mobile-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(212,175,55,0.45);
}

.mobile-fab:active { transform: scale(0.95); }

.fab-tooltip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

[dir="ltr"] .fab-tooltip { right: auto; left: 64px; }

.fab-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -6px;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--navy);
}

[dir="ltr"] .fab-tooltip::after {
    left: auto;
    right: -6px;
    border-right-color: transparent;
    border-left-color: var(--navy);
}

.mobile-fab:hover .fab-tooltip { opacity: 1; }

/* FAB only on mobile */
@media (min-width: 769px) {
    .mobile-fab { display: none !important; }
}


/* ═══════════════════════════════════════════
   MESSAGES / ALERTS
   ═══════════════════════════════════════════ */
.messages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px 0;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.6;
    color: inherit;
}

/* ═══════════════════════════════════════════
   FORM STYLES
   ═══════════════════════════════════════════ */
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(13,107,75,0.1);
}

.form-file {
    font-size: 14px;
    font-family: 'Noto Sans Arabic', sans-serif;
}

/* ═══════════════════════════════════════════
   PAGES - ABOUT, DEPARTMENTS, ETC.
   ═══════════════════════════════════════════ */
.public-page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--emerald-dark) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.public-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
}

.public-page-hero h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    position: relative;
}

.public-page-hero p {
    opacity: 0.8;
    font-size: 16px;
    position: relative;
}

.page-content {
    padding: 60px 0;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-toggle { display: flex; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        background: var(--white);
        padding: 16px;
        box-shadow: var(--shadow);
        gap: 4px;
        z-index: 99;
    }
    .nav-cta { margin: 8px 0 0; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-slider { height: 50vh; min-height: 400px; }
    .header-actions { gap: 4px; }
    .nav-user-btn span { display: none; }
    .nav-user-btn { padding: 7px 8px; }
}



/* ═══════════════════════════════════════════
   ENHANCED: Scroll to Top
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   ENHANCED: Page Load Animation
   ═══════════════════════════════════════════ */
body {
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.loaded {
    opacity: 1;
}

/* ═══════════════════════════════════════════
   ENHANCED: Card Hover Effects
   ═══════════════════════════════════════════ */
.activity-card:hover,
.dept-card:hover,
.join-step:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ═══════════════════════════════════════════
   ENHANCED: Better Focus Styles
   ═══════════════════════════════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   ENHANCED: Smooth Selection Color
   ═══════════════════════════════════════════ */
::selection {
    background: var(--emerald);
    color: var(--white);
}

/* ═══════════════════════════════════════════
   ENHANCED: Spinner for loading
   ═══════════════════════════════════════════ */
@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ph-spin is built into Phosphor Icons */

/* ═══════════════════════════════════════════
   ENHANCED: Hamburger Animation
   ═══════════════════════════════════════════ */
.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════
   ENHANCED: Breadcrumbs
   ═══════════════════════════════════════════ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--emerald);
    transition: var(--transition);
}

.breadcrumb a:hover { color: var(--emerald-dark); text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════
   ENHANCED: Placeholder Images
   ═══════════════════════════════════════════ */
.img-placeholder {
    background: linear-gradient(135deg, var(--emerald-light) 0%, var(--gold-light) 50%, var(--emerald-light) 100%);
    background-size: 200% 200%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ═══════════════════════════════════════════
   ENHANCED: Skeleton Loading
   ═══════════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════════
   ENHANCED: Tooltip
   ═══════════════════════════════════════════ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    right: 50%;
    transform: translateX(50%);
    background: var(--navy);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

[data-tooltip]:hover::after { opacity: 1; }

/* ═══════════════════════════════════════════
   ENHANCED: Better Cards
   ═══════════════════════════════════════════ */
.activity-card,
.project-card {
    position: relative;
    overflow: hidden;
}

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

[dir="ltr"] .activity-card::after,
[dir="ltr"] .project-card::after {
    transform-origin: left;
}

.activity-card:hover::after,
.project-card:hover::after {
    transform: scaleX(1);
}

/* ═══════════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════════ */
@media print {
    .site-header, .site-footer, .news-ticker,
    .nav-cta, .nav-login, .lang-switcher,
    .mobile-toggle, #scrollTopBtn, .mobile-fab,
    .slider-controls, .section-more,
    .btn, .btn-primary, .btn-outline,
    form, .map-wrapper iframe { display: none !important; }

    body { background: white; color: black; font-size: 12pt; }
    .container { max-width: 100%; padding: 0; }
    .hero-slider { height: auto; min-height: 0; }
    .slide { position: relative; opacity: 1; }
    .slide-overlay { background: none; }
    .slide-content { color: black; position: relative; padding: 20px 0; }
    .slide-title { font-size: 24pt; text-shadow: none; }
    a { color: black; text-decoration: underline; }
    a::after { content: " (" attr(href) ")"; font-size: 9pt; }
    a[href^="#"]::after, a[href^="javascript"]::after { content: ""; }
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE — ENHANCED
   ═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   DARK MODE — الهوية الرسمية الجديدة
   ═══════════════════════════════════════════ */
html.dark-mode {
    --emerald: #2D7A4F;
    --emerald-dark: #1A5C3A;
    --emerald-light: rgba(45,122,79,.1);
    --gold: #D4AF37;
    --gold-dark: #B8962E;
    --gold-light: rgba(212,175,55,.08);
    --navy: #E8E4DC;
    --navy-light: #C8C0B0;
    --cream: #0D1210;
    --white: #1E2822;
    --text: #E8E4DC; --ink-v29:#E8E4DC;
    --text-light: #A8A090;
    --text-muted: #6A6458;
    --border: #2A332C;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.5);
}

/* Body & backgrounds */
html.dark-mode body { background:#0F1410; color:#E8E4DC; }

/* Header */
html.dark-mode .site-header { background:rgba(22,28,24,.97); backdrop-filter:blur(16px); border-bottom:1px solid #2A332C; }
html.dark-mode .logo-name, html.dark-mode .logo-text .logo-name { color:#E8E4DC; }
html.dark-mode .nav-link { color:#A8A090; }
html.dark-mode .nav-link:hover, html.dark-mode .nav-link.active { color:var(--gold); }
html.dark-mode .nav-cta { background:var(--emerald); color:#fff; }
html.dark-mode .header-actions .nav-user-btn { background:#1A5C3A; }

/* Footer */
html.dark-mode .site-footer { background:#0A120A; }
html.dark-mode .footer-col h4 { color:#E8E4DC; }

/* Cards & Surfaces */
html.dark-mode .stat-card, html.dark-mode .dept-card, html.dark-mode .activity-card,
html.dark-mode .join-step, html.dark-mode .mgmt-card, html.dark-mode .filter-input,
html.dark-mode .filter-select { background:#1E2822; border-color:#2A332C; color:#E8E4DC; }
html.dark-mode .stat-card:hover, html.dark-mode .dept-card:hover,
html.dark-mode .activity-card:hover { box-shadow:0 8px 32px rgba(0,0,0,.4); }

/* Headings */
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3, html.dark-mode h4,
html.dark-mode .dept-card h3, html.dark-mode .join-step h3,
html.dark-mode .activity-card .activity-info h3,
html.dark-mode .section-header h2 { color:#E8E4DC; }

/* Stat numbers */
html.dark-mode .stat-number, html.dark-mode .stat-card .stat-number,
html.dark-mode .sc-num { color:var(--gold); }

/* Text */
html.dark-mode p, html.dark-mode .dept-card p, html.dark-mode .activity-card p,
html.dark-mode .join-step p { color:#A8A090; }
html.dark-mode a { color:#C8C0B0; }

/* Section */
html.dark-mode .section-badge { background:rgba(45,122,79,.12); color:#4A9B6A; }
html.dark-mode .public-page-hero { background:linear-gradient(135deg,#0A1A10,#141A14); }
html.dark-mode .vision-parallax { background:linear-gradient(135deg,#0A1A10,#0F1410); }
html.dark-mode .impact-section { background:#080F0A; }
html.dark-mode .impact-card { background:rgba(212,175,55,0.04); border-color:rgba(212,175,55,0.08); }

/* Buttons */
html.dark-mode .btn-primary { background:var(--emerald); color:#fff; }
html.dark-mode .btn-outline { background:transparent; border-color:#3A4A3E; color:#A8A090; }
html.dark-mode .btn-outline:hover { border-color:var(--emerald); color:var(--emerald); }
html.dark-mode .slide-overlay { background:rgba(0,0,0,.6); }

/* Forms */
html.dark-mode input, html.dark-mode select, html.dark-mode textarea,
html.dark-mode .form-input, html.dark-mode .form-select, html.dark-mode .form-textarea,
html.dark-mode .form-control { background:#141A14; color:#E8E4DC; border-color:#3A4A3E; }
html.dark-mode input:focus, html.dark-mode select:focus, html.dark-mode textarea:focus,
html.dark-mode .form-control:focus { border-color:var(--emerald); box-shadow:0 0 0 3px rgba(45,122,79,.15); }
html.dark-mode input::placeholder, html.dark-mode textarea::placeholder { color:#5A6458; }

/* Alerts */
html.dark-mode .alert-success { background:rgba(45,122,79,.1); color:#4A9B6A; border-color:rgba(45,122,79,.2); }
html.dark-mode .alert-error { background:rgba(180,40,40,.1); color:#F08080; border-color:rgba(180,40,40,.2); }

/* News ticker */
html.dark-mode .news-ticker { background:#0A120A; }

/* Map & media */
html.dark-mode .map-wrapper iframe { filter:brightness(0.8); }
html.dark-mode img { opacity:0.92; }
html.dark-mode .video-placeholder { background:#1E2822; }

/* Language buttons */
html.dark-mode .lang-btn { border-color:#3A4A3E; color:#A8A090; }
html.dark-mode .lang-btn.active { background:var(--gold); color:#0F1410; border-color:var(--gold); }

/* Sidebar (portal) */
html.dark-mode .sidebar { background:#0A110E; }

/* Data tables */
html.dark-mode .data-table th { background:#1A5C3A; color:#fff; }
html.dark-mode .data-table td { border-color:#2A332C; color:#C8C0B0; }
html.dark-mode .data-table tr:hover { background:rgba(45,122,79,.04); }

/* Badges */
html.dark-mode .badge { opacity:.9; }
html.dark-mode .badge-green { background:rgba(45,122,79,.12); color:#4A9B6A; }
html.dark-mode .badge-gold, html.dark-mode .badge-yellow { background:rgba(212,175,55,.1); color:#D4AF37; }
html.dark-mode .badge-red { background:rgba(180,40,40,.1); color:#F08080; }
html.dark-mode .badge-blue { background:rgba(21,101,192,.1); color:#6090D0; }
html.dark-mode .badge-gray { background:rgba(255,255,255,.06); color:#8A8A7A; }

/* Stat boxes in portal */
html.dark-mode .stat-box { background:#1E2822; border-color:#2A332C; }
html.dark-mode .stat-box-num { color:#E8E4DC; }

/* Filter bar */
html.dark-mode .filters-bar { background:#1E2822; border-color:#2A332C; }
html.dark-mode .filter-btn { color:#A8A090; border-color:#3A4A3E; }
html.dark-mode .filter-btn:hover { border-color:var(--emerald); color:var(--emerald); }
html.dark-mode .filter-btn-primary { background:var(--emerald); color:#fff; border-color:var(--emerald); }

/* Confirm overlay / modals */
html.dark-mode .confirm-overlay .confirm-box,
html.dark-mode .loc-modal { background:#1E2822; color:#E8E4DC; }
html.dark-mode .confirm-overlay .confirm-box h3,
html.dark-mode .loc-modal h3 { color:#E8E4DC; }
html.dark-mode .loc-modal input, html.dark-mode .loc-modal select,
html.dark-mode .loc-modal textarea { background:#141A14; color:#E8E4DC; border-color:#3A4A3E; }

/* Map page */
html.dark-mode .map-stat { background:#1E2822; border-color:#2A332C; }
html.dark-mode .map-stat-num { color:var(--gold); }
html.dark-mode .map-filter-btn { background:#1E2822; border-color:#3A4A3E; color:#A8A090; }
html.dark-mode .map-filter-btn.active, html.dark-mode .map-filter-btn:hover { background:var(--emerald); color:#fff; border-color:var(--emerald); }
html.dark-mode #kirkukMap { border-color:#2A332C; }

/* Scrollbar */
html.dark-mode ::-webkit-scrollbar { width:6px; }
html.dark-mode ::-webkit-scrollbar-track { background:#0F1410; }
html.dark-mode ::-webkit-scrollbar-thumb { background:#3A4A3E; border-radius:3px; }
html.dark-mode ::-webkit-scrollbar-thumb:hover { background:#4A5A4E; }


/* Dark mode: top bar & volunteer */
html.dark-mode .top-bar { opacity:.7; }
html.dark-mode .vol-btn { box-shadow:0 2px 12px rgba(212,175,55,.15); }

/* Theme toggle */
.theme-toggle { width:36px; height:36px; border-radius:50%; border:1.5px solid var(--border); background:transparent; color:var(--text-light); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; transition:all 0.3s; flex-shrink:0; }
.theme-toggle:hover { border-color:var(--gold); color:var(--gold); background:rgba(212,175,55,.06); }
html.dark-mode .theme-toggle { border-color:#3A4A3E; color:#D4AF37; }
html.dark-mode .theme-toggle:hover { border-color:#D4AF37; background:rgba(212,175,55,.08); }


/* ═══════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE — تحسين شامل
   ═══════════════════════════════════════════ */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .activities-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-slider { min-height: 45vh; }
    .slide-content { max-width: 80%; }
    .slide-title { font-size: 32px; }
    .join-steps { gap: 16px; }
    .container { padding: 0 20px; }
}

/* --- MOBILE (max-width: 768px) --- */

/* --- SMALL MOBILE (max-width: 480px) --- */

/* Sidebar divider & label */
.sidebar-divider { height:1px; background:rgba(255,255,255,.04); margin:6px 14px; }
.sidebar-label { padding:6px 14px; font-size:8px; font-weight:700; color:rgba(255,255,255,.2); letter-spacing:1px; text-transform:uppercase; margin-top:4px; }
html.dark-mode .sidebar-divider { background:rgba(255,255,255,.03); }

/* ═══════════════════════════════════════════
   v7 ENHANCEMENTS — PUBLIC SITE IMPROVEMENTS
   ═══════════════════════════════════════════ */

/* ═══ Header Improvements ═══ */
.site-header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
}
html.dark-mode .site-header {
    background: rgba(18,28,22,0.92);
}
.header-container {
    height: 62px;
}
.nav-link {
    font-size: 13px;
    padding: 6px 10px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.25s;
}
.nav-link:hover {
    transform: translateY(-1px);
}

/* ═══ Hero Slider Enhancement ═══ */
.hero-slider {
    height: 75vh;
    min-height: 520px;
    max-height: 750px;
}
.slide-content {
    padding-bottom: 80px;
}
.slide-title {
    font-size: clamp(30px, 5vw, 56px);
    letter-spacing: -0.5px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.slide-subtitle {
    font-size: clamp(15px, 2.2vw, 20px);
    max-width: 550px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.slide-btn {
    padding: 14px 36px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 24px rgba(212,175,55,0.3);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.slide-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(212,175,55,0.4);
}
.slider-controls {
    bottom: 28px;
}
.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s;
}
.slider-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.08);
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}
.slider-dot.active {
    width: 28px;
    border-radius: 5px;
}

/* ═══ Stats Section Enhancement ═══ */
.stats-section {
    padding: 70px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 16px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s;
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: transparent;
}
.stat-card:hover::before {
    transform: scaleX(1);
}
.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(26,92,58,0.08), rgba(26,92,58,0.04));
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--emerald);
    transition: all 0.3s;
}
.stat-card:hover .stat-icon {
    background: var(--emerald);
    color: #fff;
    transform: scale(1.1);
}
.stat-number {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 4px;
}
.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══ Section Headers Enhancement ═══ */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(26,92,58,0.06);
    color: var(--emerald);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}
.section-header h2 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 28px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 8px;
}
.section-ornament {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 6px;
    opacity: 0.6;
}

/* ═══ Department Cards Enhancement ═══ */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.dept-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.dept-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s;
    transform-origin: center;
}
.dept-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
    border-color: transparent;
}
.dept-card:hover::before { transform: scaleX(1); }
.dept-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(26,92,58,0.08), rgba(212,175,55,0.05));
    color: var(--emerald);
    transition: all 0.3s;
}
.dept-card:hover .dept-icon {
    background: var(--emerald);
    color: #fff;
    transform: scale(1.1) rotate(-3deg);
}
.dept-card h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 10px;
}
.dept-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}
.dept-head {
    font-size: 12px;
    color: var(--emerald);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ═══ Activity Cards Enhancement ═══ */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.activity-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    color: inherit;
}
.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.1);
    border-color: transparent;
}
.activity-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.activity-card:hover .activity-img img {
    transform: scale(1.08);
}
.activity-date {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--emerald);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    text-align: center;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
[dir="ltr"] .activity-date { right: auto; left: 12px; }
.activity-date .day {
    display: block;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 18px;
    font-weight: 900;
}
.activity-date .month {
    font-size: 10px;
    opacity: 0.8;
    font-weight: 600;
}
.activity-info {
    padding: 18px;
}
.activity-info h3 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.5;
    transition: color 0.2s;
}
.activity-card:hover .activity-info h3 { color: var(--emerald); }
.activity-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 10px;
}
.activity-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.activity-meta i { color: var(--emerald); }

/* ═══ Vision Section Enhancement ═══ */
.vision-parallax {
    padding: 100px 0;
    background: linear-gradient(135deg, #0B3D2E 0%, #071E15 50%, #0B3D2E 100%);
    position: relative;
    overflow: hidden;
}
.vision-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}
.vision-icon {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 20px;
    opacity: 0.7;
}
.vision-content h2 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}
.vision-text {
    font-family: 'Amiri', serif;
    font-size: 20px;
    line-height: 2;
    color: rgba(255,255,255,0.8);
}
.vision-ornament {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 8px;
    margin-top: 28px;
    opacity: 0.5;
}

/* ═══ Join Section Enhancement ═══ */
.join-section {
    padding: 80px 0;
    background: var(--cream);
}
.join-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.join-step {
    text-align: center;
    padding: 28px 24px;
    flex: 0 0 220px;
    position: relative;
}
.step-number {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: rgba(26,92,58,0.08);
    position: absolute;
    top: 0;
    right: 20px;
    line-height: 1;
}
.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--emerald);
    margin: 0 auto 16px;
    transition: all 0.3s;
}
.join-step:hover .step-icon {
    background: var(--emerald);
    color: #fff;
    border-color: var(--emerald);
    transform: scale(1.1);
}
.join-step h3 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}
.join-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}
.join-connector {
    display: flex;
    align-items: center;
    padding-top: 40px;
    color: var(--gold);
    font-size: 16px;
    opacity: 0.4;
}
.section-more {
    text-align: center;
    margin-top: 36px;
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid var(--emerald);
    color: var(--emerald);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--emerald);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,92,58,0.2);
}
.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--emerald);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26,92,58,0.2);
}
.btn-green:hover {
    background: var(--emerald-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,92,58,0.3);
}

/* ═══ Map Section Enhancement ═══ */
.map-contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}
.map-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    min-height: 420px;
    background: #f5f5f5;
}
.map-card iframe, #publicMap {
    display: block;
    width: 100%;
    height: 420px;
}

/* زر "فتح في Google Maps" - يظهر فقط داخل الخريطة */
.map-open-btn {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: #0d6b4b;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}
.map-open-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s;
}
.contact-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
[dir="ltr"] .contact-item:hover { transform: translateX(4px); }
.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(26,92,58,0.06);
    color: var(--emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.contact-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
}
.contact-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.contact-social {
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.contact-social-links {
    display: flex;
    gap: 8px;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--cream);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s;
}
.social-link:hover {
    background: var(--emerald);
    color: #fff;
    border-color: var(--emerald);
    transform: translateY(-2px);
}

/* ═══ Footer Enhancement ═══ */
.site-footer {
    background: linear-gradient(180deg, #0B3D2E 0%, #071E15 100%);
}
.footer-grid {
    gap: 32px;
}
.footer-col h4 {
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}
[dir="ltr"] .footer-col h4::after { right: auto; left: 0; }
.footer-links li a {
    transition: all 0.2s;
    padding: 3px 0;
    display: inline-block;
}
.footer-links li a:hover {
    color: var(--gold);
    transform: translateX(-4px);
}
[dir="ltr"] .footer-links li a:hover { transform: translateX(4px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    text-align: center;
}

/* ═══ Islamic Borders Enhancement ═══ */
.islamic-border-top, .islamic-border-bottom {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--emerald), var(--gold), transparent);
    opacity: 0.3;
}

/* ═══ Video Section v21.17 ═══ */
.video-section {
    padding: 80px 0;
    background: var(--cream, #f9f7f2);
}

/* fallback */
@supports not (aspect-ratio: 16/9) {
    
}

@media (max-width: 768px) {
    .video-section { padding: 50px 0 !important; }
    
}
.video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0B3D2E, #1A5C3A);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.3);
}
.video-placeholder i { font-size: 48px; }
.video-placeholder p { font-size: 14px; }

/* ═══ COMPREHENSIVE MOBILE v2 ═══ */
@media (max-width: 768px) {
    /* Header */
    .header-container { height: 56px; padding: 0 10px; }
    .main-nav { display: none; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--white);
        z-index: 100;
        padding: 20px;
        gap: 4px;
        overflow-y: auto;
        animation: fadeUp 0.3s ease;
    }
    html.dark-mode .main-nav.open { background: var(--navy); }
    .main-nav.open .nav-link {
        font-size: 15px;
        padding: 12px 16px;
        border-radius: 10px;
    }
    .mobile-toggle { display: flex; }
    .vol-btn { padding: 0 14px; font-size: 11px; }
    .vol-btn span { display: none; }
    .login-btn-new span { display: none; }
    .side-div { display: none; }
    
    /* Hero */
    .hero-slider { height: 55vh; min-height: 380px; }
    .slide-title { font-size: clamp(22px, 6vw, 36px); }
    .slide-subtitle { font-size: 14px; }
    .slide-btn { padding: 12px 28px; font-size: 13px; }
    .slide-content { padding-bottom: 60px; }
    
    /* Stats */
    .stats-section { padding: 40px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 20px 12px; border-radius: 14px; }
    .stat-number { font-size: 24px; }
    .stat-icon { width: 44px; height: 44px; font-size: 18px; }
    
    /* Departments */
    .dept-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .dept-card { padding: 20px 14px; border-radius: 14px; }
    .dept-icon { width: 48px; height: 48px; font-size: 20px; }
    .dept-card h3 { font-size: 14px; }
    .dept-card p { font-size: 12px; }
    
    /* Activities */
    .activities-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .activity-img { height: 140px; }
    .activity-info { padding: 12px; }
    .activity-info h3 { font-size: 13px; }
    .activity-info p { font-size: 11px; }
    
    /* Vision */
    .vision-parallax { padding: 60px 0; }
    .vision-content h2 { font-size: 22px; }
    .vision-text { font-size: 16px; }
    
    /* Join */
    .join-steps { flex-direction: column; align-items: center; }
    .join-connector { transform: rotate(90deg); padding: 0; }
    .join-step { flex: 0 0 auto; }
    
    /* Map */
    .map-contact-grid { grid-template-columns: 1fr; }
    .map-card iframe, #publicMap { height: 280px; }
    .contact-cards { order: -1; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    
    /* Section Headers */
    .section-header { margin-bottom: 32px; }
    .section-header h2 { font-size: 22px; }
    
    /* Video */
    
    .map-contact-grid { grid-template-columns: 1fr; }
    #publicMap { height: 280px; }
    .mobile-fab { display: flex; }
    .mobile-fab.show { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .join-steps { flex-direction: column; align-items: stretch; gap: 0; padding: 0 12px; }
    [dir="ltr"] .join-step { text-align: left; }
    .join-step::after {
        content: '';
        position: absolute;
        top: 36px;
        right: 15px;
        width: 2px;
        height: calc(100% - 36px);
        background: linear-gradient(180deg, var(--emerald), var(--gold));
        border-radius: 1px;
    }
    [dir="ltr"] .join-step::after { right: auto; left: 15px; }
    .join-step:last-child::after { display: none; }
    .join-step:last-child { padding-bottom: 0; }
    .join-step:hover { transform: none; box-shadow: none; }
    .join-step .step-number {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }
    .join-step .step-icon { display: none; }
    .join-step h3 { font-size: 16px; margin-bottom: 4px; }
    .join-step p { font-size: 13px; }
    .hero-slider { height: 45vh; min-height: 350px; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-number { font-size: 28px; }
    .impact-section { padding: 60px 0; }
    .vision-verse { padding: 16px 20px; }
    .verse-text { font-size: 20px; }
    /* Header */
    .main-nav { display: none; }
    .mobile-toggle { display: flex !important; }
    .header-actions .vol-btn { font-size: 11px; padding: 0 14px; height: 32px; }
    .header-actions .vol-btn span { display: none !important; }
    .login-btn-new { padding: 0 8px; min-width: 32px; justify-content: center; }
    .lang-btn { padding: 3px 7px; font-size: 9px; }
    .theme-toggle { width: 30px; height: 30px; font-size: 13px; }
    .site-header .header-container { padding: 0 12px; }
    .logo { margin-left: 8px !important; gap: 6px !important; }
    .logo-text .logo-name { font-size: 14px; }
    .logo-text .logo-branch { font-size: 9px; }
    .logo-svg, .logo img, .logo-img { height: 36px !important; width: 36px !important; max-height: 36px !important; max-width: 36px !important; }
    /* Top bar */
    .top-bar { height: 2px; }
    /* Ticker */
    .news-ticker { height: 34px; }
    .ticker-label { padding: 0 12px; font-size: 10px; }
    /* Hero slider */
    .hero-slider { min-height: 50vh; height: auto; }
    .slider-btn { width: 36px; height: 36px; }
    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-label { font-size: 11px; }
    /* Sections */
    .section-header h2 { font-size: 20px; }
    .section-badge { font-size: 10px; padding: 4px 14px; }
    .container { padding: 0 16px; }
    .activity-card { flex-direction: column; }
    .activity-card .activity-img { width: 100%; height: 180px; }
    /* Join steps */
    .join-steps { flex-direction: column; gap: 20px; }
    .footer-col { text-align: center; }
    .footer-social, .ft-soc { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    /* Map */
    .map-wrapper iframe { height: 250px; }
    /* Video — يحتفظ بنسبة 16:9 تلقائياً عبر padding-bottom */
    /* General spacing */
    section { padding: 40px 0; }
    .section-header { margin-bottom: 28px; }
}

@media (max-width: 480px) {
    .hero-slider { height: 45vh; min-height: 320px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dept-grid { grid-template-columns: 1fr; }
    .activities-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-social-links { flex-wrap: wrap; }
    .news-ticker { display: none; }
    .stat-number { font-size: 28px; }
    /* Header compact */
    .site-header .header-container { gap: 4px; }
    .vol-btn { padding: 0 11px !important; font-size: 10px !important; height: 30px !important; }
    .vol-btn i { display: inline-block !important; font-size: 14px; }
    .login-btn-new { height: 30px; }
    /* Ticker hide */
    .news-ticker { display: none; }
    /* Hero */
    .hero-slider { min-height: 40vh; }
    .slide-title { font-size: 20px !important; }
    .slide-subtitle { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .slide-btn { padding: 8px 20px; font-size: 12px; }
    /* Stats */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-card { padding: 14px 10px; }
    /* Departments */
    .dept-grid { grid-template-columns: 1fr; gap: 10px; }
    /* Section titles */
    .section-header h2 { font-size: 18px; }
    /* Page hero */
    .public-page-hero { padding: 32px 0; }
    .public-page-hero h1 { font-size: 18px; }
    /* Body padding */
    .container { padding: 0 12px; }
    section { padding: 32px 0; }
}

/* ═══ Scroll Reveal Enhancement ═══ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.08s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.16s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.24s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.32s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* ═══ Dark Mode — Public Site ═══ */
html.dark-mode .stats-section { background: linear-gradient(180deg, var(--cream), #1a2420); }
html.dark-mode .stat-card { background: var(--white); border-color: var(--border); }
html.dark-mode .stat-number { color: var(--text); }
html.dark-mode .dept-card { background: var(--white); border-color: var(--border); }
html.dark-mode .activity-card { background: var(--white); border-color: var(--border); }
html.dark-mode .join-section { background: var(--cream); }
html.dark-mode .step-icon { background: var(--white); border-color: var(--border); }
html.dark-mode .video-section { background: var(--cream); }
html.dark-mode .map-section { background: var(--cream); }
html.dark-mode .contact-item { background: var(--white); border-color: var(--border); }
html.dark-mode .contact-social { background: var(--white); border-color: var(--border); }
html.dark-mode .social-link { background: var(--cream); border-color: var(--border); }

/* ═══ Custom Map Marker ═══ */
.map-marker-custom {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-marker-custom span {
    width: 36px;
    height: 36px;
    background: var(--emerald);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Noto Kufi Arabic', sans-serif;
    font-weight: 900;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border: 2px solid #fff;
}
.map-marker-custom span::after {
    content: 'ز';
    transform: rotate(45deg);
}
.map-marker-pulse {
    position: absolute;
    bottom: -4px;
    width: 20px;
    height: 6px;
    background: rgba(26,92,58,0.2);
    border-radius: 50%;
    animation: markerPulse 2s ease infinite;
}
@keyframes markerPulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.5); opacity: 0.1; }
}

/* ═══════════════════════════════════════════
   HOME PAGE ENHANCEMENTS v11
   ═══════════════════════════════════════════ */

/* Enhanced Hero Slider */
.slide-islamic-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 200'%3E%3Cpath d='M50 200V90C50 40 120 10 120 10S190 40 190 90V200' fill='none' stroke='%23D4AF37' stroke-width='0.8'/%3E%3Cpath d='M70 200V95C70 52 120 28 120 28S170 52 170 95V200' fill='none' stroke='%23D4AF37' stroke-width='0.5'/%3E%3Cpath d='M210 200V90C210 40 280 10 280 10S350 40 350 90V200' fill='none' stroke='%23D4AF37' stroke-width='0.8'/%3E%3Cpath d='M230 200V95C230 52 280 28 280 28S330 52 330 95V200' fill='none' stroke='%23D4AF37' stroke-width='0.5'/%3E%3C/svg%3E") !important;
    background-size: 300px !important;
    background-repeat: repeat !important;
    opacity: .04 !important;
}

.slide-title { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: -0.5px; }
.slide-subtitle { font-family: 'Noto Sans Arabic', sans-serif; line-height: 1.8; }

/* Enhanced Stats */
.stats-section { background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%); }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.stat-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,.08); border-color: rgba(26,92,58,.15); }
.stat-icon { border-radius: 18px; }

/* Enhanced Section Headers */
.section-badge { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; border-radius: 100px; }
.section-header h2 { font-family: 'Noto Kufi Arabic', sans-serif; }
.section-ornament { color: var(--gold); font-size: 10px; letter-spacing: 8px; }

/* Enhanced Dept Cards */
.dept-card { border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.dept-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.08); border-color: rgba(26,92,58,.12); }
.dept-icon { border-radius: 18px; }
.dept-card h3 { font-family: 'Noto Kufi Arabic', sans-serif; }

/* Enhanced Activity Cards */
.activity-card { border-radius: 18px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.activity-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,.08); border-color: rgba(26,92,58,.12); }
.activity-info h3 { font-family: 'Noto Kufi Arabic', sans-serif; }
.activity-date { border-radius: 10px; font-family: 'Noto Kufi Arabic', sans-serif; }

/* Enhanced Vision */
.vision-parallax { background: linear-gradient(135deg, #07291C 0%, #0B3D2E 50%, #1A5C3A 100%) !important; }
.vision-content h2 { font-family: 'Noto Kufi Arabic', sans-serif; }
.vision-text { font-family: 'Noto Sans Arabic', sans-serif; line-height: 2; }

/* Enhanced Join Steps */
.join-step { border-radius: 18px; border: 1px solid var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.join-step:hover { box-shadow: 0 12px 36px rgba(0,0,0,.08); }
.join-step h3 { font-family: 'Noto Kufi Arabic', sans-serif; }
.step-number { font-family: 'Noto Kufi Arabic', sans-serif; }
.step-icon { border-radius: 18px; }

/* Enhanced Contact */
.contact-item { border-radius: 14px; border: 1px solid var(--border); }
.social-link { border-radius: 12px; }

/* Enhanced Map */
.map-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 4px 16px rgba(0,0,0,.06); min-height: 420px; }
#publicMap { border-radius: 18px; }

/* Smooth scroll reveal */
.scroll-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* Footer enhancement */
.site-footer { border-top: 3px solid; border-image: linear-gradient(90deg, transparent, var(--gold), var(--emerald), var(--gold), transparent) 1; }

/* Back to top button */
.back-to-top { position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px; background: var(--emerald); color: #fff; border: none; border-radius: 50%; font-size: 18px; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: 0 4px 16px rgba(26,92,58,.3); display: flex; align-items: center; justify-content: center; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* News ticker enhancement */
.news-ticker { border-bottom: 2px solid; border-image: linear-gradient(90deg, transparent, rgba(212,175,55,.3), transparent) 1; }

/* Dark mode home page */
html.dark-mode .stats-section { background: linear-gradient(180deg, var(--cream) 0%, #0F1410 100%); }
html.dark-mode .stat-card { background: var(--white); border-color: var(--border); }
html.dark-mode .dept-card { background: var(--white); border-color: var(--border); }
html.dark-mode .activity-card { background: var(--white); border-color: var(--border); }
html.dark-mode .join-step { background: var(--white); border-color: var(--border); }
html.dark-mode .contact-item { background: var(--white); border-color: var(--border); }
html.dark-mode .map-card { border-color: var(--border); }


/* ═══════════════════════════════════════════════
   v21.17: تعريف موحد للفيديو التعريفي (يتجاوز كل تعريف سابق)
   ═══════════════════════════════════════════════ */
.video-section .video-wrapper,
.video-wrapper {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
    aspect-ratio: 16 / 9 !important;
    padding-bottom: 0 !important;
    height: auto !important;
    position: relative !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(11, 61, 46, 0.25), 0 8px 24px rgba(0, 0, 0, 0.1) !important;
    background: #0B3D2E !important;
    border: 2px solid rgba(201, 169, 76, 0.2) !important;
    display: block !important;
}
/* fallback لمتصفحات قديمة */
@supports not (aspect-ratio: 16/9) {
    .video-wrapper {
        aspect-ratio: auto !important;
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }
}
.video-wrapper iframe,
.video-wrapper video {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
    display: block !important;
    border-radius: inherit !important;
}
.video-wrapper .video-placeholder {
    position: absolute !important;
    inset: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 255, 255, 0.6) !important;
    gap: 16px !important;
}
.video-wrapper .video-placeholder i {
    font-size: 64px !important;
    opacity: 0.5 !important;
}
@media (max-width: 768px) {
    .video-wrapper {
        max-width: 100% !important;
        border-radius: 14px !important;
    }
}
/* ═══ end video unified ═══ */
