﻿@font-face {
    font-family: 'avatrfont-bold';
    src: url('../fonts/avatr/avatrfont-bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'avatrfont-light';
    src: url('../fonts/avatr/avatrfont-light.ttf') format('truetype');
}

@font-face {
    font-family: 'avatrfont-regular';
    src: url('../fonts/avatr/avatrfont-regular.ttf') format('truetype');
}
/* ================================
           Global Reset & Base
  ================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
main {
    width: 100%; /* العرض على الشاشات الصغيرة */
    max-width: 1600px; /* أقصى عرض يصل إليه المحتوى مهما كبرت الشاشة */
    margin: 0 auto; /* لتوسيط الحاوية في منتصف الصفحة */
}
body {
    font-family: avatrfont-bold;
    background: #cdcbce;
    color: #111;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Target the whole scrollbar */
::-webkit-scrollbar {
    width: 12px; /* Set the width for vertical scrollbars */
    height: 12px; /* Set the height for horizontal scrollbars */
}

/* Target the track (background) */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Target the thumb (draggable part) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(184deg,rgba(181, 181, 181, 1) 0%, rgba(0, 122, 73, 1) 50%, rgba(0, 4, 133, 0.51) 100%);
    border-radius: 6px; /* Optional: adds rounded corners */
}

    /* Change thumb color on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }




/* ========== Cahngan STYLE SUB SECTION ========== */

.Cahngan-sub {
    width: 100%;
    height: 85vh; /* شبه شاشة كاملة */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 7%;
    background: #ffffff;
}

.sub-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

    .sub-left a {
        font-size: 42px; /* خطوط كبيرة مثل الصورة */
        color: #000;
        font-weight: 300;
        letter-spacing: -1px;
        transition: .2s ease;
    }

        .sub-left a:hover {
            opacity: .5;
        }

.sub-right img {
    width: 700px; /* عدّل الحجم حسب سيارتك */
    max-width: 45vw;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
    transform: translateX(40px);
    opacity: 0;
    transition: .8s ease;
}

.Cahngan-sub.loaded .sub-right img {
    transform: translateX(0);
    opacity: 1;
}

/* موبايل بسيط */
@media (max-width: 900px) {
    .header-row {
        padding: 10px 4%;
    }

    .Cahngan-sub {
        flex-direction: column;
        justify-content: center;
        text-align: left;
        padding: 120px 6% 40px;
        height: auto;
    }

    .sub-left a {
        font-size: 32px;
    }

    .sub-right img {
        margin-top: 30px;
        max-width: 80vw;
    }

    .car-menu {
        gap: 15px;
        font-size: 14px;
    }
}


.ModelName {
    margin: 0 0 -2.8rem 0;
    font-size: 32px;
    width: 133%;
}
/* ================================
           Sections base
        ================================ */
/*main {
    margin-top: 72px;*/ /* space for fixed navbar */
/*}*/
.section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: #cdcbce;
    /*background: #cdcbce;*/
    overflow: hidden;
}

.section--dark {
    background: #111;
    color: #fff;
}

.section__inner {
    /*width: min(1200px, 100%);*/
    width: 100%;
    margin-inline: auto;
    /*padding: 40px 40px;*/
}

/* ================================
           HERO
        ================================ */



/* HERO SECTION */
/*.hero {
    width: 100%;
    background: #e6e7e8;
    padding: 120px 0 40px;
}*/
.hero {
    background-image: url("../../Changan/Images/EadoEV/MainPageBackground.png") !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/*.hero__content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}*/

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: center;
    gap: 40px;
    width: min(1300px, 100%);
    padding: 40px 10px;
    width: 100%;
}

.hero__text {
    width: 40%;
    padding-left: 0px;
    margin-top: -1 55px;
}


    .hero__text h1 {
        font-size: 48px;
        font-weight: 600;
        margin-bottom: 15px;
    }
/* Slide from right */
.hero__text {
    opacity: 1;
    transform: translateX(80px);
    transition: 1s ease-out;
}

    .hero__text.show {
        opacity: 1;
        transform: translateX(0);
    }


    /* Slide from left when scrolling */
    .hero__text.scroll-anim {
        opacity: 0;
        transform: translateX(-60px);
    }

        .hero__text.scroll-anim.active {
            opacity: 1;
            transform: translateX(0);
        }

.hero__tabs {
    font-size: 31px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 35px;
    width: 172%;
    margin: 0 0 0.7rem 17rem;
}

.hero-hr {
    height: 1.8px;
    background: #0000007d;
    border: #0000007d;
    width: 12rem;
    margin: 3.2rem 0 2.5rem -0.2rem;
}


.hero__tabs span {
    cursor: pointer;
    margin-right: 20px;
}

.hero__tabs .active {
    color: #000;
}

.hero__tabs .inactive {
    color: #aaa;
}

.hero__spec-list {
    display: flex;
    gap: 11px;
    margin-top: -1rem;
    transition: opacity .35s ease, transform .35s ease;
}

.hero-col {
    flex-direction: column;
}

.hero__spec-main strong {
    font-size: 34px;
    display: block;
    color: #aaaaaa;
}

/*.hero__car img {
    width: 780px;
    transition: 0.4s ease;
    opacity: 1;
}*/

.hero__car img {
    width: 115%;
    will-change: transform;
    margin: 0 0 0 -12rem;
    transition: 0.4s ease;
    opacity: 1;
    max-width: 200%;
}
/* ================= Hero Specs Slide ================= */

#hero .hero__spec-list {
    position: relative;
    transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
}

#hero .slide-out-left {
    transform: translateX(-60px);
    opacity: 0;
}

#hero .slide-out-right {
    transform: translateX(60px);
    opacity: 0;
}

#hero .slide-in-left {
    transform: translateX(-60px);
    opacity: 0;
}

#hero .slide-in-right {
    transform: translateX(60px);
    opacity: 0;
}

#hero .slide-active {
    transform: translateX(0);
    opacity: 1;
}



/* ================================
           Simple image panels (other sections)
        ================================ */
.panel-center img {
    /*width: min(1200px, 100%);*/
    width: 100%;
    margin-inline: auto;
}

.section--colors {
    background-image: url(../../Changan/Images/EadoEV/CarColorsBackground.png) !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    .section--colors img {
        width: min(70%, 100%);
        /*width: 100%;*/
        margin-inline: auto;
    }


/* COLOR SELECTOR */

.colors-container {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 5;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #666;
    cursor: pointer;
    transition: 0.25s;
    background-size: cover;
    background-position: center;
}

    .color-option.active {
        border-color: #000;
        transform: scale(1.15);
    }

.pos {
    position: relative
}

/* ================================
           CONFIGURATOR
        ================================ */
.configurator {
    position: absolute;
    left: 30px;
    top: 30px;
    width: 180px;
    padding: 16px;
    z-index: 20;
    backdrop-filter: blur(6px);
    background: rgba(243,243,243,0.92);
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
    border-radius: 7px;
}
/*@media (max-width: 768px) {
    .configurator {
        
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }
}*/

/* HEADER */
.config-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
}

    .config-header button {
        background: none;
        border: none;
        font-size: 20px;
        cursor: pointer;
    }

/* SECTION */
.config-section {
    margin-bottom: 18px;
}




.config-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .25s ease, transform .35s ease;
}

/* عند الفتح */
.config-section.active .config-content {
    opacity: 1;
    transform: translateY(0);
}


.config-section.active .toggle {
    transform: rotate(45deg);
}

/* COLORS */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 0fr);
    gap: 3px;
}

.color-swatch {
    width: 45px;
    height: 45px;
    border: 1px solid #00000000;
    cursor: pointer;
}

    .color-swatch.active {
        border: 1px solid #000;
    }

/* LABEL */
.color-label {
    margin-top: 8px;
    font-weight: bold;
}

