/* ==========================================================================
   Mahindra Thar Experience Page Styles - MM Motors Mahindra
   Official Mahindra Auto Design System & Rich Interactive Styling
   ========================================================================== */

:root {
    --thar-red: #d32f2f;
    --thar-red-dark: #b71c1c;
    --thar-red-glow: rgba(211, 47, 47, 0.35);
    --thar-dark: #0f1115;
    --thar-dark-card: #181b22;
    --thar-dark-border: #262b35;
    --thar-gray-text: #9aa0a6;
    --thar-white: #ffffff;
    --thar-accent-gold: #e5a93c;
    --thar-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page Reset & Global Settings for Thar Page */
.thar-page-wrapper {
    background-color: #0b0d11;
    color: #e8eaed;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   Born Electric (BEV) Custom Theme Overrides
   ========================================================================== */
.bev-theme {
    --thar-red: #10b981;
    /* Greenery Mint/Emerald */
    --thar-red-dark: #059669;
    --thar-red-glow: rgba(16, 185, 129, 0.35);
    --thar-accent-gold: #d89658;
    /* Premium Copper/Bronze */
    --thar-dark: #06080c;
    --thar-dark-card: rgba(23, 29, 41, 0.65);
    --thar-dark-border: rgba(16, 185, 129, 0.12);
}

/* Advanced EV-specific designs */
.bev-theme .thar-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00f0ff;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.bev-theme .thar-price-badge {
    border-left-color: var(--thar-accent-gold);
    background: rgba(23, 29, 41, 0.8);
    border-color: rgba(0, 240, 255, 0.18);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.05);
}

.bev-theme .thar-metric-card {
    background: rgba(23, 29, 41, 0.55);
    border: 1px solid rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--thar-transition);
}

.bev-theme .thar-metric-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-4px);
}

.bev-theme .thar-highlight-card,
.bev-theme .thar-feature-card {
    background: rgba(23, 29, 41, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.08);
    backdrop-filter: blur(10px);
    transition: var(--thar-transition);
}

.bev-theme .thar-highlight-card:hover,
.bev-theme .thar-feature-card:hover {
    border-color: rgba(0, 240, 255, 0.35);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.08);
    transform: translateY(-6px);
}

.bev-theme .btn-thar-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #00b8d4 100%);
    color: #06080c !important;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    border: none;
}

.bev-theme .btn-thar-primary:hover {
    background: linear-gradient(135deg, #33f3ff 0%, #00e5ff 100%);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

.bev-theme .btn-thar-outline {
    border-color: rgba(0, 240, 255, 0.4);
    color: #00f0ff !important;
}

.bev-theme .btn-thar-outline:hover {
    background: rgba(0, 240, 255, 0.08);
    border-color: #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.bev-theme .thar-visualizer-box {
    background: rgba(11, 14, 20, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
}

.bev-theme .thar-color-name-display {
    color: var(--thar-accent-gold);
    text-shadow: 0 0 10px rgba(216, 150, 88, 0.3);
}

.bev-theme .thar-sticky-nav {
    background: rgba(6, 8, 12, 0.8);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    backdrop-filter: blur(15px);
}

/* ==========================================================================
   Commercial Vehicle (Camper) Custom Rugged Earth Theme
   ========================================================================== */
.camper-theme {
    --thar-red: #d1a153;
    /* Tough Sand/Gold Accent */
    --thar-red-dark: #b8863b;
    --thar-red-glow: rgba(209, 161, 83, 0.35);
    --thar-dark: #0f1115;
    --thar-dark-card: #181b22;
    --thar-dark-border: #262b35;
    --thar-accent-gold: #c5974a;
}

/* Rugged-specific design improvements */
.camper-theme .thar-badge {
    background: rgba(209, 161, 83, 0.1);
    border: 1px solid rgba(209, 161, 83, 0.4);
    color: #e5be7e;
    text-shadow: 0 0 5px rgba(209, 161, 83, 0.2);
}

.camper-theme .thar-price-badge {
    border-left-color: var(--thar-red);
    background: rgba(24, 27, 34, 0.9);
}

.camper-theme .btn-thar-primary {
    background: linear-gradient(135deg, #d1a153 0%, #b8863b 100%);
    color: #0f1115 !important;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(209, 161, 83, 0.2);
    border: none;
}

.camper-theme .btn-thar-primary:hover {
    background: linear-gradient(135deg, #e5be7e 0%, #c5974a 100%);
    box-shadow: 0 0 25px rgba(209, 161, 83, 0.4);
}

.camper-theme .btn-thar-outline {
    border-color: rgba(209, 161, 83, 0.4);
    color: #e5be7e !important;
}

.camper-theme .btn-thar-outline:hover {
    background: rgba(209, 161, 83, 0.1);
    border-color: #d1a153;
}


.thar-page-wrapper a {
    text-decoration: none;
}

/* --------------------------------------------------------------------------
   1. HERO SECTION
   -------------------------------------------------------------------------- */
.thar-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 60px 0;
    overflow: hidden;
}

.thar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 13, 17, 0.2) 0%, rgba(11, 13, 17, 0.6) 60%, rgba(11, 13, 17, 0.98) 100%),
        linear-gradient(90deg, rgba(11, 13, 17, 0.85) 0%, rgba(11, 13, 17, 0.3) 60%, rgba(11, 13, 17, 0.1) 100%);
    z-index: 1;
}

.thar-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.thar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(211, 47, 47, 0.15);
    border: 1px solid rgba(211, 47, 47, 0.4);
    color: #ff6b6b;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.thar-hero-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.8));
    margin-bottom: 15px;
}

