/*
Theme Name: Astra Child
Theme URI: https://mgperf.online/
Description: Theme enfant officiel MG Perf avec Design System Automobile Haute Performance
Author: MG Perf Engineering
Template: astra
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --mg-bg-deep: #07090E;
  --mg-bg-dark: #0D121D;
  --mg-bg-card: #131A29;
  --mg-bg-card-hover: #172235;
  --mg-card-border: rgba(255, 255, 255, 0.08);
  --mg-card-border-hover: rgba(225, 29, 72, 0.5);
  
  --mg-red: #E11D48;
  --mg-red-glow: rgba(225, 29, 72, 0.35);
  --mg-red-hover: #BE123C;
  --mg-red-light: #FB7185;
  
  --mg-blue: #38BDF8;
  --mg-emerald: #10B981;
  --mg-amber: #F59E0B;
  
  --mg-text-primary: #FFFFFF;
  --mg-text-secondary: #94A3B8;
  --mg-text-muted: #64748B;
  
  --mg-font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mg-font-display: 'Space Grotesk', var(--mg-font-main);
  
  --mg-radius-sm: 6px;
  --mg-radius-md: 10px;
  --mg-radius-lg: 16px;
  --mg-radius-full: 9999px;
  
  --mg-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --mg-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.35);
  --mg-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
  --mg-shadow-red: 0 10px 30px rgba(225, 29, 72, 0.25);
  --ast-global-color-4: #07090E !important;
  --ast-global-color-5: #0D121D !important;
}

/* ==============================================================================
   RESET & TYPOGRAPHY
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

html, body, .elementor, .elementor-section, .ast-plain-container, .ast-page-builder-template, .elementor-top-section, .site-content {
  background-color: #07090E !important;
  color: var(--mg-text-secondary) !important;
  font-family: var(--mg-font-main) !important;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6, .mg-title {
  color: var(--mg-text-primary) !important;
  font-family: var(--mg-font-main) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  margin-top: 0;
}

h1 { font-size: clamp(28px, 4vw, 46px) !important; }
h2 { font-size: clamp(24px, 3vw, 36px) !important; }
h3 { font-size: clamp(20px, 2.5vw, 26px) !important; }
h4 { font-size: 18px !important; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ==============================================================================
   ANCRES & LIENS ÉDITORIAUX DANS LES ARTICLES (ROUGE HAUTE VISIBILITÉ MG PERF)
   ============================================================================== */
.mg-card p a,
.mg-card li a,
.mg-card td a,
.mg-card blockquote a,
.elementor-element-txt_article_page p a,
.elementor-element-txt_article_page li a,
.elementor-element-txt_article_page td a,
.elementor-element-txt_article_page blockquote a,
.single-post .entry-content p a,
.single-post .entry-content li a,
.single-post .entry-content td a,
.single-post .mg-card p a,
.single-post .mg-card li a,
.single-post .mg-card td a {
  color: #E11D48 !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(225, 29, 72, 0.45) !important;
  text-underline-offset: 3px !important;
  transition: color 0.2s ease, text-decoration-color 0.2s ease !important;
}

.mg-card p a:hover,
.mg-card li a:hover,
.mg-card td a:hover,
.mg-card blockquote a:hover,
.elementor-element-txt_article_page p a:hover,
.elementor-element-txt_article_page li a:hover,
.elementor-element-txt_article_page td a:hover,
.elementor-element-txt_article_page blockquote a:hover,
.single-post .entry-content p a:hover,
.single-post .entry-content li a:hover,
.single-post .entry-content td a:hover,
.single-post .mg-card p a:hover,
.single-post .mg-card li a:hover,
.single-post .mg-card td a:hover {
  color: #FB7185 !important;
  text-decoration-color: #FB7185 !important;
}