/* WHEELS */
.config-content.wheels {
    display: flex;
    gap: 10px;
}

.wheel-option {
    width: 55px;
    cursor: pointer;
    opacity: .5;
}

    .wheel-option.active {
        opacity: 1;
        border: 2px solid #000;
    }

/* CAR IMAGE */
.car-preview {
    width: 100%;
    margin-top: 20px;
}

/* ANIMATION */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* IMAGE SLIDE ANIMATION */
#carColorImg {
    width: 60%;
    transition: transform 0.6s ease, opacity 0.6s ease;
    MARGIN: 0 0 0 192px;
}

/* ================================
           Rear images
        ================================ */
.section--rear {
}

    .section--rear img {
        width: 70%;
        margin-top: 10rem;
        margin-bottom: 10rem;
    }
/*.left-text-absolute {
    position: absolute;
    top: 4rem;
    left: 5.5%;
    max-width: 420px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.rear-text-absolute p {
    font-size: 1.2rem;
    line-height: 1.6;
}*/

/* ================================
           Topview images
        ================================ */


.section--topview {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.topview-inner {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#topViewDesktop {
    width: 1000px;
    transform: translateX(-60vw); /* تبدأ السيارة خارج الشاشة من اليسار */
    will-change: transform;
    display: block;
}

#topViewBase,
#topViewRoof {
    display: none;
}
/*.center-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 420px;
    MARGIN: 0 0 0 -46rem;*/
/*transform: translateY(-50%);*/
/*}*/
/* ================================
           Panoramic grid images
        ================================ */
#topViewDesktop, #topViewRoof {
    will-change: transform, opacity; /* تحسين للـ animation */
}

.section--Panoramic img {
    width: 100%;
    margin-top: 7rem;
    transform: translate(0px, -72px);
}




/* ================================
           Interior with three images
        ================================ */
/* سكشن كامل */
.interior-section {
    width: 100%;
    background: #cdcbce; /* نفس الخلفية الموجودة بالصورة */
    padding: 0;
    margin: 0;
    position: relative;
    margin-top: 4rem;
}

.interior-photo-wrap {
    position: relative;
    width: 100%;
}
    /* الصورة كاملة */
    .interior-photo-wrap img {
        width: 100%;
        display: block;
        opacity: 1;
        /*transition: opacity .5s ease, transform .5s ease;*/
        inset: 0;
        object-fit: cover;
    }

/* الصورة المتحركة */
.interiorOverlay {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

/* الحركة */
/*.fade-out {
    opacity: 0;
    transform: translateX(0px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}*/

/* خيارات — تحت الصورة — يمين */
.interior-options {
    width: 100%;
    padding: 15px 5%;
    text-align: right;
    background: #cdcbce;
}

.opt {
    font-size: 18px;
    margin-left: 20px;
    cursor: pointer;
    color: #999;
    letter-spacing: 1px;
    transition: .3s;
}

    .opt.active {
        color: #000;
        font-weight: bold;
        border-bottom: 2px solid #000;
        padding-bottom: 3px;
    }

/* النص */
.interior-text {
    width: 100%
}

    .interior-text p {
        font-size: 1.6rem;
        line-height: 1.6;
        max-width: 39%;
        margin: 0 0 0 5.5rem;
    }


/* ================================
           Interior Details with three images
        ================================ */
.details-section {
    background: #cdcbce; /* نفس لون الخلفية بالصورة */
    padding: 60px 0;
}

.details-grid {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.detail-img {
    width: 32%;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}
/* ================================
           Interior Details with three images
        ================================ */
.section--extra {
    min-height: 95vh;
    overflow: hidden;
}
/* ================================
           Learn more section (new)
        ================================ */
.learn-section {
    background: #000;
    color: #fff;
    padding: 80px 40px;
    text-align: center;
}

.learn-title {
    font-size: 38px;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: .85;
    text-align: left;
    margin-left: 5rem;
}

.learn-boxes {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    transition: opacity .35s ease, transform .35s ease;
}

.hero__spec-list.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.hero-specs-reev {
    display: none;
}

.learn-box {
    background: #8f8f8f;
    width: 340px;
    padding: 30px;
    text-align: left;
}

    .learn-box h3 {
        font-size: 22px;
        font-weight: 500;
        margin-bottom: 10px;
        color: black;
    }

    .learn-box .value {
        font-size: 46px;
        font-weight: 600;
        margin-bottom: 18px;
        color: #212121b8;
    }

    .learn-box .sub {
        font-size: 17px;
        opacity: .9;
        color: black;
    }

    .learn-box .dim {
        font-size: 20px;
        opacity: .7;
        margin-top: 4px;
        color: #212121b8;
    }
.sp {
    color: black;
    font-size: 10px;
    margin: -24px 0 11px 0;
}
.learn-buttons {
    WIDTH: 1042px;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
    transition: opacity .35s ease, transform .35s ease;
    PLACE-SELF: ANCHOR-CENTER;
}

.learn-btn {
    background: #8f8f8f;
    color: #000;
    padding: 16px 40px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 3px;
    transition: 0.2s ease;
    width: 100%;
}

.section--extra {
    min-height: 95vh;
    overflow: hidden;
    margin: 34px;
}

.learn-btn:hover {
    background: #b5b5b5;
}

/* ================================
           Contact footer (new)
        ================================ */
.contact-footer {
    background: #fff;
    padding: 40px 50px;
    border-top: 1px solid #000;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: auto;
}

.contact-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #000;
}

.contact-sep {
    font-weight: 400;
}

.contact-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

    .contact-right a img {
        width: 46px;
        height: 46px;
        object-fit: contain;
        /* border: 2px solid #000; */
        padding: 5px;
        border-radius: 5px;
        transition: 0.25s;
    }

        .contact-right a img:hover {
            background: #000;
            filter: invert(100%);
            transform: scale(1.05);
        }

/* ================================
           Optional bottom footer (copyright)
        ================================ */
.bottom-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 18px 0;
    font-size: 14px;
}

/* ================================
           Animation pre-state
        ================================ */
.anim {
    opacity: 0;
    transform: translateY(40px);
}


/* =========================
   3D CAR SECTION
========================= */
/* =========================
   PERFORMANCE SECTION
========================= */


#performance {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

    /* IMAGE + 3D share same space */
    #performance .section__inner {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }




/* Image view */
.section__inner--image {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* 3D view */


.section--3d {
    min-height: 100vh;
    background: #cdcbce; /* نفس خلفية الموقع */
    padding: 0;
}

.section__inner--3d {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 100;
}

/* Canvas */
#car3d {
    width: 100%;
    height: 100%;
    display: block;
    cursor: ew-resize;
}

/* Title فوق الـ 3D */
.car3d-title {
    position: absolute;
    top: 40px;
    left: 60px;
    font-size: 42px;
    font-weight: 300;
    z-index: 3;
}


/* =========================
   VIEW TOGGLE BUTTONS
========================= */

/* Buttons */
.view-toggle {
    position: absolute;
    right: 40px;
    bottom: 40px;
    z-index: 105;
    display: flex;
    gap: 12px;
}

.toggle-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
}

    .toggle-btn.hidden {
        display: none;
    }

    .toggle-btn:hover {
        background: #000;
        color: #fff;
    }

    .toggle-btn.active {
        display: none; /* نخفي الزر النشط */
    }


.section__inner,
.section__inner--3d {
    transition: opacity 0.4s ease;
}




    .section__inner--3d:hover #car3d {
        cursor: url('../images/arrows.png') 16 16, ew-resize;
    }


/* =====================
   VIDEO SECTION
===================== */

.video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    max-height: 100vh;
    margin: -3.7rem 0 0 0;
}

.video-bg,
.video-poster {
    width: 100%;
    height: auto;
    display: block;
}

