/* Timeline Component - Hyundai Blue with Carousel */
:root {
  --primary-color: #00287a;
  --secondary-color: #557bc4;
  --background-color: #fff;
  --text-color: #1f2937;
  --border-color: #e5e7eb;
  --timeline-padding-x: clamp(24px, 5vw, 64px);
}

.timeline-story {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem var(--timeline-padding-x);
  box-sizing: border-box;
  position: relative;
  background: #fff;
}
.story-flex {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.story-header {
  flex: 0 0 auto;
  text-align: left;
  min-width: 200px;
}
.story-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.story-year {
  font-size: 8rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 0.8;
  margin: 0;
}
.story-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,40,122,0.08);
  padding: 0;
  min-width: 280px;
  min-height: 280px;
  max-width: 400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(2deg);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  overflow: hidden;
}
.story-card:hover {
  transform: rotate(0deg);
  box-shadow: 0 6px 20px rgba(0,40,122,0.12);
}
.story-card::before {
  display: none;
}
.story-card img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.story-description-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 2rem;
  min-width: 300px;
}
.story-date {
  font-size: 1.25rem;
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}
.story-description {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
  margin-top: 0.5rem;
}
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.nav-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.05);
}
.nav-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: translateY(-50%) scale(1); }
.nav-btn[data-nav="prev"] { left: calc(var(--timeline-padding-x) - 3.5rem); }
.nav-btn[data-nav="next"] { right: calc(var(--timeline-padding-x) - 3.5rem); }
.timeline-section {
  background: #fff;
  padding: 2rem 0;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  position: relative;
  overflow: hidden;
}
.timeline-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  height: 100px;
  margin: 2rem 0;
}
.timeline-line {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  background: var(--primary-color);
  z-index: 1;
  transform: translateY(-50%);
  width: 100%;
}
.timeline-track {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  height: 100%;
}
.timeline-bubble {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 2;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  height: 20px;
}
.timeline-bubble-dot {
  border-radius: 50%;
  margin-bottom: 8px;
}
/*.timeline-bubble.active .timeline-bubble-dot {
  width: 16px; height: 16px;
  background: var(--primary-color);
  border-color: var(--primary-color);
  border: 1px solid #00287a;
}*/
.timeline-bubble.active .timeline-bubble-dot::before {
    transform: scale(1.625);
}

.timeline-bubble-dot::before{
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #00287a;
    transition: 1s 0.375s;
}
.timeline-bubble.active .timeline-bubble-dot::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    position: relative;
    left: -14px;
    top: -2px;
    transform: scale(1.4);
    background-color: #00287a;
    border-radius: 50%;
    transition: transform 1s 0.375s;
}
.timeline-bubble-label {
  font-size: 0.75rem;
  color: var(--text-color);
  font-weight: 500;
  text-align: center;
  margin-top: 6px;
}
.timeline-bubble.active .timeline-bubble-label {
  color: var(--primary-color);
  font-weight: 700;
}
@media (max-width: 1200px) {
  .timeline-story { padding: 3rem 1rem; }
  .story-flex { gap: 2rem; }
  .story-year { font-size: 6rem; }
  .nav-btn[data-nav="prev"] { left: -50px; }
  .nav-btn[data-nav="next"] { right: -50px; }
}
@media (max-width: 900px) {
  .story-flex { 
    flex-direction: column; 
    gap: 1rem; 
    align-items: center; 
    text-align: center; 
  }
  .story-header {
    order: 1;
    margin-bottom: 1rem;
  }
  .story-card {
    order: 2;
    max-width: 90vw;
    padding: 1rem;
    min-width: 0;
    min-height: 200px;
    transform: rotate(0deg);
  }
  .story-card:hover {
    transform: rotate(0deg);
  }
  .story-description-wrapper {
    order: 3;
    padding-left: 0;
    padding-top: 1rem;
    text-align: center;
  }
  .story-header, .story-card, .story-description-wrapper { 
    min-width: 0; 
    padding-left: 0; 
  }
  .story-year { font-size: 4rem; }
  .nav-btn[data-nav="prev"] { left: 10px; }
  .nav-btn[data-nav="next"] { right: 10px; }
  .timeline-track {
    gap: 0.5rem;
  }
  .timeline-bubble.mobile-active {
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  .timeline-bubble.mobile-active .timeline-bubble-dot {
    margin-bottom: 8px;
    transition: all 0.2s;
  }
  .timeline-bubble.mobile-active .timeline-bubble-label {
    color: var(--primary-color);
    font-size: 12px;
    margin-top: 8px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    font-family:"HyundaiMedium";
  }
.timeline-bubble.active .timeline-bubble-dot::before {
   transform: scale(2.125);
}
.timeline-bubble{ height: 10px;}

.timeline-bubble-dot::before{
    width: 12px;
    height: 12px;
}
.timeline-bubble.active .timeline-bubble-dot::after {
   left: -12px;
   top: 0;
}
.samarth-programme-slider .subTitS {
    font-size: 16px;
}
}
@media (max-width: 600px) {
  .timeline-story { padding: 2rem 1rem; }
  .story-card {
    padding: 0.5rem;
    max-width: 95vw;
    min-height: 150px;
  }
  .story-year { font-size: 3rem; }
  .nav-btn { width: 40px; height: 40px; font-size: 1.25rem; }
}
.year-flip {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.4,2,.6,1);
}
.year-flip.flipping {
  animation: flipY 0.4s;
}
@keyframes flipY {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(90deg); opacity: 0; }
  51% { opacity: 0; }
  100% { transform: rotateX(0deg); opacity: 1; }
}