/* =========================
   VARIABLES
========================= */
:root {
  --blue-main: #1A4F8B;
  --blue-dark: #0B2E4E;
  --green-accent: #2BB673;
  --purple-accent: #6A4C93;
  --gold-soft: #C9A66B;
  --bg-soft: #f5f9ff;
}

/* =========================
   GLOBAL
========================= */
@font-face{
  font-family:'Droid Arabic Kufi' ;
  src: url(../fonts/Droid.Arabic.Kufi.ttf);
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Droid Arabic Kufi', sans-serif;
  color: var(--blue-dark);
  line-height: 1.7;

  background:
    radial-gradient(circle at 20% 30%, rgba(26,79,139,0.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(43,182,115,0.06), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(106,76,147,0.05), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* طبقة حركة خفيفة */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;


  background:
    radial-gradient(circle at 30% 40%, rgba(26,79,139,0.12), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(43,182,115,0.1), transparent 45%),
    radial-gradient(circle at 50% 20%, rgba(106,76,147,0.08), transparent 50%);

  animation: floatBackground 18s ease-in-out infinite;
  z-index: -1;
}

/* حركة بطيئة جدًا */
@keyframes floatBackground {
  0%   { transform: translateY(0) translateX(0); }
  50%  { transform: translateY(-25px) translateX(20px); }
  100% { transform: translateY(0) translateX(0); }
}



/* =========================
   HEADER
========================= */
.main-header {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* الصف العلوي */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 30px;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-logos img {
  height: 60px;
 
}
.logo-divider {
  width: 2px;
  height: 50px;
  background: linear-gradient(
    to bottom,
    transparent,
    #1A4F8B,
    transparent
  );
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;

  font-size: clamp(12px, 1vw, 14px); /* يصغر ويكبر حسب الشاشة */
  white-space: nowrap;              /* سطر واحد فقط */
}


.login-link {
  color: #1A4F8B;
  font-weight: 600;
  text-decoration: none;
}

.header-btn {
  background: linear-gradient(135deg, #1A4F8B, #2BB673);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
}

/* شريط التابات */
.header-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 15px;
  background: #f5f5f5;
}
/* شكل كل تاب */
.header-tabs .tab {
  text-decoration: none;
  background: #ffffff;
  color: #333;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}
/* عند تمرير المؤشر */
.header-tabs .tab:hover {
  background: #f5f5f5; /* لون التفاعل */
  color:  #333;
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(10, 110, 189, 0.3);
}
/* لو حاب تميز الصفحة الحالية */
.header-tabs .tab.active {
  background: #0a6ebd;
  color: #fff;
  box-shadow: 0 6px 14px rgba(10, 110, 189, 0.35);
}
.tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
  color: #1A4F8B;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.tab span {
  font-weight: 500;
}

.tab:hover {
  background: rgba(26,79,139,0.08);
  transform: translateY(-2px);
}

.tab.active {
  background: linear-gradient(135deg, #1A4F8B, #2BB673);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26,79,139,0.25);
}


.login-link {
  color: var(--blue-main);
  text-decoration: none;
  font-weight: 600;
}

.login-link:hover {
  text-decoration: underline;
}

/* =========================
   SECTIONS
========================= */
section {
  position: relative;
  z-index: 1;
  width: 100%;
   padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 48px);
   border-radius: 25px;

}

/* =========================
   HERO
========================= */
.hero {
  width: 100%;
  .hero {
  padding: 30px 20px;
}

  padding: clamp(50px, 18vw, 30px) 10px clamp(50px, 10vw, 140px);
  background: linear-gradient(135deg, #1A4F8B, #2BB673, #6A4C93);
  color: white;
  text-align: center;
  position: relative;
  

}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); /* حجم أكبر قليلاً */
  font-weight: 900;
  margin: 0; /* إزالة أي مسافة سفلية */
  line-height: 1; /* للتأكد أنه سطر واحد */
  white-space: nowrap; /* لمنع التفاف النص */
  transform: translateY(-30px); /* رفع العنوان قليلاً */
  text-align: center;
  animation: glow 2.5s infinite alternate;
}




/* Glow Animation */
@keyframes glow {
  0% {
    text-shadow: 0 0 10px rgba(255,255,255,0.4),
                 0 0 25px rgba(106,76,147,0.6);
  }
  100% {
    text-shadow: 0 0 18px rgba(255,255,255,0.6),
                 0 0 40px rgba(43,182,115,0.7);
  }
}

/* =========================
   COUNTDOWN
========================= */
.countdown.floating {
  position: absolute;
  left: 50%;
  bottom: -60px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
  padding: 22px 26px;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  display: flex;
  z-index: 10;
}

#timer {
   display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

#timer div {
  min-width: 120px;
  padding: 25px 12px;
  background: rgba(255,255,255,0.3);
  border-radius: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#timer span {
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--blue-dark);
}

