.company-history-hero {
  position: relative;
  background-image: url("/static/assets/img/company-hero.png");
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}

.company-history-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 6, 8, 0.6);
  z-index: 1;
}

.company-history-hero-content {
  position: relative;
  z-index: 2;
}

.company-history-hero-title {
  font-size: 64px;
  text-transform: uppercase;
  font-family: var(--font-condensed);
  margin: 0;
}

.company-history-hero-subtitle {
  font-size: 16px;
  letter-spacing: 1px;
  margin-top: 8px;
  font-family: var(--font-primary);
  color: var(--color-gray);
}

.company-history-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 0px 20px 0px;
}

.company-history-header .tagline {
  color: var(--color-accent);
  letter-spacing: 2px;
  font-size: 20px;
  font-family: var(--font-heading);
}

.company-history-header h1 {
  font-family: var(--font-condensed);
  font-size: 54px;
  font-weight: 300;
  margin: 0;
}

.company-history-header p {
  font-family: var(--font-primary);
  color: #E8E9E9;
  font-size: 21px;
  font-weight: 300;
  max-width: 700px;
  text-align: center;
}

.company-history-timeline {
  position: relative;
}

.timeline {
  position: relative;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--color-accent);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-content.with-image {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--sidebar-color);
  padding: 16px 24px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Pseudo-element for animated border */
.timeline-content.with-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid var(--color-accent);
  box-sizing: border-box;
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

/* Hover trigger */
.timeline-content.with-image:hover::before {
  transform: scale(1);
}

.timeline-avatar {
  width: 150px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

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

.timeline-text h3 {
  font-family: var(--font-condensed);
  font-size: 28px;
  font-weight: 300;
  margin: 0;
  color: var(--color-white);
}

.timeline-text p {
  font-family: var(--font-primary);
  color: #E8E9E9;
  font-size: 18px;
  font-weight: 300;
  max-width: 700px;
  margin: 0;
}

.timeline-date-box {
  text-align: right;
  color: var(--color-white);
  min-width: 60px;
}

.timeline-date-box .month {
  font-family: var(--font-primary);
  font-size: 18px;
  display: block;
  color: var(--color-gray);
}

.timeline-date-box .day {
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: bold;
  display: block;
  line-height: 1.2;
}

.timeline-date-box .year {
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--color-gray);
  display: block;
}

.timeline-item.left::before,
.timeline-item.right::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: var(--color-accent);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--sidebar-color);
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right::before {
  left: -8px;
}

/* RESPONSIVE TABLET (≤1024px) */
@media screen and (max-width: 1024px) {
  .company-history-header h1 {
    font-size: 44px;
  }

  .company-history-header p {
    font-size: 18px;
  }

  .timeline-item {
    padding: 16px 20px;
  }

  .timeline-content.with-image {
    gap: 16px;
    padding: 16px 20px;
  }

  .timeline-avatar {
    width: 80px;
    height: 100%;
  }

  .timeline-text h3 {
    font-size: 24px;
  }

  .timeline-text p {
    font-size: 16px;
  }

  .timeline-date-box .month {
    font-size: 16px;
  }

  .timeline-date-box .day {
    font-size: 24px;
  }

  .timeline-date-box .year {
    font-size: 14px;
  }
}

/* RESPONSIVE MOBILE (≤768px) */
@media screen and (max-width: 768px) {
  .company-history-header {
    padding: 40px 0px 10px 0px;
  }

  .company-history-header .tagline {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .company-history-header h1 {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .company-history-header p {
    font-size: 16px;
    max-width: 100%;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 20px;
    text-align: left !important;
    left: 0 !important;
  }

  .timeline-item.left::before,
  .timeline-item.right::before {
    left: 12px;
    right: auto;
  }

  .timeline-content.with-image {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 16px;
    align-items: center;
  }

  .timeline-avatar {
    grid-row: span 2;
  }

  .timeline-date-box {
    text-align: left;
    margin-top: 8px;
  }
}

/* RESPONSIVE SMALL MOBILE (≤480px) */
@media screen and (max-width: 480px) {
  .company-history-header {
    padding: 40px 0px 10px 0px;
  }

  .company-history-header h1 {
    text-align: center;
    font-size: 28px;
  }

  .company-history-header p {
    font-size: 15px;
  }

  .timeline-content.with-image {
    padding: 16px;
    gap: 12px;
  }

  .timeline-avatar {
    width: 100px;
    height: 100px;
  }

  .timeline-text h3 {
    font-size: 20px;
  }

  .timeline-text p {
    font-size: 14px;
  }

  .timeline-date-box {
    font-size: 12px;
  }

  .timeline-date-box .day {
    font-size: 20px;
  }
}