/* ===================================================
   جمعية جمال علي الخيرية - Main Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* CSS Variables */
:root {
  --primary: #1a3a2a;
  --primary-light: #2d5a40;
  --primary-dark: #0f2219;
  --gold: #c9a84c;
  --gold-light: #e8c878;
  --gold-dark: #a07830;
  --white: #ffffff;
  --cream: #f8f5f0;
  --text-dark: #1a1a1a;
  --text-mid: #444444;
  --text-light: #888888;
  --border: rgba(201, 168, 76, 0.3);
  --shadow: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.7;
}

body.ltr-page {
  direction: ltr;
  font-family: 'Cairo', Georgia, serif;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 34, 25, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  height: 65px;
  box-shadow: var(--shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  filter: brightness(1.2) contrast(1.1);
}

.nav-logo-text {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

.nav-logo-text span {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
}

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

.nav-social a {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  transition: var(--transition);
  text-decoration: none;
}

.nav-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 60% at 30% 50%, rgba(26,58,42,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    linear-gradient(135deg, #0a1a12 0%, #1a3a2a 50%, #0f2219 100%);
}

.hero-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%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  animation: heroFadeIn 1.5s ease forwards;
}

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

.hero-logo {
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 8px rgba(201,168,76,0.15), 0 0 60px rgba(201,168,76,0.2);
  margin: 0 auto 2rem;
  display: block;
  object-fit: cover;
  filter: brightness(1.3) contrast(1.1);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(201,168,76,0.15), 0 0 60px rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0.25), 0 0 80px rgba(201,168,76,0.35); }
}

.hero-tagline {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-title span {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hero-dates {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
}

.hero-quote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--gold-light);
  font-weight: 700;
  font-style: italic;
  margin-bottom: 3rem;
  position: relative;
}

.hero-quote::before {
  content: '"';
  font-size: 5rem;
  color: rgba(201,168,76,0.15);
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: serif;
  line-height: 1;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(201,168,76,0.35);
  font-family: 'Cairo', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(201,168,76,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cairo', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-align: center;
  animation: bounce 2s infinite;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  margin: 8px auto 0;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================================
   SECTIONS COMMON
   =================================================== */
section {
  padding: 80px 0;
}

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

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

.section-label {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to left, var(--gold), var(--gold-light));
  margin: 16px auto;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===================================================
   STATS SECTION
   =================================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid rgba(201,168,76,0.2);
}

.stat-card:last-child { border-right: none; }

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===================================================
   QUOTES SECTION
   =================================================== */
.quotes-section {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.quotes-section::before {
  content: '"';
  position: absolute;
  font-size: 30rem;
  color: rgba(26,58,42,0.03);
  font-family: serif;
  top: -5rem;
  right: -2rem;
  line-height: 1;
  pointer-events: none;
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.quote-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--primary));
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.quote-icon {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.quote-text {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.quote-author-info strong {
  display: block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.quote-author-info span {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* ===================================================
   PHOTO SLIDER
   =================================================== */
.gallery-section {
  background: var(--cream);
  overflow: hidden;
}

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

.slides-wrapper {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/7;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(15,34,25,0.9), transparent);
  padding: 3rem 2rem 1.5rem;
  color: var(--white);
}

.slide-caption h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.slider-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(26,58,42,0.25);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

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

.slider-btn.prev { right: 1rem; }
.slider-btn.next { left: 1rem; }

/* ===================================================
   VIDEOS SECTION
   =================================================== */
.videos-section {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.videos-section .section-title { color: var(--white); }
.videos-section .section-desc { color: rgba(255,255,255,0.6); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.video-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.2rem;
}

.video-info h3 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

/* ===================================================
   PAGE HEADER (inner pages)
   =================================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--white);
  position: relative;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-top: 12px;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  position: relative;
}

.breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* ===================================================
   TIMELINE
   =================================================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--primary), var(--gold));
  transform: translateX(50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-left: 55%;
  margin-bottom: 3rem;
  position: relative;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-left: 0;
  padding-right: 55%;
  transform: translateX(-30px);
}

.timeline-item:nth-child(even).visible {
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  top: 20px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--gold);
  z-index: 1;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  max-width: 380px;
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.timeline-year {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-content h3 {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===================================================
   CARDS GRID
   =================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,58,42,0.03), transparent);
  pointer-events: none;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.card-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.info-card:hover .card-icon {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--white);
  transform: scale(1.1);
}

.info-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* ===================================================
   BOARD MEMBERS
   =================================================== */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.board-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.board-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.board-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 2rem;
  border: 3px solid var(--gold-light);
  overflow: hidden;
}

.board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.board-card h3 {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.board-card .role {
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(201,168,76,0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* ===================================================
   ORG CHART
   =================================================== */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 2rem;
  position: relative;
  width: 100%;
}

.org-node {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 1.2rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  border: 2px solid rgba(201,168,76,0.3);
  transition: var(--transition);
  min-width: 180px;
}

.org-node:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(26,58,42,0.3);
}

.org-node.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--primary-dark);
  border-color: var(--gold-light);
}

.org-node h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.org-node span {
  font-size: 0.8rem;
  opacity: 0.8;
}

.org-connector {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 20px 0;
}

.org-connector::before {
  content: '';
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold), var(--primary));
}

.org-connector-h {
  display: flex;
  justify-content: center;
  padding: 0 0 20px;
  position: relative;
}

.org-connector-h::before {
  content: '';
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), var(--primary), var(--gold), transparent);
  width: 70%;
}

