/**
 * Corporate History Page Styles
 * Timeline layout with alternating left/right items
 */
/* Hero Section */
.corporate-hero {
  position: relative;
  padding: 100px 0;
  text-align: left;
  height: 360px;
  overflow: hidden;
}

.corporate-hero .hero-background {
  position: absolute;
  inset: 0;
  background-image: url('../../assets/images/hero-about.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.corporate-hero .hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.corporate-hero .container {
  position: relative;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.corporate-hero h1 {
  font-size: 72px;
  font-weight: 550;
  margin: 0;
  font-family: var(--font-family-title);
  width: 550px;
  color: #ffffff;
  line-height: 76px;
}

.corporate-hero h1 span {
  color: #9C6425;
}

/* Intro Description */
.corporate-intro {
  display: flex;
  padding: 120px 70px 64px 70px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  background: #ffffff;
  font-weight: 550;
}

.corporate-intro .intro-text {
  display: flex;
  width: 862px;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  font-variant-numeric: ordinal;
  font-family: var(--font-family-title);
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.64px;
  margin: 0;
}

/* Timeline Section */
.corporate-timeline {
  padding: 0 0 70 px;
  position: relative;
}

.corporate-timeline .container {
  max-width: 862px;
  padding: 0;
}

.timeline {
  position: relative;
  padding: 40px 0 64px;
}

/* Remove the global timeline progress - we'll use individual year sections instead */
/* Timeline Year Section */
.timeline-year-section {
  position: relative;
  margin-bottom: 120px;
}

.timeline-year-section:last-child {
  margin-bottom: 0;
}

/* Year Header */
.timeline-year-header {
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: calc(50% - 60px);
}

.year-title {
  font-size: 54px;
  font-weight: 550;
  background: var(--gradient-small-icons-on-light);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-family-title);
  margin: 0;
  letter-spacing: 2px;
  padding-top: 8px;
  padding-bottom: 4px;
}

/* Year Content Area */
.timeline-year-content {
  position: relative;
  --progress: 0%;
}

/* Circle at the top of each year's timeline */
.timeline-year-content::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  background: var(--gradient-small-icons-on-light);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Individual year timeline line - gray base */
.timeline-year-content::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #AFADB8;
  transform: translateX(-50%);
  z-index: 1;
}

/* Individual year progress line - will be added as a separate element */
/* Timeline year progress element */
.timeline-year-progress {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, #d4af37 0%, #f4e4a6 50%, #d4af37 100%);
  transform: translateX(-50%);
  transition: height 0.2s ease-out;
  z-index: 2;
}

/* Timeline Item */
.timeline-item {
  position: relative;
  width: 100%;
  padding: 32px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 312px;
}