.thar-hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.thar-hero-tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.thar-price-badge {
    display: inline-flex;
    flex-direction: column;
    background: rgba(24, 27, 34, 0.85);
    border: 1px solid var(--thar-dark-border);
    border-left: 4px solid var(--thar-red);
    padding: 12px 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    backdrop-filter: blur(12px);
}

.thar-price-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--thar-gray-text);
    font-weight: 600;
}

.thar-price-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.thar-hero-engines {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

.thar-engine-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
}

.thar-engine-chip i {
    color: var(--thar-red);
}

.thar-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-thar-primary {
    background: var(--thar-red);
    color: #ffffff !important;
    border: 1px solid var(--thar-red);
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px var(--thar-red-glow);
    transition: var(--thar-transition);
}

.btn-thar-primary:hover {
    background: var(--thar-red-dark);
    border-color: var(--thar-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(211, 47, 47, 0.5);
    color: #ffffff;
}

.btn-thar-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 14px 26px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: var(--thar-transition);
}

.btn-thar-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   2. STICKY SUB-NAV
   -------------------------------------------------------------------------- */
.thar-sticky-nav {
    display: none !important;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--thar-dark-border);
    transition: var(--thar-transition);
}

.thar-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.thar-nav-inner::-webkit-scrollbar {
    display: none;
}

.thar-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.thar-nav-links li a {
    display: block;
    padding: 16px 18px;
    color: var(--thar-gray-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--thar-transition);
    position: relative;
}

.thar-nav-links li a:hover,
.thar-nav-links li a.active {
    color: #ffffff;
}

.thar-nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--thar-red);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 0 10px var(--thar-red);
}

.thar-nav-cta {
    padding-left: 20px;
}

/* --------------------------------------------------------------------------
   COMMON SECTION STYLES
   -------------------------------------------------------------------------- */
.thar-section {
    padding: 80px 0;
    position: relative;
}