/* ===================================================
   PROJECTS CARDS
   =================================================== */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.project-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.project-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(201,168,76,0.5) 10px, rgba(201,168,76,0.5) 11px
  );
}

.project-icon-big {
  font-size: 3rem;
  color: var(--gold);
  display: block;
  position: relative;
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-body h3 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-card-body p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.project-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-planned {
  background: rgba(201,168,76,0.15);
  color: var(--gold-dark);
}

.status-active {
  background: rgba(26,58,42,0.1);
  color: var(--primary);
}

/* ===================================================
   POEM SECTION
   =================================================== */
.poem-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.poem-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
}

.poem-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.poem-author {
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.poem-text {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 2.2;
  white-space: pre-line;
}

.poem-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.poem-line {
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  font-size: 0.95rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ===================================================
   CONTACT / FORM
   =================================================== */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid rgba(26,58,42,0.15);
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  filter: brightness(1.2);
  margin-bottom: 1rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

.footer-col h4 {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===================================================
   FIXED SOCIAL BAR
   =================================================== */
.social-float {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 900;
}

.social-float a {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary);
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-float a:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================
   MASONRY GRID
   =================================================== */
.masonry-grid {
  columns: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.masonry-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

/* ===================================================
   PHOTO GALLERY GRID
   =================================================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 2rem; right: 2rem;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }

/* ===================================================
   VISITOR COUNTER
   =================================================== */
.visitor-counter {
  background: rgba(201,168,76,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
}

.visitor-counter .count {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}

.visitor-counter .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ===================================================
   STORY SECTION (Idna page)
   =================================================== */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.story-block:nth-child(even) .story-text { order: 2; }
.story-block:nth-child(even) .story-img { order: 1; }

.story-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.story-text h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.story-text p {
  color: var(--text-mid);
  font-size: 0.98rem;
  line-height: 2;
  margin-bottom: 1rem;
}

/* ===================================================
   ENGLISH PAGE
   =================================================== */
.ltr-page .section-title {
  font-family: 'Cairo', serif;
}

/* ===================================================
   MOBILE MENU
   =================================================== */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,34,25,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  width: 80%;
  text-align: center;
  transition: var(--transition);
}

.nav-mobile a:hover { color: var(--gold); }

.nav-mobile-close {
  position: absolute;
  top: 2rem; left: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-social { display: none; }
  .hamburger { display: flex; }
  
  .timeline::before { right: 20px; }
  .timeline-item {
    padding-left: 0;
    padding-right: 0;
    justify-content: flex-start;
    padding-left: 50px;
    transform: translateX(20px);
  }
  .timeline-item:nth-child(even) {
    padding-right: 0;
    padding-left: 50px;
    justify-content: flex-start;
    transform: translateX(20px);
  }
  .timeline-dot {
    right: auto;
    left: 12px;
    transform: none;
  }
  .timeline-content { max-width: 100%; }
  
  .masonry-grid { columns: 1; }
  .story-block { grid-template-columns: 1fr; }
  .story-block:nth-child(even) .story-text { order: 1; }
  .story-block:nth-child(even) .story-img { order: 2; }
  
  .poem-columns { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .social-float { display: none; }
  .org-level { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  section { padding: 60px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(201,168,76,0.2); }
}

/* ===================================================
   UTILITY
   =================================================== */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-dark { background: var(--primary-dark); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.py-4 { padding: 4rem 0; }
.d-flex { display: flex; }
.gap-1 { gap: 1rem; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
/* Dropdown Menu */

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 999;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 18px;
    text-decoration: none;
    color: #333;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #f5f5f5;
}

.dropdown:hover .dropdown-menu {
    display: block;
}
html, body {
  height: auto;
  overflow-y: auto;
}
.poem-bg {
  min-height: 100vh;
  overflow-y: auto;
}
