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

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', 'Almarai', Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #FFFFFF;
    direction: rtl;
}


h1, .section-title, .page-title {
    font-weight: 700;
}

.hero-text h1 {
    font-weight: 800;
}

h2, h3, h4 {
    font-weight: 600;
}

h5, h6, .nav-link, .logo, .cta-button, .btn, .form-group label {
    font-weight: 500;
}


:root {
    --primary-blue: #0055FF;
    --dark-blue: #0A3D62;
    --light-blue: #1B73E8;
    --white: #FFFFFF;
    --black: #000000;
    --shadow: rgba(0, 85, 255, 0.1);
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    right: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: var(--primary-blue);
    border-radius: 1px;
}


.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    left: 0;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--black);
    margin: 3px 0;
    transition: 0.3s;
}


main {
    margin-top: 80px;
    padding-bottom: 4rem; 
}


.hero-section-3d {
    height: 800px;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background-color: #000;
    border-radius: 20px;
}

.slider-3d-container {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1500px;
}

.slider-3d-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.slide-3d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 1s cubic-bezier(0.645, 0.045, 0.355, 1);
    transform: translateZ(-200px) rotateX(0deg);
    z-index: 1;
}

.slide-3d.active {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) rotateX(0deg);
    z-index: 10;
}

.slide-3d.prev {
    transform: translateX(100%) translateZ(-200px) rotateY(-45deg);
    opacity: 0;
    visibility: visible;
}

.slide-3d.next {
    transform: translateX(-100%) translateZ(-200px) rotateY(45deg);
    opacity: 0;
    visibility: visible;
}


.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 600px;
    padding-top: 80px; 
}

.slide-content h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.slide-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 500px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slide-content .cta-button {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.7s;
}


.slide-3d.active .slide-content h1,
.slide-3d.active .slide-content p,
.slide-3d.active .slide-content .cta-button {
    transform: translateY(0);
    opacity: 1;
}


.slider-controls {
    position: absolute;
    bottom: 50px;
    left: 100px; 
    z-index: 20;
    display: flex;
    gap: 1rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}


.slider-pagination {
    display: none;
}

.slider-dot-3d {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dot-3d::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.slider-dot-3d.active {
    background-color: var(--primary-blue);
    transform: scale(1.2);
}

.slider-dot-3d.active::before {
    border-color: var(--primary-blue);
}


@media (max-width: 768px) {
    .hero-section-3d {
        height: 70vh;
    }
    
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .slider-controls {
        left: 50%;
        transform: translateX(-50%);
        bottom: 30px;
    }
    
    .slider-pagination {
        display: none;
    }
}



.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 3rem;
    position: relative;
}



.partners-slider {
    padding: 2rem 0;
}

.partners-slider .swiper-wrapper {
    transition-timing-function: linear !important;
}

.partners-slider .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners-slider img {
    max-width: 200px;
    height: auto;
    transition: all 0.3s ease;
}

.partners-slider img:hover {
    transform: scale(1.1);
}


.calculator-section {
    background: linear-gradient(to bottom, #e0f0ff, #ffffff);
    padding: 4rem 0;
}

.calculator-form-new {
    background-color: var(--white);
    padding: 1.2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 85, 255, 0.12);
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.form-group-new {
    display: flex;
    flex-direction: column;
}

.form-group-new label {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.3rem;
}

.form-group-new .required {
    color: var(--primary-blue);
}

.form-group-new input,
.form-group-new select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-group-new input:focus,
.form-group-new select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}

.car-status-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-blue);
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + label {
    border-color: var(--primary-blue);
    background-color: #f0f8ff;
    color: var(--dark-blue);
}

.radio-option input[type="radio"]:checked + label .radio-circle {
    border-color: var(--primary-blue);
}

.radio-option input[type="radio"]:checked + label .radio-circle::after {
    transform: translate(-50%, -50%) scale(1);
}

