/* الأنماط الرئيسية للموقع */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-small: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-medium: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --shadow-large: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    --border-radius: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    line-height: 1.6;
    color: #444;
    overflow-x: hidden;
}

/* أنماط عامة */
.section-title {
    position: relative;
    margin-bottom: 35px;
    font-weight: 700;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.container {
    max-width: 1200px;
    padding: 0 20px;
}

.btn {
    border-radius: 50px;
    padding: 12px 28px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: 0;
}

.btn:hover:before {
    width: 100%;
    right: auto;
    left: 0;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #2a8eff);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 22px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 6px 22px rgba(13, 110, 253, 0.3);
    transform: translateY(-2px);
}

.img-hover-zoom {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

.img-hover-zoom:hover img {
    transform: scale(1.08);
}

/* أنماط الهيدر */
.navbar-brand img {
    max-height: 50px;
}

.navbar {
    box-shadow: var(--shadow-small);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-medium);
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
    font-weight: 600;
    position: relative;
    padding: 8px 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.navbar-dark .navbar-nav .nav-link:before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover:before,
.navbar-dark .navbar-nav .nav-link.active:before {
    width: calc(100% - 30px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.05);
    border-radius: 5px;
}

/* أنماط القسم الرئيسي */
.hero-section {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--light-color) 50%, #e9effd 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.1);
    top: -150px;
    left: -150px;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.05);
    bottom: -100px;
    right: -100px;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), #2f76d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.hero-buttons {
    margin-top: 30px;
    display: flex;
}

.hero-buttons .btn {
    padding: 12px 30px;
    margin-left: 15px;
    display: inline-flex;
    align-items: center;
}

.hero-buttons .btn i {
    margin-left: 8px;
}

/* أنماط بطاقات السيارات */
.featured-cars {
    padding: 80px 0;
}

.car-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 30px;
    background-color: white;
    box-shadow: var(--shadow-small);
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.car-image {
    height: 220px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.08);
}

.car-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.car-details {
    padding: 20px;
}