#timer small {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--blue-main);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-block;
  background: white;
  color: var(--blue-main);
  padding: 12px 30px;
  margin: 10px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--green-accent);
  color: white;
  transform: translateY(-3px);
}


.journey-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 24px;
}

.journey {
  padding: 80px 20px;
  text-align: center;
}

.path {
  max-width: 700px;
  margin: 60px auto;
  position: relative;
}

.path::before {
  content: "";
  position: absolute;
  right: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--blue-main), var(--green-accent));
  transform: translateX(50%);
  border-radius: 10px;
}

.step-item {
  display: flex;
  align-items: center;
  margin: 60px 0;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.foot {
  font-size: 2.5rem;
  background: white;
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  z-index: 2;
}

.step-box {
  background: white;
  padding: 20px 26px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  width: 280px;
  margin: 0 25px;
  text-align: right;
}

.step-box h3 {
  margin: 0 0 8px;
  color: var(--blue-main);
}

.step-box p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* عند الظهور */
.step-item.active {
  opacity: 1;
  transform: translateY(0);
}

.card,
.step {
  background: white;
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.card:hover,
.step:hover {
  transform: translateY(-6px);
}

/* =========================
   FORMS
========================= */
form {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

input, select {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  font-family: 'Tajawal', sans-serif;
}

/* =========================
   FOOTER
========================= */
footer {
  background: linear-gradient(90deg, var(--blue-dark), var(--purple-accent));
  color: white;
  text-align: center;
  padding: 26px;
  margin-top: 60px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 14px;
  }
.countdown.floating {
  position: absolute;
  left: 50%;
  bottom: -80px;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(15px);
  padding: 40px 50px;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
  display: flex;
  z-index: 10;
}

#timer {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

#timer div {
  min-width: 120px;
  padding: 25px 12px;
  background: rgba(255,255,255,0.3);
  border-radius: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#timer span {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--blue-dark);
}

#timer small {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 10px;
  color: var(--blue-main);
}


}
.tracks {
  padding: 80px 20px;
  text-align: center;
}

.tracks-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 32px);
}


.track-card {
  padding: 35px 20px;
  border-radius: 22px;
  color: white;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.4s ease;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.track-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
}

.track-card .icon {
  font-size: 2.8rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.6));
}
@media (max-width: 1024px) {
  .tracks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tracks-grid {
    grid-template-columns: 1fr;
  }
}

/* حركة وتفاعل */
.track-card:hover {
  transform: translateY(-10px) scale(1.03);
}
/* ألوان حسب المسار */

