/* =========================================
   Story Page Overrides
   ========================================= */
.primary_color {
  color: var(--blue-1) !important;
}

.content-wrapper-1 {
  padding-top: 2.2rem !important;
  padding-right: 2.2rem !important;
  padding-left: 2.2rem !important;
}

.main-title {
  width: auto !important;
  margin-bottom: 20px !important;
}

.about-page .main-title,
.about-page .sub-title {
  font-size: clamp(2rem, 3vw, 2rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

.sub-title {
  color: black !important;
}

/* =========================================
   Hero Video
   ========================================= */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.hero-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  display: block;
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(6, 22, 71, 0.2), rgba(6, 22, 71, 0.4));
  z-index: 1;
}

.hero-image {
  display: none;
}

.hero-overlay {
  z-index: 2;
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
}

.hero,
section.hero {
  position: relative;
  height: 700px !important;
  padding: 0 !important;
  margin-top: 0 !important;
  overflow: hidden !important;
}

.hero-content {
  display: block;
}

.hero-content h1 {
  color: #fff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.about-page .row-top {
  margin-bottom: 80px;
}

.history-section-label {
  margin: 28px 0 10px;
  color: #000;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.history-video-embed {
  position: relative;
  width: 100%;
  height: 400px;
  background: #000;
}

.history-video-embed iframe {
  border: 0;
}

.history-video-embed video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.history-img-col.history-video-col::after {
  display: none;
}

/* =========================================
   Video Story Section
   ========================================= */
.video_story {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
}

.section-title {
  width: 70vw;
  margin-bottom: 2rem;
}

.video_story h2 {
  text-align: left;
  font-size: 1.8rem;
  font-weight: 700;
}

.video-container {
  width: 70vw !important;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* =========================================
   Timeline
   ========================================= */
.timeline ul {
  padding: 50px 0;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 2px;
  margin: 0 auto;
  padding-top: 50px;
  background: #e0e0e0;
  transition: background 1.5s ease-in-out;
  transition-delay: 0.2s;
}

.timeline ul li.in-view {
  background: var(--blue-1);
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--blue-1);
  z-index: 1;
  transition: background 1.5s ease-in-out;
  transition-delay: 0.2s;
}

.timeline ul li:first-child::after {
  bottom: auto;
  top: 0;
}

.timeline ul li:first-child div {
  margin-top: -60px;
}

.timeline ul li:first-child div::before {
  top: 15px;
  bottom: auto;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  border-width: 8px 16px 8px 0;
  border-color: transparent #fff transparent transparent;
}

.timeline ul li:nth-child(even) div {
  left: -439px;
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent #fff;
}

time {
  display: block;
  font-size: 1.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue-1);
}

.timeline p,
.timeline div {
  color: #555;
  line-height: 1.6;
}

/* Timeline Animation */
.timeline ul li.in-view::after {
  background: var(--blue-1);
}

.timeline ul li div {
  visibility: hidden;
  opacity: 0;
  transition: all 1.2s ease-in-out;
  transition-delay: 0.4s;
}

.timeline ul li:nth-child(odd) div {
  transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
  transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
  transform: none;
  visibility: visible;
  opacity: 1;
}

/* Timeline shape variants */
.timeline-rhombus ul li::after {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.timeline-rhombus ul li div::before {
  bottom: 12px;
}

.timeline-star ul li::after {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.timeline-heptagon ul li::after {
  clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 75% 100%, 25% 100%, 0% 60%, 10% 20%);
}

.timeline-infinite ul li::after {
  animation: scaleAnimation 2s infinite;
}

@keyframes scaleAnimation {
  0% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.25);
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

/* =========================================
   CTA Banner
   ========================================= */
.cta-banner {
  background-color: #f7f9fa;
  padding: 6rem 0;
  margin-top: 4rem;
}

.cta-banner h2 {
  font-size: 2.2rem;
  font-family: var(--font-primary);
  color: var(--blue-1);
  margin-bottom: 2rem;
  font-weight: 700;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* =========================================
   Responsive (all mobile rules merged)
   ========================================= */
@media (max-width: 768px) {

  .leone-history,
  .timeline {
    padding-left: 0 !important;
    margin-left: 0 !important;
  }

  .timeline ul {
    padding: 30px 0;
    position: relative;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .timeline ul li {
    width: 2px;
    margin: 0;
    left: 0 !important;
    padding-top: 50px;
    background: #e0e0e0;
    position: relative;
  }

  .timeline ul li div {
    width: 80vw !important;
    max-width: 80vw !important;
    left: 20px !important;
    right: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.2rem 1rem 1.2rem 2.2rem !important;
    box-sizing: border-box;
  }

  .timeline ul li:nth-child(even) div,
  .timeline ul li:nth-child(odd) div {
    left: 20px !important;
    right: auto !important;
    transform: none !important;
  }

  .timeline ul li div::before {
    left: -15px !important;
    right: auto !important;
    border-width: 8px 16px 8px 0 !important;
    border-color: transparent #fff transparent transparent !important;
  }
}
