﻿.sesc-timeline {
  --tl-blue: #004c99;
  --tl-blue-light: #e7f0ff;
  --tl-gray: #d0d0ce;
  --tl-text: #2a2a2a;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--tl-text);
  max-width: 980px;
  margin: 0 auto;
}

.sesc-timeline__header {
  text-align: center;
  padding: 10px 16px 8px;
}

.sesc-timeline__title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.sesc-timeline__subtitle {
  margin: 6px 0 0;
  font-size: 24px;
  color: #3a3a39;
}

.sesc-timeline__years {
  --tl-line: #d0d0ce;
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 0;
  position: relative;
  padding: 0 0 18px;
}

.sesc-timeline__year {
    position: relative;
    min-width: 170px;
    padding: 15px 0px;
    border-radius: 10px;
    border: none;
    background: #e8e8e7;
  color: #999b9b;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
    transition: all 0.2s ease;
}

.sesc-timeline__year.is-hidden {
    display: none;
}

.sesc-timeline__years::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--tl-line);
}

.sesc-timeline__year::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 1px;
  height: 12px;
  background: var(--tl-line);
  transform: translateX(-50%);
}

.sesc-timeline__year.is-active::after {
  background: var(--tl-blue);
}

.sesc-timeline__year.is-active {
  background: var(--tl-blue);
  color: #fff;
  border-color: var(--tl-blue);
  box-shadow: 0 6px 12px rgba(12, 74, 163, 0.18);
}

.sesc-timeline__nav {
  display: flex;
  justify-content: center;
  margin: 30px auto;
}

.sesc-timeline__nav .nr-slider-controls {
  display: inline-flex;
  border: 1px solid #004c99;
  border-radius: 999px;
  background: #fff;
}

.sesc-timeline__nav .nr-slider-btn {
  width: 165px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--tl-blue);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sesc-timeline__nav .nr-slider-btn.is-disabled {
  color: #9fc0ff;
  cursor: not-allowed;
}
button.nr-slider-btn.prev {
  border-right: 1px solid;
}

.sesc-timeline__nav .nr-slider-btn svg {
  width: 22px;
  height: 22px;
}

.sesc-timeline__content {
  padding: 12px 16px 30px;
}

.sesc-timeline__event {
  display: block;
  padding: 12px 0 30px;
}

.sesc-timeline__event + .sesc-timeline__event {
  border-top: 1px solid #f0f0f0;
}

.sesc-timeline__event-content {
  padding-top: 8px;
}

.sesc-timeline__event-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.sesc-timeline__event-subtitle {
  margin: 0 0 12px;
  color: var(--tl-blue);
  font-weight: 600;
}

.sesc-timeline__event-text {
  font-size: 14px;
  line-height: 1.7;
  color: #4a4a4a;
}
.sesc-timeline__event-text .wp-block-image.aligncenter {
  display: block !important;
}
.sesc-timeline__event-gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.sesc-timeline__event-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.sesc-timeline__event-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

@media (max-width: 640px) {
  .sesc-timeline__year {
    min-width: 70px;
    font-size: 13px;
  }

  .sesc-timeline__event-title {
    font-size: 18px;
  }
}
