/* ==========================================================================
   TIMELINE STYLE - INDUSTRIAL LIGHT THEME (FULLY RESPONSIVE)
   ========================================================================== */

.timeline-section {
  background-color: #ffffff; /* پس‌زمینه کاملاً سفید */
  color: #333;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.timeline-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 20px 0;
  z-index: 2;
}

/* خط عمودی مرکزی - رنگ خاکستری ملایم صنعتی */


.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 70px;
  display: flex;
  transition: 0.3s ease;
}

/* تراز کردن آیتم‌ها */
.item-right {
  right: 0;
  padding-right: 50px;
  justify-content: flex-start;
}

.item-left {
  right: 50%;
  padding-left: 50px;
  justify-content: flex-end;
}

/* دایره‌های روی خط - سبز درخشان در تم روشن */
.timeline-dot {
  position: absolute;
  top: 25px;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--primary-color);
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(26, 77, 46, 0.15);
}

.item-right .timeline-dot {
  right: -22px;
}
.item-left .timeline-dot {
  left: -22px;
}

/* استایل کارت روشن */
.timeline-card {
  background: #f8f9fa; /* خاکستری بسیار روشن */
  border: 1px solid #eee;
  padding: 30px;
  border-radius: 15px;
  position: relative;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); /* سایه بسیار ملایم */
  transition: 0.4s;
}

.timeline-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

/* نوار سبز بالای کارت */
.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary-color);
  border-radius: 15px 15px 0 0;
}

.timeline-year {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: block;
}

.timeline-title {
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.8;
}

/* ==========================================
       MOBILE RESPONSIVE
       ========================================== */

@media (max-width: 767px) {
  .timeline-main-line {
    right: 25px;
    left: auto;
    transform: none;
  }

  .timeline-item {
    width: 100%;
    right: 0 !important;
    padding-right: 55px !important;
    padding-left: 15px !important;
    justify-content: flex-start !important;
  }

  .timeline-dot {
    right: 3px !important;
    left: auto !important;
    width: 38px;
    height: 38px;
  }

  .timeline-card {
    max-width: 100%;
  }
}
