@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary-green: #9ade00;
  --primary-green-rgb: 154, 222, 0;
  --primary-green-hover: #82be00;
  --bg-dark: #070708;
  --bg-card: rgba(20, 20, 24, 0.75);
  --bg-card-hover: rgba(30, 30, 36, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(154, 222, 0, 0.2);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #ffffff;
  --accent-red: #ff3b30;
  --accent-red-rgb: 255, 59, 48;
  --accent-orange: #ff9500;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 20px rgba(154, 222, 0, 0.15);
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Glassmorphism Class */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 222, 0, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(154, 222, 0, 0.1);
}

.glass::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.glass:hover::after {
  left: 170%;
  opacity: 1;
  transition: left 0.8s ease-out, opacity 0.8s ease-out;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-family: var(--font-headings);
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary-green);
  color: #000;
  box-shadow: 0 4px 14px rgba(154, 222, 0, 0.3);
}

.btn-primary:hover {
  background: var(--primary-green-hover);
  box-shadow: 0 6px 20px rgba(154, 222, 0, 0.5), 0 0 0 4px rgba(154, 222, 0, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-green);
  transform: translateY(-2px);
}

/* Navigation & Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 5%;
  background: rgba(7, 7, 8, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-normal);
}

header.scrolled {
  padding: 10px 5%;
  background: rgba(7, 7, 8, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 44px;
  width: auto;
  transition: var(--transition-fast);
}

.logo:hover img {
  filter: drop-shadow(0 0 8px var(--primary-green));
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 10px 0;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(10, 10, 12, 0.98);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 0;
  min-width: 240px;
  display: none;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  margin-top: 5px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  color: var(--text-light);
  background: rgba(154, 222, 0, 0.08);
  padding-left: 25px;
}

.dropdown-item.active {
  color: var(--primary-green);
  background: rgba(154, 222, 0, 0.04);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 10%;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(154, 222, 0, 0.08) 0%, transparent 60%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-image: linear-gradient(to right, rgba(7, 7, 8, 0.97) 30%, rgba(7, 7, 8, 0.7) 70%, rgba(7, 7, 8, 0.95) 100%), url('Images/NBR-Background5.png');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(154, 222, 0, 0.1);
  border: 1px solid rgba(154, 222, 0, 0.2);
  color: var(--primary-green);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-headings);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-tag span.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 10px var(--primary-green);
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-title span {
  background: linear-gradient(135deg, #fff 40%, var(--primary-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-light);
  font-family: var(--font-headings);
}

.hero-stat-num::after {
  content: '+';
  color: var(--primary-green);
  font-weight: 400;
  font-size: 1.5rem;
  vertical-align: super;
}

.hero-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Sections Global */
section {
  padding: 140px 5% 80px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--primary-green);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Page Intro Block (for sub-pages) */
.page-intro {
  background: linear-gradient(180deg, rgba(7, 7, 8, 0.4) 0%, rgba(7, 7, 8, 0) 100%);
  padding-bottom: 20px;
}

/* Grid & Cards Styles */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* General Article Styling */
.article-container {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .article-container {
    width: 95%;
  }
}