/* Exclusion stricte des boutons et liens d'action */
.mg-card a.mg-btn,
.mg-card a.mg-btn-primary,
.mg-card a.mg-btn-secondary,
.mg-card a.mg-btn-outline,
.elementor-element-txt_article_page a.mg-btn,
.elementor-element-txt_article_page a.mg-btn-primary,
.elementor-element-txt_article_page a.mg-btn-secondary,
.elementor-element-txt_article_page a.mg-btn-outline,
.single-post a.mg-btn,
.single-post a.mg-btn-primary,
.single-post a.mg-btn-secondary,
.single-post a.mg-btn-outline {
  text-decoration: none !important;
}

.mg-card a.mg-btn-primary,
.elementor-element-txt_article_page a.mg-btn-primary,
.single-post a.mg-btn-primary {
  color: #FFFFFF !important;
}


/* ==============================================================================
   BADGES & PILLS
   ============================================================================== */
.mg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--mg-radius-full);
  color: var(--mg-red-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.mg-badge::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--mg-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mg-red);
}

.mg-badge-blue {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
  color: #7DD3FC;
}
.mg-badge-blue::before {
  background-color: var(--mg-blue);
  box-shadow: 0 0 10px var(--mg-blue);
}

.mg-badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}
.mg-badge-emerald::before {
  background-color: var(--mg-emerald);
  box-shadow: 0 0 10px var(--mg-emerald);
}

/* ==============================================================================
   BUTTON DESIGN SYSTEM (NO MORE RANDOM GREEN BUTTONS)
   ============================================================================== */
.mg-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%) !important;
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.35) !important;
  cursor: pointer;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.mg-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%) !important;
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.5) !important;
  color: #FFFFFF !important;
}

.mg-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #F1F5F9 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 13px 24px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
}

.mg-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #FFFFFF !important;
}

.mg-btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 18px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 8px;
  color: #FB7185;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.mg-btn-card:hover {
  background: var(--mg-red);
  color: #FFFFFF;
  border-color: var(--mg-red);
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

/* ==============================================================================
   BLOCK CARDS & CONTAINERS
   ============================================================================== */
