@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --secondary-color: #c9a227;
  --accent-color: #cc0000;
  --text-color: #1a2233;
  --bg-color: #ffffff;
  --section-bg: #f5f7fa;
  --card-bg: #ffffff;
  --transition-speed: 0.4s;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.08);
}

body {
  overflow-x: hidden;
}

/* ── HERO BANNER ── */
.archive-hero {
  position: relative;
  padding: 120px 0 80px;
  text-align: center;
  background: url("../images/archive_banner.png") center/cover no-repeat;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.archive-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 37, 77, 0.85) 0%,
    rgba(0, 51, 102, 0.9) 100%
  );
  z-index: 1;
}

.archive-hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(204, 0, 0, 0.15) 0%,
    transparent 60%
  );
  z-index: 2;
  pointer-events: none;
}

.archive-hero-inner {
  position: relative;
  z-index: 10;
}

.archive-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  letter-spacing: -1px;
}

.archive-hero-title span {
  color: var(--secondary-color);
}

.archive-hero-sub {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ── TIMELINE SECTION ── */
.timeline-section {
  padding: 80px 0 120px;
  position: relative;
}

/* Premium Year Nav Tabs */
.year-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 60px auto;
  width: max-content;
  max-width: 100%;
  position: sticky;
  top: 20px;
  z-index: 100;

  background: rgba(245, 247, 250, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px;
  border-radius: 50px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    inset 0 1px 3px rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  overflow-x: auto;
  scrollbar-width: none;
}

.year-nav::-webkit-scrollbar {
  display: none;
}

.year-btn {
  background: transparent;
  border: none;
  color: #718096;
  padding: 10px 28px;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap;
}

/* Tab Hover Effect */
.year-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 40px;
  z-index: -1;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.year-btn:hover {
  color: var(--primary-color);
}

.year-btn:hover::before {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Tab Active State */
.year-btn.active {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  box-shadow:
    0 8px 20px rgba(33, 109, 184, 0.3),
    inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.year-btn.active::before {
  display: none;
}

/* Main Timeline Container */
.timeline-wrapper {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 60px;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--secondary-color) var(--glass-border);
}

.timeline {
  display: inline-flex;
  flex-direction: row;
  position: relative;
  padding-top: 150px;
  min-width: max-content;
  margin: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 152px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-color),
    var(--secondary-color),
    transparent
  );
  transform: none;
  border-radius: 2px;
}

/* Year Block */
.timeline-year {
  display: inline-flex;
  flex-direction: row;
  position: relative;
  margin-bottom: 0;
  padding-left: 20px;
  padding-right: 40px;
}

.year-label {
  position: absolute;
  top: -145px;
  left: 40px;
  z-index: 10;
  text-align: left;
  margin-bottom: 0;
}

.year-label-inner {
  display: inline-block;
  background: var(--primary-color);
  color: var(--secondary-color);
  font-size: 2rem;
  font-weight: 700;
  padding: 10px 40px;
  border-radius: 50px;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.2);
  position: relative;
}

/* Month Block */
.timeline-month {
  display: inline-flex;
  flex-direction: row;
  position: relative;
  margin-bottom: 0;
  padding-right: 20px;
}

.month-label {
  position: absolute;
  top: -50px;
  left: 20px;
  z-index: 10;
  text-align: left;
  margin-bottom: 0;
}

.month-label-inner {
  display: inline-block;
  background: var(--section-bg);
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 20px;
  border: 1px solid var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 10px rgba(74, 144, 226, 0.15);
}

/* Event Items */
.timeline-item {
  position: relative;
  width: 380px;
  padding: 40px 15px 0 15px;
  margin-bottom: 0;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even),
.timeline-item:nth-child(odd) {
  left: 0;
  text-align: left;
}

/* Connector Dot */
.timeline-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--secondary-color);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px #ffffff,
    0 0 15px rgba(201, 162, 39, 0.6);
  z-index: 10;
}

.timeline-item:nth-child(odd)::before,
.timeline-item:nth-child(even)::before {
  right: auto;
  left: 50%;
}

/* Event Card */
.event-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  backdrop-filter: blur(8px);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Decorative Glow inside Card */
.event-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover::after {
  opacity: 1;
}

.event-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.event-card h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-place {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.event-desc {
  font-size: 1rem;
  color: #4a5568;
  font-weight: 400;
}

.footer-col p,
.footer-col span,
.footer-col h4,
.footer-bottom,
.footer-col a {
  font-style: normal;
}
/* ── RESPONSIVE DESIGN ── */
@media (max-width: 768px) {
  .timeline-item {
    width: 300px; /* Slightly narrower items on mobile */
  }

  .year-label-inner {
    font-size: 1.5rem;
    padding: 8px 24px;
  }

  .month-label-inner {
    font-size: 1rem;
    padding: 4px 16px;
  }

  .archive-hero-title {
    font-size: 2.5rem;
  }
}