.business {
  background: linear-gradient(135deg, #10B981, #059669); /* إدارة أعمال */
}

.it {
  background: linear-gradient(135deg, #1A4F8B, #2BB673); /* تقنية المعلومات */
}

.mech {
  background: linear-gradient(135deg, #64748B, #94A3B8); /* هندسة التصنيع */
}

.safety {
  background: linear-gradient(135deg, #FACC15, #F97316); /* الصحة والسلامة */
}

.lifting {
  background: linear-gradient(135deg, #FB923C, #EA580C); /* الرفع والتنزيل */
}

.facilities {
  background: linear-gradient(135deg, #EC4899, #A855F7); /* صيانة المنشآت */
}

.welding {
  background: linear-gradient(135deg, #111827, #6A4C93); /* اللحام والمعادن */
}

.maintenance {
  background: linear-gradient(135deg, #6366F1, #3B82F6); /* الصيانة الهندسية */
}

.tourism {
  background: linear-gradient(135deg, #0EA5E9, #22D3EE); /* السفر والسياحة */
}

/* إعداد عام */
.track-card {
  position: relative;
  overflow: hidden;
  color: white;
}


/* النبذة */
.track-info {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: 0.45s ease;
  text-align: center;
}

/* عند تمرير الماوس */
.track-card:hover .track-info {
  bottom: 0;
}
.track-card:hover .icon {
  transform: scale(1.15);
  transition: 0.4s ease;
}
.track-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
  opacity: 0;
  transition: 0.3s;
}

.track-card:hover::after {
  opacity: 1;
}
/* =========================
   EVENT INFO BELOW COUNTDOWN
========================= */
.event-info {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;

  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.event-info .info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-info .divider {
  width: 2px;
  height: 20px;
  background: rgba(255, 255, 255, 0.6);
}
/* =========================
   قسم الرؤية
========================= */
.vision-creative {
  padding: 60px 20px;
  background: linear-gradient(135deg, #f4f7fb, #eef2f7);
  text-align: center;
}

.vision-card {
  max-width: 100%;
  margin: auto;
  background: #fff;
  border-radius: 18px;
  padding: 40px 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.vision-card h2 {
  font-size: 32px;
  margin-bottom: 15px;
}

.vision-intro {
  font-size: 18px;
  color: #555;
  margin-bottom: 40px;
}

.vision-items {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* عدد البطاقات */
  gap: 20px;
}

.vision-item {
  background: #f9fafc;
  border-radius: 14px;
  padding: 25px 15px;
  transition: all 0.3s ease;
}

.vision-item span {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.vision-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.vision-footer {
  margin-top: 35px;
  font-weight: 500;
  color: #0a6ebd;
}

@media (max-width: 992px) {
  .vision-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .vision-items {
    grid-template-columns: 1fr;
  }
}



.prize-card {
  position: relative;
  width: 320px;
  height: 280px;
  margin: auto;
  perspective: 1200px;
}


.prize-face {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  opacity: 0;
  transform: rotateY(90deg) scale(0.95);
  transition: all .8s ease;
  backdrop-filter: blur(10px);
}

.prize-face.active {
  opacity: 1;
  transform: rotateY(0deg) scale(1);
  z-index: 2;
}

.amount {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 10px 0;
}


/* أيقونات ضخمة */
.mega-icons {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 10;
  pointer-events: none;

}

.mega-icons span {
  font-size: 4.8rem;
  animation: megaFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 15px 30px rgba(255,215,0,0.6));
}

/* اختلاف الحركات */
.mega-icons .gold {
  animation-delay: 0s;
}
.mega-icons .trophy {
  animation-delay: 1.5s;
}
.mega-icons .spark {
  animation-delay: 3s;
}

/* حركة سينمائية */
@keyframes megaFloat {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.8;
  }
  40% {
    transform: translateY(-25px) scale(1.1) rotate(8deg);
    opacity: 1;
  }
  70% {
    transform: translateY(-10px) scale(1.05) rotate(-6deg);
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 0.8;
  }
}

/* الصندوق */
.prize-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A4F8B, #2BB673);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  backface-visibility: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

/* المبلغ */
.amount {
  font-size: 3.4rem;
  font-weight: 900;
  margin: 10px 0;
  color: #FFD700;
  text-shadow: 0 4px 20px rgba(255,215,0,0.8);
}

.prize-card.flipped {
  transform: rotateY(180deg);
}

.prize-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1A4F8B, #2BB673);
  border-radius: 28px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.prize-face.back {
  background: linear-gradient(135deg, #6A4C93, #C9A66B);
  transform: rotateY(180deg);
}

.prize-face .icon {
  font-size: 4rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.6));
}

.prize-face h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.prize-face .amount {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.prize-face small {
  margin-top: 8px;
  font-size: 1.1rem;
  opacity: 0.9;
}
/* أيقونات عائمة */
.floating-icons {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 5;
  pointer-events: none;

}

.floating-icons span {
  font-size: 2.2rem;
  animation: floatIcon 4s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

/* اختلاف التوقيت */
.floating-icons span:nth-child(1) {
  animation-delay: 0s;
}
.floating-icons span:nth-child(2) {
  animation-delay: 1.2s;
}
.floating-icons span:nth-child(3) {
  animation-delay: 2.4s;
}

/* حركة الطفو */
@keyframes floatIcon {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.85;
  }
}#register {
  padding: 70px 20px;
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

#register h2 {
  color: #1A4F8B;
  margin-bottom: 25px;
  font-size: 1.9rem;
  text-align: center;
}

/* البطاقة */
#registrationForm {
  max-width: 420px;   /* عرض أقل */
  margin: auto;
  background: #fff;
  padding: 30px 26px;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* الحقول */
#registrationForm input,
#registrationForm select,
#registrationForm textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  font-family: "Tajawal";
  font-size: 0.9rem;
  background: #f8fafc;
  transition: border 0.2s, box-shadow 0.2s;
}

#registrationForm textarea {
  resize: vertical;
  min-height: 110px;
}

#registrationForm input:focus,
#registrationForm select:focus,
#registrationForm textarea:focus {
  outline: none;
  border-color: #1A4F8B;
  box-shadow: 0 0 0 3px rgba(26,79,139,0.12);
  background: #fff;
}

/* checkbox */
#registrationForm label {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* زر الإرسال */
#registrationForm button {
  margin-top: 8px;
  background: linear-gradient(135deg, #1A4F8B, #2BB673);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

#registrationForm button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26,79,139,0.35);
}

/* الحقول المعطلة */
#registrationForm select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin: 30px 0 60px;
}

/* الأساس */
.podium-place {
  width: 180px;
  background: #fff;
  border-radius: 16px 16px 8px 8px;
  padding: 20px 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.4s ease;
}

.podium-place:hover {
  transform: translateY(-8px);
}

.rank {
  display: block;
  font-weight: bold;
  margin-top: 10px;
  color: #555;
}

.winner-name {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  color: #1A4F8B;
}

/* الميداليات */
.medal {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin: 0 auto 10px;
}

/* الأول */
.first {
  height: 220px;
  background: linear-gradient(135deg, #FFD700, #FFC107);
}
.first .medal {
  background: radial-gradient(circle, #fff3b0, #FFD700);
}
.first::after {
  content: "🥇";
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
}

/* الثاني */
.second {
  height: 190px;
  background: linear-gradient(135deg, #E5E7EB, #9CA3AF);
}
.second .medal {
  background: radial-gradient(circle, #fff, #9CA3AF);
}
.second::after {
  content: "🥈";
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 36px;
}

/* الثالث */
.third {
  height: 170px;
  background: linear-gradient(135deg, #D97706, #92400E);
}
.third .medal {
  background: radial-gradient(circle, #fde68a, #92400E);
}
.third::after {
  content: "🥉";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 34px;
}
.stats-section {
  text-align: center;
  margin: 100px auto;
  max-width: 900px;
}

.stats-section h2 {
  color: #1A4F8B;
  margin-bottom: 3px;
}

.subtitle {
  color: #666;
  margin-bottom: 50px;
}

/* إطار الشارت */
.chart-wrapper {
  border-bottom: 2px solid #e0e6ef;
  padding-bottom: 20px;
}

/* الأعمدة */
.bar-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 320px;
  gap: 30px;
}

.bar-item {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* العمود */
.bar {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, #2BB673, #1A4F8B);
  border-radius: 16px 16px 0 0;
  position: relative;
  animation: grow 1.6s ease forwards;
}

/* الرقم فوق العمود */
.bar::before {
  content: attr(data-value);
  position: absolute;
  top: -32px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #1A4F8B;
}

/* اسم المرحلة */
.label {
  margin-top: 14px;
  font-weight: 600;
  color: #1A4F8B;
  font-size: 0.95rem;
}

/* عمود مميز */
.bar-item.highlight .bar {
  background: linear-gradient(180deg, #FACC15, #F97316);
  box-shadow: 0 0 25px rgba(249,115,22,0.5);
}

.bar-item.highlight .bar::before {
  color: #F97316;
}

/* الحركة */
@keyframes grow {
  from { height: 0; }
  to { height: var(--height); }
}

/* موبايل */
@media (max-width: 768px) {
  .bar-item { width: 70px; }
  .label { font-size: 0.8rem; }
}
.visitor-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 30px;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
  animation: floatUp 3s ease-in-out infinite;
}

.visitor-box .emoji {
  font-size: 1.8rem;
}

.visitor-box small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
}

.visitor-box strong {
  font-size: 1.2rem;
}


@keyframes pulseGold {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 215, 0, 0);
    color: #fff;
  }
  50% {
    transform: scale(1.3);
    text-shadow:
      0 0 10px rgba(255, 215, 0, 0.9),
      0 0 25px rgba(255, 193, 7, 0.8);
    color: #FFD700;
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 215, 0, 0);
    color: #fff;
  }
}
 /* تنسيق فيدوهات عرض المسارات في الصفحة الاولى */
.video-carousel {
    margin: 5px 0;
  position: relative;
  width: 900px;
  height: 500px;
  
  perspective: 1200px; /* لإحساس العمق */
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-video {
  position: absolute;
  width: 300px;
  height: 180px;
  border-radius: 15px;
  object-fit: cover;
  opacity: 0.5;
  transform: scale(0.6);
  transition: all 0.8s ease;
  cursor: pointer;
  z-index: 1;
}

.carousel-video.active {
  width: 600px;
  height: 360px;
  opacity: 1;
  transform: scale(1);
  z-index: 5;
}

.carousel-video.left {
  transform: translateX(-350px) scale(0.6);
  opacity: 0.5;
  z-index:2;
}

.carousel-video.right {
  transform: translateX(350px) scale(0.6);
  opacity: 0.5;
  z-index:2;
}

.key-indicators {
  max-width:1100px;
  margin:20px auto;
  font-family:'Tajawal', sans-serif;
  text-align:center;
}

.section-title {
  font-size:1.8rem;
  margin-bottom:40px;
  color:#1A4F8B;
}

.indicators-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}

.indicator-card {
  background:#f9fafb;
  border-radius:16px;
  padding:25px 20px;
  transition:transform .3s, box-shadow .3s;
}

.indicator-card:hover {
  transform:translateY(-6px);
  box-shadow:0 10px 25px rgba(0,0,0,.08);
}

.indicator-title {
  font-size:0.95rem;
  color:#555;
  margin-bottom:15px;
  line-height:1.6;
}

.indicator-value {
  display:flex;
  justify-content:center;
  align-items:flex-end;
  gap:6px;
}

.indicator-value .number {
  font-size:2.6rem;
  font-weight:700;
  color:#1A4F8B;
}

.indicator-value .unit {
  font-size:1.1rem;
  margin-bottom:6px;
  color:#777;
}

.unit-sub {
  display:block;
  margin-top:6px;
  font-size:0.9rem;
  color:#777;
}
.indicator-value .number {
  font-size:2.8rem;
  font-weight:800;
  background: linear-gradient(
    90deg,
    #1A4F8B,
    #4ECDC4,
    #1A4F8B
  );
  background-size: 200% 100%;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.track-card {
  padding:25px 20px;
}

.track-stats {
  display:flex;
  justify-content:space-between;
  margin-top:20px;
  gap:10px;
}

.track-item {
  flex:1;
  text-align:center;
}

.track-item .number {
  font-size:1.8rem;
  font-weight:800;
  background:linear-gradient(90deg,#1A4F8B,#4ECDC4,#1A4F8B);
  background-size:200% 100%;
  color:transparent;
  -webkit-background-clip:text;
  background-clip:text;
  animation:shine 3s linear infinite;
}

.track-item .label {
  display:block;
  font-size:0.85rem;
  color:#666;
  margin-top:4px;
}
/* السطر الأول */
.totals-grid {
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  margin-bottom:60px;
}

/* عنوان فرعي */
.sub-title {
  font-size:1.4rem;
  margin:20px 0 35px;
  color:#1A4F8B;
  text-align:center;
}

/* السطر الثاني: 3 مسارات في الصف */
.tracks-grid {
  grid-template-columns:repeat(3,1fr);
}

/* بطاقة المسار */
.track-card {
  background:linear-gradient(180deg,#ffffff,#f6f9fc);
  border-radius:20px;
  padding:25px 20px;
}

/* توزيع أرقام المسار */
.track-stats {
  display:flex;
  justify-content:space-between;
  margin-top:18px;
  gap:10px;
}

.track-item {
  flex:1;
  text-align:center;
}

.track-item .number {
  font-size:1.9rem;
  font-weight:800;
  background:linear-gradient(90deg,#1A4F8B,#4ECDC4,#1A4F8B);
  background-size:200% 100%;
  color:transparent;
  -webkit-background-clip:text;
  background-clip:text;
  animation:shine 3s linear infinite;
}

.track-item .label {
  display:block;
  font-size:0.85rem;
  color:#666;
  margin-top:4px;
}

/* استجابة للجوال */
@media(max-width:992px){
  .tracks-grid {
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:600px){
  .tracks-grid {
    grid-template-columns:1fr;
  }
}
/* إجبار المؤشرات الرئيسية تكون في سطر واحد (5) */
.totals-grid {
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:25px;
  margin-bottom:60px;
}
@media(max-width:1100px){
  .totals-grid {
    grid-template-columns:repeat(3, 1fr);
  }
}

@media(max-width:768px){
  .totals-grid {
    grid-template-columns:repeat(2, 1fr);
  }
}

@media(max-width:480px){
  .totals-grid {
    grid-template-columns:1fr;
  }
}



.countdown {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* مركزية المحتوى أفقياً */
}

/* العنوان الطائر مركزي */
.floating-label {
  position: absolute;
  top: -35px; /* فوق العداد */
  left: 50%;  /* مركز أفقياً */
  transform: translateX(-50%) translateY(-10px); /* تصحيح التمركز + رفع خفيف */
  background: rgba(26,79,139,0.9);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  
  /* الحركة */
  animation: fadeFloat 3s ease-in-out infinite;
}

/* حركة الظهور والاختفاء */
@keyframes fadeFloat {
  0%, 20% { opacity:0; transform: translateX(-50%) translateY(-10px); }
  30%, 70% { opacity:1; transform: translateX(-50%) translateY(0); }
  80%, 100% { opacity:0; transform: translateX(-50%) translateY(-10px); }
}

/* العدّاد نفسه */
#timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: 'Tajawal', sans-serif;
}

#timer div {
  text-align: center;
}

#timer .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1A4F8B;
}

#timer small {
  display: block;
  font-size: 0.9rem;
  color: #777;
  margin-top: 2px;
}
