:root {
  --red: #c0152a;
  --red-bright: #e8001e;
  --white: #f0eff0;
  --dark: #0a0a0b;
  --dark2: #111114;
  --dark3: #1a1a1f;
  --grey: #2a2a30;
  --grey-light: #555565;
  --accent-gold: #c8a84b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo-text span { color: var(--red-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links li a, .nav-links li button {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  position: relative;
  transition: color 0.2s;
  display: inline-block;
}

.nav-links li a::after, .nav-links li button::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--red-bright);
  transition: left 0.2s, right 0.2s;
}

.nav-links li a:hover, .nav-links li button:hover,
.nav-links li a.active, .nav-links li button.active {
  color: var(--red-bright);
}

.nav-links li a:hover::after, .nav-links li button:hover::after,
.nav-links li a.active::after, .nav-links li button.active::after {
  left: 0.5rem; right: 0.5rem;
}

.nav-join-btn {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: 0.15em !important;
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  padding: 0.45rem 1.25rem !important;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  cursor: pointer;
  transition: background 0.2s !important;
}

.nav-join-btn:hover { background: var(--red-bright) !important; }
.nav-join-btn::after { display: none !important; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh; 
  
  padding-top: 68px; 
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; 
  
  overflow: visible; 
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 80%, rgba(192,21,42,0.18) 0%, transparent 70%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(255,255,255,0.012) 60px,
      rgba(255,255,255,0.012) 61px
    );
}

.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

.hero-stripe {
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background: var(--red);
  opacity: 0.7;
  animation: stripeSlide 8s infinite linear;
}

@keyframes stripeSlide {
  0% { left: -10%; opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.7; }
  100% { left: 110%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  margin-top: auto; 
  margin-bottom: auto;
}

.hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 900;
  font-style: italic;
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  animation: fadeUp 0.8s 0.1s ease both;
  text-shadow: 0 0 80px rgba(192,21,42,0.4);
}

.hero-title .red { color: var(--red-bright); }

.hero-subtitle {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-top: 1.2rem;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-car-img {
  margin: 2.5rem auto 0;
  max-width: 720px;
  width: 90%;
  filter: drop-shadow(0 20px 80px rgba(192,21,42,0.5));
  animation: fadeUp 0.8s 0.3s ease both, float 6s ease-in-out 1s infinite;
}

.hero-car-img img { width: 100%; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  animation: fadeUp 0.8s 0.4s ease both;
}

.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0.85rem 2.2rem;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: var(--red-bright); transform: scale(1.04); }

.btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--grey-light);
  cursor: pointer;
  padding: 0.83rem 2.2rem;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--red); color: var(--red-bright); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stats strip */
.stats-strip {
  background: var(--red);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 4rem;
  overflow: hidden;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-full {
  padding: 6rem 2rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--red-bright);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.9;
  color: var(--white);
}

.section-title .red { color: var(--red-bright); }

/* ===== HOMEPAGE SECTIONS ===== */
.home-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.home-feature.reverse { direction: rtl; }
.home-feature.reverse > * { direction: ltr; }

.feature-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(240,239,240,0.7);
  margin-top: 1.5rem;
  font-weight: 400;
}

.feature-img {
  position: relative;
  border-left: 4px solid var(--red);
}

.feature-img img {
  width: 100%;
  display: block;
  filter: brightness(0.9);
}

.feature-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(192,21,42,0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--dark2);
  border: 1px solid var(--grey);
  border-top: 3px solid var(--red);
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--red-bright);
}

.card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: var(--red);
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
  opacity: 0.15;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card p {
  color: rgba(240,239,240,0.65);
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  padding-top: 68px;
  background: linear-gradient(180deg, rgba(192,21,42,0.12) 0%, transparent 40%),
              var(--dark);
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: 'RACING';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22vw;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.025);
  letter-spacing: -0.02em;
  pointer-events: none;
  user-select: none;
}

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

.team-card {
  background: var(--dark2);
  border: 1px solid var(--grey);
  overflow: hidden;
  transition: transform 0.2s;
}

.team-card:hover { transform: translateY(-5px); }

.team-card-img {
  height: 220px;
  background: var(--dark3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid var(--red);
  font-size: 4rem;
  overflow: hidden;
}

.team-card-info {
  padding: 1.5rem;
}

.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
}

.team-role {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-top: 0.2rem;
  font-weight: 600;
}

.team-flag { font-size: 1.4rem; margin-left: 0.4rem; }

