/* ============================================================
   SECTION 5 — Timeline (60 Years Cyprus Register of Ships)
   ============================================================ */

.timeline-section {
  padding: 30px 0 60px;
}

/* === HERO === */
.timeline-hero {
  padding: 30px 60px 30px;
  text-align: center;
}

.timeline-hero .big-number {
  font-size: 140px;
  font-weight: 800;
  line-height: 0.95;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -4px;
}

.timeline-hero .years-label {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 8px;
  margin-bottom: 6px;
}

.timeline-hero .description {
  font-size: 20px;
  color: var(--ice-blue);
  opacity: 0.85;
  font-style: italic;
}

/* === ERA SELECTOR === */
.era-selector-wrap {
  padding: 30px 0 30px 50px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background: transparent;
}
.era-selector-wrap::-webkit-scrollbar { display: none; }

.era-selector {
  display: flex;
  gap: 16px;
  min-width: max-content;
  padding-right: 60px;
  padding-top: 10px;
  background: transparent;
}

.era-tab {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 22px 24px 26px;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
}

.era-tab::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--era-color, var(--gold));
  opacity: 0.45;
  border-radius: 2px;
  transition: opacity 0.3s, height 0.3s;
}

.era-tab.active {
  background: rgba(201, 169, 97, 0.18);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.era-tab.active::after {
  opacity: 1;
  height: 4px;
}

.era-tab .era-years {
  font-size: 16px;
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.era-tab .era-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  line-height: 1.1;
}

.era-tab .era-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 6px;
  font-weight: 400;
  line-height: 1.3;
}

/* === EVENTS PANEL === */
.events-panel {
  margin: 30px 60px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(201, 169, 97, 0.2);
  min-height: 700px;
  position: relative;
}

.events-panel.fading {
  opacity: 0;
  transition: opacity 0.2s;
}

.events-panel.fading-in {
  opacity: 1;
  transition: opacity 0.4s;
}

.events-panel-header {
  border-bottom: 2px solid rgba(201, 169, 97, 0.3);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.events-panel-header .era-label {
  font-size: 16px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.events-panel-header .era-name {
  font-size: 42px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  line-height: 1.05;
  margin-bottom: 4px;
}

.events-panel-header .era-sub {
  font-size: 22px;
  color: var(--ice-blue);
  opacity: 0.7;
  font-style: italic;
}

/* Events list */
.event-list {
  list-style: none;
  position: relative;
}

.event-list::before {
  content: "";
  position: absolute;
  left: 130px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(201, 169, 97, 0.5) 10%,
    rgba(201, 169, 97, 0.5) 90%,
    transparent);
}

.event-item {
  display: flex;
  align-items: flex-start;
  padding: 18px 0;
  position: relative;
  animation: event-in 0.4s ease backwards;
}

.event-item:nth-child(1) { animation-delay: 0.05s; }
.event-item:nth-child(2) { animation-delay: 0.10s; }
.event-item:nth-child(3) { animation-delay: 0.15s; }
.event-item:nth-child(4) { animation-delay: 0.20s; }
.event-item:nth-child(5) { animation-delay: 0.25s; }
.event-item:nth-child(6) { animation-delay: 0.30s; }
.event-item:nth-child(7) { animation-delay: 0.35s; }
.event-item:nth-child(8) { animation-delay: 0.40s; }
.event-item:nth-child(9) { animation-delay: 0.45s; }
.event-item:nth-child(10) { animation-delay: 0.50s; }

@keyframes event-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.event-item .year {
  width: 130px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-bright);
  padding-right: 30px;
  text-align: right;
  line-height: 1.3;
}

.event-item .dot {
  position: absolute;
  left: 124px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
  z-index: 2;
}

.event-item.highlighted .dot {
  background: var(--white);
  box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.5), 0 0 20px rgba(212, 175, 55, 0.6);
}

.event-item .content {
  flex: 1;
  padding-left: 40px;
  padding-top: 4px;
}

.event-item .text {
  font-size: 21px;
  line-height: 1.45;
  color: var(--ice-blue);
}

.event-item .highlight-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  color: var(--navy-deep);
  font-size: 16px;
  font-weight: 700;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* === "CYPRUS TODAY" special view === */
.today-view {
  text-align: center;
  padding: 60px 40px;
}

.today-view .today-flag {
  width: 320px;
  height: 192px;
  margin: 0 auto 36px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(201, 169, 97, 0.5);
}

.today-view .today-flag-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.today-view .tagline {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.today-view .tagline .gold {
  color: var(--gold-bright);
}

.today-view .body-text {
  font-size: 24px;
  line-height: 1.55;
  color: var(--ice-blue);
  max-width: 820px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.today-view .body-text strong {
  color: var(--gold-soft);
}

.today-view .cta {
  display: inline-block;
  margin-top: 20px;
  padding: 24px 60px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  color: var(--navy-deep);
  font-size: 28px;
  font-weight: 700;
  border-radius: 60px;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  /* Button reset */
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}

.today-view .cta:active {
  transform: scale(0.97);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.5);
}

/* ============================================================
   GROWTH STAT POPUP
   ============================================================ */
.growth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.growth-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.growth-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 86%;
  max-width: 780px;
  background: linear-gradient(160deg, rgba(11, 37, 69, 0.99), rgba(8, 32, 63, 0.99));
  border: 2px solid var(--gold-bright);
  border-radius: 28px;
  padding: 56px 50px 50px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(212, 175, 55, 0.15);
  z-index: 201;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  text-align: center;
}

.growth-popup.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.growth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(201, 169, 97, 0.4);
  border-radius: 50%;
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s;
}

.growth-close:active {
  transform: scale(0.92);
  background: rgba(201, 169, 97, 0.25);
}

.growth-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(212, 175, 55, 0.35);
}

.growth-icon svg {
  width: 50px;
  height: 50px;
  fill: var(--navy-deep);
}

.growth-stat {
  font-size: 22px;
  color: var(--ice-blue);
  opacity: 0.8;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.growth-pct {
  display: block;
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
}

.growth-period {
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 32px;
}

.growth-text {
  font-size: 24px;
  line-height: 1.55;
  color: var(--ice-blue);
  max-width: 620px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
}

.growth-text strong {
  color: var(--gold-bright);
  font-weight: 700;
}
