/* --- Brand variables fallbacks --- */
:root {
  --hl-dark-green: #1B4D3E;
  --hl-gold: #D4AF37;
  --hl-medium-green: #25624B;
  --hl-secondary-gold: #C59E30;
  --hl-black: #000000;
  --hl-white: #FFFFFF;
  
  --hl-font-heading: 'Cormorant Garamond', serif;
  --hl-font-body: 'DM Sans', sans-serif;
  
  --hl-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Container & Layout Rules --- */
.hl-timeline-container {
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  background-color: var(--hl-white);
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-left: auto;
  margin-right: auto;
}

.hl-timeline-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Responsiveness overrides */
@media (max-width: 1366px) {
  .hl-timeline-container {
    width: 85vw !important;
    max-width: 85vw !important;
    padding-left: 0;
    padding-right: 0;
  }
  .hl-timeline-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 991px) {
  .hl-timeline-container {
    width: 90vw !important;
    max-width: 90vw !important;
  }
}

/* --- Header Block --- */
.hl-timeline-header {
  text-align: center;
  margin-bottom: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hl-time-badge {
  display: inline-block;
  background-color: rgba(27, 77, 62, 0.08);
  color: var(--hl-dark-green);
  font-family: var(--hl-font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border: 1px solid rgba(27, 77, 62, 0.15);
}

.hl-time-section-title {
  font-family: var(--hl-font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 600;
  color: var(--hl-dark-green);
  margin: 0;
  line-height: 1.2;
}

/* --- Timeline Structure --- */
.hl-timeline-box {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 0;
}

/* Central Vertical Line */
.hl-time-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: rgba(27, 77, 62, 0.12);
  transform: translateX(-50%);
  z-index: 1;
}

/* Timeline Item row */
.hl-time-item {
  position: relative;
  width: 50%;
  margin-bottom: 40px;
  display: flex;
  box-sizing: border-box;
  z-index: 2;
}

.hl-time-item:last-child {
  margin-bottom: 0;
}

/* Alignments */
.hl-time-left {
  left: 0;
  justify-content: flex-end;
  padding-right: 45px;
}

.hl-time-right {
  left: 50%;
  justify-content: flex-start;
  padding-left: 45px;
}

/* Central Node Dot */
.hl-time-node {
  position: absolute;
  top: 26px;
  width: 16px;
  height: 16px;
  background-color: var(--hl-dark-green);
  border: 3px solid var(--hl-gold);
  border-radius: 50%;
  z-index: 10;
  box-sizing: border-box;
}

.hl-time-left .hl-time-node {
  right: -8px;
}

.hl-time-right .hl-time-node {
  left: -8px;
}

/* Milestone Content Card */
.hl-time-card {
  background-color: var(--hl-white);
  border: 1px solid #E2E8F0;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  transition: var(--hl-transition);
}

.hl-time-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(27, 77, 62, 0.04);
  border-color: rgba(212, 175, 55, 0.25);
}

/* Milestone Elements */
.hl-time-card-year {
  display: inline-block;
  background-color: rgba(212, 175, 55, 0.12);
  color: var(--hl-gold);
  font-family: var(--hl-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.hl-time-card-title {
  font-family: var(--hl-font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hl-dark-green);
  margin: 0 0 10px 0;
}

.hl-time-card-desc {
  font-family: var(--hl-font-body);
  font-size: 0.925rem;
  line-height: 1.55;
  color: #4A5568;
  margin: 0;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
  .hl-time-line {
    left: 20px;
    transform: none;
  }
  
  .hl-time-item {
    width: 100%;
    margin-bottom: 30px;
    padding-left: 45px;
    padding-right: 0;
  }
  
  .hl-time-left {
    left: 0;
    justify-content: flex-start;
  }
  
  .hl-time-right {
    left: 0;
    justify-content: flex-start;
  }
  
  .hl-time-node {
    left: 12px !important;
    right: auto !important;
  }
}