.team-car-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--grey);
  margin-top: 0.5rem;
}

.team-card-info p {
  color: rgba(240,239,240,0.6);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

/* ===== MEDIA PAGE ===== */
.media-hero {
  padding-top: 68px;
  background: linear-gradient(180deg, rgba(192,21,42,0.1) 0%, transparent 50%);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-placeholder {
  background: var(--dark2);
  border: 1px solid var(--grey);
  border-top: 3px solid var(--red);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.video-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(192,21,42,0.1) 0%, transparent 70%);
}

.video-placeholder:hover {
  border-color: var(--red-bright);
  transform: scale(1.02);
}

.play-icon {
  width: 60px; height: 60px;
  background: var(--red);
  clip-path: polygon(20% 0%, 100% 50%, 20% 100%);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  transition: background 0.2s;
}

.video-placeholder:hover .play-icon { background: var(--red-bright); }

.video-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  z-index: 1;
}

/* Social cards */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-card {
  background: var(--dark2);
  border: 1px solid var(--grey);
  padding: 2.5rem 2rem;
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.social-card:hover { transform: translateY(-5px); }

.social-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}

.social-card.twitch::before { background: #9146ff; }
.social-card.discord::before { background: #5865f2; }
.social-card.tiktok::before { background: linear-gradient(90deg, #ff0050, #00f2ea); }
.social-card.youtube::before { background: #ff0000; }

.social-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.social-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
}

.social-desc {
  color: rgba(240,239,240,0.55);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.social-link-text {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--grey-light);
  color: var(--white);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, border-color 0.2s;
}

.social-card:hover .social-link-text {
  background: var(--red);
  border-color: var(--red);
}

/* ===== RECRUITMENT PAGE ===== */
.recruit-hero {
  padding-top: 68px;
  background: linear-gradient(180deg, rgba(192,21,42,0.15) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}

.recruit-hero::after {
  content: '#83';
  position: absolute;
  left: -1%;
  top: 20%;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28vw;
  font-weight: 900;
  font-style: italic;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0 3rem;
}

.req-item {
  background: var(--dark3);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.req-check {
  color: var(--red-bright);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.req-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(240,239,240,0.8);
}

/* Form */
.recruit-form-wrap {
  background: var(--dark2);
  border: 1px solid var(--grey);
  border-top: 4px solid var(--red);
  padding: 3rem;
  max-width: 750px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--dark3);
  border: 1px solid var(--grey);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
}

.form-group select option { background: var(--dark3); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-submit {
  width: 100%;
  margin-top: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 1.1rem;
  clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
  transition: background 0.2s;
}

.form-submit:hover { background: var(--red-bright); }

.form-success {
  display: none;
  text-align: center;
  padding: 3rem;
}

.form-success .success-icon { font-size: 4rem; margin-bottom: 1rem; }

.form-success h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.75rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark2);
  border-top: 2px solid var(--grey);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: rgba(240,239,240,0.5);
  font-size: 0.95rem;
  margin-top: 1rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links li a {
  background: none;
  border: none;
  color: rgba(240,239,240,0.6);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
  text-decoration: none;
  display: inline-block;
}
.footer-links li a:hover { color: var(--red-bright); }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(240,239,240,0.3);
  font-size: 0.85rem;
}

/* ===== DIVIDER ===== */
.red-bar {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 0;
}

/* ===== MASCOT BANNER ===== */
.mascot-banner {
  background: var(--dark3);
  border-top: 1px solid var(--grey);
  border-bottom: 1px solid var(--grey);
  overflow: hidden;
  position: relative;
}

.mascot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 0;
}

.mascot-text {
  padding: 4rem 3rem 4rem 2rem;
}

.mascot-img-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  background: linear-gradient(135deg, var(--dark3) 0%, rgba(192,21,42,0.08) 100%);
  overflow: hidden;
  height: 420px;
}

.mascot-img-wrap img {
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(-20px 0 40px rgba(192,21,42,0.4));
}

/* ===== SCROLL PT ===== */
.pt-nav { padding-top: 68px; }

/* ===== TICKER ===== */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  padding: 0.5rem 0;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .home-feature { grid-template-columns: 1fr; gap: 2rem; }
  .home-feature.reverse { direction: ltr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .mascot-inner { grid-template-columns: 1fr; }
  .mascot-img-wrap { height: 280px; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 0; }
  .nav-links li a, .nav-links li button { padding: 0.5rem 0.5rem; font-size: 0.85rem; }
  .stats-strip { gap: 2rem; }
  .recruit-form-wrap { padding: 1.5rem; }
}

  :root {
    --red: #c0152a;
    --red-bright: #e8001e;
    --white: #f0eff0;
    --dark: #0a0a0b;
    --dark2: #111114;
    --dark3: #1a1a1f;
    --grey: #2a2a30;
    --grey-light: #555565;
    --accent-gold: #c8a84b;
    --accent-silver: #a0a0a0;
    --accent-bronze: #cd7f32;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  body {
    background: var(--dark);
    color: var(--white);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
  }

  /* ===== NAV ===== */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10,10,11,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 68px;
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    text-decoration: none;
  }

  .nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--white);
    line-height: 1.1;
  }

  .nav-logo-text span { color: var(--red-bright); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
  }

  .nav-links li a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.85rem;
    position: relative;
    transition: color 0.2s;
  }

  .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--red-bright);
    transition: left 0.2s, right 0.2s;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--red-bright);
  }

  .nav-links li a:hover::after,
  .nav-links li a.active::after {
    left: 0.5rem; right: 0.5rem;
  }

  .nav-join-btn {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.15em !important;
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.45rem 1.25rem !important;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    cursor: pointer;
    transition: background 0.2s !important;
  }

  .nav-join-btn:hover { background: var(--red-bright) !important; }
  .nav-join-btn::after { display: none !important; }

  /* ===== SECTION STYLES ===== */
  .section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .section-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--red-bright);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .section-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 2px;
    background: var(--red-bright);
  }

  .section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    line-height: 0.9;
    color: var(--white);
  }

  .section-title .red { color: var(--red-bright); }

  /* ===== ACHIEVEMENTS PAGE ===== */
  .media-hero {
    padding-top: 68px;
    background: linear-gradient(180deg, rgba(192,21,42,0.1) 0%, transparent 50%);
  }

  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }

  .card {
    background: var(--dark2);
    border: 1px solid var(--grey);
    border-top: 3px solid var(--red);
    padding: 2rem;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    overflow: hidden;
  }

  .card:hover {
    transform: translateY(-4px);
  }

  .card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 60px;
    background: var(--red);
    clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
    opacity: 0.15;
  }

  /* Achievement Card Variants */
  .card.gold { border-top-color: var(--accent-gold); }
  .card.gold:hover { border-color: var(--accent-gold); }
  .card.gold::before { background: var(--accent-gold); }

  .card.silver { border-top-color: var(--accent-silver); }
  .card.silver:hover { border-color: var(--accent-silver); }
  .card.silver::before { background: var(--accent-silver); }

  .card.bronze { border-top-color: var(--accent-bronze); }
  .card.bronze:hover { border-color: var(--accent-bronze); }
  .card.bronze::before { background: var(--accent-bronze); }

  .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: 0.75rem;
  }

  .card p {
    color: rgba(240,239,240,0.65);
    font-size: 1rem;
    line-height: 1.6;
  }

  .drivers-list {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--grey);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red-bright);
  }

  /* Timeline */
  .timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 3px solid var(--red);
  }

  .timeline-item {
    position: relative;
    margin-bottom: 3rem;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: -2.65rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--dark);
    border: 3px solid var(--red-bright);
    border-radius: 50%;
  }

  .timeline-date {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--red-bright);
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .timeline-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.5rem;
  }

  .timeline-content {
    color: rgba(240,239,240,0.7);
    font-size: 1.05rem;
    line-height: 1.6;
  }

  /* ===== FOOTER ===== */
  footer {
    background: var(--dark2);
    border-top: 2px solid var(--grey);
    padding: 3rem 2rem;
    margin-top: 4rem;
  }

  .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand p {
    color: rgba(240,239,240,0.5);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 320px;
  }

  .footer-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--red-bright);
    margin-bottom: 1rem;
    font-weight: 700;
  }

  .footer-links { list-style: none; }
  .footer-links li { margin-bottom: 0.5rem; }
  .footer-links li a {
    background: none;
    border: none;
    color: rgba(240,239,240,0.6);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
    text-align: left;
    text-decoration: none;
  }
  .footer-links li a:hover { color: var(--red-bright); }

  .footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(240,239,240,0.3);
    font-size: 0.85rem;
  }

  .red-bar {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    margin: 0;
  }

  /* ===== SCROLL PT ===== */
  .pt-nav { padding-top: 68px; }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    nav { padding: 0 1rem; }
    .nav-links { gap: 0; }
    .nav-links li a { padding: 0.5rem 0.5rem; font-size: 0.85rem; }
  }