.car-title {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.car-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.car-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.car-features .feature {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.car-features .feature i {
    margin-left: 5px;
    color: var(--primary-color);
}

/* أنماط الخدمات */
.services {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #f1f6ff 100%);
    position: relative;
    overflow: hidden;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    height: 100%;
    transition: var(--transition);
    padding: 30px 20px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(45deg, var(--primary-color), #2a8eff);
    transition: var(--transition);
    opacity: 0.9;
    z-index: -1;
}

.service-card:hover:before {
    height: 100%;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    transition: var(--transition);
}

.service-card:hover i,
.service-card:hover h3,
.service-card:hover p {
    color: white;
}

.why-us {
    padding: 80px 0;
}

.why-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    height: 100%;
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.why-card i {
    color: var(--success-color);
    margin-bottom: 15px;
    width: 70px;
    height: 70px;
    line-height: 70px;
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.why-card:hover i {
    background-color: var(--success-color);
    color: white;
}

.why-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* أنماط آراء العملاء */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-color) 0%, #f1f6ff 100%);
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-small);
    margin-bottom: 30px;
    transition: var(--transition);
    border-top: 3px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.client-rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text:before {
    content: '"';
    font-size: 50px;
    color: rgba(13, 110, 253, 0.1);
    position: absolute;
    top: -20px;
    right: -10px;
    font-family: serif;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 15px;
    border: 3px solid var(--light-color);
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-details h5 {
    margin-bottom: 0;
    font-weight: 600;
}

.client-details p {
    color: var(--secondary-color);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* نشرة الأخبار */
.newsletter {
    padding: 80px 0;
}

.newsletter-inner {
    background: linear-gradient(45deg, var(--primary-color), #2a8eff);
    color: white;
    border-radius: var(--border-radius);
    padding: 50px 30px;
    box-shadow: var(--shadow-medium);
}

.newsletter-inner h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.newsletter-inner p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter .input-group {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter .form-control {
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
}

.newsletter .btn {
    border-radius: 0 50px 50px 0;
    padding: 15px 30px;
    font-size: 1rem;
}

/* أنماط الفوتر */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 20px;
}

.footer-about {
    margin-bottom: 30px;
}

.footer-about img {
    margin-bottom: 20px;
    max-height: 50px;
}

.footer-links h4 {
    margin-bottom: 25px;
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(-5px);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-left: 10px;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 60px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* صفحة السيارات */
.page-header {
    background: linear-gradient(45deg, var(--primary-color), #2a8eff);
    color: white;
    padding: 100px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.1;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.breadcrumb {
    background: none;
    margin-bottom: 0;
    justify-content: center;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: white;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.filters-sidebar {
    padding: 25px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.filter-options .form-check {
    margin-bottom: 10px;
}

.price-range-slider {
    margin-top: 25px;
}

.filter-buttons {
    display: flex;
    margin-top: 20px;
}

.filter-buttons .btn {
    flex: 1;
    padding: 8px;
}

/* صفحة تفاصيل السيارة */
.car-details-section {
    padding: 80px 0;
}

.car-main-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-small);
}

.car-thumbnails {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.car-thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    border: 2px solid transparent;
}

.car-thumbnail.active {
    border-color: var(--primary-color);
}

.car-thumbnail:hover {
    transform: translateY(-5px);
}

.car-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info-box {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-small);
    height: 100%;
}

.car-info-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.car-title-large {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.car-price-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.car-spec-item {
    display: flex;
    align-items: center;
}

.car-spec-item i {
    margin-left: 10px;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
}

.car-description {
    margin-top: 30px;
}

.car-description h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.car-features-list {
    margin-top: 30px;
}

.car-features-list h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
}

.feature-item i {
    color: var(--success-color);
    margin-left: 10px;
}

/* صفحة الاتصال */
.contact-section {
    padding: 80px 0;
}

.contact-info-card {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    margin-bottom: 30px;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    margin-left: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-small);
}

.form-control {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #ddd;
    height: auto;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-group {
    margin-bottom: 20px;
}

.map-container {
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

/* صفحة من نحن */
.about-section {
    padding: 80px 0;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-content {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    height: 100%;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.team-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.team-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    margin-bottom: 30px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.team-image {
    height: 250px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.08);
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-info h4 {
    font-weight: 600;
    margin-bottom: 5px;
}

.team-info p {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--dark-color);
    border-radius: 50%;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* تأثيرات إضافية */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.bg-gradient-primary {
    background: linear-gradient(45deg, var(--primary-color), #2a8eff);
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), #2f76d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-pattern {
    position: relative;
}

.section-pattern:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.section-pattern .container {
    position: relative;
    z-index: 1;
}

/* التصميم المتجاوب */
@media (max-width: 1199px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 991px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 100px 0 80px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-section img {
        margin-top: 40px;
    }

    .car-specs,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .car-thumbnail {
        width: 80px;
        height: 60px;
    }

    .service-card,
    .why-card,
    .contact-info-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.6rem;
    }

    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        margin-bottom: 15px;
        margin-left: 0;
        width: 100%;
    }

    .car-title-large {
        font-size: 1.6rem;
    }

    .car-price-large {
        font-size: 1.5rem;
    }

    .car-specs {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-inner h3 {
        font-size: 1.5rem;
    }

    .newsletter-inner p {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 575px) {
    .section-title {
        font-size: 1.5rem;
    }

    .hero-section h1 {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 20px;
    }

    .newsletter .input-group {
        flex-direction: column;
    }

    .newsletter .form-control,
    .newsletter .btn {
        border-radius: 50px;
        width: 100%;
    }

    .newsletter .btn {
        margin-top: 10px;
    }
}

/* تأثيرات الحركة والانتقال */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.pulse-effect {
    animation: pulse 2s infinite;
}

/* إضافات لتحسين سهولة الاستخدام */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* زيادة إمكانية الوصول */
.form-control:focus,
.btn:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* تحسينات للطباعة */
@media print {
    header, 
    footer,
    .newsletter,
    .no-print {
        display: none !important;
    }

    body {
        background-color: white !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* أنماط قائمة المستخدم المنسدلة */
.dropdown-menu {
    min-width: 200px;
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.dropdown-item i {
    margin-left: 8px;
}

/* أنماط أزرار تسجيل الدخول والتسجيل */
.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* أنماط صفحات تسجيل الدخول والتسجيل */
.auth-form .card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.auth-form .card-body {
    padding: 40px;
}

.auth-form h2 {
    color: var(--dark-color);
    margin-bottom: 30px;
    font-weight: 700;
}

.auth-form .form-label {
    font-weight: 500;
}

.auth-form .form-control {
    padding: 12px;
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    margin-bottom: 5px;
}

.auth-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.auth-form .btn-lg {
    padding: 12px 30px;
}

.auth-form .form-text {
    font-size: 12px;
    color: #6c757d;
}

/* Brands Section - Slider Version */
/* =================================================================== */
/* Brands & Partners Section - DYNAMIC Seamless Loop Version (CORRECTED) */
/* =================================================================== */

.brands-section, .partners-section {
    padding: 60px 0;
}

.brands-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* Creates a fading effect on the sides */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This moves the slider exactly by half of its total width */
        transform: translateX(-50%);
    }
}

.brands-slider {
    /* These are our base variables */
    --item-width: 200px; /* The width of each logo item */
    --animation-speed: 50s; /* You can adjust the speed */

    /* Critical part: We use the --total-items variable passed from index.php */
    /* This calculates the total width needed for all logos (original + cloned) */
    width: calc(var(--item-width) * var(--total-items));
    
    /* Applying the animation */
    display: flex;
    flex-wrap: nowrap;
    animation: scroll var(--animation-speed) linear infinite;
}

/* Pause animation on hover */
.brands-slider:hover {
    animation-play-state: paused;
}

.brand-item {
    /* We force each item to have the exact width defined in the variable */
    flex-shrink: 0; 
    width: var(--item-width);
    padding: 15px 20px; /* Padding for spacing */
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item img {
    /* Constrain the image within its container */
    max-width: 100%;
    height: 70px; /* Fixed height for uniformity */
    object-fit: contain; /* Ensures the whole logo is visible without distortion */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
}

.brand-item a:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ======== أنماط قسم "لماذا تختارنا؟" ======== */
.why-us-section {
    background-color: #ffffff;
}

.why-us-card {
    background-color: #f8f9fa; /* لون خلفية فاتح */
    padding: 30px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
    border-bottom-color: var(--primary-color);
}

.why-us-card .icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}

.why-us-card:hover .icon-box {
    background-color: var(--primary-color);
    color: #fff;
}

.why-us-card h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

.why-us-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* ======== أنماط قسم "بع سيارتك" ======== */
.sell-car-cta {
    background: linear-gradient(45deg, var(--primary-color), #2a8eff);
    color: #fff;
}

.sell-car-cta .cta-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: var(--border-radius);
}

.sell-car-cta h3 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 10px;
}

.sell-car-cta p {
    opacity: 0.9;
    font-size: 1.1rem;
}

.sell-car-cta .btn-light {
    font-weight: 700;
    color: var(--primary-color);
    padding: 15px 35px;
    border-radius: 50px;
}

/* ======== أنماط قسم "الشركاء" ======== */
.partners-section {
    background-color: #ffffff;
}

/* ملاحظة: قسم الشركاء يستخدم نفس كلاسات شريط الماركات، لذلك لا يحتاج لتنسيقات خاصة به */