body {
  background: none !important;
}

/* ========================= */
/* Timeline Styles */
/* ========================= */
.timeline {
  margin: 2rem auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 100px; /* room for time */
}

/* Vertical line across all items */
.timeline-line::before {
  content: "";
  position: absolute;
  left: 90px; /* aligns after the times */
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* Each row */
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Time */
.timeline-time {
  position: absolute;
  left: 0;
  width: 80px;
  text-align: right;
  font-weight: bold;
  color: var(--color-primary-dark);
  font-family: "Lora", serif;
}

/* Card Content */
.timeline-content {
  margin-left: 110px; /* push past time + line */
  background: #fff;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.timeline-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Event titles inside cards */
.timeline-content h3 {
  margin: 0 0 0.5rem;
  color: var(--color-primary);
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
}

/* Event descriptions */
.timeline-content p {
  margin: 0;
  font-family: "Lora", serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Hidden extra info revealed on hover */
.timeline-content .extra-info {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
  font-family: "Lora", serif;
  font-size: 0.95rem;
  color: #777 !important;   /* softer gray */
  font-style: italic;
  margin-top: 0.5rem;
}

.timeline-content:hover .extra-info {
  opacity: 1;
  max-height: 200px;
}

/* ========================= */
/* Page Title */
/* ========================= */
h1 {
  text-align: center;
  font-size: 2.6rem;
  color: var(--color-primary-dark);
  margin-bottom: 2.5rem;
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  letter-spacing: 1px;
}

h1::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--color-primary);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ========================= */
/* Background Carousel */
/* ========================= */
.bg-carousel {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -2; /* sits behind everything */
}

.bg-carousel-track {
  display: flex;
  height: 100%;
  width: 300%; /* adjusted by JS */
  transition: transform 1s ease-in-out;
}

.bg-carousel img {
  width: 100vw;
  height: 100vh;
  object-fit: cover; /* cover the screen */
  flex-shrink: 0;
}

/* Overlay filter for readability */
.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.65); /* soft overlay */
  z-index: -1; /* above photos, below content */
}

/* ========================= */
/* Content wrapper */
/* ========================= */
#content {
  position: relative;
  z-index: 1; /* sits above carousel & overlay */
  padding: 2rem;
  border-radius: 12px;
  color: var(--color-text);
}

/* ===== Force lighter color for the "extra-info" text ===== */
/* Target the container, any p, and any descendants (links, spans, etc.) */
.timeline-content .extra-info,
.timeline-content .extra-info p,
.timeline-content .extra-info * {
  color: #777 !important;        /* softer gray */
  transition: color 0.18s ease;
}

/* Also ensure it stays gray when hovered / revealed */
.timeline-content:hover .extra-info,
.timeline-content:hover .extra-info p,
.timeline-content:hover .extra-info * {
  color: #777 !important;
}

/* If you have links inside .extra-info, style them explicitly */
.timeline-content .extra-info a,
.timeline-content .extra-info a:link,
.timeline-content .extra-info a:visited {
  color: #6b6b6b !important;
  text-decoration: underline; /* optional, remove if you don't want it */
}