/* ===== MOBILE HAMBURGER NAV ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: var(--dark2);
  border-bottom: 3px solid var(--red);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
}

.mobile-menu.open {
  max-height: 500px;
  transition: max-height 0.35s ease;
}

.mobile-menu.closing {
  max-height: 0;
  transition: none;
}

.mobile-menu ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
}

.mobile-menu ul li a {
  display: block;
  padding: 0.9rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--grey);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu ul li a:hover { color: var(--red-bright); background: var(--dark3); }
.mobile-menu ul li a.active { color: var(--red-bright); }

.mobile-menu ul li a.nav-join-btn {
  display: block;
  margin: 1rem 1.5rem 0;
  text-align: center;
  background: var(--red);
  color: #fff;
  border: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  padding: 0.75rem 1.5rem;
}

.mobile-menu ul li a.nav-join-btn:hover { background: var(--red-bright); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav .nav-links { display: none; }
  .mobile-menu { display: block; }
}
/* ============================================================
   EVENT POST PAGE
   Shared components for individual race-announcement pages
   (e.g. event-imola.html). Duplicate the page for the next
   event — these classes stay the same, only the content
   inside them needs to change.
   ============================================================ */

.event-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

.event-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(240,239,240,0.7);
  max-width: 620px;
  margin-top: 1.25rem;
}