.timeline-item.left {
  flex-direction: row;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

/* Timeline Content */
.timeline-content {
  position: relative;
  width: 391px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item.left .timeline-content {
  margin-right: 40px;
}

.timeline-item.right .timeline-content {
  text-align: left;
  margin-left: 40px;
}

/* Timeline Image Container */
.timeline-image-container {
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.timeline-item.right .timeline-image-container {
  justify-content: flex-end;
  padding-right: 40px;
}

.timeline-item.left .timeline-image-container {
  justify-content: flex-start;
  padding-left: 40px;
}

/* Horizontal connecting line - gray by default */
.timeline-image-container::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 2px;
  background: #AFADB8;
  z-index: 1;
  transition: background-color 0.3s ease, height 0.3s ease;
}

/* Active state - yellow and thicker when progress bar reaches this position */
.timeline-item.active .timeline-image-container::before {
  background: linear-gradient(180deg, #d4af37 0%, #f4e4a6 50%, #d4af37 100%);
  height: 4px;
}

.timeline-item.left .timeline-image-container::before {
  right: calc(50% + 135px);
  transform: translateY(-50%);
}

.timeline-item.right .timeline-image-container::before {
  left: calc(50% + 135px);
  transform: translateY(-50%);
}

/* Remove the old dot styling */
.timeline-item::before {
  display: none;
}

/* Hide connector line for items without images */
.timeline-item.no-image .timeline-image-container::before {
  display: none;
}

/* Timeline Year (removed since we now have year headers) */
/* Timeline Image */
.timeline-image {
  width: 240px;
  height: 240px;
  overflow: hidden;
  background: var(--background-default-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 2;
  border-radius: 4px;
}

.timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Timeline Title */
.timeline-title {
  font-weight: 550;
  margin: 0;
  font-size: 26px;
  font-family: var(--font-family-title);
}

/* Timeline Description */
.timeline-description {
  font-size: 16px;
  margin: 0;
  font-weight: 400;
  line-height: 24px;
}

/* Looking Forward Section */
.looking-forward-section {
  background: #ffffff;
  padding: 120px 0 80px;
  text-align: center;
}

.press-release-link {
  width: fit-content;
  margin-top: 12px;
  padding: 12px 24px;
}

.press-release-link span {
  margin-left: 3px;
}

.looking-forward-section .section-label {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 16px;
}

.looking-forward-section h2 {
  font-size: 32px;
  font-weight: 550;
  line-height: 40px;
  max-width: 900px;
  font-family: var(--font-family-title);
  margin: 10px auto 48px auto;
}

.looking-forward-section .btn {}

.looking-forward-section .btn:hover {}

/* No Items Message */
.no-items {
  text-align: center;
  padding: 60px 20px;
  color: #666666;
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1040px) {
  .corporate-hero h1 {
    font-size: 54px;
    line-height: 60px;
  }

  .corporate-intro {
    padding: 104px 0 48px 0;
  }

  .corporate-intro .intro-text {
    width: auto;
  }

  .corporate-timeline .container {
    padding: 0 40px;
  }

  .timeline-item.left .timeline-image-container::before {
    right: calc(50% + 105px);
  }

  .timeline-item.right .timeline-image-container::before {
    left: calc(50% + 105px);
  }

  .timeline-content {
    width: 330px;
  }

  .year-title {
    font-size: 34px;
    line-height: 40px;
  }

  .timeline-title {
    font-size: 22px;
    line-height: 32px;
  }

  .timeline {
    padding: 36px 0 48px 0;
  }

  .timeline-year-section {
    margin-bottom: 36px;
  }

  .looking-forward-section {
    padding: 104px 0 0 0;
  }

  .looking-forward-section .section-label {
    font-size: 14px;
    line-height: 18px;
  }

  .looking-forward-section h2 {
    padding: 4px 0 0 0;
    font-size: 28px;
    line-height: 32px;
  }

  .looking-forward-section .btn {
    display: none;
  }
}

@media (max-width: 780px) {
  .timeline-item.left .timeline-image-container::before {
    right: calc(50% + 100px);
  }

  .timeline-item.right .timeline-image-container::before {
    left: calc(50% + 100px);
  }
}

@media (max-width: 640px) {
  .year-title {
    font-size: 2.5rem;
  }

  .timeline-year-header {
    padding-left: 35px;
    transform: translateY(44px);
  }

  .corporate-timeline .container {
    padding: 0 20px;
  }

  .timeline-year-content {
    padding-top: 10px;
  }

  .corporate-intro .intro-text {
    font-size: 28px;
    line-height: 32px;
  }

  .corporate-hero h1 {
    width: unset;
    font-size: 46px;
    line-height: 52px;
  }

  .timeline-year-content::before,
  .timeline-year-content::after,
  .timeline-year-progress {
    left: 10px;
    transform: none;
  }

  .timeline-year-content::before {
    left: 3px !important;
  }

  .timeline-year-progress {
    left: 9px !important;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding: 40px 20px 40px 35px;
    position: relative;
  }

  .timeline-content {
    width: 100%;
    text-align: left !important;
    padding: 0;
    order: 2;
    margin-left: 0 !important;
    gap: 4px;
  }

  .timeline-image-container {
    width: 100%;
    display: flex;
    justify-content: flex-start !important;
    margin-bottom: 20px;
    order: 1;
    padding-left: 0 !important;
  }

  .press-release-link {
    margin-top: 16px;
  }

  .timeline-item.right .timeline-image-container {
    justify-content: flex-start !important;
  }

  .timeline-image-container::before {
    content: '';
    position: absolute;
    top: 55px;
    left: -25px;
    width: 50px;
    height: 2px;
    background: #d0d0d0;
    transition: background-color 0.3s ease;
  }

  .timeline-item.active .timeline-image-container::before {
    background: #d4af37;
  }

  .timeline-image {
    width: 110px;
    height: 110px;
  }

  .timeline-item.right .timeline-image-container::before {
    left: -25px;
  }

  .timeline-description {
    font-size: 14px;
    line-height: 20px;
  }
}