/**
 * Section: Event Timeline Section
 *
 * @package Alpaya_x_Retodi
 */

.entry-content .section--event-timeline,
.entry-content .wp-block-alpaya-section .section--event-timeline {
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  box-sizing: border-box;
}

.section--event-timeline {
  padding: calc(var(--spacing, 1rem) * 3) 0;
}

.section__event-timeline-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section__event-timeline-title {
  text-align: left;
  margin-bottom: 50px;
}

.section__event-timeline-subtitle {
  color: var(--et-subtitle-color, var(--color-text, #8e9eab));
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-size: 0.85rem;
  margin: 0 0 8px 0;
}

.section__event-timeline-heading {
  font-size: 2.5rem;
  color: var(--et-title-color, var(--color-primary, #2c3e50));
  margin: 0;
  font-weight: 600;
}

/* Timeline */
.section__event-timeline {
  position: relative;
  padding-left: 37px;
}

.section__event-timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--et-line-color, #e0e0e0);
}

.section__event-timeline-group {
  position: relative;
  margin-bottom: 40px;
}

/* Yıl etiketi: çizginin solunda, noktalarla üst üste binmemesi için yeterli boşluk */
.section__event-timeline-year {
  position: absolute;
  left: -72px;
  top: 0;
  background: var(--section-et-bg, #fff);
  padding: 5px 0;
  font-weight: 700;
  color: var(--et-line-color, #e0e0e0);
  font-size: 1.1rem;
  transform: rotate(-90deg);
  transform-origin: left center;
  white-space: nowrap;
}

/* İlk etkinlik: yıl etiketi ile nokta üst üste binmesin diye üst boşluk */
.section__event-timeline-group .section__event-timeline-item:first-child {
  margin-top: 36px;
}

/* Event item */
.section__event-timeline-item {
  position: relative;
  background: #f8f9fa;
  padding: 20px 25px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  border-left: 2px solid transparent;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
}

.section__event-timeline-item:hover {
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-left: 2px solid var(--et-name-color, var(--color-primary, #2c3e50));
  transform: translateX(6px);
}

.section__event-timeline-item[href] {
  text-decoration: none;
}

.section__event-timeline-item[href]:hover {
  text-decoration: none;
}

.section__event-timeline-item::after {
  content: "";
  position: absolute;
  left: -47px;
  top: 25px;
  width: 12px;
  height: 12px;
  background: var(--et-line-color, #e0e0e0);
  border-radius: 50%;
  border: 3px solid var(--section-et-bg, #fff);
  transition: background 0.3s ease;
}

.section__event-timeline-item:hover::after {
  background: var(--et-name-color, var(--color-primary, #2c3e50));
}

.section__event-timeline-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.section__event-timeline-icon {
  color: var(--et-date-color, #8e9eab);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.section__event-timeline-item-text {
  flex: 1;
  min-width: 0;
}

.section__event-timeline-date {
  font-size: 0.85rem;
  color: var(--et-date-color, #8e9eab);
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.section__event-timeline-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--et-name-color, var(--color-primary, #2c3e50));
  margin: 0;
  line-height: 1.3;
}

.section__event-timeline-chevron {
  color: var(--et-date-color, #8e9eab);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 4px;
}

/* Optional image (2x1 format) */
.section__event-timeline-item-image {
  flex-shrink: 0;
  width: 140px;
  margin-left: 20px;
  border-radius: 6px;
  overflow: hidden;
  line-height: 0;
}

.section__event-timeline-item-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .section__event-timeline {
    padding-left: 30px;
  }

  .section__event-timeline-year {
    left: -58px;
    font-size: 1rem;
  }

  .section__event-timeline-group .section__event-timeline-item:first-child {
    margin-top: 28px;
  }

  .section__event-timeline-item::after {
    left: -37px;
    width: 10px;
    height: 10px;
    border-width: 2px;
  }

  .section__event-timeline-item {
    padding: 16px 18px;
    flex-direction: column;
  }

  .section__event-timeline-item--has-image .section__event-timeline-item-image {
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }

  .section__event-timeline-heading {
    font-size: 1.75rem;
  }

  .section__event-timeline-title {
    margin-bottom: 30px;
  }
}