.article-content {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content p {
  margin-bottom: 25px;
}

.article-content h3 {
  font-size: 1.75rem;
  color: var(--text-light);
  margin: 40px 0 20px;
}

.article-content ul, .article-content ol {
  margin: 20px 0 30px 20px;
}

.article-content li {
  margin-bottom: 10px;
}

/* Interactive Track Map Section */
.map-container-outer {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.map-wrapper {
  position: relative;
  width: 100%;
  background: rgba(15, 15, 18, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-svg-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  aspect-ratio: 181 / 110;
}

.map-svg-container svg {
  width: 100%;
  height: 100%;
}

/* Map Pins */
.map-pin {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-green);
  border: 3px solid #000;
  box-shadow: 0 0 10px var(--primary-green);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: var(--transition-fast);
  z-index: 5;
}

.map-pin::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border: 1px solid var(--primary-green);
  border-radius: 50%;
  animation: pulsePin 1.5s infinite;
}

.map-pin:hover, .map-pin.active {
  background: var(--text-light);
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 15px #ffffff, 0 0 0 6px rgba(154, 222, 0, 0.2);
  z-index: 10;
}

/* Pin positions based on percentage coordinates */
#pin-hatzenbach { top: 76%; left: 34%; }
#pin-flugplatz { top: 61%; left: 33%; }
#pin-schwedenkreuz { top: 48%; left: 27%; }
#pin-fuchsroehre { top: 38%; left: 23%; }
#pin-adenauer-forst { top: 29%; left: 21%; }
#pin-wehrseifen { top: 12%; left: 27%; }
#pin-karussell { top: 5%; left: 47%; }
#pin-hohe-acht { top: 15%; left: 54%; }
#pin-wippermann { top: 29%; left: 63%; }
#pin-bruennchen { top: 36%; left: 69%; }
#pin-pflanzgarten { top: 44%; left: 77%; }
#pin-schwalbenschwanz { top: 56%; left: 81%; }
#pin-doettinger { top: 70%; left: 58%; }

.corner-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.corner-detail-card {
  padding: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.corner-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.corner-name {
  font-size: 1.8rem;
  margin-top: 5px;
}

.corner-num {
  font-size: 0.9rem;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.corner-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.corner-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.corner-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}

.corner-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.corner-stat-val.danger { color: var(--accent-red); }
.corner-stat-val.warning { color: var(--accent-orange); }
.corner-stat-val.success { color: var(--primary-green); }

.corner-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.corner-tip-box {
  background: rgba(154, 222, 0, 0.05);
  border-left: 4px solid var(--primary-green);
  padding: 15px;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
}

.corner-tip-box strong {
  display: block;
  color: var(--primary-green);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.map-selector {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.map-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.map-btn:hover, .map-btn.active {
  background: rgba(154, 222, 0, 0.1);
  border-color: var(--primary-green);
  color: var(--text-light);
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  padding: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 25px;
  right: -6px;
  width: 12px;
  height: 12px;
  background: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-green);
  z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -6px;
}

.timeline-year {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-light);
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Promo Link Cards (What is Nurburgring & Plan your Trip portal templates) */
.promo-card {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}

.promo-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(154, 222, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  margin-bottom: 20px;
}

.promo-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.promo-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-green);
}

.promo-link:hover {
  color: var(--text-light);
}

/* Showcase Cards (Where to stay, What to do) */
.showcase-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.showcase-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.06);
}

.showcase-tag {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(7, 7, 8, 0.85);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--primary-green);
  font-weight: 600;
  text-transform: uppercase;
}

.showcase-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.showcase-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.showcase-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.showcase-price {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-green);
}

.showcase-location {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Video Gallery (Films & Media) */
.video-card {
  overflow: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 20px 10px;
}

.video-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.video-channel {
  font-size: 0.8rem;
  color: var(--primary-green);
  font-weight: 600;
}

/* Safety & Rules Quiz Section */
.tf-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  margin-bottom: 50px;
}

.rules-card {
  padding: 40px;
}

.rules-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rule-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.rule-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-headings);
}

.rule-info h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.rule-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.rule-warning {
  border-left-color: var(--accent-red);
}

.rule-warning .rule-number {
  color: var(--accent-red);
  background: rgba(255, 59, 48, 0.1);
  border-color: rgba(255, 59, 48, 0.2);
}

/* Quiz Card Widget */
.quiz-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(20, 20, 24, 0.9) 0%, rgba(10, 10, 12, 0.9) 100%);
}

.quiz-card::before {
  content: '?';
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.015);
  font-family: var(--font-headings);
  line-height: 1;
  pointer-events: none;
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.quiz-title-badge {
  color: var(--primary-green);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.quiz-progress {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quiz-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  min-height: 60px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.quiz-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.quiz-option.selected {
  border-color: var(--primary-green);
  background: rgba(154, 222, 0, 0.05);
}

.quiz-option.correct {
  border-color: var(--primary-green);
  background: rgba(154, 222, 0, 0.1);
  color: var(--text-light);
}

.quiz-option.wrong {
  border-color: var(--accent-red);
  background: rgba(255, 59, 48, 0.1);
}

.option-letter {
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 15px;
  font-family: var(--font-headings);
}

.quiz-option.selected .option-letter,
.quiz-option.correct .option-letter {
  color: var(--primary-green);
}

.quiz-option.wrong .option-letter {
  color: var(--accent-red);
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 45px;
}

.quiz-feedback {
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-feedback.correct-txt { color: var(--primary-green); }
.quiz-feedback.wrong-txt { color: var(--accent-red); }

/* Road Trip Planner Section */
.planner-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.calculator-card {
  padding: 40px;
}

.calc-title-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.calc-title-box h3 {
  font-size: 1.5rem;
}

.calc-group {
  margin-bottom: 25px;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.calc-label {
  color: var(--text-light);
  font-weight: 500;
}

.calc-value {
  color: var(--primary-green);
  font-weight: 700;
  font-family: var(--font-headings);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--primary-green);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(154, 222, 0, 0.5);
  transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.select-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-light);
  outline: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.select-input:focus {
  border-color: var(--primary-green);
}

.results-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(20, 20, 24, 0.95) 0%, rgba(7, 7, 8, 0.98) 100%);
}

.results-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.results-header h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.results-total {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--primary-green);
  font-family: var(--font-headings);
  text-shadow: 0 0 15px rgba(154, 222, 0, 0.2);
}