.video-bg {
    width: 100%;
    height: 100%;
    max-width: 100vw; /* لا يتجاوز العرض */
    max-height: 100vh; /* لا يتجاوز الارتفاع */
    object-fit: cover; /* يلتزم بحجم السكشن */
    display: block;
    opacity: 1;
}

    .video-bg.ready {
        opacity: 1;
    }


.video-poster.hide {
    opacity: 0;
}

/* زر التشغيل */
.video-control {
    position: absolute;
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(16px, 5vw, 75px);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    z-index: 10;
    transition: .25s ease;
}

    .video-control:hover {
        background: rgba(0,0,0,0.85);
        transform: scale(1.05);
    }

    .video-control.hidden {
        opacity: 0;
        pointer-events: none;
    }


/* progress */
.video-progress {
    position: absolute;
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(16px, 5vw, 75px);
    width: 56px;
    height: 56px;
    pointer-events: none;
    z-index: 9;
}

    .video-progress svg {
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

.progress-bg {
    fill: none;
    stroke: rgba(255,255,255,0.2);
    stroke-width: 3;
}

.progress-bar {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset .2s linear;
}


/* =============================
   EXTERIOR SWIPER
============================= */

.exterior-slider {
    background: #cdcbce;
}

.slider-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Swiper نفسه */
.exteriorSwiper {
    width: 100%;
    height: 100%;
}

    /* كل شريحة */
    .exteriorSwiper .swiper-slide {
        width: 100% !important;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        /* الصورة */
        .exteriorSwiper .swiper-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    /* أزرار التنقل – فخمة وبسيطة */
    .exteriorSwiper .swiper-button-next, .exteriorSwiper .swiper-button-prev {
        color: #ffffff;
        width: 44px;
        height: 44px;
        background: rgb(0 0 0 / 15%);
        border-radius: 50%;
        backdrop-filter: blur(61px);
        transition: .25s ease;
        padding: 0;
    }

        .exteriorSwiper .swiper-button-next:hover,
        .exteriorSwiper .swiper-button-prev:hover {
            /*background: rgba(255,255,255,0.9);*/
            backdrop-filter: blur(17px);
            transform: scale(1.05);
        }

.swiper-button-next:after, .swiper-button-prev:after {
    font-family: swiper-icons;
    font-size: var(--swiper-navigation-size);
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    font-size: 15px !important;
}



.learn-boxes.hidden {
    opacity: 0;
    transform: translateY(20px);
}




.main-menu.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    padding: 20px;
    gap: 20px;
    width: 220px;
    box-shadow: 0 4px 20px #0001;
}

.left-text {
    position: absolute;
    top: 0rem;
    left: 5.4%;
    max-width: 32%;
    font-size: 1.6rem;
    line-height: 1.6;
    width: 100%;
    padding: 0;
    /* margin: 0 0 0 27px; */
}

.center-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    max-width: 35%;
    MARGIN: -5.4% 0 0 -50rem;
    /* transform: translateY(-50%); */
    width: 100%;
    position: absolute;
    z-index: -2;
}

.left-text-absolute {
    position: absolute;
    top: -4rem;
    left: 5.4%;
    max-width: 35%;
    font-size: 1.6rem;
    line-height: 1.6;
}

.rear-text-absolute p {
    font-size: 1.2rem;
    line-height: 1.6;
}
/*----------------------------------------------------------------------------------------------*/
/* ===============================
   MOBILE FIRST NORMALIZATION
================================ */
/* Base  : Mobile Large      (0 - 767) */
/* Tablet: Portrait / iPad  (768 - 1023) */
/* Tablet: Landscape        (1024- 1279) */




/* ===================================================
   GLOBAL MOBILE / TABLET NORMALIZATION
=================================================== */
html, body {
    overflow-x: hidden;
}

/*.section,
.section--extra,
.section--3d,
.section--rear,
.section--topview {
    min-height: auto;
    height: auto;
}*/

.section__inner {
    width: 100%;
}

/* Touch Optimization */
@media (pointer: coarse) {
    button,
    a,
    .color-swatch,
    .wheel-option,
    .toggle-btn {
        min-width: 44px;
        min-height: 44px;
    }
}
/* Tabs تظهر فقط على الموبايل والتابلت */
.configurator-tabs {
    display: none;
}


/* ===================================================
   MOBILE SMALL (0px ==> 480px)
=================================================== */

