body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  background: #fff;
  color: #333;
  direction: rtl;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo, .qr {
  width: 70px;
  height: auto;
}

.main-title {
  font-size: 22px;
  color: #4b8f28;
  text-align: center;
  flex: 1;
}

/* Sponsors */
.sponsors {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.sponsor {
  text-align: center;
  font-size: 12px;
  color: #4b8f28;
}

.sponsor img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

/* Stats */
.stats {
  display: flex;
  justify-content: space-around;
  background-color: #f5f5f5;
  padding: 15px;
  margin-bottom: 20px;
}

.stat .number {
  font-size: 24px;
  color: #4b8f28;
  font-weight: bold;
}

.stat .label {
  font-size: 14px;
}

/* Images */
.images {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.images img {
  width: 45%;
  height: auto;
  border-radius: 8px;
  max-width: 400px;
}

/* Progress - Gauge + Countdown */
.progress-section {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 30px 0;
  gap: 20px;
}
.gauge {
  width: 200px;
  height: 100px;
}

.gauge-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 12; /* الخلفية */
}

.gauge-fill {
  fill: none;
  stroke: #7abf3d;
  stroke-width: 10; /* أرفع من الخلفية */
  stroke-dasharray: 126; /* محيط القوس */
  stroke-dashoffset: calc(126 - (126 * 35 / 100)); /* النسبة */
  transition: stroke-dashoffset 1s;
}

.gauge-text {
  font-size: 14px;
  fill: #333;
  font-weight: bold;
}

.countdown {
  font-size: 18px;
  font-weight: bold;
  color: #4b8f28;
  direction: ltr;
  text-align: center;
}
.countdown-container {
  
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  font-weight: 100;
  color: var(--countdown-green);
  font-size: 1.6rem;
  user-select: text;
  min-width: 40px;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}
.countdown-number {
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1;
}
.countdown-label {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--green-light);
}

/* فيديو العرض */
.black-screen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  margin: 30px 0;
  padding: 0;
  width: 100%;
  min-height: 400px;
  overflow: hidden;
}

.black-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px;
  min-height: 400px;
  min-width: 400px;
}

/* Timeline Capsule Style */
.timeline-bar {
  display: flex;
  overflow: hidden;
  border-radius: 30px;
  height: 50px;
  width: 100%;
  background: #d9d9d9;
  box-shadow: inset 0 0 3px #aaa;
  margin: 30px 0;
  direction: rtl;
}

/* العناصر */
.timeline-step {
  position: relative;
  flex: 1;
  font-size: 11px;
  text-align: center;
  line-height: 50px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  overflow: hidden;
}

/* الفواصل المائلة */
.timeline-step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    transparent 48%,
    rgba(15, 14, 14, 0.8) 48%,
    rgba(9, 9, 9, 0.8) 52%,
    transparent 52%
  );
  z-index: 1;
}

/* أول وآخر عنصر */
.timeline-step:first-child {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}
.timeline-step:last-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

/* الحالات */
.timeline-step.done {
  background: linear-gradient(to bottom, #7abf3d, #6aa932);
}
.timeline-step.current {
  background: linear-gradient(to bottom, #4b8f28, #3e741f);
  font-weight: bold;
}
.timeline-step.upcoming {
  background: #d9d9d9;
  color: #333;
}

/* Hover - عند المرور بالماوس */
.timeline-step:hover {
  transform: scale(1.05);
  background: linear-gradient(to bottom, #5fa72b, #4b8f28);
}

/* التسمية أسفل الشريط */
.strip-caption {
  text-align: center;
  font-size: 14px;
  color: #4b8f28;
  font-weight: bold;
  margin-top: -10px;
}

/* التجاوب */
@media (max-width: 768px) {
  .timeline-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .timeline-step {
    flex: 0 0 auto;
    min-width: 120px;
    font-size: 11px;
  }
  .timeline-step::after {
    display: none;
  }
  .strip-caption {
    margin-top: 5px;
  }
}


