.content__card {
  min-height: 120px;
  display: block;
  visibility: visible;
  opacity: 1;
}
/* Indent child year nav items under parent */

/* Make year text white when special banner is present */
.content__card--special .content__card-year {
    color: var(--white );
    margin-left: 6px;
    position: relative;
    top: 20px;
}
/* Video poster and play button styles moved from JS */
.video-poster {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Special Banner for Card */
.content__card--special {
  position: relative;
  border: 3px solid var(--splshadow) !important;
  box-shadow: var(--splshadow) !important;
  border: 2px solid #2c5aa0 !important;
}

/* Ribbon restored and moved to the left */
/* Horizontal special banner (left to right) */
/* Ribbon restored and moved to the left */
/* Horizontal special banner (left to right) */
/* Horizontal special banner (left to right) with classic ribbon look */
/* Ribbon restored and moved to the left */
.content__card-banner {
  position: absolute;
  top: 50px;
  left: -1.1em;
  z-index: 1;
  color: #eee;
  font-size: 2em;
  cursor: pointer;
  z-index: -2;
  width: 2.2em;
  line-height: 0.5em;
  -webkit-transition: line-height 0.5s;
  transition: line-height 0.5s;
  text-align: center;
  transform: rotate(-90deg);
}
.content__card-banner:after {
  content: "";
  font-size: 0.5em;
  position: absolute;
  height: 100%;
  border: 1.7em solid var(--primary-color);
  z-index: -1;
  top: -1em;
  border-top-width: 8.5rem;
  border-bottom-color: transparent;
  right: 0;
}
.content__card-banner:before {
  content: "";
  font-size: 0.5em;
  position: absolute;
  border-style: solid;
  border-color: transparent transparent var(--primary-color);
  top: -1em;
  right: 3.36em;
  border-width: 0 0 1em 1em;
  z-index: -1;
}
/* Remove old ribbon pseudo-elements for a cleaner look */
/* Variables */
:root {
  --primary-color: #2c5aa0;
  --secondary-color: #4a90e2;
  --accent-color: #ff6b35;
  --text-color: #333;
  --text-light: #666;
  --header-color: #002242;
  --border-color: #ddd;
  --background-light: #f8f9fa;
  --white: #ffffff;
  --grey: #C7C7CD;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --splshadow: 0 2px 8px rgba(44, 90, 160, 0.4);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* Content Layout */
.content__layout {
  display: flex;
  gap: 2rem;
  flex: 1 1 0;
  padding-bottom: 2rem;
}

/* Sidebar with Year Navigation - Vertical timeline */
.content__sidebar {
  flex: 0 0 200px;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  position: sticky;
  top: 0;
  z-index: 100;
}

.content__year-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
  position: relative;
}

.content__year-nav::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grey);
  z-index: 1;
  border-radius: 2px;
}

.content__year-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 0 0.75rem 2rem;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
  margin: 0;
  width: 100%;
  position: relative;
  z-index: 2;
}

.content__year-item::before {
  content: '';
  width: 15px;
  height: 3px;
  background: var(--grey);
  border-radius: 0px 2px 2px 0px;
  position: absolute;
  left: 2px;
  top: 50%;
  flex-shrink: 0;
  z-index: 3;
}


.content__year-item:hover {
  color: var(--primary-color);
  padding-left: 2.1;
}

/* Remove hover effect for parent year items with children */
.content__year-item--group{
  pointer-events: none;
}
.content__year-item--group:hover {
 pointer-events: none;
  /* Remove any other hover styles if present */
}


.content__year-item:hover::before {
  background: var(--primary-color);
  width: 15px;
  height: 4px;
}

.content__year-item--active {
  color: var(--primary-color);
  font-weight: 700;
}

.content__year-item--active::before {
  background: var(--primary-color);
  width: 15px;
  height: 4px;
}

/* Main Content Area */
.content__main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* CSS Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  height: 100%;
  position: relative;
}

.container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.timeline-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

button {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
  overflow: visible;
  text-transform: none;
  background: transparent;
  border: 0;
}

button::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

img {
  border-style: none;
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  margin: 0 auto;
  width: 100%;
  overflow: visible !important;
}

@media only screen and (min-width: 1024px) {
  .container {
    max-width: 880px;
  }
}

@media only screen and (min-width: 1400px) {
  .container {
    max-width: 1120px;
  }
}

