.history {
  margin-bottom: 72px;
}

.history h2 {
  margin-top: 72px;
}

.history-image {
  height: 480px;
  object-fit: cover;
}

.history-content {
  margin-top: 44px;
  margin-bottom: 31px;
  display: flex;
  gap: 72px;
  justify-content: center;
  align-items: center;
}

.history-txt h3 {
  margin-bottom: 24px;
  color: var(--color-primary);
}

.timeline-section {
  background-color: var(--color-bg-two);
  padding-top: 32px;
  padding-bottom: 72px;
}

.timeline {
  margin-top: 72px;
  position: relative;
}

.timeline-items img {
  width: 100%;
  object-fit: cover;
}

.timeline-main-line,
.timeline-main-line-active {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  border-radius: 999px;
  z-index: 1;
}

.timeline-main-line {
  background-color: rgba(0, 0, 0, 0.12);
}

.timeline-main-line-active {
  background-color: var(--color-accent);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  z-index: 2;
}

.timeline-content {
  width: 100%;
}

.timeline-items {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.timline-itme-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  z-index: 10;
}

.timline-itme-right {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  z-index: 10;
}

.timeline-txt {
  width: 70%;
  padding: 16px 16px;
  background-color: white;
  box-shadow: 2px 2px 6px black;
  border-radius: 8px;
}

.timeline-txt h3 {
  text-align: center;
  margin-bottom: 2px;
}

.timeline-line {
  height: 3px;
  width: 28%;
  background-color: var(--color-primary);
}

.underline-timeline {
  margin: 8px auto;
  height: 1px;
  background-color: var(--color-accent);
  width: 72px;
}

/* ===========================
   Responsives Design (Breakpoints)
   Range: 320px – 1920px
=========================== */

@media (min-width: 2100px) {
  .timeline-section {
    padding: 72px 280px;
  }
}


/* Large Devices (992px – 1199px) */
@media (max-width: 1199px) {
  .history {
    padding: 0 44px;
  }

  .history-content {
    gap: 32px;
  }

  .history-image {
    height: 380px;
  }

  .timeline-line {
    width: 10%;
  }

  .timeline-txt {
    width: 89%;
  }
}

/* Medium Devices (768px – 991px) */
@media (max-width: 991px) {
  .history-content {
    flex-direction: column-reverse;
  }
  .history {
    padding: 0 24px;
  }
}

/* Small Devices (576px – 767px) */
@media (max-width: 767px) {
}

/* Extra Small Smartphones (320px – 575px) */
@media (max-width: 575px) {
  .hero {
    height: 208px;
  }

  .history h2 {
    margin-top: 32px;
  }

  .history-image {
    height: 312px;
  }

  .timeline-section {
    padding: 44px 8px;
  }

  .timeline-txt {
    padding: 8px 10px;
  }

  .timeline-line {
    display: none;
  }

  .timeline-items {
    margin-bottom: 232px;
  }

  .timline-itme-left,
  .timline-itme-right {
    width: 100%;
  }

  .sec-item {
    display: none;
  }
}

@media (max-width: 420px) {
  .timeline-items {
    margin-bottom: 154px;
  }

  .history-image {
    height: 280px;
  }

  .timeline-section {
    padding: 44px 8px;
  }

  .timeline-txt {
    padding: 8px 10px;
  }

  .timeline-line {
    width: 8%;
  }

  .timeline-txt {
    width: 90%;
  }
}
