.history-visual {
  height: 35vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f6b93b 0%, #e58e26 100%);
  margin-bottom: 3rem;
}
.history-visual .sub-hero__title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.3;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 0 1rem;
  max-width: 90%;
}
.history-visual .sub-hero__lead {
  color: #fff;
  opacity: 0.95;
  font-size: 1.05rem;
  margin-top: 1rem;
}

.page-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  display: inline-block;
}
.page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 80px;
  height: 4px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 2px;
}

.history-section {
  margin-bottom: 5rem;
  padding: 3rem 2rem;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.history-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
}

.timeline-canvas-wrap {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 2rem;
  background: #fafafa;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

#timelineCanvas {
  width: 100%;
  height: auto;
  max-width: 900px;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 45%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  left: 55%;
  text-align: left;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1rem;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.timeline-item:nth-child(odd)::before {
  right: -2rem;
}

.timeline-item:nth-child(even)::before {
  left: -2rem;
}

.timeline-year {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--brown);
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.6;
}

.info-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.info-grid.wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.info-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.info-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.info-card-content {
  padding: 1.5rem;
}
.info-card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark);
}
.info-card-content p {
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.6;
}

.action-section {
  margin: 5rem 0 0;
  padding: 3.5rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #f6b93b 0%, #e58e26 100%);
  color: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.action-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  pointer-events: none;
}

.action-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.action-section p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}
.action-button {
  display: inline-block;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.action-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  .timeline-canvas-wrap {
    max-width: 800px;
    padding: 1.5rem;
  }

  #timelineCanvas {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .history-section {
    padding: 2rem 1rem;
    margin-bottom: 3rem;
  }

  .timeline-canvas-wrap {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  #timelineCanvas {
    max-width: 100%;
  }

  .page-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .info-grid.wide {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .action-section {
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
  }

  .action-section h2 {
    font-size: 1.5rem;
  }

  .timeline::before {
    left: 2rem;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 4rem !important;
    padding-right: 0 !important;
  }

  .timeline-item::before {
    left: -2rem !important;
  }
}

@media (max-width: 480px) {
  .history-visual {
    min-height: 240px;
    margin-bottom: 2rem;
  }

  .history-section {
    padding: 1.5rem 1rem;
  }

  .timeline-canvas-wrap {
    padding: 0.8rem;
  }

  .page-title {
    font-size: 1.3rem;
  }

  .action-section {
    padding: 2rem 1rem;
  }

  .action-section h2 {
    font-size: 1.3rem;
  }
}