.thar-section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.thar-section-subtitle {
    color: var(--thar-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.thar-section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.thar-section-desc {
    color: var(--thar-gray-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   3. OVERVIEW & CAPABILITY METRICS
   -------------------------------------------------------------------------- */
.thar-overview-banner {
    background: linear-gradient(145deg, #181b22 0%, #12141a 100%);
    border: 1px solid var(--thar-dark-border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.thar-metric-card {
    background: #14171e;
    border: 1px solid var(--thar-dark-border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    height: 100%;
    transition: var(--thar-transition);
    position: relative;
    overflow: hidden;
}

.thar-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--thar-transition);
}

.thar-metric-card:hover {
    transform: translateY(-5px);
    border-color: rgba(211, 47, 47, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.thar-metric-card:hover::before {
    background: var(--thar-red);
}

.thar-metric-icon {
    font-size: 28px;
    color: var(--thar-red);
    margin-bottom: 12px;
}

.thar-metric-val {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 4px;
}

.thar-metric-label {
    font-size: 13px;
    color: var(--thar-gray-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   4. KEY HIGHLIGHTS CARDS
   -------------------------------------------------------------------------- */
.thar-highlight-card {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--thar-transition);
}

.thar-highlight-card:hover {
    transform: translateY(-6px);
    border-color: rgba(211, 47, 47, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.thar-highlight-media {
    position: relative;
    padding-top: 58%;
    background: #000;
    overflow: hidden;
}

.thar-highlight-media img,
.thar-highlight-media video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.thar-highlight-card:hover .thar-highlight-media img {
    transform: scale(1.05);
}

.thar-highlight-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 17, 21, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.thar-highlight-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.thar-highlight-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.thar-highlight-text {
    color: var(--thar-gray-text);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   5. COLOUR VISUALIZER & 360° STUDIO
   -------------------------------------------------------------------------- */
.thar-visualizer-box {
    background: radial-gradient(circle at center, #232732 0%, #0d0f14 80%);
    border: 1px solid var(--thar-dark-border);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.thar-visualizer-box.outdoor-night {
    background: radial-gradient(circle at center, #1b212d 0%, #080a0e 85%);
}

.thar-visualizer-box.outdoor-day {
    background: radial-gradient(circle at center, #2e3544 0%, #12151c 85%);
}

.thar-car-display,
.colors_box .bx-viewport {
    position: relative;
    min-height: 460px !important;
    height: 460px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

[id*="slideshow"] li img,
.thar-car-img,
[class*="color-slide"] img {
    max-width: 100% !important;
    width: 95% !important;
    height: auto !important;
    max-height: 440px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.85));
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (max-width: 767.98px) {

    .thar-car-display,
    .colors_box .bx-viewport {
        min-height: 280px !important;
        height: 280px !important;
    }

    [id*="slideshow"] li img,
    .thar-car-img,
    [class*="color-slide"] img {
        width: 100% !important;
        max-height: 260px !important;
    }
}

.thar-color-name-display {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.thar-swatches-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Color swatches styling for all models */
[class*="-color-btn"] {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 8px !important;
    cursor: pointer !important;
    margin: 5px 10px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

[class*="-color-btn"] em {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15) !important;
}

[class*="-color-btn"] span {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--thar-gray-text) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    margin-top: 2px !important;
}

[class*="-color-btn"]:hover em,
[class*="-color-btn"].active em {
    transform: scale(1.18) !important;
    /* box-shadow: 0 0 15px var(--thar-red-glow) !important; */
}

[class*="-color-btn"].active span {
    color: var(--thar-white) !important;
}

/* Swatch Checkmark Indicator Styles */
[class*="-color-btn"] em,
.thar-color-btn {
    position: relative !important;
}

[class*="-color-btn"].active em::after,
.thar-color-btn.active::after {
    content: "\f00c" !important;
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.thar-color-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid #1c1f26;
    outline: 2px solid transparent;
    cursor: pointer;
    transition: var(--thar-transition);
    position: relative;
    padding: 0;
}

.thar-color-btn:hover {
    transform: scale(1.15);
}

.thar-color-btn.active {
    outline: 2px solid var(--thar-red);
    transform: scale(1.18);
    box-shadow: 0 0 15px var(--thar-red-glow);
}

.thar-env-toggles {
    display: inline-flex;
    background: #14171e;
    border: 1px solid var(--thar-dark-border);
    border-radius: 50px;
    padding: 4px;
    margin-top: 10px;
}

.thar-env-btn {
    background: transparent;
    border: none;
    color: var(--thar-gray-text);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--thar-transition);
}

.thar-env-btn.active {
    background: var(--thar-red);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   6. INTERIOR & EXTERIOR TABS
   -------------------------------------------------------------------------- */
.thar-tab-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.thar-tab-pill-btn {
    background: var(--thar-dark-card);
    color: var(--thar-gray-text);
    border: 1px solid var(--thar-dark-border);
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--thar-transition);
}

.thar-tab-pill-btn.active {
    background: var(--thar-red);
    border-color: var(--thar-red);
    color: #ffffff;
    box-shadow: 0 6px 20px var(--thar-red-glow);
}

.thar-feature-card {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: var(--thar-transition);
}

.thar-feature-card:hover {
    border-color: rgba(211, 47, 47, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.thar-feature-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid var(--thar-dark-border);
}

.thar-feature-content {
    padding: 22px;
}

.thar-feature-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.thar-feature-content p {
    color: var(--thar-gray-text);
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. VARIANTS & PRICING
   -------------------------------------------------------------------------- */
.thar-variant-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 35px;
}

.thar-filter-btn {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    color: var(--thar-gray-text);
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--thar-transition);
}

.thar-filter-btn.active,
.thar-filter-btn:hover {
    background: rgba(211, 47, 47, 0.2);
    border-color: var(--thar-red);
    color: #ffffff;
}

.thar-variant-card {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    border-radius: 14px;
    padding: 26px;
    margin-bottom: 24px;
    transition: var(--thar-transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.thar-variant-card:hover {
    border-color: rgba(211, 47, 47, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.thar-variant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.thar-variant-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
}

.thar-variant-tag {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-transform: uppercase;
}

.thar-variant-tag.tag-4wd {
    background: rgba(211, 47, 47, 0.25);
    color: #ff7676;
    border: 1px solid rgba(211, 47, 47, 0.4);
}

.thar-variant-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 2px;
}

.thar-variant-price-sub {
    font-size: 12px;
    color: var(--thar-gray-text);
    margin-bottom: 18px;
    display: block;
}

.thar-variant-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: #12141a;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 18px;
    text-align: center;
}

.thar-v-spec-item span {
    display: block;
}

.thar-v-spec-val {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.thar-v-spec-lbl {
    font-size: 10.5px;
    color: var(--thar-gray-text);
    text-transform: uppercase;
}

.thar-variant-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.thar-variant-features-list li {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thar-variant-features-list li i {
    color: #4ade80;
    font-size: 12px;
}

.thar-variant-actions {
    display: flex;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   8. SPECIFICATIONS TABLE
   -------------------------------------------------------------------------- */
.thar-specs-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--thar-dark-border);
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none;
}

.thar-spec-tab {
    background: transparent;
    border: none;
    color: var(--thar-gray-text);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: var(--thar-transition);
}

.thar-spec-tab.active {
    color: #ffffff;
}

.thar-spec-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--thar-red);
}

.thar-spec-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--thar-dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--thar-dark-border);
}

.thar-spec-table th,
.thar-spec-table td {
    padding: 16px 22px;
    font-size: 14px;
    border-bottom: 1px solid var(--thar-dark-border);
}

.thar-spec-table th {
    background: #14171e;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.thar-spec-table td.spec-name {
    color: var(--thar-gray-text);
    font-weight: 600;
    width: 40%;
}

.thar-spec-table td.spec-val {
    color: #ffffff;
    font-weight: 500;
}

.thar-spec-table tr:last-child td {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   9. EMI & FINANCE CALCULATOR
   -------------------------------------------------------------------------- */
.thar-calc-card {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.thar-calc-slider-group {
    margin-bottom: 25px;
}

.thar-calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.thar-calc-label {
    font-size: 14px;
    font-weight: 600;
    color: #cbd5e1;
}

.thar-calc-val-box {
    font-size: 16px;
    font-weight: 800;
    color: var(--thar-red);
    background: #14171e;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid var(--thar-dark-border);
}

.thar-range-input {
    width: 100%;
    height: 6px;
    background: #262b35;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.thar-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--thar-red);
    cursor: pointer;
    border: 3px solid #ffffff;
    box-shadow: 0 0 10px var(--thar-red-glow);
}

.thar-calc-result-box {
    background: linear-gradient(145deg, #1b1e27 0%, #13151c 100%);
    border: 1px solid var(--thar-dark-border);
    border-radius: 14px;
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thar-emi-amount {
    font-size: 2.8rem;
    font-weight: 900;
    color: #ffffff;
    margin: 10px 0;
    line-height: 1;
}

.thar-calc-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--thar-dark-border);
    font-size: 13.5px;
}

.thar-calc-summary-row:last-child {
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   10. LEAD & TEST DRIVE BOOKING
   -------------------------------------------------------------------------- */
.thar-booking-section {
    background: linear-gradient(180deg, #12141a 0%, #0b0d11 100%);
    position: relative;
}

.thar-booking-card {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.thar-form-control {
    background: #14171e;
    border: 1px solid var(--thar-dark-border);
    color: #ffffff;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 18px;
    transition: var(--thar-transition);
}

.thar-form-control:focus {
    background: #181b24;
    border-color: var(--thar-red);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
    color: #ffffff;
    outline: none;
}

.thar-form-control option {
    background: #181b24;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. FAQS ACCORDION
   -------------------------------------------------------------------------- */
.thar-faq-item {
    background: var(--thar-dark-card);
    border: 1px solid var(--thar-dark-border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--thar-transition);
}

.thar-faq-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.thar-faq-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.thar-faq-icon {
    font-size: 16px;
    color: var(--thar-red);
    transition: transform 0.3s ease;
}

.thar-faq-item.active .thar-faq-icon {
    transform: rotate(180deg);
}

.thar-faq-body {
    padding: 0 24px 20px 24px;
    color: var(--thar-gray-text);
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.thar-faq-item.active .thar-faq-body {
    display: block;
}

/* --------------------------------------------------------------------------
   12. FLOATING QUICK ACTION BAR
   -------------------------------------------------------------------------- */
.thar-floating-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: rgba(18, 20, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.thar-floating-bar a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 50px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .thar-hero {
        min-height: 75vh;
        padding: 90px 0 40px 0;
    }

    .thar-hero-title {
        font-size: 2.3rem;
    }

    .thar-section-title {
        font-size: 1.85rem;
    }

    .thar-visualizer-box {
        padding: 30px 15px;
    }

    .thar-car-display {
        min-height: 260px;
    }

    .thar-car-img {
        max-width: 100%;
    }

    .thar-floating-bar {
        width: 92%;
        justify-content: space-around;
        padding: 8px 12px;
        bottom: 12px;
    }

    .thar-floating-bar a {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 575.98px) {
    .thar-hero-title {
        font-size: 1.85rem;
    }

    .thar-price-val {
        font-size: 1.45rem;
    }

    .thar-hero-ctas {
        flex-direction: column;
    }

    .thar-hero-ctas a {
        width: 100%;
        justify-content: center;
    }

    .thar-variant-specs-grid {
        grid-template-columns: 1fr;
    }

    .thar-floating-bar .d-mobile-none {
        display: none !important;
    }
}

/* ==========================================================================
   Light Theme Override (White/Gray Theme)
   ========================================================================== */
.light-theme {
    --thar-dark: #f8f9fa;
    --thar-dark-card: #ffffff;
    --thar-dark-border: #dee2e6;
    --thar-gray-text: #495057;
    --thar-white: #212529;
}

.thar-page-wrapper.light-theme {
    background-color: #f8f9fa;
    color: #212529;
}

/* Override section backgrounds */
.light-theme .thar-section {
    background: #ffffff !important;
    color: #212529 !important;
}

.light-theme .thar-section[style*="background: #101319;"],
.light-theme .thar-section[style*="background: rgb(16, 19, 25);"],
.light-theme .cv-model-content-blocks,
.light-theme .thar-section:nth-of-type(even) {
    background: #e9ecef !important;
    /* Light gray for alternating sections */
}

/* Card overrides */
.light-theme .thar-metric-card,
.light-theme .thar-highlight-card,
.light-theme .thar-feature-card,
.light-theme .thar-faq-item {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    color: #212529 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.light-theme .thar-metric-card:hover,
.light-theme .thar-highlight-card:hover,
.light-theme .thar-feature-card:hover {
    border-color: var(--thar-red) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.light-theme .thar-metric-val {
    color: var(--thar-red) !important;
}

.light-theme .thar-metric-label,
.light-theme .thar-highlight-text,
.light-theme .thar-feature-desc,
.light-theme .thar-highlight-body ul li {
    color: #495057 !important;
}

/* Override low contrast inline styled list items */
.light-theme ul[style*="color: #cbd5e1"] li,
.light-theme ul[style*="color: #cbd5e1"],
.light-theme ul[style*="color"] li,
.light-theme ul[style*="color"] {
    color: #495057 !important;
}

.light-theme .thar-highlight-title,
.light-theme .thar-feature-title,
.light-theme .thar-section-title {
    color: #212529 !important;
}

/* Hero Section overlays in light theme */
.light-theme .thar-hero::before {}

.light-theme .thar-hero-title {
    color: #ffffff !important;
}

.light-theme .thar-hero-tagline {
    color: #ffffff !important;
}

.light-theme .thar-price-badge {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid var(--thar-red) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.light-theme .thar-price-val {
    color: #212529 !important;
}

.light-theme .thar-engine-chip {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #ffffff !important;
}

/* Sticky Nav overrides */
.light-theme .thar-sticky-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid #dee2e6 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.light-theme .thar-nav-links a {
    color: #495057 !important;
}

.light-theme .thar-nav-links a.active,
.light-theme .thar-nav-links a:hover {
    color: var(--thar-red) !important;
    border-bottom-color: var(--thar-red) !important;
}

/* Primary Button Styling */
.light-theme .btn-thar-primary {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2) !important;
}

.light-theme .btn-thar-primary:hover {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%) !important;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3) !important;
}

.light-theme .btn-thar-outline {
    border-color: var(--thar-red) !important;
    color: var(--thar-red) !important;
}

.light-theme .btn-thar-outline:hover {
    background: rgba(211, 47, 47, 0.05) !important;
    color: var(--thar-red) !important;
}

/* Specs & Tables */
.light-theme .thar-spec-tab {
    background: #f1f3f5 !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

.light-theme .thar-spec-tab.active {
    background: var(--thar-red) !important;
    color: #ffffff !important;
    border-color: var(--thar-red) !important;
}

.light-theme .thar-spec-table {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
}

.light-theme .thar-spec-table td {
    border-bottom: 1px solid #e9ecef !important;
    color: #212529 !important;
}

.light-theme .thar-spec-table tr:nth-of-type(even) {
    background: #f8f9fa !important;
}

.light-theme .thar-spec-table td.spec-name {
    color: #495057 !important;
    font-weight: 700 !important;
}

/* FAQs */
.light-theme .thar-faq-header h4 {
    color: #212529 !important;
}

.light-theme .thar-faq-body {
    color: #495057 !important;
    border-top: 1px solid #f1f3f5 !important;
}

/* Visualizer */
.light-theme .thar-visualizer-box {
    background: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.light-theme .thar-color-name-display {
    color: var(--thar-red) !important;
    text-shadow: none !important;
}

/* BEV Neon Light overrides */
.light-theme.bev-theme .thar-badge {
    background: rgba(16, 185, 129, 0.06) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
    color: #10b981 !important;
}

.light-theme.bev-theme .btn-thar-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
}

.light-theme.bev-theme .btn-thar-outline {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.light-theme.bev-theme .btn-thar-outline:hover {
    background: rgba(16, 185, 129, 0.05) !important;
    color: #10b981 !important;
}

/* Camper Commercial Vehicle Light overrides */
.light-theme.camper-theme .thar-badge {
    background: rgba(184, 134, 59, 0.06) !important;
    border: 1px solid rgba(184, 134, 59, 0.3) !important;
    color: #b8863b !important;
}

.light-theme.camper-theme .btn-thar-primary {
    background: linear-gradient(135deg, #b8863b 0%, #a0712d 100%) !important;
    color: #ffffff !important;
}

.light-theme.camper-theme .btn-thar-outline {
    border-color: #b8863b !important;
    color: #b8863b !important;
}

.light-theme.camper-theme .btn-thar-outline:hover {
    background: rgba(184, 134, 59, 0.05) !important;
    color: #b8863b !important;
}

/* ==========================================================================
   Trim Levels & Pricing Section (Variant List) Light Theme Override
   ========================================================================== */
#variant-list {
    background: #ffffff !important;
    padding: 70px 0 !important;
}

#variant-list .thar-section-title {
    color: #0f172a !important;
}

#variant-list .thar-section-desc {
    color: #475569 !important;
}

/* Variant Filter Tabs */
#variant-list .variant-filter-btn {
    border: 1px solid #cbd5e1 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
}

#variant-list .variant-filter-btn.active {
    background: #e31837 !important;
    color: #ffffff !important;
    border-color: #e31837 !important;
}

/* Card Container Overrides */
#variant-list [class*="feat-card"],
#variant-list .xev-variant-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Card Title */
#variant-list [class*="feat-card"] h3,
#variant-list .xev-variant-box h3 {
    color: #0f172a !important;
}

#variant-list [class*="feat-card"] p,
#variant-list .xev-variant-box p {
    color: #475569 !important;
}

/* List Items and Specs */
#variant-list [class*="feat-card"] ul,
#variant-list .xev-variant-box ul {
    color: #334155 !important;
}

#variant-list [class*="feat-card"] ul li,
#variant-list .xev-variant-box ul li {
    color: #334155 !important;
}

/* Details and Spans */
#variant-list [class*="feat-card"] span[style*="color: #94a3b8"],
#variant-list .xev-variant-box span[style*="color: #94a3b8"],
#variant-list [class*="feat-card"] span[style*="color:#94a3b8"],
#variant-list .xev-variant-box span[style*="color:#94a3b8"] {
    color: #475569 !important;
}

/* Specific contrast improvements for badge colors on light backgrounds */
#variant-list [class*="feat-card"] span[style*="color: #38bdf8"],
#variant-list .xev-variant-box span[style*="color: #38bdf8"],
#variant-list [class*="feat-card"] span[style*="color:#38bdf8"],
#variant-list .xev-variant-box span[style*="color:#38bdf8"] {
    color: #0369a1 !important;
    background-color: #e0f2fe !important;
}

#variant-list [class*="feat-card"] span[style*="color: #10b981"],
#variant-list .xev-variant-box span[style*="color: #10b981"],
#variant-list [class*="feat-card"] span[style*="color:#10b981"],
#variant-list .xev-variant-box span[style*="color:#10b981"] {
    color: #15803d !important;
    background-color: #dcfce7 !important;
}

#variant-list [class*="feat-card"] span[style*="color: #fbbf24"],
#variant-list .xev-variant-box span[style*="color: #fbbf24"],
#variant-list [class*="feat-card"] span[style*="color:#fbbf24"],
#variant-list .xev-variant-box span[style*="color:#fbbf24"] {
    color: #b45309 !important;
    background-color: #fef3c7 !important;
}

/* Special XEV Inner Boxes & Pills */
#variant-list .xev-variant-box div[style*="background: rgba(255,255,255,0.03)"],
#variant-list .xev-variant-box div[style*="background:rgba(255,255,255,0.03)"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}

#variant-list .xev-variant-box div[style*="color: #94a3b8"],
#variant-list .xev-variant-box div[style*="color:#94a3b8"] {
    color: #475569 !important;
}

#variant-list .xev-variant-box span[style*="background: #1c2230"],
#variant-list .xev-variant-box span[style*="background:#1c2230"] {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
}

#variant-list .xev-variant-box div[style*="border-top: 1px solid rgba(255,255,255,0.08)"],
#variant-list .xev-variant-box div[style*="border-top:1px solid rgba(255,255,255,0.08)"] {
    border-top: 1px solid #e2e8f0 !important;
}

#variant-list .xev-variant-box div[style*="color: #ffffff"],
#variant-list .xev-variant-box div[style*="color:#ffffff"] {
    color: #0f172a !important;
}

/* ==========================================================================
   Frequently Asked Questions Section (FAQs) Light Theme Override
   ========================================================================== */
#faqs-section {
    background: #ffffff !important;
    padding: 70px 0 !important;
}

#faqs-section .thar-section-title {
    color: #0f172a !important;
}

/* Accordion Container */
#faqs-section .accordion {
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

#faqs-section .border-bottom {
    border-color: #e2e8f0 !important;
}

/* Accordion Header Buttons - Closed/Collapsed State (Complete White Theme) */
#faqs-section .accordion button.btn,
#faqs-section .accordion button.btn.collapsed,
#faqs-section .accordion button.btn.collapsed:focus,
#faqs-section .accordion button.btn.collapsed:active,
#faqs-section .accordion .accordion-button,
#faqs-section .accordion .accordion-button.collapsed,
#faqs-section .accordion .accordion-button.collapsed:focus,
#faqs-section .accordion .accordion-button.collapsed:active {
    background: #ffffff !important;
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    outline: none !important;
}

#faqs-section .accordion button.btn:hover,
#faqs-section .accordion button.btn.collapsed:hover,
#faqs-section .accordion .accordion-button:hover,
#faqs-section .accordion .accordion-button.collapsed:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* Accordion Header Buttons - Open/Expanded State (Light Gray/White Theme) */
#faqs-section .accordion button.btn:not(.collapsed),
#faqs-section .accordion button.btn:not(.collapsed):focus,
#faqs-section .accordion button.btn:not(.collapsed):active,
#faqs-section .accordion .accordion-button:not(.collapsed),
#faqs-section .accordion .accordion-button:not(.collapsed):focus,
#faqs-section .accordion .accordion-button:not(.collapsed):active {
    background: #f8fafc !important;
    color: #e31837 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    outline: none !important;
}

#faqs-section .accordion button.btn:not(.collapsed):hover,
#faqs-section .accordion .accordion-button:not(.collapsed):hover {
    background: #f1f5f9 !important;
    color: #e31837 !important;
}

/* Accordion Content Panel & Transition States */
#faqs-section .accordion,
#faqs-section .accordion>div {
    background: #ffffff !important;
}

#faqs-section .accordion .collapse>div,
#faqs-section .accordion .collapsing>div,
#faqs-section .accordion .accordion-collapse>div {
    background: #ffffff !important;
    color: #334155 !important;
}