/* Auto History Guide - styles */
:root {
  --bg: #0b0f1a;
  --bg2: #121826;
  --card: #182033;
  --accent: #e94560;
  --accent2: #f5a623;
  --text: #e8ecf4;
  --muted: #9aa7bf;
  --border: rgba(255,255,255,0.08);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1a2340 0%, transparent 60%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }
img { max-width: 100%; display: block; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,15,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.25rem; color: #fff;
}
.logo .badge {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.1rem;
}
.logo span { color: var(--accent); }

/* Nav */
nav.main-nav ul {
  list-style: none; display: flex; gap: 6px; align-items: center;
}
nav.main-nav a {
  position: relative; display: block; padding: 10px 14px; color: var(--text);
  font-weight: 500; font-size: 0.95rem; border-radius: 8px;
  transition: color .25s, background .25s;
}
nav.main-nav a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
nav.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
nav.main-nav a:hover::after { transform: scaleX(1); }
nav.main-nav a.active { color: #fff; }
nav.main-nav a.active::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 8px;
}
.hamburger span {
  width: 26px; height: 2.5px; background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 999;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-panel {
  position: absolute; top: 0; right: 0; width: 280px; max-width: 80%;
  height: 100%; background: var(--bg2); padding: 80px 24px 24px;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  border-left: 1px solid var(--border);
}
.mobile-menu.open .mobile-panel { transform: translateX(0); }
.mobile-panel a {
  display: block; padding: 14px 0; color: var(--text); font-size: 1.05rem;
  border-bottom: 1px solid var(--border); transition: color .2s, padding-left .2s;
}
.mobile-panel a:hover { color: var(--accent); padding-left: 8px; }
.mobile-panel a.active { color: var(--accent); }

/* Hero */
.hero {
  max-width: 1280px; margin: 0 auto; padding: 70px 24px 40px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15;
  background: linear-gradient(135deg, #fff, var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); margin: 18px 0 26px; font-size: 1.1rem; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #c0392b);
  color: #fff; font-weight: 600; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(233,69,96,0.35);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(233,69,96,0.5); color:#fff; }
.btn.outline {
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
  box-shadow: none;
}
.hero-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4/3; background: var(--card);
}
.hero-img img { width:100%; height:100%; object-fit: cover; }

/* Sections */
section.container {
  max-width: 1280px; margin: 0 auto; padding: 50px 24px;
}
.section-title {
  font-size: 1.9rem; margin-bottom: 8px;
}
.section-sub { color: var(--muted); margin-bottom: 30px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(233,69,96,0.3); }
.card h3 { color: #fff; margin-bottom: 8px; font-size: 1.2rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .icon { font-size: 2rem; margin-bottom: 12px; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before {
  content: ''; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(233,69,96,0.2);
}
.tl-item h4 { color: var(--accent2); margin-bottom: 4px; }
.tl-item p { color: var(--muted); }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3;
  cursor: pointer; background: var(--card);
}
.gallery-item img { width:100%; height:100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6));
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.lightbox .close {
  position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer;
}

/* Video */
.video-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.video-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.video-card video { width: 100%; display: block; background: #000; }
.video-card .vc-body { padding: 16px; }
.video-card h4 { margin-bottom: 6px; }
.video-card p { color: var(--muted); font-size: 0.9rem; }

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border); padding: 40px 24px; text-align: center;
  color: var(--muted); margin-top: 60px;
}
footer .footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 820px) {
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 40px 20px 20px; }
  .hero-img { order: -1; }
}
@media (max-width: 520px) {
  .section-title { font-size: 1.5rem; }
}
