/* Roadmap history page */
.history-hero {
  position: relative;
  min-height: 70vh;
  padding: 7.5rem 8% 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.history-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(18, 16, 13, 0.65) 0%, rgba(18, 16, 13, 0.25) 60%, rgba(18, 16, 13, 0.1) 100%),
    url('budha.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.history-hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -200px;
  background: radial-gradient(circle, rgba(196, 90, 23, 0.25) 0%, transparent 70%);
  z-index: 0;
}

.history-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(47, 91, 99, 0.22) 0%, transparent 70%);
  z-index: 0;
}

.history-hero-card {
  position: relative;
  z-index: 2;
  max-width: 680px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.8rem 2.8rem 2.2rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  text-align: center;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: 1.5rem;
}

.history-hero-card h1 {
  font-size: 3rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.history-hero-card p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.hero-actions .btn {
  min-width: 200px;
  justify-content: center;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-weight: 600;
  font-size: 0.85rem;
}

.roadmap-section {
  background: var(--bg-soft);
}

.roadmap-section .section-head {
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 1rem;
}

.roadmap-section .section-head p {
  margin: 0 auto;
  max-width: 640px;
}

.highlights-section .section-head {
  align-items: center;
  text-align: center;
  gap: 1rem;
  border-bottom: 2px solid var(--line);
}

.highlights-section .section-head p {
  margin: 0 auto;
  max-width: 640px;
}

.roadmap {
  position: relative;
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
  padding: 1rem 0 2rem;
}

.roadmap-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(196, 90, 23, 0.15) 100%);
  transform: translateX(-50%);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(196, 90, 23, 0.08);
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 1.5rem;
}

.roadmap-item:nth-child(even) .roadmap-card {
  grid-column: 1;
  justify-self: end;
}

.roadmap-item:nth-child(even) .roadmap-point {
  grid-column: 2;
}

.roadmap-item:nth-child(even) .roadmap-card::before {
  right: -12px;
  left: auto;
}

.roadmap-item:nth-child(odd) .roadmap-card {
  grid-column: 3;
  justify-self: start;
}

.roadmap-item:nth-child(odd) .roadmap-point {
  grid-column: 2;
}

.roadmap-point {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffb77a 0%, var(--accent) 55%, #a94c12 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(196, 90, 23, 0.35);
  z-index: 2;
  border: 3px solid #fff;
}

.roadmap-point span {
  font-size: 0.95rem;
}

.roadmap-card {
  background: #fff7d6;
  border-radius: 12px 12px 16px 16px;
  padding: 2rem 2.2rem 1.8rem;
  box-shadow: 0 18px 40px rgba(31, 27, 22, 0.18);
  border: 1px solid rgba(31, 27, 22, 0.08);
  max-width: 520px;
  position: relative;
  text-align: left;
  overflow: hidden;
  transform: rotate(-1.2deg);
}

.roadmap-item:nth-child(even) .roadmap-card {
  transform: rotate(1.2deg);
  background: #fff1c2;
}

.roadmap-card::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 90px;
  height: 26px;
  transform: translateX(-50%) rotate(-2deg);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 27, 22, 0.08);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(31, 27, 22, 0.12);
}

.roadmap-card::after {
  content: "";
  position: absolute;
  bottom: -6px;
  right: 18px;
  width: 120px;
  height: 22px;
  background: rgba(196, 90, 23, 0.12);
  transform: rotate(2deg);
  border-radius: 999px;
  filter: blur(0.2px);
}

.roadmap-era {
  font-size: 0.85rem;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--accent-2);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.roadmap-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

.roadmap-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roadmap-tags span {
  padding: 4px 10px;
  background: rgba(47, 91, 99, 0.12);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
}

.roadmap-item:hover .roadmap-card {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(31, 27, 22, 0.22);
}

.roadmap-item:hover .roadmap-point {
  transform: scale(1.05);
}

.highlights-section {
  background: var(--bg-alt);
}

.about-text {
  margin: 2.5rem auto 0;
  max-width: 980px;
  display: grid;
  gap: 1.5rem;
}

.about-block {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(31, 27, 22, 0.08);
  box-shadow: 0 14px 34px rgba(31, 27, 22, 0.12);
}

.about-block h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.about-block p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 16px 36px rgba(31, 27, 22, 0.14);
  border: 1px solid rgba(31, 27, 22, 0.08);
  text-align: left;
}

.highlight-card h3 {
  margin-bottom: 0.8rem;
}

@media (max-width: 1024px) {
  .history-hero { padding: 7rem 6% 3.5rem; }
  .history-hero-card h1 { font-size: 2.7rem; }
  .roadmap-item { grid-template-columns: 1fr 50px 1fr; }
}

@media (max-width: 820px) {
  .history-hero-card { padding: 2.5rem 2.2rem; }
  .history-hero-card h1 { font-size: 2.3rem; }
  .roadmap-section .section-head { align-items: center; text-align: center; }
  .highlights-section .section-head { flex-direction: column; align-items: flex-start; }
  .roadmap-line { left: 24px; }
  .roadmap-item { grid-template-columns: 48px 1fr; }
  .roadmap-item:nth-child(even) .roadmap-card,
  .roadmap-item:nth-child(odd) .roadmap-card {
    grid-column: 2;
    justify-self: stretch;
  }
  .roadmap-item:nth-child(even) .roadmap-point,
  .roadmap-item:nth-child(odd) .roadmap-point {
    grid-column: 1;
  }
  .roadmap-card::before {
    left: -10px;
    right: auto;
  }
}

@media (max-width: 560px) {
  .history-hero { min-height: auto; padding: 6rem 6% 3rem; }
  .history-hero-card { padding: 2rem 1.6rem; }
  .history-hero-card h1 { font-size: 2rem; }
  .meta-pill { font-size: 0.75rem; }
  .roadmap-card { max-width: 100%; }
}
