:root {
  --f1-red: #e10600;
  --f1-red-hover: #ff1e17;
  --f1-red-glow: rgba(225, 6, 0, 0.22);
  --bg-primary: #0b0c10;
  --bg-secondary: #12141c;
  --bg-card: #171923;
  --bg-elevated: #1f2230;
  --text-primary: #f8f9fa;
  --text-secondary: #a0a6b5;
  --text-muted: #6c7282;
  --border-color: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --accent-gold: #ffb800;
  --accent-green: #00d27a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --container-width: 1260px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-grid {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 40px 40px;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Telemetry Ticker */
.telemetry-bar {
  background: #060709;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  padding: 8px 0;
  color: var(--text-secondary);
}

.telemetry-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225, 6, 0, 0.15);
  color: #ff4d47;
  border: 1px solid rgba(225, 6, 0, 0.35);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: var(--f1-red);
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.25); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 16, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover .brand-logo-img {
  transform: scale(1.02);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.22));
}

.footer-logo-img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-mark {
  background: var(--f1-red);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 14px var(--f1-red-glow);
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--f1-red);
  color: #fff;
  box-shadow: 0 4px 16px var(--f1-red-glow);
}

.btn-primary:hover {
  background: var(--f1-red-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--f1-red);
  background: rgba(225, 6, 0, 0.08);
}

.btn-whatsapp-sm {
  background: rgba(37, 211, 102, 0.14);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.35);
  padding: 8px 13px;
  font-size: 0.82rem;
}

.btn-whatsapp-sm:hover {
  background: #25d366;
  color: #06130b;
  border-color: #25d366;
}

.btn-insta-sm {
  background: rgba(225, 48, 108, 0.14);
  color: #f472b6;
  border: 1px solid rgba(225, 48, 108, 0.35);
  padding: 8px 13px;
  font-size: 0.82rem;
}

.btn-insta-sm:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: transparent;
}

