/* =============================================
   PORTAL VIEWS CSS - Home Page Styles
   ============================================= */

/* Base Variables */
:root {
    --primary-color: #f97316;
    --secondary-color: #1f2937;
    --accent-color: #3b82f6;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --text-color: #111827;
    --text-muted: #6b7280;
    --background-color: #ffffff;
    --background-secondary: #f3f4f6;
    --border-color: #e5e7eb;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    margin-top: 70px;
}

.container-sm {
    max-width: 896px;
}

/* Utility Classes */
.text-orange { color: var(--primary-color); }
.text-green { color: var(--success-color); }
.text-left { text-align: left; }

.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-orange {
    background-color: var(--primary-color);
    color: white;
}
.btn-orange:hover { background-color: #ea580c; }

.btn-green {
    background-color: var(--success-color);
    color: white;
}
.btn-green:hover { background-color: #16a34a; }

.btn-dark {
    background-color: #374151;
    color: white;
}
.btn-dark:hover { background-color: #4b5563; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg { padding: 1rem 2rem; }
.btn-block { width: 100%; }

.btn-search {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-search:hover { background-color: #ea580c; }
.btn-search i { font-size: 1.5rem; }

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-title-wrapper.justify-start {
    justify-content: flex-start;
}

.dot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
}
.dot-orange { background-color: var(--primary-color); }

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 42rem;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    position: relative;
    background-color: #000;
    color: white;
    padding: 2rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    opacity: 0.8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s;
}
.hero-section:hover .hero-background { opacity: 1; }

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, #6b7280, transparent);
}

.hero-content {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
}

.hero-text { text-align: justify; }

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-title { font-size: 3.75rem; }
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}

/* Hero Image */
.hero-image-container {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge {
    position: absolute;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-green {
    top: 1rem;
    right: 1rem;
    background-color: var(--success-color);
    color: white;
}

.price-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
}

.price-label {
    font-size: 0.75rem;
    margin: 0;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.hero-car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Search Form */
.search-form-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.search-form-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    transform: translateY(4rem);
    margin-top: -7px;
}

.search-form {
    background-color: #6b7280;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 1024px) {
    .search-form { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .search-form { grid-template-columns: 1fr; }
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
    appearance: none;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    ring: 2px solid var(--primary-color);
    border-color: var(--primary-color);
}

.form-group select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile Search Buttons */
.search-buttons-mobile {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.mobile-buttons-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    transform: translateY(2rem);
}

.mobile-buttons-container {
    background-color: #6b7280;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
}

.mobile-buttons-container .btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 1rem;
}

/* ============================================
   CATEGORIES SECTION - Matching React Design
   ============================================ */

.categories-section {
    padding: 5rem 0 2rem;
    background-color: #f9fafb; /* bg-gray-50 */
}

.categories-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.categories-section .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.categories-section .section-subtitle {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 42rem;
    margin: 0 auto;
}

/* Categories Grid - 6 columns on desktop */
.categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Category Card - White Style */
.category-card {
    background-color: #ffffff;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
}

.category-card-inner {
    padding: 1.5rem; /* p-6 */
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem; /* mb-4 */
}

.category-info h3 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    margin: 0;
    line-height: 1.4;
}

.category-info p {
    font-size: 0.875rem; /* text-sm */
    color: #6b7280; /* text-gray-500 */
    margin: 0.25rem 0 0 0;
}

/* Arrow Circle */
.category-arrow {
    width: 2rem; /* w-8 */
    height: 2rem; /* h-8 */
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 50%; /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.category-arrow i {
    font-size: 1.25rem;
    color: #4b5563; /* text-gray-600 */
    transition: color 0.3s ease;
}

/* Hover Effect - Arrow turns orange */
.category-card:hover .category-arrow {
    background-color: #f97316; /* bg-orange-500 */
}

.category-card:hover .category-arrow i {
    color: #ffffff; /* text-white */
}

/* Category Image */
.category-image {
    height: 8rem; /* h-32 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   DARK THEME CARD (Crossover)
   ============================================ */

.category-card.category-card-dark {
    background-color: #111827; /* bg-gray-900 */
}

.category-card.category-card-dark .category-info h3 {
    color: #ffffff; /* text-white */
}

.category-card.category-card-dark .category-info p {
    color: #d1d5db; /* text-gray-300 */
}

/* Dark card arrow - always orange */
.category-card.category-card-dark .category-arrow,
.category-card.category-card-dark .category-arrow.active {
    background-color: #f97316; /* bg-orange-500 */
}

.category-card.category-card-dark .category-arrow i {
    color: #ffffff; /* text-white */
}

.category-card.category-card-dark:hover .category-arrow {
    background-color: #ea580c; /* bg-orange-600 on hover */
}

/* ============================================
   SECTION CTA BUTTON
   ============================================ */

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #f97316;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-orange:hover {
    background-color: #c2410c; /* darker orange */
}

.btn-orange i {
    font-size: 1.25rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}


/* =============================================
   FEATURED VEHICLES SECTION
   ============================================= */
.featured-section {
    padding: 2rem 0;
    background-color: var(--background-secondary);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .vehicles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .vehicles-grid { grid-template-columns: 1fr; }
}

.vehicle-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.vehicle-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.vehicle-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

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

.vehicle-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-info {
    padding: 1.5rem;
}

.vehicle-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.vehicle-specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vehicle-specs i {
    color: var(--primary-color);
}

.vehicle-price {
    margin-bottom: 1rem;
}

.vehicle-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-section {
    padding: 2rem 0;
    background-color: var(--background-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   HOW IT WORKS SECTION - Matching React Design
   ============================================ */

.how-it-works-section {
    padding: 2rem 0;
    background-color: var(--background-color, #ffffff);
}

/* Grid Layout - 2 columns on desktop */
.how-it-works-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Left Content */
.how-it-works-content {
    /* Content wrapper */
}

/* Section Header - Left Aligned */
.section-header-left {
    text-align: left;
    margin-bottom: 2rem;
}

/* Title with Dots */
.title-with-dots {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.title-with-dots .dot {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    border-radius: 50%;
    flex-shrink: 0;
}

.title-with-dots .dot:first-child {
    margin-right: 0.5rem; /* mr-2 */
}

.title-with-dots .dot:last-child {
    margin-left: 0.5rem; /* ml-2 */
}

.dot-orange {
    background-color: var(--accent-color, #F59E0B);
}

.title-with-dots .section-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    color: var(--text-color, #111827);
    margin: 0;
    line-height: 1.2;
}

.section-header-left .section-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: var(--text-secondary-color, #6B7280);
    margin: 1rem 0 0 0;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

/* Step Item */
.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem; /* gap-4 */
}

/* Step Number Circle */
.step-number {
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    border-radius: 50%; /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    flex-shrink: 0;
}

.step-number.step-orange {
    background-color: var(--accent-color, #F59E0B);
}

.step-number.step-green {
    background-color: var(--success-color, #10B981);
}

.step-number.step-purple {
    background-color: var(--info-color, #8B5CF6);
}

/* Step Content */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: var(--text-color, #111827);
    margin: 0 0 0.5rem 0; /* mb-2 */
}

.step-description {
    color: var(--text-secondary-color, #6B7280);
    margin: 0;
    line-height: 1.6;
}

/* Right Image Wrapper */
.how-it-works-image-wrapper {
    position: relative;
}

/* Main Image Container */
.main-image-container {
    width: 100%;
    height: 20rem; /* h-80 */
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Grid Image - Positioned Absolute */
.grid-image-container {
    position: absolute;
    bottom: -1rem; /* -bottom-4 */
    right: -1rem; /* -right-4 */
    width: 8rem; /* w-32 */
    height: 8rem; /* h-32 */
    border-radius: 0.5rem; /* rounded-lg */
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    .title-with-dots .section-title {
        font-size: 1.75rem;
    }
    
    .how-it-works-image-wrapper {
        order: -1; /* Image first on mobile */
    }
    
    .grid-image-container {
        bottom: 0;
        right: 0;
    }
}

@media (max-width: 640px) {
    .title-with-dots {
        flex-wrap: wrap;
    }
    
    .title-with-dots .section-title {
        font-size: 1.5rem;
        width: 100%;
        order: 1;
        margin-top: 0.5rem;
    }
    
    .title-with-dots .dot:last-child {
        display: none;
    }
}


/* ============================================
   STATISTICS SECTION - Matching React Design
   ============================================ */

.stats-section {
    background-color: var(--danger-color, #EF4444);
    color: #ffffff;
    padding-top: 0px;
    padding-bottom: 60px;

    display: flex;
    align-items: center; /* Vertically centers child items */
        justify-content: center; /* Horizontally centers child items */

}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    /* Individual stat container */
}

.stat-value {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: #ffffff;
}

.stat-label {
    color: var(--accent-light-color, #FEF3C7);
    font-size: 1rem;
}


/* ============================================
   TESTIMONIALS SECTION - Matching React Design
   ============================================ */

.testimonials-section {
    padding: 2rem 0;
    background-color: #f9fafb; /* bg-gray-50 */
}

.testimonials-section .section-header {
    text-align: center;
    margin-bottom: 4rem; /* mb-16 */
}

.testimonials-section .section-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    margin-bottom: 1rem;
}

.testimonials-section .section-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: #4b5563; /* text-gray-600 */
    max-width: 42rem;
    margin: 0 auto;
}

/* Carousel Container */
.testimonials-carousel {
    position: relative;
    max-width: 56rem; /* max-w-4xl */
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 1rem; /* px-4 */
}

/* Testimonial Card */
.testimonial-card {
    background-color: #ffffff;
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    padding: 2rem; /* p-8 */
    position: relative;
}

.testimonial-content {
    text-align: center;
}

.testimonial-avatar {
    width: 5rem; /* w-20 */
    height: 5rem; /* h-20 */
    background-color: #e5e7eb; /* bg-gray-200 */
    border-radius: 50%;
    margin: 0 auto 1.5rem; /* mx-auto mb-6 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar span {
    font-size: 2.25rem; /* text-4xl */
}

.testimonial-text {
    color: #374151; /* text-gray-700 */
    font-size: 1.125rem; /* text-lg */
    margin-bottom: 1.5rem; /* mb-6 */
    line-height: 1.75; /* leading-relaxed */
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem; /* mb-4 */
}

.testimonial-rating .star {
    font-size: 1.25rem; /* text-xl */
    color: #facc15; /* text-yellow-400 */
}

.testimonial-name {
    font-weight: 700;
    font-size: 1.125rem; /* text-lg */
    color: #111827; /* text-gray-900 */
    margin: 0;
}

.testimonial-location {
    color: #6b7280; /* text-gray-500 */
    font-size: 0.875rem; /* text-sm */
    margin: 0 0 0.5rem 0;
}

.testimonial-car {
    color: #f97316; /* text-orange-600 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    margin: 0;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem; /* w-12 */
    height: 3rem; /* h-12 */
    background-color: #f97316; /* bg-orange-500 */
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: #ea580c; /* hover:bg-orange-600 */
}

.carousel-btn .btn-icon {
    width: 1.5rem; /* w-6 */
    height: 1.5rem; /* h-6 */
    color: #ffffff;
}

.carousel-prev {
    left: 1rem; /* left-4 */
}

.carousel-next {
    right: 1rem; /* right-4 */
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem; /* mt-8 */
    gap: 0.5rem; /* space-x-2 */
}

.carousel-dots .dot {
    width: 0.75rem; /* w-3 */
    height: 0.75rem; /* h-3 */
    border-radius: 50%;
    border: none;
    background-color: #d1d5db; /* bg-gray-300 */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background-color: #f97316; /* bg-orange-500 */
}

/* Section CTA */
.testimonials-section .section-cta {
    text-align: center;
    margin-top: 3rem; /* mt-12 */
}

.btn-icon-right {
    width: 1.25rem;
    height: 1.25rem;
    margin-left: 0.5rem;
}


/* ============================================
   FAQ SECTION - Matching React Design
   ============================================ */

.faq-section {
    padding: 2rem 0;
    background-color: #ffffff;
}

.container-sm {
    max-width: 56rem; /* max-w-4xl */
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container-sm {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-sm {
        padding: 0 2rem;
    }
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 4rem; /* mb-16 */
}

.faq-section .section-title {
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    color: #111827; /* text-gray-900 */
    margin-bottom: 1rem;
}

.faq-section .section-subtitle {
    font-size: 1.25rem; /* text-xl */
    color: #4b5563; /* text-gray-600 */
    max-width: 42rem;
    margin: 0 auto;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* space-y-4 */
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #e5e7eb; /* border-b border-gray-200 */
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    padding: 1rem 0; /* py-4 */
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb; /* hover:bg-gray-50 */
}

.faq-question-text {
    font-weight: 500; /* font-medium */
    color: #111827; /* text-gray-900 */
    font-size: 1rem;
    padding-right: 1rem;
}

/* FAQ Icon */
.faq-icon {
    width: 2rem; /* w-8 */
    height: 2rem; /* h-8 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e5e7eb; /* bg-gray-200 */
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.faq-icon span {
    font-size: 1.125rem; /* text-lg */
    color: #4b5563; /* text-gray-600 */
    line-height: 1;
}

/* Active State */
.faq-item.active .faq-icon,
.faq-icon.active {
    background-color: #f97316; /* bg-orange-500 */
}

.faq-item.active .faq-icon span,
.faq-icon.active span {
    color: #ffffff; /* text-white */
}

/* FAQ Answer */
.faq-answer {
    display: none;
    padding-bottom: 1rem; /* pb-4 */
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: #4b5563; /* text-gray-600 */
    margin: 0;
    line-height: 1.6;
}

/* Icon visibility */
.faq-icon .icon-plus {
    display: block;
}

.faq-icon .icon-minus {
    display: none;
}

.faq-item.active .faq-icon .icon-plus {
    display: none;
}

.faq-item.active .faq-icon .icon-minus {
    display: block;
}


/* =============================================
   CATEGORIES LINKS SECTION
   ============================================= */
.categories-links-section {
    padding: 2rem 0;
    background-color: var(--background-color);
}

.categories-links-header {
    margin-bottom: 2rem;
}

.categories-links-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
}

.categories-links-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .categories-links-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .categories-links-grid { grid-template-columns: repeat(2, 1fr); }
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-column a {
    color: #374151;
    text-decoration: none;
    transition: color 0.3s;
}

.links-column a:hover { color: var(--primary-color); }

/* =============================================
   SCROLL TO TOP BUTTON
   ============================================= */
.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 50;
}

.scroll-to-top:hover { background-color: #374151; }
.scroll-to-top.visible { display: flex; }
.scroll-to-top i { font-size: 1.5rem; }

/* =============================================
   MODALS
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
    align-items: flex-end;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    width: 100%;
    border-radius: 0.75rem 0.75rem 0 0;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

.modal-close:hover { color: var(--text-color); }
.modal-close i { font-size: 1.5rem; }

.modal-body {
    padding: 1.5rem;
}

/* Mobile Search Form */
.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-search-form .form-group label {
    color: #374151;
}

.mobile-search-form .form-group select,
.mobile-search-form .form-group input {
    background-color: white;
    border-color: #d1d5db;
    color: var(--text-color);
}

/* Filter Modal */
.filter-search {
    position: relative;
    margin-bottom: 1.5rem;
}

.filter-search input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.filter-search i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    accent-color: var(--primary-color);
}

.checkbox-item span { color: #374151; }

.checkbox-item .count {
    margin-left: auto;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================
   LOADING SPINNER
   ============================================= */
.loading-screen {
    min-height: 100vh;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content { text-align: center; }

.spinner {
    width: 8rem;
    height: 8rem;
    border: 2px solid transparent;
    border-bottom-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.loading-text {
    margin-top: 1rem;
    color: white;
}


/* ============================================
   VEHICLE CARDS - Matching React Design
   ============================================ */

/* Vehicles Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Vehicle Card - Link Wrapper */
.vehicle-card {
    background-color: #ffffff;
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
                0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04); /* shadow-xl */
    transform: translateY(-4px);
}

/* Image Container */
.vehicle-image-container {
    position: relative;
    height: 12rem; /* h-48 */
    background-color: #f3f4f6; /* bg-gray-100 */
    overflow: hidden;
}

.vehicle-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges - Top Left */
.vehicle-badges-left {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 10;
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem; /* rounded-md */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600; /* font-semibold */
}

.badge-brand {
    background-color: #1f2937; /* bg-gray-800 */
    color: #ffffff;
}

.badge-status {
    color: #ffffff;
}

.badge-available {
    background-color: #22c55e; /* bg-green-500 */
}

.badge-sold {
    background-color: #ef4444; /* bg-red-500 */
}

/* Favorite Button - Top Right */
.vehicle-favorite {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.btn-favorite {
    width: 2rem;
    height: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.btn-favorite:hover {
    background-color: #ffffff;
}

.btn-favorite i {
    font-size: 0.875rem;
    color: #4b5563; /* text-gray-600 */
    transition: color 0.2s ease;
}

.btn-favorite:hover i {
    color: #ef4444; /* text-red-500 */
}

/* Location Badge - Bottom Left */
.vehicle-location {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    z-index: 10;
}

.vehicle-location i {
    font-size: 0.75rem;
    color: #4b5563;
    margin-right: 0.25rem;
}

.vehicle-location span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f2937;
}

/* Vehicle Info Container */
.vehicle-info {
    padding: 1rem; /* p-4 */
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Vehicle Title */
.vehicle-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price Section */
.vehicle-price-section {
    margin-bottom: 0.75rem;
}

.price-discount-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.old-price {
    font-size: 0.75rem;
    color: #6b7280; /* text-gray-500 */
    text-decoration: line-through;
}

.badge-offer {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #ef4444; /* bg-red-500 */
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px; /* rounded-full */
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-offer i {
    font-size: 0.75rem;
}

.current-price {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: #111827; /* text-gray-900 */
}

/* Rating */
.vehicle-rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.vehicle-rating .stars {
    display: flex;
    margin-right: 0.5rem;
}

.vehicle-rating .stars i {
    font-size: 0.875rem;
    color: #facc15; /* text-yellow-400 */
}

.vehicle-rating .stars i.empty {
    color: #d1d5db; /* text-gray-300 */
}

.vehicle-rating .rating-text {
    font-size: 0.875rem;
    color: #6b7280; /* text-gray-500 */
}

/* Divider */
.vehicle-divider {
    height: 1px;
    background-color: #e5e7eb; /* border-gray-200 */
    margin-bottom: 0.75rem;
}

/* Specs Grid */
.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563; /* text-gray-600 */
    margin-bottom: 1rem;
}

.spec-item {
    display: flex;
    align-items: center;
}

.spec-item i {
    color: #9ca3af; /* text-gray-400 */
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.spec-item span {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* CTA Button */
.vehicle-cta {
    margin-top: auto;
}

.btn-buy {
    display: block;
    width: 100%;
    background-color: #f97316; /* bg-orange-500 */
    color: #ffffff;
    padding: 1rem;
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-semibold */
    font-size: 1rem;
    text-align: center;
    transition: background-color 0.2s ease;
}

.vehicle-card:hover .btn-buy {
    background-color: #ea580c; /* bg-orange-600 */
}

/* Section CTA */
.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-green {
    display: inline-block;
    background-color: #22c55e;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-green:hover {
    background-color: #16a34a;
}

.btn-block {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
