/* =====================================================
   main.css - صندوق الشلهوب - النسخة الموحدة v2.0
   ===================================================== */

/* ===== متغيرات CSS الأساسية ===== */
:root {
  --primary:       #1E2B6E;
  --primary-dark:  #151f52;
  --primary-light: #2a3a8f;
  --secondary:     #8B7355;
  --secondary-light:#a08870;
  --bg:            #F5EDE0;
  --bg-light:      #FAF7F2;
  --text-dark:     #1A2040;
  --text-muted:    #6c757d;
  --white:         #FFFFFF;
  --border:        #e8e0d5;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;
  --shadow:        0 4px 20px rgba(30,43,110,0.12);
  --shadow-lg:     0 10px 40px rgba(30,43,110,0.18);
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;
  --transition:    0.3s ease;

  /* ألوان البلوكات - تُستبدل من قاعدة البيانات */
  --hero-bg:           linear-gradient(135deg, #1E2B6E 0%, #2a3a8f 100%);
  --hero-text:         #ffffff;
  --stats-bg:          #F5EDE0;
  --stats-text:        #1E2B6E;
  --news-bg:           #ffffff;
  --news-text:         #1A2040;
  --events-bg:         #FAF7F2;
  --events-text:       #1A2040;
  --partners-bg:       #F5EDE0;
  --donations-bg:      #1E2B6E;
  --donations-text:    #ffffff;
  --footer-bg:         #1A2040;
  --footer-text:       #ffffff;

  /* الجوال */
  --primary: #8B7355;
  --white: #ffffff;
  --border: #eeeeee;
  --text-dark: #333333;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  font-size: 16px;
}

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

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

ul, ol { list-style: none; }

button { cursor: pointer; font-family: inherit; }

/* ===== المرافق ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.section-padding { padding: 80px 0; }

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

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header { margin-bottom: 50px; }

/* الخط المميز أسفل العنوان */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(to left, var(--secondary), var(--primary));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ===== الأزرار ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}

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

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

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-lg { padding: 15px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.9rem; }

/* ===== الشريط الإخباري ===== */
.news-ticker-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
/* يمكنك تعديل مدة التحريك (30s) لتناسب طول النص وعدد الأخبار في الشريط */
.ticker-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 20s linear infinite; /*reverse*/
}

.ticker-label {
  background: var(--secondary);
  color: var(--white);
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 20px;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  padding: 0 40px;
}

.ticker-separator {
  color: var(--secondary);
  margin: 0 10px;
  font-size: 1.2rem;
}

/* اختياري: توقف عند التمرير بالماوس */
.news-ticker-bar:hover .ticker-inner {
  animation-play-state: paused;
}

/* حركة التمرير من اليسار لليمين */
@keyframes tickerScroll {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

/* ===== الهيدر ===== */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

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

.site-logo img {
  height: 55px;
  width: auto;
  object-fit: contain;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.logo-en {
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ===== التنقل ===== */
.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: rgba(30,43,110,0.06);
}

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.75rem;
  margin-right: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  border: 1px solid var(--border);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  border-radius: 0;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

/* زر التبرع */
.btn-donate {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(139,115,85,0.35);
}

.btn-donate:hover {
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139,115,85,0.45);
}

/* قائمة الجوال */

/* زر الهامبرغر */
.hamburger {
    display: none !important; /* تأكد أنه يظهر في الجوال */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* قائمة الجوال الرئيسية */
.mobile-nav {
    display: none; /* مخفية افتراضياً */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 10px 20px;
    border-top: 1px solid var(--border);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1000;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a, .mobile-dropdown-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--text-dark);
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
}

/* تنسيق الدروب داون */
.mobile-dropdown-menu {
    display: none; /* مخفي افتراضياً */
    background: #f9f9f9;
    padding-right: 15px; /* إزاحة لجهة اليمين لتبدو كقائمة فرعية */
}

.mobile-dropdown-menu a {
    font-weight: 400;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

/* السهم الصغير */
.arrow {
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transform: rotate(45deg);
    transition: transform 0.3s;
}

.mobile-nav-dropdown.open .arrow {
    transform: rotate(-135deg);
}

.mobile-nav-dropdown.open > .mobile-dropdown-menu {
    display: block;
}

/* old
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-nav {
  display: none;
  background: var(--white);
  padding: 15px 20px;
  border-top: 1px solid var(--border);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--text-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

.mobile-nav.active { display: block; }
*/

/* ===== Hero ===== */
.hero-section {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="80" r="60" fill="rgba(255,255,255,0.03)"/></svg>');
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-title span { color: var(--secondary); }

.hero-description {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }


.hero-image-wrapper {
    position: relative;
}

.hero-image-inner {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.hero-stats-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.hero-stat-item {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 15px;
    text-align: center;
}

.hero-stat-item .num {
    font-size: 1.6rem;
    font-weight: 800;
    color: #d4b896;
}

.hero-stat-item .label {
    font-size: 0.78rem;
    opacity: 0.8;
    margin-top: 3px;
}

/* ===== بلوك الإحصائيات ===== */
.stats-section {
  background: var(--stats-bg);
  color: var(--stats-text);
  padding: 60px 0;
}

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

.stat-card {
  text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition);
  border-top: 4px solid var(--primary);
}

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

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== بطاقات الأخبار والمناسبات ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0;
}

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

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

.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-date {
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 15px;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
}

.card-link:hover { color: var(--secondary); }

/* ===== بلوك التبرعات ===== */
.donations-section { background: var(--donations-bg); color: var(--donations-text); }

.donation-card {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.donation-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-4px);
}

.donation-card .card-image { background: rgba(255,255,255,0.1); }

.donation-card .card-body { color: inherit; }

.donation-card .card-title { color: var(--white); }

.progress-bar-wrap {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to left, var(--secondary), var(--secondary-light));
  border-radius: 10px;
  transition: width 1s ease;
}