@media (max-width: 767px) {
    .section {
        overflow: hidden;
        margin: 0;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: clamp(64px, 10vw, 140px) !important;
        position: relative;
    }

    #hero {
        position: relative;
        display: flex;
        min-height: 100dvh !important;
    }


    /* ===== HERO ===== */
    .hero__car {
        order: -1;
        position: static !important; /* نقتل absolute */
        width: min(90vw, 420px);
        max-width: 100%;
        height: auto;
    }

    .hero__content {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: clamp(24px, 5vw, 48px);
        gap: 24px;
        text-align: center;
    }

    .hero__text {
        width: 100%;
        transform: none !important;
        /*order: 2;*/

        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: auto; /* ⭐⭐ هذا اللي ينزّلهم لأسفل */
    }

        .hero__text h1 {
            font-size: 30px;
            line-height: 1.2;
        }

    .hero__tabs {
        width: 100%;
        margin: 77% 0 0 0;
        letter-spacing: 0px;
        position: static !important;
        top: 440px;
        font-size: 26px;
        display: flex;
        gap: 1px;
        justify-content: center;
    }

    .hero__spec-list {
        position: static !important;
        /*display: flex;*/
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero__car img {
        width: 100%;
        left: 214px;
        position: absolute;
        top: 244px;
    }

    .ModelName {
        position: absolute;
        top: 16px; /* تحكّم بالارتفاع */
        left: 16px; /* تحكّم بالبعد عن اليسار */
        margin: 0;
        font-size: 32px;
        width: auto;
        z-index: 5;
    }

    #hero .hero__spec-list {
        position: absolute;
        transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 10px;
        margin: 23rem 0 0 0;
    }

    .hero__spec-main strong {
        font-size: 28px;
        display: block;
        color: #aaaaaa;
    }

    .hero__spec-main span {
        font-size: 13px;
    }

    .hero-hr {
        position: absolute;
        top: 68px; /* تحكّم بالارتفاع */
        left: 16px; /* تحكّم بالبعد عن اليسار */
        margin: 0;
        height: 1.8px;
        background: #0000007d;
        border: #0000007d;
        width: 12rem;
    }


    /* ===== REAR ===== */
    .section--rear img {
        width: 100%;
        margin-top: 10rem;
    }

    .interior-section {
        width: 100%;
        background: #cdcbce;
        padding: 0;
        margin: 0;
        position: relative;
        margin-top: 11rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .section--Panoramic img {
        width: 100%;
        margin-top: 9rem;
        transform: translate(0px, -72px);
    }

    .learn-buttons {
        WIDTH: 300px;
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 30px;
        flex-wrap: wrap;
        transition: opacity .35s ease, transform .35s ease;
        PLACE-SELF: ANCHOR-CENTER;
    }

    div#car {
        grid-column: 2;
    }

    div#text {
        grid-column: 1;
        position: absolute;
    }

    /* ===== PERFORMANCE ===== */
    #performance {
        position: relative;
        min-height: 100vh !important;
        overflow: hidden;
    }

        #performance .section__inner {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100vh;
            max-height: 150dvh;
            top: -55px;
        }


    /* ===== CONFIGURATOR ===== */
    #colors {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: 40px 0px !important;
    }

    /* المحتوى العلوي */
    .colors-content {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    /* ❌ ألغِ أي top / relative */
    #carColorImg {
        width: 100%;
        max-width: 720px;
        height: auto;
        position: static; /* مهم */
        margin: 0 auto;
    }

    /* البوكس */
    .configurator {
        margin-top: auto; /* السطر السحري */
        width: 100%;
        padding: 12px 12px 8px;
        background: #f1f1f1;
        border-radius: 0;
        position: sticky;
        left: 0;
        top: 0;
        transform: none;
    }



    /* ===== HEADER TABS ===== */
    .config-header {
        justify-content: center;
        gap: 24px;
        font-size: 24px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 8px;
    }

        .config-header span {
            position: relative;
        }

    .config-section.active .config-header span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: #000;
    }

    .config-header button {
        display: none; /* + تختفي */
    }

    /* ===== SECTIONS ===== */
    .config-section {
        margin: 0;
    }

    .config-header button {
        display: none; /* + - تختفي */
    }

    .config-section .config-header span {
        position: relative;
        opacity: .5;
        cursor: pointer;
    }

    .config-section.active .config-header span {
        opacity: 1;
        font-weight: 500;
    }

        .config-section.active .config-header span::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 2px;
            background: #000;
        }
    /* كل الأقسام مغلقة إلا active */
    .config-content {
        /* max-height: none;
        opacity: 1;
        transform: none;
        display: none;
        padding-top: 8px;*/
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        display: none;
        padding-top: 10px;
    }

    .config-section.active .config-content {
        display: block;
    }

    /* ===== COLOR GRID ===== */
    .color-grid {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
        border-width: 1.5px;
    }

    /* ===== LABEL ===== */
    .color-label {
        font-size: 16px;
        font-weight: normal;
        color: #333;
        margin-top: 4px;
    }




    /**************************************************/


    /* شريط التبويبات */
    .configurator-tabs {
        display: flex;
        gap: 18px;
        padding: 0 0px 6px;
        border-bottom: 1px solid #ccc;
        font-size: 19px;
    }

        .configurator-tabs .tab {
            position: relative;
            padding-bottom: 6px;
            opacity: .45;
            cursor: pointer;
            white-space: nowrap;
        }

            .configurator-tabs .tab.active {
                opacity: 1;
                font-weight: 500;
            }

                .configurator-tabs .tab.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -1px;
                    width: 100%;
                    height: 2px;
                    background: #000;
                }

    /* إخفاء الهيدر القديم */
    .config-header {
        display: none !important;
    }



    /* Override أي display:none سابق */
    .configurator .config-section .config-content {
        display: block !important; /* مهم جداً */
        overflow: hidden !important;
        max-height: 0 !important; /* مخفي */
        opacity: 0 !important;
        transform: translateX(16px) !important;
        /* نخلي الانتقال فعلاً يصير */
        transition: max-height .28s ease, opacity .25s ease, transform .25s ease !important;
    }

    .configurator .config-section.active .config-content {
        max-height: 600px !important; /* رقم كبير يكفي المحتوى */
        opacity: 1 !important;
        transform: translateX(0) !important;
    }


    /* الألوان صف واحد */
    .color-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }


    /**************************************************/
    /* ===== IMAGE SECTIONS ===== */
    .mob-height {
        min-height: 30dvh;
        margin: 0;
    }

    #tech {
        min-height: 180dvh !important;
        margin-bottom: -21dvh;
    }

    #topViewDesktop {
        display: none;
    }

    #topViewBase, #topViewRoof {
        display: block;
    }


    #topViewRoof {
        opacity: 0;
        z-index: 2;
    }



    /* ===== 3D ===== */
    .section__inner--3d {
        height: 65vh;
    }

    #car3d {
        cursor: grab;
        touch-action: pan-y;
    }

    /* ===== VIDEO ===== */
    .video-wrap {
        max-height: 55vh;
    }

    .video-bg {
        background: #000;
        max-width: 400vw;
        max-height: 300vh;
        width: 100vw;
        height: 100%;
        object-fit: cover;
    }

    /* ===== PANORAMIC ===== */
    /* سكشنات الصور البسيطة (rear, panoramic, extra, إلخ) */
    .section--rear,
    .section--Panoramic,
    .section--extra,
    .section--topview {
        padding-block: 20px 40px !important; /* مسافات أقل */
    }

    /* ===== INTERIOR ===== */
    .interior-options {
        display: flex;
        justify-content: center;
        gap: 14px;
    }

    .section__inner {
        width: 100%;
        height: auto;
    }
    /* ===== DETAILS ===== */
    .details-section {
        background: #cdcbce;
        padding: 0 0;
    }

    .details-grid {
        flex-direction: column;
    }

    .detail-img {
        width: 100%;
    }

    /* ===== LEARN / CTA ===== */
    .learn-title {
        text-align: center;
        margin-left: 0;
        font-size: 26px;
    }

    .learn-box {
        width: 100%;
    }

    .learn-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .learn-btn {
        width: 100%;
        font-size: 18px;
    }



    /* Swiper نفسه */
    .exteriorSwiper {
        width: 100%;
        height: 390px;
    }

        /* كل شريحة */
        .exteriorSwiper .swiper-slide {
            width: 100% !important;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* الصورة */
            .exteriorSwiper .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

    /* ===== FOOTER ===== */
    .contact-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contact-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        color: #000;
        white-space: nowrap;
    }







    .section {
        overflow: hidden;
        margin: 0;
        min-height: auto !important; /* بدل clamp الكبير */
        height: auto !important;
        padding-block: 40px 60px !important; /* مسافات معقولة، مش متغيرة كتير */
        position: relative;
    }




    .topview-mobile-wrapper {
        position: relative;
        display: inline-block; /* مهم جدًا عشان ياخد حجم الصورة الأساسية */
        width: 96dvw;
        max-width: 420px;
        margin: 0 auto;
    }

        .topview-mobile-wrapper #topViewBase {
            width: 100%;
            height: auto;
            display: block;
        }

        .topview-mobile-wrapper #topViewRoof {
            position: absolute;
            top: 43.4%;
            left: 38.6%;
            right: 25%;
            bottom: 0;
            width: 38.6%;
            height: auto;
            opacity: 0;
            pointer-events: none;
            z-index: 2;
            object-fit: contain;
        }

    .section--topview {
        height: auto !important;
        min-height: 60vh;
        padding: 40px 0 !important;
    }


    .interior-text {
        width: 100%
    }

        .interior-text p {
            font-size: 1.1rem;
            line-height: 1.6;
            max-width: 100%;
            margin: -11rem 0 0 0rem;
            padding: 0 17px;
            text-align: left;
            width: 100%;
        }

    .left-text-absolute {
        position: absolute;
        top: -23%;
        left: 0%;
        max-width: 100%;
        font-size: 1.1rem;
        line-height: 1.6;
        text-align: left;
        padding: 0 17px;
    }

    .center-text p {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 100%;
        text-align: left;
        margin: -38rem 0 0 0;
        padding: 0 17px;
        z-index: 1;
    }

    .center-text {
        position: absolute;
        width: 100%;
    }

    .left-text {
        position: absolute;
        top: 0rem;
        left: 0;
        max-width: 100%;
        font-size: 1.1rem;
        line-height: 1.6;
        width: 100%;
        padding: 0 17px;
        /* margin: 0 0 0 27px; */
    }
}