.mg-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.mg-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mg-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mg-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mg-card {
  background: linear-gradient(180deg, #131A29 0%, #0D131F 100%);
  border: 1px solid var(--mg-card-border);
  border-radius: var(--mg-radius-lg);
  padding: 30px;
  box-shadow: var(--mg-shadow-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(225, 29, 72, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.mg-card:hover::before {
  opacity: 1;
}

.mg-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mg-red);
  font-size: 22px;
  margin-bottom: 22px;
}

.mg-card-title {
  color: #FFFFFF !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 12px !important;
}

.mg-card-desc {
  color: var(--mg-text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}

.mg-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  font-size: 13.5px;
  color: #CBD5E1;
}

.mg-card-list li {
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-card-list li span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--mg-red);
  display: inline-block;
}

/* ==============================================================================
   STAT STRIP (NEVER STUCK AT 0)
   ============================================================================== */
.mg-stats-strip {
  background: linear-gradient(180deg, #090D15 0%, #06080D 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0;
}

.mg-stat-box {
  text-align: center;
  padding: 10px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.mg-stat-box:last-child {
  border-right: none;
}

.mg-stat-number {
  font-family: var(--mg-font-display);
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 6px;
}

.mg-stat-number span.accent {
  color: var(--mg-red);
}

.mg-stat-label {
  color: var(--mg-text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ==============================================================================
   SPECS GRID (DYNO BANC 4X4)
   ============================================================================== */
.mg-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 10px;
}

.mg-spec-label {
  color: #94A3B8;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-spec-value {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

/* ==============================================================================
   PROCESS STEP BLOCKS
   ============================================================================== */
.mg-step-card {
  background: linear-gradient(180deg, #131A29 0%, #0D131F 100%);
  border: 1px solid var(--mg-card-border);
  border-radius: var(--mg-radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.mg-step-card:hover {
  border-color: rgba(225, 29, 72, 0.4);
  transform: translateY(-3px);
}

.mg-step-number {
  font-family: var(--mg-font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--mg-red);
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(225, 29, 72, 0.25);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.mg-step-title {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.mg-step-desc {
  color: var(--mg-text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0;
}

/* ==============================================================================
   REVIEWS & GAINS
   ============================================================================== */
.mg-review-gain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.mg-review-gain-item {
  text-align: center;
}

.mg-review-gain-val {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
}

.mg-review-gain-label {
  font-size: 11px;
  color: var(--mg-red-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==============================================================================
   ACCORDION FAQ
   ============================================================================== */
.mg-faq-card {
  background: #101624;
  border: 1px solid var(--mg-card-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.mg-faq-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.mg-faq-card summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.mg-faq-card summary::-webkit-details-marker {
  display: none;
}

.mg-faq-card summary::after {
  content: "+";
  font-size: 20px;
  color: var(--mg-red);
  font-weight: 800;
  transition: transform 0.2s ease;
}

.mg-faq-card[open] summary::after {
  content: "−";
}

.mg-faq-card .mg-faq-content {
  padding: 0 24px 22px 24px;
  color: #94A3B8;
  font-size: 14.5px;
  line-height: 1.7;
}

/* ==============================================================================
   BRAND TICKER BAR
   ============================================================================== */
.mg-brands-bar {
  padding: 28px 0;
  background: #090D15;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mg-brands-flex {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px 30px;
}

.mg-brand-item {
  color: #64748B;
  font-family: var(--mg-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.mg-brand-item:hover {
  color: #CBD5E1;
}

/* ==============================================================================
   ARTICLE CARDS
   ============================================================================== */
.mg-post-card {
  background: linear-gradient(180deg, #131A29 0%, #0D131F 100%);
  border: 1px solid var(--mg-card-border);
  border-radius: var(--mg-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.mg-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--mg-card-border-hover);
  box-shadow: var(--mg-shadow-red);
}

.mg-post-img-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.mg-post-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mg-post-card:hover .mg-post-img-box img {
  transform: scale(1.05);
}

.mg-post-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.mg-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 12px;
}

.mg-post-title {
  color: #FFFFFF !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

.mg-post-excerpt {
  color: var(--mg-text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ==============================================================================
   MOBILE NAVIGATION DRAWER & BURGER BUTTON
   ============================================================================== */
.mg-burger-wrap {
  display: none !important;
  align-items: center;
}

.mg-burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 9999;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.mg-burger-btn:hover,
.mg-burger-btn.active {
  background: rgba(225, 29, 72, 0.15);
  border-color: #E11D48;
}

.mg-burger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  border-radius: 2px;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

.mg-burger-btn.active .mg-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: #E11D48;
}

.mg-burger-btn.active .mg-burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mg-burger-btn.active .mg-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: #E11D48;
}

/* Mobile Drawer Overlay */
.mg-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #0B101D;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 30px;
  box-sizing: border-box;
  transform: translateX(105%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mg-mobile-drawer.open {
  transform: translateX(0);
}

.mg-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  touch-action: none;
  transition: opacity 0.3s ease;
}

.mg-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#mg-drawer-close {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#mg-drawer-close:hover {
  background: rgba(225, 29, 72, 0.2) !important;
  border-color: #E11D48 !important;
  color: #FFFFFF !important;
}

.mg-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}

.mg-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #E2E8F0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 13px 16px !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.mg-mobile-link:hover,
.mg-mobile-link.active {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.4);
  color: #FFFFFF !important;
}

.mg-mobile-link::after {
  content: "→";
  color: var(--mg-red);
  font-size: 16px;
  font-weight: 800;
}

.mg-mobile-info {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-mobile-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==============================================================================
   RESPONSIVE DESIGN (BREAKPOINTS & MEDIA QUERIES)
   ============================================================================== */
/* Breakpoint: <= 991px (Tablets & Mobile View) */
@media (max-width: 991px) {
  .mg-topbar,
  .elementor-element-txt_topbar {
    display: none !important;
  }
  
  .mg-desktop-nav,
  .mg-header-nav nav,
  .elementor-element-txt_navbar nav,
  .mg-desktop-cta,
  .mg-navbar-cta,
  .mg-header-nav .mg-desktop-cta,
  .elementor-element-txt_navbar .mg-container > div:last-child:not(.mg-burger-wrap) {
    display: none !important;
  }
  
  .mg-burger-wrap {
    display: flex !important;
  }

  .mg-burger-btn {
    display: flex !important;
  }

  .mg-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .mg-grid-4:not(.mg-stats-grid) {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
  
  .mg-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  
  .mg-stat-box {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    padding: 16px 0 !important;
  }
}

/* Breakpoint: <= 767px (Standard Mobile View) */
@media (max-width: 767px) {
  .mg-container {
    padding: 0 16px !important;
  }

  .mg-grid-3,
  .mg-grid-4:not(.mg-stats-grid) {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  
  /* Stats strip becomes a clean 2x2 grid */
  .mg-stats-strip {
    padding: 24px 0 !important;
  }
  
  .mg-stats-strip .mg-grid-4,
  .mg-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 8px !important;
  }
  
  .mg-stat-box {
    border-right: none !important;
    border-bottom: none !important;
    padding: 12px 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
  }
  
  .mg-stat-number {
    font-size: 28px !important;
  }
  
  .mg-stat-label {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  /* Hero & general action buttons stack vertically */
  .mg-hero-ctas,
  .elementor-element-txt_hero div[style*="flex-wrap: wrap"],
  div[style*="display: flex; gap: 16px; flex-wrap: wrap"] {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .mg-hero-ctas .mg-btn-primary,
  .mg-hero-ctas .mg-btn-secondary,
  .mg-btn-primary,
  .mg-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  .mg-brands-flex {
    justify-content: center !important;
    gap: 12px 18px !important;
  }
  
  .mg-brand-item {
    font-size: 12.5px !important;
    letter-spacing: 1px !important;
  }
  
  .mg-card {
    padding: 22px 18px !important;
  }
  
  .mg-step-card {
    padding: 20px 16px !important;
  }
  
  .mg-post-img-box {
    height: 190px !important;
  }
  
  /* Compact section paddings on mobile */
  div[style*="padding: 85px 0"],
  div[style*="padding: 80px 0"],
  div[style*="padding: 75px 0"],
  div[style*="padding: 70px 0"],
  div[style*="padding: 65px 0"],
  div[style*="padding: 60px 0"] {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
  
  /* Footer adjustments */
  footer div[style*="margin-bottom: 50px"] {
    margin-bottom: 30px !important;
  }
  
  footer .mg-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  
  footer div[style*="border-top: 1px solid rgba(255,255,255,0.06)"] {
    flex-direction: column !important;
    text-align: center !important;
    gap: 14px !important;
    justify-content: center !important;
  }
  
  footer div[style*="border-top: 1px solid rgba(255,255,255,0.06)"] div[style*="display: flex; gap: 20px"] {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

/* Breakpoint: <= 640px (Small Mobile) */
@media (max-width: 640px) {
  /* Buttons stack */
  .mg-hero-ctas,
  div[style*="display: flex; gap: 16px; flex-wrap: wrap"] {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  
  .mg-btn-primary,
  .mg-btn-secondary {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  
  /* Spec rows stack vertically without truncation */
  .mg-spec-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 12px 14px !important;
  }
  
  .mg-spec-value {
    text-align: left !important;
    padding-left: 26px !important;
    font-size: 13.5px !important;
    color: #F1F5F9 !important;
    word-break: break-word !important;
  }

  /* Stats strip becomes a clean 2x2 grid */
  .mg-stats-strip {
    padding: 24px 0 !important;
  }
  
  .mg-stats-strip .mg-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 8px !important;
  }
  
  .mg-stat-box {
    border-right: none !important;
    border-bottom: none !important;
    padding: 12px 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 8px !important;
  }
  
  .mg-stat-number {
    font-size: 28px !important;
  }
  
  .mg-stat-label {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }
  
  /* Telemetry Overlay on Hero Image */
  div[style*="position: absolute; bottom: 16px; left: 16px; right: 16px"] {
    left: 10px !important;
    right: 10px !important;
    bottom: 10px !important;
    padding: 10px 12px !important;
  }
  
  /* Accordion FAQ */
  .mg-faq-card summary {
    padding: 16px 18px !important;
    font-size: 15px !important;
  }
  
  .mg-faq-card .mg-faq-content {
    padding: 0 18px 18px 18px !important;
    font-size: 14px !important;
  }

  /* Blog filters & search input */
  .mg-filter-btn {
    padding: 8px 16px !important;
    font-size: 12.5px !important;
  }
  
  .mg-search-input {
    padding: 12px 18px 12px 42px !important;
    font-size: 13.5px !important;
  }
}

/* Breakpoint: <= 480px (Extra Small Mobile & iPhone SE) */
@media (max-width: 480px) {
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 17px !important; }
  
  .mg-logo-text {
    font-size: 20px !important;
  }
  
  .mg-logo-sub {
    font-size: 9px !important;
    letter-spacing: 1.2px !important;
  }
  
  .mg-logo-icon {
    width: 38px !important;
    height: 38px !important;
  }
  
  .mg-review-gain {
    padding: 8px 10px !important;
    gap: 4px !important;
  }
  
  .mg-review-gain-val {
    font-size: 13px !important;
  }
  
  .mg-review-gain-label {
    font-size: 9.5px !important;
  }
}

/* ==============================================================================
   BLOG FILTER & SEARCH SYSTEM
   ============================================================================== */
.mg-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.mg-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  color: #CBD5E1;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  outline: none;
}
.mg-filter-btn:hover {
  background: rgba(225, 29, 72, 0.15);
  border-color: #E11D48;
  color: #FFFFFF;
}
.mg-filter-btn.active {
  background: #E11D48 !important;
  border-color: #E11D48 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.45);
}
.mg-search-wrapper {
  max-width: 620px;
  margin: 0 auto 30px;
  position: relative;
}
.mg-search-input {
  width: 100%;
  padding: 14px 22px 14px 48px;
  background: #0D121D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  color: #FFFFFF;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.mg-search-input:focus {
  border-color: #E11D48;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
}
.mg-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: #94A3B8;
  pointer-events: none;
}
.mg-article-item {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.mg-article-item:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 72, 0.5) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* ==============================================================================
   ASTRA NATIVE HEADER & FOOTER (MOTORSPORT LUXURY DESIGN)
   ============================================================================== */
.site-header, #masthead, .main-header-bar, .ast-primary-header-bar {
  background-color: #090D16 !important;
  border-bottom: 2px solid #E11D48 !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

.ast-site-identity .site-title a {
  color: #FFFFFF !important;
  font-family: var(--mg-font-display) !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}

.ast-site-identity .site-title a::before {
  content: "" !important;
  display: inline-block !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #E11D48 0%, #9F1239 100%) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M7 2v11h3v9l7-12h-4l4-8z"/></svg>') center/20px no-repeat !important;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.45) !important;
  flex-shrink: 0 !important;
}

.main-header-menu .menu-item > .menu-link {
  color: #CBD5E1 !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  padding: 8px 16px !important;
}

.main-header-menu .menu-item:hover > .menu-link,
.main-header-menu .menu-item.current-menu-item > .menu-link {
  color: #FFFFFF !important;
  background: rgba(225, 29, 72, 0.12) !important;
  border-radius: 6px !important;
}

.main-header-menu .menu-item:last-child > .menu-link {
  background: linear-gradient(135deg, #E11D48 0%, #BE123C 100%) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
  margin-left: 14px !important;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35) !important;
}

.main-header-menu .menu-item:last-child:hover > .menu-link {
  background: #BE123C !important;
}

/* Astra Footer */
.site-footer, .site-primary-footer-wrap, .ast-footer-overlay {
  background-color: #06090F !important;
  color: #94A3B8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 40px 0 25px !important;
  font-size: 13.5px !important;
}

.site-footer a {
  color: #CBD5E1 !important;
  transition: color 0.2s ease !important;
}

.site-footer a:hover {
  color: #E11D48 !important;
}