.slider-group {
    margin-bottom: 1.2rem;
}

.slider-container {
    position: relative;
    padding-top: 45px;
}

.slider-output {
    position: absolute;
    top: 0;
    transform: translateX(50%);
    background-color: #0A3D62;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.slider-output::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #0A3D62 transparent transparent transparent;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #777;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 5px;
    outline: none;
    position: relative;
    border: none; 
    padding: 0; 
}

input[type="range"]::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 6px;
    background-color: #0A3D62;
    width: var(--value, 0%);
    border-radius: 5px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #0A3D62;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    position: relative; 
    z-index: 2; 
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #0A3D62;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.results-new {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1.2rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item span:first-child {
    color: #555;
}

.result-item span:last-child {
    font-weight: bold;
    color: var(--dark-blue);
}

.submit-btn-new {
    width: 100%;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 0.7rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn-new:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.2);
}

.installment-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1.5rem;
}

.installment-modal.active {
    display: flex;
}

.installment-modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.installment-modal-content h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.installment-modal-subtitle {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #555;
}

.installment-modal .form-group input {
    background-color: #f8f9fa;
}

.installment-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.disclaimer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f0f4f8;
    padding: 0.7rem;
    border-radius: 8px;
    margin-top: 1.2rem;
    font-size: 0.75rem;
    color: #555;
}

.disclaimer i {
    color: var(--primary-blue);
}


.showrooms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.showroom-card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.showroom-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 85, 255, 0.15);
}

.showroom-image-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #f8f9fa;
}

.showroom-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.showroom-card:hover .showroom-image-container img {
    transform: scale(1.1);
}

.showroom-name {
    font-size: 1.1rem;
    color: var(--dark-blue);
    font-weight: 600;
    padding: 1rem;
    background-color: var(--white);
}


.financing-banner-new .container {
    max-width: 1400px;
}

.banner-content-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(to left, #eaf5ff, #f9fcff);
    border-radius: 25px;
    padding: 2rem;
}

.banner-text-new h2 {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    color: #333;
    font-size: 1rem;
}

.features-list i {
    color: var(--primary-blue);
}

.cta-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


.financing-banner-new .cta-button {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.financing-banner-new .cta-button:hover {
    background-color: var(--dark-blue);
}

/* قسم إعلانات مميزة */
.featured-ads-section {
    background-color: #f8f9fa;
}

.section-header.centered {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header.centered .section-title {
    margin-bottom: 0.5rem;
}


.slider-nav-container {
    position: absolute;
    width: 100%;
    max-width: 1300px; 
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    height: 0;
}

.slider-nav.outside {
    position: relative;
    top: -20px; 
}

.slider-nav.outside button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-nav.outside button:hover {
    background-color: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

.slider-nav.outside .featured-prev {
    right: 0;
}

.slider-nav.outside .featured-next {
    left: 0;
}

.featured-cars-slider .swiper-slide {
    padding: 0.5rem;
}

.view-all-btn-container {
    text-align: center;
    margin-top: 2rem;
}


.sell-car-section .container {
    max-width: 1400px;
}
.sell-car-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: linear-gradient(to left, #eaf5ff, #f9fcff);
    border-radius: 20px;
    overflow: hidden;
    color: var(--dark-blue);
}

.sell-banner-text {
    padding: 2rem;
}

.sell-banner-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.sell-banner-text ul {
    list-style: none;
    margin-bottom: 2rem;
}

.sell-banner-text ul li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.sell-banner-text .btn-light {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: bold;
}

.sell-banner-image {
    height: 100%;
}

.sell-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-image-new img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
}


.insurance-page-container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 80px); 
}

