.timeline-section {
  padding: 20px 20px;
  direction: rtl;
  background: #f6f7f9;
}

.timeline-container {
  /* max-width: 1200px; */
  margin: auto;
  display: flex;
  justify-content: center;
  /* grid-template-columns: 1fr 1fr; */
  gap: 40px;
  align-items: center;
}

/* Image */
.timeline-image img {
  width: 400px;
  border-radius: 20px;
  display: block;
}

/* Content */
.timeline-content {
  text-align: right;
}

/* Buttons */
.btn-outline {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: #0a5db3;
  color: #fff;
  margin-bottom: 30px;
  cursor: pointer;
  font-family: 'Cairo';
}

.btn-primary {
  margin-top: 30px;
  padding: 12px 26px;
  border-radius: 12px;
  border: none;
  background: #e11d2e;
  color: #fff;
  cursor: pointer;
}

/* Timeline */
.timeline {
  position: relative;
  padding-right: 40px;
}

.timeline-line {
  position: absolute;
  right: 15px;
  top: 0;
  width: 2px;
  height: 0;
  background: #e11d2e;
  transition: height 1s ease;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #e11d2e;
  color: #e11d2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-left: 16px;
  flex-shrink: 0;
}

.timeline-item p {
  margin: 0;
  line-height: 1.8;
  color: #555;
}

/* Active Animation */
.timeline.active .timeline-line {
  height: 100%;
}

.timeline.active .timeline-item {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container {
    flex-direction: column;
  }

  .timeline {
    padding-right: 30px;
  }
}