/* Mini info chips (track sectors, layout, etc.) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.info-chip {
  background: var(--dark3);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
}

.info-chip-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 0.4rem;
}

.info-chip-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* Class breakdown rows ("On Track Together") */
.class-rows {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.class-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--grey);
}

.class-row:last-child { border-bottom: none; padding-bottom: 0; }

.class-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.class-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--white);
}

.class-desc {
  color: rgba(240,239,240,0.5);
  font-size: 0.88rem;
  text-align: right;
}

/* Driver lineup list */
.lineup-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.lineup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--dark2);
  border: 1px solid var(--grey);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
}

.lineup-id {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lineup-num {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  color: var(--grey-light);
}

.lineup-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--white);
}

.status-pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--grey-light);
  color: rgba(240,239,240,0.7);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  white-space: nowrap;
}

.status-pill.confirmed { border-color: var(--red); color: var(--red-bright); background: rgba(192,21,42,0.08); }
.status-pill.pending { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(200,168,75,0.08); }

/* Car / number spotlight callout */
.spotlight-box {
  background: var(--dark3);
  border-left: 4px solid var(--red);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.spotlight-num {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 2.75rem;
  color: var(--red-bright);
  line-height: 1;
  flex-shrink: 0;
}

.spotlight-box p {
  color: rgba(240,239,240,0.75);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Sponsor strip */
.sponsor-strip {
  text-align: center;
  padding: 1.75rem;
  border: 1px solid var(--grey);
  background: var(--dark2);
  margin-bottom: 2rem;
}

.sponsor-strip .sponsor-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 0.65rem;
}

.sponsor-strip .sponsor-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--white);
}

/* Sidebar card (mascot / pit-wall info) */
.sidebar-card {
  background: var(--dark2);
  border: 1px solid var(--grey);
  border-top: 3px solid var(--red);
  overflow: hidden;
}

.sidebar-img {
  height: 200px;
  background: linear-gradient(135deg, var(--dark3) 0%, rgba(192,21,42,0.1) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.sidebar-img img {
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(-10px 0 20px rgba(192,21,42,0.3));
}

.sidebar-body { padding: 1.5rem; }

.sidebar-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.4rem;
}

.sidebar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
}

.sidebar-sub {
  color: rgba(240,239,240,0.5);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.sidebar-links {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sidebar-link {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: rgba(240,239,240,0.75);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.sidebar-link:hover { color: var(--red-bright); }
.sidebar-link strong { display: block; color: var(--white); font-weight: 700; }

/* Final CTA banner */
.event-cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, #7a0010 100%);
  padding: 3rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.event-cta-banner .watch-live {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.event-cta-banner .watch-live a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
}

.event-cta-banner .cta-message {
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  max-width: 480px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .event-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .event-cta-banner { flex-direction: column; text-align: center; }
  .lineup-item { flex-wrap: wrap; }
  .class-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .class-desc { text-align: left; }
  .stats-strip { row-gap: 1rem; }
}