.why-insure-side {
    flex: 1;
    padding: 3rem;
    background: url('../img/ins.jpg') no-repeat center center/cover;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.why-insure-side > * {
    position: relative;
    z-index: 2;
}

.why-insure-side .section-title {
    color: #fff;
}

.insurance-form-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-insure-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.why-insure-item-v3 {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    text-align: right;
    transform: skew(-15deg);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.why-insure-item-v3:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: skew(-15deg) scale(1.05);
}

.why-insure-item-v3 h4, .why-insure-item-v3 p {
    transform: skew(15deg);
}

.why-insure-item-v3 h4 {
    color: #fff;
    font-weight: bold;
}


.insurance-form-side .finance-form-container {
    width: 100%;
    box-shadow: none;
}


.testimonials-section-v2 {
    overflow: hidden;
    padding: 4rem 0;
}

.testimonials-slider-v2 .swiper-slide {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
    transform: scale(0.7);
    opacity: 0.5;
}

.testimonials-slider-v2 .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
}

.testimonial-card-v2 {
    background-color: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.testimonials-slider-v2 .swiper-slide-active .testimonial-card-v2 {
    background-color: var(--dark-blue);
    color: #fff;
}

.testimonial-text-v2 {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.customer-name-v2 {
    font-weight: bold;
    font-size: 1.2rem;
}

.swiper-nav-v2 {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.swiper-nav-v2 button {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-nav-v2 button:hover {
    background-color: var(--primary-blue);
    color: #fff;
}


.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background-color: var(--light-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}


@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .logo-img {
        height: 40px;
        max-width: 150px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .calculator-form {
        padding: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .partners-grid,
    .showrooms-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}


.page-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 6rem 0 4rem;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-section {
    padding: 4rem 0;
}

.card {
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

.btn {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}


.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

.comparison-table tr:hover {
    background-color: rgba(0, 85, 255, 0.05);
}


.filter-section-new {
    background-color: #f8f9fa;
    padding: 2rem 0;
}

.filters-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: center;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.search-btn {
    width: 100%;
    background-color: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: var(--primary-blue);
}

.clear-btn {
    background-color: #6c757d;
}

.clear-btn:hover {
    background-color: #5a6268;
}


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

.car-card-new {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.car-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.car-card-image {
    position: relative;
    height: 200px;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-card-views {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.car-card-body {
    padding: 1rem;
    text-align: right;
}

.car-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin: 0;
}

.car-card-subtitle {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.car-card-details {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.car-card-condition {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: #fff;
}

.car-card-condition.new {
    background-color: var(--primary-blue);
}

.car-card-condition.used {
    background-color: #28a745;
}

.car-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.car-card-timestamp {
    color: #999;
    font-size: 0.8rem;
}

.car-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2rem;
    align-items: flex-start;
}

.car-details-gallery {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem;
}

.car-details-main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.car-details-main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.car-details-thumbs {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.car-details-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
}

.car-details-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-details-thumb.active {
    border-color: var(--primary-blue);
}

.car-details-info {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
}

.car-details-title {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.car-details-subtitle {
    color: #777;
    margin-bottom: 1.5rem;
}

.car-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.car-details-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.car-details-list li span:first-child {
    color: #555;
}

.car-details-list li span:last-child {
    font-weight: 600;
    color: var(--dark-blue);
}

.car-details-price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.car-details-meta {
    font-size: 0.85rem;
    color: #999;
}

/* صفحة تفاصيل السيارة - تصميم محسّن */
.car-details-page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.car-hero-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.car-hero-year {
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background-color: #eef3ff;
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.car-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.car-condition-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.car-condition-pill.new {
    background-color: var(--primary-blue);
}

.car-condition-pill.used {
    background-color: #28a745;
}

.car-mileage-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background-color: #f1f3f5;
    color: #555;
}

.car-hero-price-block {
    margin-bottom: 1.25rem;
}

.car-hero-price-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.car-hero-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin: 0;
}

.car-hero-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.car-hero-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid #eee;
}

.car-hero-summary-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.car-hero-summary-list li span:first-child {
    color: #666;
}

.car-hero-summary-list li span:last-child {
    font-weight: 600;
    color: var(--dark-blue);
}

.car-specs-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 1.75rem 1.5rem;
}

.car-specs-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--dark-blue);
}

.car-specs-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.car-specs-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.car-specs-label {
    color: #666;
}

.car-specs-value {
    font-weight: 600;
    color: var(--dark-blue);
}

@media (max-width: 768px) {
    .car-details-layout {
        grid-template-columns: 1fr;
    }
}

/* كارت التمويل في صفحة تفاصيل السيارة */
.car-finance-card {
    background: linear-gradient(135deg, #e9f4ff 0%, #ffffff 60%);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.car-finance-subtitle {
    margin: 0.25rem 0 0;
    color: #555;
}

.car-finance-sliders {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.car-finance-slider-group {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.car-finance-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.car-finance-slider-value {
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    background-color: #006994;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.car-finance-slider-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #dde3f0;
    outline: none;
}

.car-finance-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #006994;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.car-finance-slider-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #006994;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.car-finance-slider-foot {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.4rem;
}

.car-finance-summary {
    background-color: #fff;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.car-finance-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.car-finance-summary-row span:last-child {
    font-weight: 700;
    color: var(--dark-blue);
}

.car-finance-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn-finance-primary,
.btn-finance-secondary {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-finance-primary {
    background-color: #006994;
    color: #fff;
}

.btn-finance-primary:hover {
    background-color: #00507a;
}

.btn-finance-secondary {
    background-color: #ffffff;
    color: #006994;
    border: 1px solid #006994;
}

.btn-finance-secondary:hover {
    background-color: #eef6ff;
}

.car-details-main-wrapper {
    position: relative;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-arrow.prev { right: 10px; }
.gallery-arrow.next { left: 10px; }

.gallery-arrow i {
    color: #333;
}

/* نافذة طلب الاتصال */
.car-contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.car-contact-modal.active {
    display: flex;
}

.car-contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.car-contact-dialog {
    position: relative;
    background: #fff;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.car-contact-close {
    position: absolute;
    top: 10px;
    left: 10px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
}

.car-contact-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.car-contact-text {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

.btn-modal-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: none;
    background-color: #006994;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-modal-submit:hover {
    background-color: #00507a;
}


.upload-area {
    border: 2px dashed var(--primary-blue);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    background-color: rgba(0, 85, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: rgba(0, 85, 255, 0.1);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}


.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}


.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


@media print {
    .navbar,
    .footer,
    .cta-button,
    .btn {
        display: none !important;
    }
    
    body {
        color: var(--black) !important;
        background: var(--white) !important;
    }
}


.finance-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.finance-form-container {
    flex: 1;
    padding: 2rem;
    animation: form-fade-in 0.8s ease-in-out;
}

@keyframes form-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.finance-header h2 {
    font-size: 1.8rem;
    color: #0A3D62;
    margin-bottom: 0.5rem;
}

.finance-header p {
    color: #555;
    margin-bottom: 2rem;
}

.finance-form .form-title {
    font-weight: bold;
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.floating-label {
    position: relative;
}

.form-group.floating-label label {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background-color: #f8f9fa;
    padding: 0 0.25rem;
    color: #555;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label select:focus + label,
.form-group.floating-label select:valid + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-blue);
}


.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 85, 255, 0.1);
}


.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: #0A3D62;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 85, 255, 0.2);
}

.finance-image-container {
    flex: 1;
    position: relative;
}

.finance-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.image-overlay h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.feature h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .finance-container {
        flex-direction: column;
    }

    .banner-content-new {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }

    .banner-image-new {
        max-width: 420px;
        margin: 0 auto;
    }

    .sell-car-banner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sell-banner-text {
        padding: 1.5rem;
    }

    .insurance-page-container {
        flex-direction: column;
        min-height: auto;
    }

    .why-insure-side,
    .insurance-form-side {
        padding: 2rem 1.5rem;
    }
}