.results-breakdown {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 30px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.breakdown-label {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
}

#lbl-ferry::before { background: #5856d6; }
#lbl-laps::before { background: var(--primary-green); }
#lbl-fuel::before { background: var(--accent-orange); }
#lbl-hotel::before { background: #30b0c7; }
#lbl-food::before { background: #ff2d55; }

.breakdown-val {
  font-weight: 600;
  color: var(--text-light);
}

/* Checklist Section */
.checklist-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.checklist-card {
  padding: 40px;
}

.checklist-tabs {
  display: flex;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.checklist-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.checklist-tab:hover {
  color: var(--text-light);
}

.checklist-tab.active {
  background: rgba(154, 222, 0, 0.1);
  color: var(--primary-green);
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(154, 222, 0, 0.2);
}

.checklist-item.checked {
  background: rgba(154, 222, 0, 0.02);
  border-color: rgba(154, 222, 0, 0.15);
}

.checkbox-custom {
  position: relative;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  flex-shrink: 0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checklist-item:hover .checkbox-custom {
  border-color: var(--primary-green);
}

.checklist-item.checked .checkbox-custom {
  background: var(--primary-green);
  border-color: var(--primary-green);
}

.checkbox-custom svg {
  width: 12px;
  height: 12px;
  fill: #000;
  opacity: 0;
  transform: scale(0.5);
  transition: var(--transition-fast);
}

.checklist-item.checked .checkbox-custom svg {
  opacity: 1;
  transform: scale(1);
}

.checklist-text {
  font-size: 0.95rem;
  color: var(--text-light);
  transition: var(--transition-fast);
}

.checklist-item.checked .checklist-text {
  color: var(--text-muted);
  text-decoration: line-through;
}

.checklist-progress-card {
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.checklist-progress-radial {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 20px auto 30px;
}

.checklist-progress-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.checklist-progress-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8px;
}

.checklist-progress-bar {
  fill: none;
  stroke: var(--primary-green);
  stroke-width: 8px;
  stroke-linecap: round;
  stroke-dasharray: 377;
  stroke-dashoffset: 377;
  transition: stroke-dashoffset 0.5s ease;
}

.checklist-progress-val {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-light);
}

.checklist-progress-info {
  text-align: center;
}

.checklist-progress-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.checklist-progress-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Events Calendar Section */
.events-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.event-card {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.event-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
}

#event-bg-24h { background-image: url('Resources/bg2.jpg'); }
#event-bg-nls { background-image: url('Resources/bg3.jpg'); }
#event-bg-classic { background-image: url('Resources/bg4.jpg'); }

.event-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(7, 7, 8, 0.8);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-green);
  text-transform: uppercase;
}

.event-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-date {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.event-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.event-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.event-countdown-box {
  display: flex;
  flex-direction: column;
}

.event-countdown-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-countdown-time {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  font-family: var(--font-headings);
}

/* Info and Emergency Footer Section */
.footer-info {
  background-image: linear-gradient(to bottom, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.88) 100%), url('Images/NBR-Background6.png');
  background-size: cover;
  background-position: center;
  border-top: 1px solid var(--border-color);
  padding: 80px 5% 40px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 15px;
  max-width: 350px;
}

.footer-links h4, .footer-contact h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}

.emergency-panel {
  padding: 25px;
  background: rgba(255, 59, 48, 0.04);
  border: 1px solid rgba(255, 59, 48, 0.15);
  border-radius: 12px;
}

.emergency-panel:hover {
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.05);
}

.emergency-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.emergency-header h4 {
  color: var(--accent-red);
  font-size: 1.05rem;
}

.emergency-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-light);
  font-family: var(--font-headings);
  margin-bottom: 8px;
}

.emergency-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.copyright {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(154, 222, 0, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(154, 222, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(154, 222, 0, 0);
  }
}

@keyframes pulsePin {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Responsive Styling */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.2rem;
  }
  .map-container-outer {
    grid-template-columns: 1fr;
  }
  .tf-grid, .planner-layout, .checklist-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  .logo img {
    height: 32px;
  }
  nav {
    display: none; /* Drawer logic in JS */
  }
  .menu-toggle {
    display: flex;
  }
  
  .hero {
    padding: 0 20px;
    align-items: center;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    margin-top: 40px;
    gap: 30px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  
  /* Timeline Responsive Collapse */
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding: 15px 15px 15px 45px;
    text-align: left !important;
  }
  .timeline-dot {
    left: 14px !important;
  }
  
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Mobile Nav Drawer Accordion / Submenu Active Styles */
nav.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(7, 7, 8, 0.98);
  border-bottom: 1px solid var(--border-color);
  padding: 30px;
  gap: 15px;
  align-items: center;
  animation: fadeInUp 0.3s ease-out;
  max-height: 85vh;
  overflow-y: auto;
}