.social-btn-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.social-btn-icon-lg {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.social-badge-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.category-badge {
  display: inline-block;
  background: var(--f1-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
}

/* =========================================================
   HERO: NEXT RACE BANNER + LATEST F1 NEWS SIDEBAR
   ========================================================= */
.hero {
  padding: 36px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.next-race-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, var(--country-glow-1, rgba(225, 6, 0, 0.28)), transparent 55%),
    radial-gradient(circle at 15% 85%, var(--country-glow-2, rgba(0, 82, 180, 0.22)), transparent 55%),
    linear-gradient(145deg, #171a26 0%, #0d0f17 100%);
  border: 1px solid var(--border-strong);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  isolation: isolate;
  transition: background 0.5s ease, border-color 0.4s ease;
}

/* Animated Country Kerb Top Strip */
.country-kerb-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--country-kerb, repeating-linear-gradient(90deg, #e10600 0 28px, #ffffff 28px 56px, #0038a8 56px 84px));
  background-size: 168px 100%;
  animation: kerbSlide 3.5s linear infinite;
  z-index: 4;
}

@keyframes kerbSlide {
  0% { background-position: 0 0; }
  100% { background-position: 168px 0; }
}

/* Country Background FX Canvas / Layer */
.country-fx-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.next-race-banner > *:not(.country-fx-layer):not(.country-kerb-strip) {
  position: relative;
  z-index: 3;
}

/* Animated Circuit Track Showcase Block (Between Countdown & Session Schedule) */
.country-circuit-svg-wrap {
  width: 100%;
  height: 210px;
  margin: 4px 0 18px;
  padding: 12px 18px;
  background: rgba(9, 10, 15, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  opacity: 0.98;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.country-circuit-svg {
  width: 100%;
  height: 100%;
  max-width: 440px;
  overflow: visible;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.65));
}

.circuit-edge-outline {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 30;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circuit-asphalt-path {
  fill: none;
  stroke: #10131d;
  stroke-width: 24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circuit-sector-path {
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.circuit-telemetry-glow {
  fill: none;
  stroke: #ffffff;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px #ffffff) drop-shadow(0 0 18px var(--country-accent, #00b4ff));
  stroke-dasharray: 180 2820;
  animation: raceLapTrace 6.5s linear infinite;
}

@keyframes raceLapTrace {
  0% { stroke-dashoffset: 3000; }
  100% { stroke-dashoffset: 0; }
}

.turn-badge-circle {
  fill: #0f111a;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 2;
}

.turn-badge-text {
  fill: #ffffff;
  font-size: 19px;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Country Unique Trait Pill */
.country-trait-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Preview Switcher Dropdown in Banner */
.gp-theme-switcher {
  background: rgba(11, 12, 16, 0.75);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}

.gp-theme-switcher:hover,
.gp-theme-switcher:focus {
  border-color: var(--f1-red);
  color: #fff;
}

/* USA GP Specific Animations: Twinkling Lone Stars & Red/White/Blue Speed Streaks */
.fx-usa-star {
  position: absolute;
  color: #ffffff;
  font-size: 14px;
  opacity: 0;
  filter: drop-shadow(0 0 6px #3b82f6);
  animation: usaStarTwinkle 3.2s ease-in-out infinite;
}

@keyframes usaStarTwinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 0.75; transform: scale(1.25) rotate(18deg); }
}

.fx-speed-streak {
  position: absolute;
  height: 2px;
  width: 140px;
  border-radius: 999px;
  opacity: 0;
  animation: speedStreakFly 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes speedStreakFly {
  0% { transform: translateX(-180px) skewX(-25deg); opacity: 0; }
  30% { opacity: 0.65; }
  100% { transform: translateX(780px) skewX(-25deg); opacity: 0; }
}

/* Floating Country Motif Particles (Sakura, Confetti, Sparks, Embers, Rain) */
.fx-floating-particle {
  position: absolute;
  opacity: 0;
  animation: floatParticleDrift 5.5s ease-in-out infinite;
}

@keyframes floatParticleDrift {
  0% { transform: translateY(30px) translateX(0) rotate(0deg); opacity: 0; }
  25% { opacity: 0.65; }
  75% { opacity: 0.55; }
  100% { transform: translateY(-190px) translateX(40px) rotate(220deg); opacity: 0; }
}

.race-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.race-round-tag {
  background: var(--f1-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.race-date-range {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
}

.race-gp-title {
  font-size: clamp(1.9rem, 3.3vw, 2.85rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.race-circuit-name {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Countdown Timer Grid */
.countdown-wrap {
  margin-bottom: 24px;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 105px));
  gap: 12px;
}

.cd-box {
  background: rgba(9, 10, 15, 0.75);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--f1-red);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}

.cd-num {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.cd-unit {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Weekend Session Schedule Strip */
.session-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.session-pill {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.session-pill.race-main {
  border-color: rgba(225, 6, 0, 0.5);
  background: rgba(225, 6, 0, 0.1);
}

.session-name {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.6px;
}

.session-pill.race-main .session-name {
  color: #ff6b66;
}

.session-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

/* Right Side Column: Separate Featured Blogs on Top + Horizontal Rectangular Official F1 News Slider Below */
.hero-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.featured-mini-panel {
  background: linear-gradient(145deg, #1b1e2c 0%, #141722 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  min-width: 0;
}

.hero-featured-blogs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-featured-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(11, 12, 16, 0.65);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.hero-featured-item:hover {
  border-color: var(--f1-red);
  transform: translateX(3px);
}

.hero-featured-thumb {
  width: 68px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.news-side-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.panel-title {
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.slider-nav-btn:hover {
  border-color: var(--f1-red);
  background: rgba(225, 6, 0, 0.15);
}

/* Medium-Sized Rectangular Horizontal News Slider */
.news-horizontal-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  flex: 1;
  display: flex;
  align-items: center;
}

.news-horizontal-viewport::-webkit-scrollbar {
  display: none;
}

.news-horizontal-track {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: max-content;
  animation: scrollNewsHorizontal 42s linear infinite;
  padding: 4px 0;
}

.news-horizontal-viewport:hover .news-horizontal-track {
  animation-play-state: paused;
}

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

.news-rect-card {
  width: 290px;
  height: 295px;
  flex-shrink: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-bottom: 3px solid var(--f1-red);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.news-rect-card:hover {
  transform: translateY(-4px);
  border-color: var(--f1-red);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.news-rect-thumb-wrap {
  position: relative;
  width: 100%;
  height: 168px;
  background: var(--bg-elevated);
  overflow: hidden;
  flex-shrink: 0;
}

.news-rect-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.news-rect-card:hover .news-rect-thumb {
  transform: scale(1.05);
}

.news-rect-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 12, 16, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(225, 6, 0, 0.55);
  color: #ff5a54;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.news-rect-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.news-rect-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.36;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-rect-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
}

.news-item-body {
  min-width: 0;
  flex: 1;
}

.news-item-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.news-item-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   QUICK STATS BAR
   ========================================================= */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
}

.stat-card-champion {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14) 0%, rgba(39, 244, 210, 0.08) 55%, var(--bg-card) 100%);
  border: 1px solid rgba(255, 215, 0, 0.55);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.stat-card-champion .stat-label {
  color: #ffd700;
  letter-spacing: 0.9px;
}

.stat-card-champion .stat-value {
  background: linear-gradient(90deg, #ffffff 0%, #ffe680 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card-champion .stat-sub {
  color: #ffd700;
  font-weight: 700;
}

.stat-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.stat-sub {
  font-size: 0.8rem;
  color: var(--f1-red);
  font-weight: 600;
  margin-top: 2px;
}

/* =========================================================
   DRIVER & CONSTRUCTOR STANDINGS SECTION
   ========================================================= */
.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.section-title-wrap h2 {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title-wrap h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--f1-red);
  border-radius: 3px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.standings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.standings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.standings-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.standings-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.standings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.standing-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--f1-red);
}

.standing-pos {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.standing-driver {
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standing-team {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 6px;
}

.standing-wins {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.standing-pts {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 99px;
  min-width: 68px;
  text-align: center;
}

.standing-row-champion {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.18) 0%, rgba(39, 244, 210, 0.08) 55%, var(--bg-secondary) 100%);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-left: 5px solid #ffd700 !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
}

.standing-row-champion .standing-pos {
  color: #ffd700;
  font-size: 1rem;
}

.standing-row-champion .standing-driver {
  color: #ffffff;
  font-weight: 800;
}

.standing-row-champion .standing-wins {
  color: #ffd700;
  font-weight: 700;
}

.standing-row-champion .standing-pts {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #0b0d13;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

.champion-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(255, 215, 0, 0.65);
  color: #ffd700;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  vertical-align: middle;
}

/* =========================================================
   WHATSAPP CHANNEL PROMO + INSTAGRAM WIDGET SECTION
   ========================================================= */
.community-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 24px;
  align-items: stretch;
}

.whatsapp-promo-card {
  background:
    radial-gradient(circle at 90% 15%, rgba(37, 211, 102, 0.22), transparent 55%),
    linear-gradient(145deg, #111f1a 0%, #0d1316 100%);
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wa-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(37, 211, 102, 0.18);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  letter-spacing: 0.8px;
}

.wa-promo-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: #fff;
}

.wa-promo-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.wa-preview-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.wa-msg-bubble {
  background: rgba(9, 14, 12, 0.78);
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-left: 3px solid #25d366;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #e2f5ea;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wa-msg-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.7px;
}

.wa-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-whatsapp-lg {
  flex: 1;
  background: #25d366;
  color: #051b0e;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp-lg:hover {
  background: #34e875;
  transform: translateY(-2px);
}

.wa-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.wa-qr-box img {
  width: 66px;
  height: 66px;
  display: block;
}

.wa-qr-box span {
  font-size: 0.62rem;
  font-weight: 800;
  color: #111;
  text-transform: uppercase;
}

/* Instagram Feed Widget Card */
.insta-widget-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(225, 48, 108, 0.18), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insta-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.insta-profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.insta-avatar-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d0f17;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0d0f17;
}

.insta-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #0d0f17;
  display: block;
}

.insta-handle {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.insta-handle:hover {
  color: #f472b6;
}

.insta-verified {
  background: #3897f0;
  color: #fff;
  font-size: 0.65rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.insta-bio-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.btn-insta-follow {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(220, 39, 67, 0.3);
}

.btn-insta-follow:hover {
  opacity: 0.94;
  transform: translateY(-1px);
}

.insta-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.insta-embeds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(225px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.insta-embed-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.insta-embed-iframe {
  width: 100%;
  height: 395px;
  border: none;
  background: #ffffff;
  display: block;
}

.insta-post-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: block;
  text-decoration: none;
  color: #fff;
}

.insta-post-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.insta-post-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 14, 0.92) 0%, rgba(8, 9, 14, 0.35) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.insta-post-tile:hover img {
  transform: scale(1.07);
}

.insta-post-tile:hover .insta-post-overlay {
  opacity: 1;
}

.insta-post-likes {
  font-size: 0.76rem;
  font-weight: 800;
  color: #f472b6;
  margin-bottom: 4px;
}

.insta-post-caption {
  font-size: 0.76rem;
  line-height: 1.3;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================
   FEATURED BLOG SPOTLIGHT + UPLOADED BLOG POSTS GRID
   ========================================================= */
.featured-blog-banner {
  background: linear-gradient(135deg, #1b1e2b 0%, #10121a 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  margin-bottom: 28px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.featured-blog-banner:hover {
  border-color: var(--f1-red);
  transform: translateY(-2px);
}

.featured-blog-img {
  min-height: 290px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.featured-blog-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-blog-title {
  font-size: clamp(1.4rem, 2.3vw, 1.95rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 12px 0;
}

.featured-blog-excerpt {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Filter Controls */
.blog-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.filter-pill.active {
  background: var(--f1-red);
  border-color: var(--f1-red);
  color: #fff;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  min-width: 240px;
  outline: none;
}

.search-input:focus {
  border-color: var(--f1-red);
}

/* Blog Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.post-card-img {
  height: 200px;
  background-color: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  position: relative;
}

.post-card-img .category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.91rem;
  margin-bottom: 18px;
  flex: 1;
}

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.read-more-link {
  color: var(--f1-red);
  font-weight: 700;
  text-decoration: none;
}

/* Article Modal Reader */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 9, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: 40px 16px;
}

.article-modal-backdrop.open {
  display: flex;
}

.article-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.article-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(11, 12, 16, 0.85);
  color: #fff;
  border: 1px solid var(--border-strong);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
}

.article-hero-banner {
  height: 340px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
}

.article-body-wrap {
  padding: 36px 42px;
}

.article-content {
  margin-top: 24px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: #e2e5ec;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content h2,
.article-content h3 {
  margin: 28px 0 12px;
  color: #fff;
}

.article-content blockquote {
  border-left: 4px solid var(--f1-red);
  padding: 12px 20px;
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 16px 0;
}

/* Image Credit / Owner Attribution Badges & Redirect Button */
.img-credit-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 42px;
  background: rgba(9, 10, 15, 0.9);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.img-credit-overlay-bar {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(8, 9, 14, 0.84);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #e2e8f0;
  z-index: 3;
}

.img-credit-label strong {
  color: #ffffff;
}

.img-credit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--f1-red);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.4px;
  transition: background 0.2s, transform 0.2s;
}

.img-credit-btn:hover {
  background: var(--f1-red-hover);
  transform: translateY(-1px);
}

/* Article Share Toolbar & Buttons */
.article-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.share-bar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.share-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}

.share-native-btn {
  background: var(--f1-red);
  border-color: var(--f1-red);
  color: #fff;
}
.share-native-btn:hover {
  background: var(--f1-red-hover);
}

.share-copy-btn.copied {
  background: rgba(0, 210, 122, 0.16);
  border-color: #00d27a;
  color: #00d27a;
}

.share-wa-btn {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.35);
  color: #25d366;
}
.share-wa-btn:hover {
  background: #25d366;
  color: #fff;
}

.share-x-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.share-x-btn:hover {
  background: #fff;
  color: #000;
}

.share-fb-btn {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.35);
  color: #1877f2;
}
.share-fb-btn:hover {
  background: #1877f2;
  color: #fff;
}

.share-icon-img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.card-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.card-share-btn:hover {
  color: #fff;
  border-color: var(--f1-red);
  background: rgba(225, 6, 0, 0.12);
}

.inline-img-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg-card);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
  background: #07080b;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 28px;
  margin-top: 56px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

@media (max-width: 960px) {
  .hero-grid,
  .standings-grid,
  .community-grid,
  .featured-blog-banner {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .article-body-wrap {
    padding: 24px;
  }
}

/* =========================================================
   MOBILE PHONE OPTIMIZATION (<= 640px ONLY)
   Desktop & Tablet (> 640px) remain 100% unchanged
   ========================================================= */
@media (max-width: 640px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 14px;
  }

  .section {
    padding: 28px 0;
  }

  /* 1. Top Telemetry Ticker Bar */
  .telemetry-bar {
    padding: 6px 0;
    font-size: 0.72rem;
  }

  .telemetry-inner {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .telemetry-inner > div:first-child {
    width: 100%;
    min-width: 0;
    gap: 8px !important;
  }

  .telemetry-inner > div:last-child,
  #local-tz-indicator {
    display: none !important;
  }

  .live-pill {
    flex-shrink: 0;
    font-size: 0.62rem;
    padding: 2px 7px;
    letter-spacing: 0.5px;
  }

  #top-ticker-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
  }

  /* 2. Sticky Navbar + Mobile Quick-Jump Bar */
  .nav-inner {
    height: auto;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .brand {
    order: 1;
  }

  .brand-logo-img {
    height: 32px;
  }

  .nav-actions {
    order: 2;
    gap: 6px;
  }

  #nav-whatsapp-btn span,
  #nav-insta-btn span {
    display: none;
  }

  #nav-whatsapp-btn,
  #nav-insta-btn {
    padding: 7px 9px;
  }

  .nav-actions .btn-outline {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .nav-links {
    order: 3;
    display: flex !important;
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex-shrink: 0;
  }

  .nav-links a {
    display: block;
    font-size: 0.75rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a.active {
    background: rgba(225, 6, 0, 0.18);
    border-color: rgba(225, 6, 0, 0.45);
    color: #ffffff;
  }

  /* 3. Hero Section & Next Race Banner */
  .hero {
    padding: 16px 0 20px;
  }

  .hero-grid {
    gap: 16px;
  }

  .next-race-banner {
    padding: 18px 14px;
    min-height: auto;
    border-radius: 16px;
  }

  .race-top-row {
    gap: 6px;
    margin-bottom: 12px;
  }

  .race-round-tag {
    font-size: 0.68rem;
    padding: 4px 9px;
  }

  .race-date-range {
    font-size: 0.74rem;
    padding: 4px 10px;
  }

  .country-trait-badge {
    order: 3;
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    font-size: 0.66rem;
    line-height: 1.3;
    padding: 5px 10px;
  }

  .race-gp-title {
    font-size: clamp(1.45rem, 6.8vw, 1.9rem);
    line-height: 1.12;
    margin-bottom: 6px;
  }

  .race-circuit-name {
    font-size: 0.85rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }

  .countdown-wrap {
    margin-bottom: 16px;
  }

  .countdown-label {
    font-size: 0.68rem;
    margin-bottom: 8px;
  }

  .countdown-boxes {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .cd-box {
    padding: 10px 4px;
  }

  .cd-num {
    font-size: 1.4rem;
  }

  .cd-unit {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  .country-circuit-svg-wrap {
    height: 165px;
    padding: 8px 10px;
    margin: 2px 0 14px;
  }

  .session-schedule-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-top: 14px;
  }

  .session-pill {
    padding: 8px 10px;
  }

  .session-name {
    font-size: 0.68rem;
  }

  .session-time {
    font-size: 0.8rem;
  }

  /* 4. Hero Side Column (Featured Blogs + Live News Wire) */
  .featured-mini-panel,
  .news-side-panel {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .panel-title {
    font-size: 0.84rem;
  }

  .hero-featured-thumb {
    width: 60px;
    height: 48px;
  }

  .news-rect-card {
    width: 242px;
    height: 268px;
  }

  .news-rect-thumb-wrap {
    height: 138px;
  }

  .news-rect-body {
    padding: 12px;
  }

  .news-rect-title {
    font-size: 0.84rem;
  }

  /* 5. Quick Stats Bar */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
  }

  .stat-card {
    padding: 12px 14px;
  }

  .stat-card-champion {
    grid-column: 1 / -1;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .stat-value {
    font-size: 1.04rem;
  }

  .stat-sub {
    font-size: 0.74rem;
  }

  /* 6. Championship Standings Section */
  .section-header {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .section-title-wrap h2 {
    font-size: 1.35rem;
  }

  .section-subtitle {
    font-size: 0.82rem;
  }

  #toggle-full-standings-btn {
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .standings-grid {
    gap: 16px;
  }

  .standings-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .standings-card-title {
    font-size: 0.94rem;
  }

  .standing-row {
    grid-template-columns: 24px 1fr auto auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .standing-driver {
    white-space: normal;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    line-height: 1.25;
  }

  .standing-team {
    display: block;
    width: 100%;
    margin-left: 0;
    font-size: 0.72rem;
  }

  .champion-badge {
    margin-left: 0;
    font-size: 0.58rem;
    padding: 1px 6px;
  }

  .standing-wins {
    font-size: 0.72rem;
  }

  .standing-pts {
    font-size: 0.76rem;
    min-width: 56px;
    padding: 3px 7px;
  }

  /* 7. Community Hub (WhatsApp + Instagram) */
  .community-grid {
    gap: 16px;
  }

  .whatsapp-promo-card,
  .insta-widget-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .wa-promo-title {
    font-size: 1.28rem;
  }

  .wa-promo-desc {
    font-size: 0.85rem;
  }

  .wa-action-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-whatsapp-lg {
    width: 100%;
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .wa-qr-box {
    align-self: center;
    flex-direction: row;
    gap: 10px;
    padding: 6px 12px;
  }

  .wa-qr-box img {
    width: 44px;
    height: 44px;
  }

  .insta-widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-insta-follow {
    width: 100%;
    justify-content: center;
  }

  .insta-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .insta-post-tile:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .insta-post-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(8, 9, 14, 0.88) 0%, rgba(8, 9, 14, 0.18) 55%, transparent 100%);
    padding: 8px;
  }

  /* 8. Featured Blog Banner & Blog Posts Grid */
  .featured-blog-banner {
    border-radius: 16px;
    margin-bottom: 20px;
  }

  .featured-blog-img {
    min-height: 195px;
  }

  .featured-blog-body {
    padding: 18px 14px;
  }

  .featured-blog-title {
    font-size: 1.24rem;
    margin: 8px 0;
  }

  .featured-blog-excerpt {
    font-size: 0.86rem;
    margin-bottom: 14px;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.74rem;
  }

  .blog-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 18px;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pills::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    flex-shrink: 0;
    padding: 6px 13px;
    font-size: 0.78rem;
  }

  .search-input {
    width: 100%;
    min-width: 0;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .post-card-img {
    height: 185px;
  }

  .post-card-body {
    padding: 16px 14px;
  }

  .post-card-title {
    font-size: 1.06rem;
  }

  .post-card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* 9. Article Reader Modal & Share Bar */
  .article-modal-backdrop {
    padding: 10px 8px;
  }

  .article-modal {
    border-radius: 14px;
  }

  .article-close-btn {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .article-hero-banner {
    height: 200px;
  }

  .img-credit-bar {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  .article-body-wrap {
    padding: 18px 14px;
  }

  .article-content {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-top: 16px;
  }

  .article-share-bar {
    padding: 10px 12px;
    gap: 6px;
  }

  .share-bar-label {
    width: 100%;
    margin-bottom: 2px;
    font-size: 0.72rem;
  }

  .share-btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.74rem;
  }

  /* 10. Footer */
  .site-footer {
    padding: 28px 0 24px;
    margin-top: 36px;
    text-align: center;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-grid > div {
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .cd-num {
    font-size: 1.22rem;
  }

  .nav-links a {
    font-size: 0.7rem;
    padding: 4px 7px;
  }
}