.donation-amounts {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 15px;
}

/* ===== شركاء النجاح ===== */
.partners-section { background: var(--partners-bg); padding: 60px 0; }

.partner-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  height: 100px;
  transition: transform var(--transition);
}

.partner-slide:hover { transform: scale(1.05); }

.partner-slide img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

.partner-slide:hover img { filter: none; opacity: 1; }

/* ===== الفوتر ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

.footer-logo { height: 60px; object-fit: contain; margin-bottom: 15px; }

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  padding: 5px 0;
  font-size: 0.92rem;
  transition: color var(--transition);
}

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

.bank-item {
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  margin-bottom: 10px;
  border-right: 3px solid var(--secondary);
}

.bank-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 4px;
}

.bank-iban {
  font-size: 0.8rem;
  opacity: 0.75;
  font-family: monospace;
  direction: ltr;
  text-align: left;
}

.footer-map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 10px;
}

.footer-map iframe {
  width: 100%;
  height: 180px;
  border: none;
  border-radius: var(--radius-sm);
}

.social-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ===== شريط التقدم العام ===== */
.progress-wrap {
  background: var(--border);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to left, var(--primary), var(--primary-light));
  border-radius: 10px;
  transition: width 1s ease;
}

/* ===== الشارات ===== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-success  { background: #d1fae5; color: #065f46; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-secondary{ background: #f3f4f6; color: #374151; }
.badge-primary  { background: #dbeafe; color: #1e40af; }

/* ===== Timeline (صفحة التاريخ) ===== */
.timeline { position: relative; padding: 20px 0; }

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

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.timeline-item:nth-child(even) .timeline-content { order: 3; }
.timeline-item:nth-child(even) .timeline-empty   { order: 1; }

.timeline-dot {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(30,43,110,0.15);
  z-index: 1;
  flex-shrink: 0;
}

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

.timeline-content:hover { transform: translateY(-3px); }

.timeline-year {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--bg);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
}

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

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.timeline-empty { visibility: hidden; }


/* ===== hik (صفحة حكايتنا) ===== */
.hik { position: relative; padding: 20px 0; }
/*
.hik::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  transform: translateX(50%);
}
*/
.hik-item {
  display: grid;
  grid-template-columns: auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 50px;
}

.hik-item:nth-child(even) .hik-content { order: 3; }
.hik-item:nth-child(even) .hik-empty   { order: 1; }

.hik-dot {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 0 0 5px rgba(30,43,110,0.15);
  z-index: 1;
  flex-shrink: 0;
}

.hik-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 25px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.hik-content:hover { transform: translateY(-3px); }

.hik-year {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--bg);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
}

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

.hik-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hik-empty { visibility: hidden; }

/* ===== رجال القبيلة ===== */
.tribe-men-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.tribe-man-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.tribe-man-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tribe-man-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px;
  border: 4px solid var(--bg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tribe-man-photo-placeholder {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2.5rem;
  margin: 0 auto 15px;
}

.tribe-man-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.tribe-man-title {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

.tribe-man-bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== النماذج ===== */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,43,110,0.1);
}

.form-control::placeholder { color: #aaa; }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E2B6E'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 12px center; padding-left: 40px; }

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

/* ===== التنبيهات ===== */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-warning { background: #fef3c7; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }

/* ===== المودال ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

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

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 35px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition);
}

.modal-overlay.active .modal-box { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--bg);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  transition: all var(--transition);
}

.modal-close:hover { background: #fee2e2; color: var(--danger); }

/* ===== صفحة Hero الداخلية ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.page-hero p  { opacity: 0.85; font-size: 1.05rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .separator { color: var(--text-muted); }

/* ===== نموذج الأعمال والمناسبات ===== */
.form-section {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .timeline::before { display: none; }
  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .timeline-item:nth-child(even) .timeline-content { order: 2; }
  .timeline-item:nth-child(even) .timeline-empty   { display: none; }
  .timeline-empty { display: none; }

  .hik::before { display: none; }
  .hik-item {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }
  .hik-item:nth-child(even) .hik-content { order: 2; }
  .hik-item:nth-child(even) .hik-empty   { display: none; }
  .hik-empty { display: none; }

  /*.hamburger { display: none; }*/

}

@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; }
  .section-padding { padding: 50px 0; }
  .section-title { font-size: 1.6rem; }
  .hero-section { padding: 70px 0; }
  .hero-title { font-size: 2rem; }
  .main-nav { display: none; }
  .hamburger { display: flex !important; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 15px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .tribe-men-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modal-box { padding: 25px 20px; }
}