/*===================================================
   TABLET PORTRAIT (768px – 1023px)
=================================================== */
@media (min-width: 768px) and (max-width: 1023px) {

    .section {
        overflow: hidden;
        margin: 0;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: clamp(64px, 10vw, 140px) !important;
        position: relative;
    }

    #hero {
        position: relative;
        display: flex;
        min-height: 100dvh !important;
    }


    /* ===== HERO ===== */
    .hero__car {
        order: -1;
        position: static !important; /* نقتل absolute */
        width: min(90vw, 420px);
        max-width: 100%;
        height: auto;
    }

    .hero__content {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: clamp(24px, 5vw, 48px);
        gap: 24px;
        text-align: center;
    }

    .hero__text {
        width: 100%;
        transform: none !important;
        /* order: 2; */
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 442px;
        /* margin: 442px 0 0 0; */
    }

        .hero__text h1 {
            font-size: 30px;
            line-height: 1.2;
        }

    .hero__tabs {
        width: 100%;
        margin: 77% 0 0 0;
        letter-spacing: 0px;
        position: static !important;
        top: 440px;
        font-size: 26px;
        display: flex;
        gap: 1px;
        justify-content: center;
    }

    .hero__spec-list {
        position: static !important;
        /*display: flex;*/
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero__car img {
        width: 100%;
        left: 235px;
        position: absolute;
        top: 260px;
    }

    .ModelName {
        position: absolute;
        top: 16px; /* تحكّم بالارتفاع */
        left: 16px; /* تحكّم بالبعد عن اليسار */
        margin: 0;
        font-size: 32px;
        width: auto;
        z-index: 5;
    }

    #hero .hero__spec-list {
        position: absolute;
        transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
        flex-direction: row;
        flex-wrap: nowrap;
        padding: 10px;
        gap: 82px;
    }

    .hero__spec-main strong {
        font-size: 36px;
        display: block;
        color: #aaaaaa;
    }

    .hero__spec-main span {
        font-size: 18px;
    }

    .hero-hr {
        position: absolute;
        top: 68px; /* تحكّم بالارتفاع */
        left: 16px; /* تحكّم بالبعد عن اليسار */
        margin: 0;
        height: 1.8px;
        background: #0000007d;
        border: #0000007d;
        width: 12rem;
    }


    /* ===== REAR ===== */
    .section--rear img {
        width: 100%;
        margin-top: 30rem;
    }

    /* ===== PERFORMANCE ===== */
    #performance {
        position: relative;
        min-height: 100vh !important;
        overflow: hidden;
    }

        #performance .section__inner {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100vh;
            max-height: 150dvh;
            top: -55px;
        }

    .section--Panoramic img {
        width: 100%;
        margin-top: 12rem;
        transform: translate(0px, -72px);
    }

    .learn-buttons {
        WIDTH: 679px;
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 30px;
        flex-wrap: wrap;
        transition: opacity .35s ease, transform .35s ease;
        PLACE-SELF: ANCHOR-CENTER;
    }
    /* ===== CONFIGURATOR ===== */
    #colors {
        display: flex;
        flex-direction: column;
        position: relative;
        min-height: clamp(520px, 100dvh, 900px) !important;
        padding-block: 40px 0px !important;
    }

    /* المحتوى العلوي */
    .colors-content {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }

    /* ❌ ألغِ أي top / relative */
    #carColorImg {
        width: 100%;
        max-width: 720px;
        height: auto;
        position: static; /* مهم */
        margin: 0 auto;
    }

    /* البوكس */
    .configurator {
        margin-top: auto; /* السطر السحري */
        width: 100%;
        padding: 12px 12px 8px;
        background: #f1f1f1;
        border-radius: 0;
        position: sticky;
        left: 0;
        top: 0;
        transform: none;
    }



    /* ===== HEADER TABS ===== */
    .config-header {
        justify-content: center;
        gap: 24px;
        font-size: 24px;
        border-bottom: 1px solid #ccc;
        margin-bottom: 8px;
    }

        .config-header span {
            position: relative;
        }

    .config-section.active .config-header span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 2px;
        background: #000;
    }

    .config-header button {
        display: none; /* + تختفي */
    }

    /* ===== SECTIONS ===== */
    .config-section {
        margin: 0;
    }

    .config-header button {
        display: none; /* + - تختفي */
    }

    .config-section .config-header span {
        position: relative;
        opacity: .5;
        cursor: pointer;
    }

    .config-section.active .config-header span {
        opacity: 1;
        font-weight: 500;
    }

        .config-section.active .config-header span::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 2px;
            background: #000;
        }
    /* كل الأقسام مغلقة إلا active */
    .config-content {
        /* max-height: none;
        opacity: 1;
        transform: none;
        display: none;
        padding-top: 8px;*/
        max-height: none !important;
        opacity: 1 !important;
        transform: none !important;
        display: none;
        padding-top: 10px;
    }

    .config-section.active .config-content {
        display: block;
    }

    /* ===== COLOR GRID ===== */
    .color-grid {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
        border-width: 1.5px;
    }

    /* ===== LABEL ===== */
    .color-label {
        font-size: 16px;
        font-weight: normal;
        color: #333;
        margin-top: 4px;
    }




    /**************************************************/


    /* شريط التبويبات */
    .configurator-tabs {
        display: flex;
        gap: 18px;
        padding: 0 0px 6px;
        border-bottom: 1px solid #ccc;
        font-size: 19px;
    }

        .configurator-tabs .tab {
            position: relative;
            padding-bottom: 6px;
            opacity: .45;
            cursor: pointer;
            white-space: nowrap;
        }

            .configurator-tabs .tab.active {
                opacity: 1;
                font-weight: 500;
            }

                .configurator-tabs .tab.active::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -1px;
                    width: 100%;
                    height: 2px;
                    background: #000;
                }

    /* إخفاء الهيدر القديم */
    .config-header {
        display: none !important;
    }



    /* Override أي display:none سابق */
    .configurator .config-section .config-content {
        display: block !important; /* مهم جداً */
        overflow: hidden !important;
        max-height: 0 !important; /* مخفي */
        opacity: 0 !important;
        transform: translateX(16px) !important;
        /* نخلي الانتقال فعلاً يصير */
        transition: max-height .28s ease, opacity .25s ease, transform .25s ease !important;
    }

    .configurator .config-section.active .config-content {
        max-height: 600px !important; /* رقم كبير يكفي المحتوى */
        opacity: 1 !important;
        transform: translateX(0) !important;
    }


    /* الألوان صف واحد */
    .color-grid {
        display: flex;
        gap: 8px;
        overflow-x: auto;
    }

    .color-swatch {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }


    /**************************************************/
    /* ===== IMAGE SECTIONS ===== */
    .mob-height {
        min-height: 30dvh;
        margin: 0;
    }

    #tech {
        min-height: 180dvh !important;
        margin-bottom: -20dvh;
    }

    #topViewDesktop {
        display: none;
    }

    #topViewBase, #topViewRoof {
        display: block;
    }


    #topViewRoof {
        opacity: 0;
        z-index: 2;
    }



    /* ===== 3D ===== */
    .section__inner--3d {
        height: 65vh;
    }

    #car3d {
        cursor: grab;
        touch-action: pan-y;
    }

    /* ===== VIDEO ===== */
    .video-wrap {
        max-height: 55vh;
    }

    .video-bg {
        background: #000;
        max-width: 400vw;
        max-height: 300vh;
        width: 100vw;
        height: 100%;
        object-fit: cover;
    }

    /* ===== PANORAMIC ===== */
    /* سكشنات الصور البسيطة (rear, panoramic, extra, إلخ) */
    .section--rear,
    .section--Panoramic,
    .section--extra,
    .section--topview {
        padding-block: 20px 40px !important; /* مسافات أقل */
    }

    /* ===== INTERIOR ===== */
    .interior-options {
        display: flex;
        justify-content: center;
        gap: 14px;
    }

    .section__inner {
        width: 100%;
        height: auto;
    }
    /* ===== DETAILS ===== */
    .details-section {
        background: #cdcbce;
        padding: 0 0;
    }

    .details-grid {
        flex-direction: column;
    }

    .detail-img {
        width: 100%;
    }

    /* ===== LEARN / CTA ===== */
    .learn-title {
        text-align: center;
        margin-left: 0;
        font-size: 26px;
    }

    .learn-box {
        width: 100%;
    }

    .learn-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .learn-btn {
        width: 100%;
        font-size: 18px;
    }



    /* Swiper نفسه */
    .exteriorSwiper {
        width: 100%;
        height: 390px;
    }

        /* كل شريحة */
        .exteriorSwiper .swiper-slide {
            width: 100% !important;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* الصورة */
            .exteriorSwiper .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

    /* ===== FOOTER ===== */
    .contact-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .contact-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        color: #000;
        white-space: nowrap;
    }







    .section {
        overflow: hidden;
        margin: 0;
        min-height: auto !important; /* بدل clamp الكبير */
        height: auto !important;
        padding-block: 40px 60px !important; /* مسافات معقولة، مش متغيرة كتير */
        position: relative;
    }




    .topview-mobile-wrapper {
        position: relative;
        display: inline-block;
        width: 65dvw;
        max-width: 1000px;
        margin: 0 auto;
    }

        .topview-mobile-wrapper #topViewBase {
            width: 100%;
            height: auto;
            display: block;
        }

        .topview-mobile-wrapper #topViewRoof {
            position: absolute;
            top: 43.4%;
            left: 38.9%;
            right: 27%;
            bottom: 0;
            width: 38%;
            height: auto;
            opacity: 0;
            pointer-events: none;
            z-index: 2;
            object-fit: contain;
        }

    .section--topview {
        height: auto !important;
        min-height: 60vh;
        padding: 40px 0 !important;
    }



    .interior-section {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    div#car {
        grid-column: 2;
    }

    div#text {
        grid-column: 1;
        position: absolute;
    }

    .interior-photo-wrap {
        position: relative;
        width: 100%;
        margin: 13rem 0 0 0;
    }


    .interior-text {
        width: 100%
    }

        .interior-text p {
            position: relative;
            /* margin: -31rem 0 0 0; */
            padding: 0 24px;
            top: -4rem;
            left: -9.5%;
            max-width: 100%;
            font-size: 2.1rem;
            line-height: 1.6;
            text-align: left;
            width: 100%;
        }

    .left-text {
        position: absolute;
        top: 2rem;
        left: 0;
        max-width: 100%;
        font-size: 2.1rem;
        line-height: 1.6;
        width: 100%;
        padding: 0 24px;
        text-align: left;
    }

    .left-text-absolute {
        position: absolute;
        top: -5rem;
        left: 0;
        max-width: 100%;
        font-size: 2.1rem;
        line-height: 1.6;
        padding: 0 24px;
        text-align: left;
    }

    .center-text p {
        position: relative;
        /* margin: -22rem 0 0 0; */
        padding: 0 24px;
        top: -73dvh;
        left: 90%;
        max-width: 100%;
        font-size: 2.1rem;
        line-height: 1.6;
        text-align: left;
        padding: 0 24px;
        z-index: 1;
    }

    .center-text {
        position: absolute;
        width: 100%;
    }
}