/* Timeline App Container */
.timeline-app {
  width: 100%;
  max-width: 100%;
  background: var(--white);
  box-sizing: border-box;
  position: relative;
  overflow: visible !important;
}

/* Timeline Header */
.timeline-header {
  text-align: left;
  margin-bottom: 1rem;
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.timeline-header__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--header-color);
  margin-bottom: 1rem;
}

/* Timeline Main Container */
.timeline {
  margin-top: 2rem;
  width: 100%;
  overflow: visible !important;
}

/* Progress Bar */
.timeline__progress {
  display: block;
}

.timeline__progress-bar {
  position: relative;
  height: 8px;
  background-color: var(--grey);
  border-radius: 4px;
  margin-bottom: 0;
  overflow: hidden;
}

.timeline__progress-fill {
  height: 100%;
  background: var(--primary-color);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  will-change: width;
}

.timeline__progress-marker {
  position: absolute;
  top: -1px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  box-shadow: var(--shadow);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 5px 5px 0;
  left: 0%;
  will-change: left;
}

/* Navigation */
  .timeline__navigation {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* No sticky for top nav */
    /* Uncomment below if you want sticky nav */
    /*
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    */
  }
/* Timeline Groups (State 1) */
.timeline__groups {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 1rem 0;
  animation: slideInFromLeft 0.5s ease-out;
  width: 100%;
  max-width: 100%;
}



.timeline__group {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  z-index: 2;
  flex: 1;
  max-width: 200px;
}

.timeline__group:hover .timeline__group-label {
  color: var(--primary-color);
}

.timeline__group--active {
  color: var(--primary-color);
}

.timeline__group--active .timeline__group-label {
  color: var(--primary-color);
  font-weight: 700;
}

.timeline__group-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-color);
}

.timeline__group-sublabel {
  font-size: 0.875rem;
  opacity: 0.8;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Individual Years (State 2) */
.timeline__years {
  position: relative;
  animation: slideInFromRight 0.5s ease-out;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}





.timeline__years-container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  cursor: grab;
  gap: 1rem;
  padding: 1rem 0;
  min-height: 80px;
}

.timeline__years-container:active {
  cursor: grabbing;
}

/* Hide scrollbars for all browsers */
.timeline__years-container::-webkit-scrollbar {
  display: none;
}

.timeline__years-container {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}

.timeline__year {
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  z-index: 2;
  padding: 0.5rem 0;
  min-width: 60px;
  flex-shrink: 0;
}

.timeline__year::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: var(--primary-color);
}

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

.timeline__year--active {
  color: var(--primary-color);
  font-weight: 700;
}

.timeline__year--has-event {
  color: var(--primary-color);
  font-weight: 600;
}

.timeline__year--has-event::before {
  background: var(--primary-color);
  height: 30px;
}

.timeline__year--major {
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline__year--major::before {
  height: 35px;
  width: 3px;
  background: var(--primary-color);
}

.timeline__years-container.dragging {
  cursor: grabbing;
  user-select: none;
}

.timeline__years-container.dragging .timeline__year {
  pointer-events: none;
}

/* Filters */
.timeline__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  order: 0;
  margin-left: 73px;
}

.timeline__filter {
  padding: 0.5rem 1rem;
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
  color: var(--text-light);
}

.timeline__filter:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.timeline__filter--active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* Content Area */
.content {
  overflow: visible !important;
  overflow: visible !important;
  min-height: calc(100vh - 200px);
  max-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  border-radius: var(--border-radius);
  padding: 1rem 1rem 2rem 0;
  opacity: 1 !important;
  visibility: visible !important;
}

.content__navigation {
  display: none; /* Hide navigation arrows */
}

.content__navigation .content__nav-arrow {
  pointer-events: auto;
}

.content__nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.2rem;
  color: var(--text-color);
}

.content__nav-arrow:hover {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow);
}

.content__nav-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--border-color);
  background-color: var(--background-light);
  color: var(--text-light);
}

.content__nav-arrow:disabled:hover {
  border-color: var(--border-color);
  background-color: var(--background-light);
  color: var(--text-light);
  box-shadow: none;
}

.content__nav-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.content__card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

/* Hide empty cards completely */
.content__card[style*="display: none"] {
  display: none !important;
}