nav.mobile-active .dropdown {
  width: 100%;
  text-align: center;
}

nav.mobile-active .dropdown-menu {
  position: static;
  display: none;
  background: rgba(15, 15, 18, 0.6);
  border: none;
  border-left: 2px solid var(--primary-green);
  border-radius: 0;
  width: 100%;
  min-width: 0;
  padding: 5px 0;
  margin-top: 5px;
  box-shadow: none;
}

nav.mobile-active .dropdown.open .dropdown-menu {
  display: block;
}

/* ==========================================================================
   ENHANCED HOMEPAGE STYLES & LIVE WEATHER WIDGET
   ========================================================================== */

/* Hero Container for 2-Column Desktop Layout */
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  z-index: 2;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 60px;
  }
}

/* Weather Widget styling */
.weather-widget {
  padding: 30px;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  border-radius: 24px;
  background: rgba(13, 13, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .weather-widget {
    margin: 0 auto;
  }
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.weather-location {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-light);
}

.weather-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-green {
  background: var(--primary-green);
  box-shadow: 0 0 0 0 rgba(154, 222, 0, 0.7);
  animation: pulse-green 2s infinite;
}

.pulse-orange {
  background: var(--accent-orange);
  box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.7);
  animation: pulse-orange 2s infinite;
}

.pulse-red {
  background: var(--accent-red);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(154, 222, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(154, 222, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(154, 222, 0, 0);
  }
}

@keyframes pulse-orange {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 149, 0, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
  }
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(255, 59, 48, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
  }
}

.weather-update-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weather-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 20px;
}

.weather-icon-container {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
}

.weather-icon-container svg {
  width: 100%;
  height: 100%;
}

.weather-temp-container {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 2.8rem;
  font-family: var(--font-headings);
  font-weight: 800;
  line-height: 1;
  color: var(--text-light);
}

.weather-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

.weather-status-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.weather-status-alert.alert-green {
  background: rgba(154, 222, 0, 0.1);
  border: 1px solid rgba(154, 222, 0, 0.2);
  color: #a3ff00;
}

.weather-status-alert.alert-orange {
  background: rgba(255, 149, 0, 0.1);
  border: 1px solid rgba(255, 149, 0, 0.2);
  color: #ffb03a;
}

.weather-status-alert.alert-red {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.2);
  color: #ff6e65;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.weather-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.weather-detail-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.weather-detail-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
}

/* Comparison Section Styles */
.comparison-section {
  background: #09090b;
  padding: 80px 5%;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto 0;
}

@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.comparison-card {
  padding: 40px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.comparison-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  width: fit-content;
}

.badge-tf {
  background: rgba(154, 222, 0, 0.1);
  border: 1px solid var(--primary-green);
  color: var(--primary-green);
}

.badge-td {
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
}

.comparison-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.comparison-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.comparison-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-main);
}

.comparison-list-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.comparison-btn {
  width: 100%;
  text-align: center;
}

/* Dynamic Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  padding: 24px;
  text-align: center;
  border-radius: 16px;
}

.stat-icon {
  color: var(--primary-green);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.stat-card-num {
  font-size: 2.2rem;
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-card-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Feature Content Blocks Backgrounds */
.feature-track {
  background-image: linear-gradient(to bottom, rgba(13, 13, 16, 0.8) 0%, rgba(7, 7, 8, 0.92) 100%), url('Images/track-feature.png');
  background-size: cover;
  background-position: center;
}
.feature-trip {
  background-image: linear-gradient(to bottom, rgba(13, 13, 16, 0.8) 0%, rgba(7, 7, 8, 0.92) 100%), url('Images/trip-planning-feature.png');
  background-size: cover;
  background-position: center;
}
.feature-safety {
  background-image: linear-gradient(to bottom, rgba(13, 13, 16, 0.8) 0%, rgba(7, 7, 8, 0.92) 100%), url('Images/safety-feature.png');
  background-size: cover;
  background-position: center;
}
.feature-videos {
  background-image: linear-gradient(to bottom, rgba(13, 13, 16, 0.8) 0%, rgba(7, 7, 8, 0.92) 100%), url('Images/videos-feature.png');
  background-size: cover;
  background-position: center;
}