/* ===================================================
   TABLET LANDSCAPE (1024px – 1279px)
=================================================== */
@media (min-width: 1024px) and (max-width: 1279px) {

    /* ================================
           Global Reset & Base
  ================================ */
    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body {
        /*font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
        font-family: avatrfont-bold;
        background: #cdcbce;
        color: #111;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        display: block;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    /* Target the whole scrollbar */
    ::-webkit-scrollbar {
        width: 12px; /* Set the width for vertical scrollbars */
        height: 12px; /* Set the height for horizontal scrollbars */
    }

    /* Target the track (background) */
    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Target the thumb (draggable part) */
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(184deg,rgba(181, 181, 181, 1) 0%, rgba(0, 122, 73, 1) 50%, rgba(0, 4, 133, 0.51) 100%);
        border-radius: 6px; /* Optional: adds rounded corners */
    }

        /* Change thumb color on hover */
        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }




    /* ========== Cahngan STYLE SUB SECTION ========== */

    .Cahngan-sub {
        width: 100%;
        height: 85vh; /* شبه شاشة كاملة */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 7%;
        background: #ffffff;
    }

    .sub-left {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

        .sub-left a {
            font-size: 42px; /* خطوط كبيرة مثل الصورة */
            color: #000;
            font-weight: 300;
            letter-spacing: -1px;
            transition: .2s ease;
        }

            .sub-left a:hover {
                opacity: .5;
            }

    .sub-right img {
        width: 700px; /* عدّل الحجم حسب سيارتك */
        max-width: 45vw;
        object-fit: contain;
        user-select: none;
        pointer-events: none;
        transform: translateX(40px);
        opacity: 0;
        transition: .8s ease;
    }

    .Cahngan-sub.loaded .sub-right img {
        transform: translateX(0);
        opacity: 1;
    }

    /* موبايل بسيط */
    @media (max-width: 900px) {
        .header-row {
            padding: 10px 4%;
        }

        .Cahngan-sub {
            flex-direction: column;
            justify-content: center;
            text-align: left;
            padding: 120px 6% 40px;
            height: auto;
        }

        .sub-left a {
            font-size: 32px;
        }

        .sub-right img {
            margin-top: 30px;
            max-width: 80vw;
        }

        .car-menu {
            gap: 15px;
            font-size: 14px;
        }
    }


    .ModelName {
        margin: 0 0 -2.8rem 0;
        font-size: 32px;
        width: 133%;
    }
    /* ================================
           Sections base
        ================================ */
    /*main {
    margin-top: 72px;*/ /* space for fixed navbar */
    /*}*/
    .section {
        min-height: 80vh;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        background: #cdcbce;
        /*background: #cdcbce;*/
        overflow: hidden;
    }

    .section--dark {
        background: #111;
        color: #fff;
    }

    .section__inner {
        /*width: min(1200px, 100%);*/
        width: 100%;
        margin-inline: auto;
        /*padding: 40px 40px;*/
    }

    /* ================================
           HERO
        ================================ */



    /* HERO SECTION */
    /*.hero {
    width: 100%;
    background: #e6e7e8;
    padding: 120px 0 40px;
}*/
    .hero {
        background-image: url("../../Changan/Images/EadoEV/MainPageBackground.png") !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /*.hero__content {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}*/

    .hero__content {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
        align-items: center;
        gap: 40px;
        width: min(1300px, 100%);
        padding: 40px 10px;
        width: 100%;
    }

    .hero__text {
        width: 40%;
        padding-left: 0px;
        margin-top: -1 55px;
    }


        .hero__text h1 {
            font-size: 48px;
            font-weight: 600;
            margin-bottom: 15px;
        }
    /* Slide from right */
    .hero__text {
        opacity: 1;
        transform: translateX(80px);
        transition: 1s ease-out;
    }

        .hero__text.show {
            opacity: 1;
            transform: translateX(0);
        }


        /* Slide from left when scrolling */
        .hero__text.scroll-anim {
            opacity: 0;
            transform: translateX(-60px);
        }

            .hero__text.scroll-anim.active {
                opacity: 1;
                transform: translateX(0);
            }

    .hero__tabs {
        font-size: 31px;
        font-weight: 500;
        letter-spacing: 2px;
        margin-bottom: 35px;
        width: 172%;
        margin: 0 0 0.7rem 17rem;
    }

    .hero-hr {
        height: 1.8px;
        background: #0000007d;
        border: #0000007d;
        width: 12rem;
        margin: 3.2rem 0 2.5rem -0.2rem;
    }


    .hero__tabs span {
        cursor: pointer;
        margin-right: 20px;
    }

    .hero__tabs .active {
        color: #000;
    }

    .hero__tabs .inactive {
        color: #aaa;
    }

    .hero__spec-list {
        display: flex;
        gap: 11px;
        margin-top: -1rem;
        transition: opacity .35s ease, transform .35s ease;
        width: 100%;
    }

    .hero-col {
        flex-direction: column;
    }

    .hero__spec-main strong {
        font-size: 34px;
        display: block;
        color: #aaaaaa;
    }

    /*.hero__car img {
    width: 780px;
    transition: 0.4s ease;
    opacity: 1;
}*/

    .hero__car img {
        width: 136%;
        will-change: transform;
        margin: 0 0 0 -17rem;
        transition: 0.4s ease;
        opacity: 1;
        max-width: 200%;
    }
    /* ================= Hero Specs Slide ================= */

    #hero .hero__spec-list {
        position: relative;
        transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .3s ease;
    }

    #hero .slide-out-left {
        transform: translateX(-60px);
        opacity: 0;
    }

    #hero .slide-out-right {
        transform: translateX(60px);
        opacity: 0;
    }

    #hero .slide-in-left {
        transform: translateX(-60px);
        opacity: 0;
    }

    #hero .slide-in-right {
        transform: translateX(60px);
        opacity: 0;
    }

    #hero .slide-active {
        transform: translateX(0);
        opacity: 1;
    }



    /* ================================
           Simple image panels (other sections)
        ================================ */
    .panel-center img {
        /*width: min(1200px, 100%);*/
        width: 100%;
        margin-inline: auto;
    }

    .section--colors {
        background-image: url(../../Changan/Images/EadoEV/CarColorsBackground.png) !important;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

        .section--colors img {
            width: min(70%, 100%);
            /*width: 100%;*/
            margin-inline: auto;
        }


    /* COLOR SELECTOR */

    .colors-container {
        position: absolute;
        left: 60px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 18px;
        z-index: 5;
    }

    .color-option {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        border: 2px solid #666;
        cursor: pointer;
        transition: 0.25s;
        background-size: cover;
        background-position: center;
    }

        .color-option.active {
            border-color: #000;
            transform: scale(1.15);
        }

    .pos {
        position: relative
    }

    /* ================================
           CONFIGURATOR
        ================================ */
    .configurator {
        position: absolute;
        left: 30px;
        top: 30px;
        width: 180px;
        padding: 16px;
        z-index: 20;
        backdrop-filter: blur(6px);
        background: rgba(243,243,243,0.92);
        box-shadow: 0 12px 30px rgba(0,0,0,.15);
        border-radius: 7px;
    }
    /*@media (max-width: 768px) {
    .configurator {
        
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }
}*/

    /* HEADER */
    .config-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 18px;
        cursor: pointer;
    }

        .config-header button {
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
        }

    /* SECTION */
    .config-section {
        margin-bottom: 18px;
    }




    .config-content {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .25s ease, transform .35s ease;
    }

    /* عند الفتح */
    .config-section.active .config-content {
        opacity: 1;
        transform: translateY(0);
    }


    .config-section.active .toggle {
        transform: rotate(45deg);
    }

    /* COLORS */
    .color-grid {
        display: grid;
        grid-template-columns: repeat(3, 0fr);
        gap: 3px;
    }

    .color-swatch {
        width: 45px;
        height: 45px;
        border: 1px solid #00000000;
        cursor: pointer;
    }

        .color-swatch.active {
            border: 1px solid #000;
        }

    /* LABEL */
    .color-label {
        margin-top: 8px;
        font-weight: bold;
    }

    /* WHEELS */
    .config-content.wheels {
        display: flex;
        gap: 10px;
    }

    .wheel-option {
        width: 55px;
        cursor: pointer;
        opacity: .5;
    }

        .wheel-option.active {
            opacity: 1;
            border: 2px solid #000;
        }

    /* CAR IMAGE */
    .car-preview {
        width: 100%;
        margin-top: 20px;
    }

    /* ANIMATION */
    @keyframes fadeSlide {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    /* IMAGE SLIDE ANIMATION */
    #carColorImg {
        width: 100%;
        transition: transform 0.6s ease, opacity 0.6s ease;
        MARGIN: 0;
    }
    /* ================================
           Rear images
        ================================ */
    .section--rear {
    }

        .section--rear img {
            width: 100%;
            margin-top: 32rem;
        }


    /* ================================
           Topview images
        ================================ */


    .section--topview {
        position: relative;
        height: 100vh;
        overflow: hidden;
    }

    .topview-inner {
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #topViewDesktop {
        width: 100%;
        transform: translateX(-60vw); /* تبدأ السيارة خارج الشاشة من اليسار */
        will-change: transform;
        display: block;
    }

    #topViewBase,
    #topViewRoof {
        display: none;
    }
    /* ================================
           Panoramic grid images
        ================================ */


    .section--Panoramic img {
        width: 100%;
        /*margin-top: -38rem;*/
        transform: translate(0px, -72px);
    }




    /* ================================
           Interior with three images
        ================================ */
    /* سكشن كامل */
    .interior-section {
        width: 100%;
        background: #cdcbce; /* نفس الخلفية الموجودة بالصورة */
        padding: 0;
        margin: 0;
        position: relative;
        margin-top: 4rem;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .interior-photo-wrap {
        position: relative;
        width: 100%;
    }
        /* الصورة كاملة */
        .interior-photo-wrap img {
            width: 100%;
            display: block;
            opacity: 1;
            /*transition: opacity .5s ease, transform .5s ease;*/
            inset: 0;
            object-fit: cover;
        }

    /* الصورة المتحركة */
    .interiorOverlay {
        z-index: 2;
        opacity: 0;
        pointer-events: none;
        position: absolute;
    }

    /* الحركة */
    /*.fade-out {
    opacity: 0;
    transform: translateX(0px);
}

.fade-in {
    opacity: 1;
    transform: translateX(0);
}*/

    /* خيارات — تحت الصورة — يمين */
    .interior-options {
        width: 100%;
        padding: 15px 5%;
        text-align: right;
        background: #cdcbce;
    }

    .opt {
        font-size: 18px;
        margin-left: 20px;
        cursor: pointer;
        color: #999;
        letter-spacing: 1px;
        transition: .3s;
    }

        .opt.active {
            color: #000;
            font-weight: bold;
            border-bottom: 2px solid #000;
            padding-bottom: 3px;
        }



    /* ================================
           Interior Details with three images
        ================================ */
    .details-section {
        background: #cdcbce; /* نفس لون الخلفية بالصورة */
        padding: 60px 0;
    }

    .details-grid {
        max-width: 1200px;
        margin: auto;
        display: flex;
        justify-content: space-between;
        gap: 25px;
    }

    .detail-img {
        width: 32%;
        border-radius: 4px;
        opacity: 0;
        transform: translateY(40px);
        transition: 0.8s ease;
    }
    /* ================================
           Interior Details with three images
        ================================ */
    .section--extra {
        min-height: 95vh;
        overflow: hidden;
    }
    /* ================================
           Learn more section (new)
        ================================ */
    .learn-section {
        background: #000;
        color: #fff;
        padding: 80px 40px;
        text-align: center;
    }

    .learn-title {
        font-size: 38px;
        font-weight: 300;
        margin-bottom: 50px;
        opacity: .85;
        text-align: left;
        margin-left: 5rem;
    }

    .learn-boxes {
        display: flex;
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
        margin-bottom: 50px;
        transition: opacity .35s ease, transform .35s ease;
    }

    .hero__spec-list.hidden {
        opacity: 0;
        transform: translateY(20px);
    }

    .hero-specs-reev {
        display: none;
    }

    .learn-box {
        background: #8f8f8f;
        width: 340px;
        padding: 30px;
        text-align: left;
    }

        .learn-box h3 {
            font-size: 22px;
            font-weight: 500;
            margin-bottom: 10px;
            color: black;
        }

        .learn-box .value {
            font-size: 46px;
            font-weight: 600;
            margin-bottom: 18px;
            color: #212121b8;
        }

        .learn-box .sub {
            font-size: 17px;
            opacity: .9;
            color: black;
        }

        .learn-box .dim {
            font-size: 20px;
            opacity: .7;
            margin-top: 4px;
            color: #212121b8;
        }

    .learn-buttons {
        display: flex;
        justify-content: center;
        gap: 40px;
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .learn-btn {
        background: #8f8f8f;
        color: #000;
        padding: 16px 40px;
        text-decoration: none;
        font-size: 20px;
        border-radius: 3px;
        transition: 0.2s ease;
        width: 1000px;
    }

    .section--extra {
        min-height: auto;
        overflow: hidden;
        margin: 34px;
    }

    .learn-btn:hover {
        background: #b5b5b5;
    }

    /* ================================
           Contact footer (new)
        ================================ */
    .contact-footer {
        background: #fff;
        padding: 40px 50px;
        border-top: 1px solid #000;
    }

    .contact-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1300px;
        margin: auto;
    }

    .contact-left {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 18px;
        color: #000;
    }

    .contact-sep {
        font-weight: 400;
    }

    .contact-right {
        display: flex;
        align-items: center;
        gap: 18px;
    }

        .contact-right a img {
            width: 46px;
            height: 46px;
            object-fit: contain;
            /* border: 2px solid #000; */
            padding: 5px;
            border-radius: 5px;
            transition: 0.25s;
        }

            .contact-right a img:hover {
                background: #000;
                filter: invert(100%);
                transform: scale(1.05);
            }

    /* ================================
           Optional bottom footer (copyright)
        ================================ */
    .bottom-footer {
        background: #111;
        color: #aaa;
        text-align: center;
        padding: 18px 0;
        font-size: 14px;
    }

    /* ================================
           Animation pre-state
        ================================ */
    .anim {
        opacity: 0;
        transform: translateY(40px);
    }


    /* =========================
   3D CAR SECTION
========================= */
    /* =========================
   PERFORMANCE SECTION
========================= */


    #performance {
        position: relative;
        min-height: 100vh;
        overflow: hidden;
    }

        /* IMAGE + 3D share same space */
        #performance .section__inner {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
        }




    /* Image view */
    .section__inner--image {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }

    /* 3D view */


    .section--3d {
        min-height: 100vh;
        background: #cdcbce; /* نفس خلفية الموقع */
        padding: 0;
    }

    .section__inner--3d {
        position: relative;
        width: 100%;
        height: 100vh;
        overflow: hidden;
        z-index: 100;
    }

    /* Canvas */
    #car3d {
        width: 100%;
        height: 100%;
        display: block;
        cursor: ew-resize;
    }

    /* Title فوق الـ 3D */
    .car3d-title {
        position: absolute;
        top: 40px;
        left: 60px;
        font-size: 42px;
        font-weight: 300;
        z-index: 3;
    }


    /* =========================
   VIEW TOGGLE BUTTONS
========================= */

    /* Buttons */
    .view-toggle {
        position: absolute;
        right: 40px;
        bottom: 40px;
        z-index: 105;
        display: flex;
        gap: 12px;
    }

    .toggle-btn {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        border: 1px solid #000;
        background: #fff;
        cursor: pointer;
    }

        .toggle-btn.hidden {
            display: none;
        }

        .toggle-btn:hover {
            background: #000;
            color: #fff;
        }

        .toggle-btn.active {
            display: none; /* نخفي الزر النشط */
        }


    .section__inner,
    .section__inner--3d {
        transition: opacity 0.4s ease;
    }




        .section__inner--3d:hover #car3d {
            cursor: url('../images/arrows.png') 16 16, ew-resize;
        }


    /* =====================
   VIDEO SECTION
===================== */

    .video-wrap {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
        max-height: 100vh;
    }

    .video-bg,
    .video-poster {
        width: 100%;
        height: auto;
        display: block;
    }

    .video-bg {
        width: 100%;
        height: 100%;
        max-width: 100vw; /* لا يتجاوز العرض */
        max-height: 100vh; /* لا يتجاوز الارتفاع */
        object-fit: cover; /* يلتزم بحجم السكشن */
        display: block;
        opacity: 1;
    }

        .video-bg.ready {
            opacity: 1;
        }


    .video-poster.hide {
        opacity: 0;
    }

    /* زر التشغيل */
    .video-control {
        position: absolute;
        right: clamp(16px, 4vw, 32px);
        bottom: clamp(16px, 5vw, 75px);
        width: 56px;
        height: 56px;
        border-radius: 50%;
        border: none;
        background: rgba(0,0,0,0.55);
        color: #fff;
        font-size: 18px;
        cursor: pointer;
        backdrop-filter: blur(8px);
        z-index: 10;
        transition: .25s ease;
    }

        .video-control:hover {
            background: rgba(0,0,0,0.85);
            transform: scale(1.05);
        }

        .video-control.hidden {
            opacity: 0;
            pointer-events: none;
        }


    /* progress */
    .video-progress {
        position: absolute;
        right: clamp(16px, 4vw, 32px);
        bottom: clamp(16px, 5vw, 75px);
        width: 56px;
        height: 56px;
        pointer-events: none;
        z-index: 9;
    }

        .video-progress svg {
            width: 100%;
            height: 100%;
            transform: rotate(-90deg);
        }

    .progress-bg {
        fill: none;
        stroke: rgba(255,255,255,0.2);
        stroke-width: 3;
    }

    .progress-bar {
        fill: none;
        stroke: #fff;
        stroke-width: 3;
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        transition: stroke-dashoffset .2s linear;
    }


    /* =============================
   EXTERIOR SWIPER
============================= */

    .exterior-slider {
        background: #cdcbce;
    }

    .slider-wrap {
        width: 100%;
        height: 100%;
        position: relative;
    }

    /* Swiper نفسه */
    .exteriorSwiper {
        width: 100%;
        height: 100%;
    }

        /* كل شريحة */
        .exteriorSwiper .swiper-slide {
            width: 100% !important;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            /* الصورة */
            .exteriorSwiper .swiper-slide img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        /* أزرار التنقل – فخمة وبسيطة */
        .exteriorSwiper .swiper-button-next, .exteriorSwiper .swiper-button-prev {
            color: #ffffff;
            width: 44px;
            height: 44px;
            background: rgb(0 0 0 / 15%);
            border-radius: 50%;
            backdrop-filter: blur(61px);
            transition: .25s ease;
            padding: 0;
        }

            .exteriorSwiper .swiper-button-next:hover,
            .exteriorSwiper .swiper-button-prev:hover {
                /*background: rgba(255,255,255,0.9);*/
                backdrop-filter: blur(17px);
                transform: scale(1.05);
            }

    .swiper-button-next:after, .swiper-button-prev:after {
        font-family: swiper-icons;
        font-size: var(--swiper-navigation-size);
        text-transform: none !important;
        letter-spacing: 0;
        font-variant: initial;
        line-height: 1;
        font-size: 15px !important;
    }



    .learn-boxes.hidden {
        opacity: 0;
        transform: translateY(20px);
    }




    .main-menu.show {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        background: #fff;
        padding: 20px;
        gap: 20px;
        width: 220px;
        box-shadow: 0 4px 20px #0001;
    }

    .center-text p {
        position: relative;
        /* margin: -22rem 0 0 0; */
        padding: 0 11px;
        top: -28rem;
        left: -4rem;
        max-width: 41rem;
        font-size: 2.2rem;
        line-height: 1.6;
        text-align: left;
        width: 800px;
    }

    .left-text-absolute {
        position: absolute;
        top: -15rem;
        left: 8.5%;
        max-width: 50rem;
        font-size: 2.2rem;
        line-height: 1.6;
    }

    .left-text {
        position: absolute;
        top: 2rem;
        left: 8.5%;
        max-width: 50rem;
        font-size: 2.2rem;
        line-height: 1.6;
    }

    .interior-text p {
        font-size: 2.2rem;
        line-height: 1.6;
        max-width: 50rem;
        margin: 0 0 0 5.5rem;
        top: -5rem;
        position: absolute;
    }

    .interior-block {
        margin: 12rem 0 0 0;
    }
}