.content__card:hover {
  box-shadow: var(--shadow-hover);
}

.content__card-image {
  width: 100%;
  height: 250px;
  background-color: var(--background-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
  position: relative;
}


/* Remove scaling from container, apply to image only */
.content__card-image:hover img {
  transform: scale(1.05);
  transition: transform 0.2s;
}

.content__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content__card-content {
  padding: 0 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  position: relative;
  z-index: 2;
}

.content__card-year {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  border-radius: var(--border-radius);
  display: inline-block;
  width: fit-content;
  position: relative;
  top: 20px;
}

.content__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  line-height: 1.3;
  color: var(--text-color);
}

.content__card-description {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* No sticky for top nav */
@keyframes slideInFromLeft {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
/* Cards container */
.content__cards {
 position: fixed;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: flex-start;
  align-items: stretch;
  overflow-y: auto;
  width: 95%;
  max-width: 100%;
  top: 225px;
  min-height: 568px;
  max-height: 568px;
  padding: 0 0 2rem 0;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

.content__card {
  flex: 0 0 auto;
  max-width: 500px;
  min-width: 300px;
  width: 90%;
  min-height: 550px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  margin-left: 70px;
  padding: 0;
  box-sizing: border-box;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: visible;
  border: 1px solid var(--border-color);
}

/* Desktop: >= 1024px - 3 cards */
@media (min-width: 1024px) {
  .content__cards {
    gap: 2rem;
    padding: 1.5rem 0;
  }
  
  .content__card {
    flex: 1;
    min-width: 280px;
    height: 550px;
  }
  
  .content__card--prev,
  .content__card--next {
    display: block !important;
  }
  
}

/* Tablet: >= 768px and < 1024px */
@media (min-width: 768px) and (max-width: 1023px) {
  .content__cards {
    gap: 1.5rem;
  }
  
  .content__card {
    max-width: 400px;
    height: 550px;
  }
}

/* Mobile: < 768px - 1 card */
@media (max-width: 767px) {
  .timeline-app {
    padding: 1rem 0.5rem;
  }

  .timeline-header__title {
    font-size: 1.25rem;
  }

  .timeline {
    padding: 1rem;
  }

  .timeline__groups {
    gap: 0.5rem;
  }

  .timeline__group {
    min-width: 120px;
    padding: 1rem 0.5rem;
  }

  .timeline__group-label {
    font-size: 1rem;
  }

  .content__cards {
    gap: 0;
    justify-content: center;
    min-height: 350px;
    padding-bottom: 3rem;
  }
  
  .content__card {
    flex: none;
    min-width: auto;
    max-width: 100%;
    width: 100%;
    min-height: 500px;
    height: auto;
    margin-bottom: 2rem;
  }
  
  .content__card--prev,
  .content__card--next {
    display: none !important;
  }

  .content__card--current {
    transform: none;
    display: block !important;
  }

  /* Progress labels removed */
  
  .content__navigation {
    padding: 0;
  }
  
  .content__nav-arrow {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .content__nav-icon {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .timeline-header__title {
    font-size: 1.1rem;
  }

  .timeline__groups {
    flex-direction: column;
  }

  .timeline__group {
    min-width: auto;
  }

  .timeline__filters {
    justify-content: center;
  }
}

/* Utility classes */
.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.content__card {
  opacity: 1 !important;
  transition: opacity 0.6s ease-in-out;
  will-change: opacity; 
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  margin-bottom: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

/* Image Modal */

.image-modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.image-modal.show {
  display: flex;
}

.image-modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60vw;
  height: 70vh;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.image-modal__image {
  object-fit: cover;
  display: block;
  width: 100%;
  height: inherit;
}

.image-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10001;
}

.image-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Add styles for the video modal container and iframe */
.video-modal__container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#videoModalIframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: #000;
  display: block;
}

@media (max-width: 900px) {
  #videoModalIframe {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
  }
}

/* Centered Modal Styles - Clean and Overriding */
.image-modal{
  display: none;;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.image-modal.show {
  display: flex;
}


.video-modal__container {
  z-index: 1 !important;
}

.image-modal__close {
  z-index: 10001 !important;
}
.content__year-item.content__year-item--child {
  padding:0.75rem 0 0.75rem 3rem;
}
.content__year-item.content__year-item--child::before{
  left: 2px;
  width: 30px;
}