/*
=====================================================
Roaring Sky - Timeline Page
Added 2026-05-27
=====================================================
*/

.timeline_page {
  padding: 80px 0;
}

.timeline_entries {
  margin-top: 60px;
}

.timeline_entries .container {
  max-width: 1400px;
}

.timeline_entry {
  display: grid;
  grid-template-columns: 28% 170px 100px minmax(300px, 600px);
  column-gap: 10px;
  row-gap: 40px;
  align-items: stretch;
  margin-bottom: 100px;
}

.timeline_entry_image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
}

.timeline_entry_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.timeline_entry_date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  position: relative;
}

.timeline_month {
  display: block;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  width: 100%;
  text-align: center;
}

.timeline_year {
  display: block;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.timeline_entry_rail {
  position: relative;
  align-self: stretch;
}

.timeline_line {
  position: absolute;
  top: -100px;
  bottom: -100px;
  left: 58%;
  width: 4px;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline_entry:first-child .timeline_line {
  top: 10%;
}

.timeline_dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: absolute;
  right: -8px;
  top: 50%;
  z-index: 3;
}

.timeline_connector {
  position: absolute;
  right: -67px;
  top: 51%;
  width: 60px;
  height: 4px;
  z-index: 2;
}

.timeline_entry_content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: flex-start;
}

.timeline_entry_content .btn {
  display: inline-block !important;
  margin: 0 !important;
  float: none !important;
  text-align: left !important;
  align-self: flex-start !important;
}

.timeline_entry_content h3 {
  margin-bottom: 20px;
}

.timeline_entry_content p {
  margin-bottom: 30px;
}

/* single timeline post */

.timeline_single_meta_month {
  display: block;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.timeline_single_meta_year {
  display: block;
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--timeline-accent, #ea3562);
}

.timeline_single_header {
  margin-bottom: 36px;
}

.timeline_single_title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

.timeline_single_lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.85;
  max-width: 60ch;
}

.timeline_single {
  padding: 60px 0 100px;
}

.timeline_single .container {
  max-width: 1100px;
}

.timeline_single_back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.timeline_single_back:hover {
  opacity: 1;
  transform: translateX(-4px);
}

.timeline_single_content {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 48px;
  align-items: start;
}

.timeline_single_meta {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 8px;
}

.timeline_single_meta_month {
  color: inherit;
}

.timeline_single_meta_year {
  margin-top: 4px;
}

.timeline_single_meta_rail {
  position: relative;
  width: 100%;
  height: 80px;
  margin-top: 28px;
}

.timeline_single_meta_line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  background-color: var(--timeline-accent, #ea3562);
}

.timeline_single_meta_dot {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--timeline-accent, #ea3562);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}

.timeline_single_main {
  min-width: 0;
}

.timeline_single_image {
  margin: 0 0 40px;
}

.timeline_single_image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.timeline_single_body {
  font-size: 18px;
  line-height: 1.85;
  color: inherit;
}

.timeline_single_body > *:first-child {
  margin-top: 0;
}

.timeline_single_body p {
  margin-bottom: 1.5em;
}

.timeline_single_body h2,
.timeline_single_body h3,
.timeline_single_body h4 {
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

.timeline_single_body ul,
.timeline_single_body ol {
  margin-bottom: 1.5em;
  padding-left: 1.4em;
}

.timeline_single_body li + li {
  margin-top: 0.5em;
}

.timeline_single_body blockquote {
  margin: 2em 0;
  padding: 1.25em 1.5em;
  border-left: 4px solid var(--timeline-accent, #ea3562);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 0 12px 12px 0;
}

.timeline_single_footer {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.timeline_single_back_btn {
  display: inline-block !important;
  margin: 0 !important;
  float: none !important;
}

@media (max-width: 900px) {
  .timeline_entry {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 20px;
    margin-bottom: 60px;
    padding: 0 20px;
  }

  .timeline_dot {
    left: -15px;
    right: auto;
    top: 55%;
  }

  .timeline_connector {
    left: -40px;
    right: auto;
    top: 61%;
    width: 30px;
  }

  .timeline_entry_image {
    grid-column: 2;
  }

  .timeline_entry_image img {
    width: 100%;
  }

  .timeline_entry_date {
    grid-column: 2;
    text-align: left;
    margin-top: 20px;
    padding-right: 70px;
  }

  .timeline_month {
    text-align: left;
    font-size: 18px;
  }

  .timeline_year {
    text-align: left;
    font-size: 48px;
  }

  .timeline_entry_rail {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: relative;
    min-height: 100%;
  }

  .timeline_line {
    position: absolute;
    top: 0;
    bottom: -60px;
    left: 18px;
    width: 4px;
    transform: none;
  }

  .timeline_entry:first-child .timeline_line {
    top: 0;
  }

  .timeline_entry_content {
    grid-column: 2;
    padding-top: 0;
  }

  .timeline_entry_content h3 {
    margin-top: 10px;
  }

  .timeline_single_content {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .timeline_single_meta {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px 16px;
    text-align: left;
    padding: 20px 24px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.03);
  }

  .timeline_single_meta_month {
    font-size: 16px;
  }

  .timeline_single_meta_year {
    font-size: 36px;
    margin-top: 0;
  }

  .timeline_single_meta_rail {
    display: none;
  }

  .timeline_single_back {
    margin-bottom: 32px;
  }

  .timeline_single_lead {
    font-size: 1.05rem;
  }

  .timeline_single_body {
    font-size: 17px;
  }
}
