/* General Body & Typography */
body {
    font-family: 'Roboto Condensed';
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

body.menu-open {
    overflow: hidden; /* Prevents scrolling when mobile menu is open */
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #222;
}

/* ========================================
   Header Styles (Based on your new HTML)
   ======================================== */
.boxcar-header {
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border-bottom: 2px solid #e63946;
}

.boxcar-header .inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.boxcar-header .c-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-inner .logo img {
    max-height: 79px;
    width: auto;
}

.nav-out-bar .main-menu .navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-out-bar .main-menu .navigation li {
    margin-left: 25px;
}

.nav-out-bar .main-menu .navigation a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-out-bar .main-menu .navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4c3c5;
    transition: width 0.3s ease;
}

.nav-out-bar .main-menu .navigation a:hover,
.nav-out-bar .main-menu .navigation li.active a {
    color: #777777;
}

.nav-out-bar .main-menu .navigation a:hover::after,
.nav-out-bar .main-menu .navigation li.active a::after {
    width: 100%;
}

/* Hide mobile nav on desktop */
.mobile-navigation {
    display: none;
}

/* ========================================
   Mobile Navigation
   ======================================== */
#nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background: #1a1a1a;
    padding-top: 60px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2000;
    overflow-y: auto;
}

body.menu-open #nav-mobile {
    transform: translateX(0);
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

#nav-mobile .navigation {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

#nav-mobile .navigation li a {
    display: block;
    padding: 15px 30px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    border-bottom: 1px solid #333;
    transition: background-color 0.3s ease;
}

#nav-mobile .navigation li:first-child a {
    border-top: 1px solid #333;
}

#nav-mobile .navigation li a:hover {
    background-color: #e63946;
}

.close-nav-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ========================================
   Responsive Media Query
   ======================================== */
@media (max-width: 992px) {
    .nav-out-bar {
        display: none; /* Hide desktop nav */
    }
    .mobile-navigation {
        display: block; /* Show hamburger icon */
        cursor: pointer;
    }
}

/* ========================================
   Footer Styles
   ======================================== */
.main-footer {
    background: #1a1a1a;
    color: #a9a9a9;
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-widget h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e63946;
}

.footer-widget p,
.footer-widget ul,
.footer-widget li {
    margin-bottom: 0.8rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #333;
    text-align: center;
    padding: 1.5rem 0;
}

/* Keep Hero and Car Card styles from before */
/* Hero Section */
.hero {  height: 65vh; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.55); }
.hero-content { z-index: 1; }
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: #fff; }
.hero p { font-size: 1.4rem; margin-bottom: 2rem; }
.cta-button { background: #e63946; color: #fff; padding: 15px 30px; text-decoration: none; font-size: 1.1rem; border-radius: 5px; font-weight: bold; transition: background-color 0.3s ease, transform 0.3s ease; }
.cta-button:hover { background: #d62828; transform: translateY(-2px); }
/* Featured Listings Section */
.featured-listings { padding: 4rem 0; text-align: center; }
.listings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }
.car-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); overflow: hidden; text-align: left; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.car-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.car-card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.car-info { padding: 1.5rem; }
.car-info h3 { margin-top: 0; font-size: 1.4rem; }
.car-info .price { font-size: 1.5rem; font-weight: bold; color: #e63946; margin: 0.5rem 0; }
.car-info p { color: #666; font-size: 0.9rem; margin-bottom: 1.5rem; }
.details-button { display: inline-block; background: #000000; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 5px; transition: background-color 0.3s ease; }
.details-button:hover { background: #457b9d; }
/* Scroll to Top Button */
.scroll-to-top { position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px; background: #e63946; color: #fff; border-radius: 50%; text-align: center; line-height: 50px; font-size: 24px; z-index: 100; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease; }
.scroll-to-top:hover { background-color: #d62828; }
.scroll-to-top.visible { opacity: 1; visibility: visible; }

.dealergate-footer {
    background-color: #000;
    color: #a9a9a9;
    font-size: 15px;
}

.dealergate-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Footer Top Section */
.footer-top {
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.footer-top .right-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-top .top-left .title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-top .top-left .text {
    line-height: 1.7;
}

.subscribe-form .form-group {
    position: relative;
    display: flex;
    min-width: 350px;
}

.subscribe-form .email {
    flex-grow: 1;
    height: 50px;
    padding: 10px 20px;
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 5px 0 0 5px;
}

.subscribe-form .theme-btn {
    padding: 10px 25px;
    background-color: #e63946;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

.subscribe-form .theme-btn:hover {
    background-color: #d62828;
}

.widgets-section {
    padding: 1rem 0;
}

.widgets-section .row {
    display: flex;
    flex-wrap: wrap;
    /* This negative margin is a common technique to counteract padding on columns */
    margin-right: -15px;
    margin-left: -15px;
}

.footer-column {
    /* Mobile First: Each column takes full width by default */
    width: 100%; 
    padding-right: 15px;
    padding-left: 15px;
    margin-bottom: 2rem; /* Add spacing between stacked columns on mobile */
    box-sizing: border-box; /* Ensures padding is included in the width */
}

/* On screens 992px and wider (laptops/desktops) */
@media (min-width: 992px) {
    .footer-column {
        /* This forces each column to take up exactly 1/3 of the space */
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
        margin-bottom: 0; /* Remove the bottom margin on desktop */
    }
}

/* These styles remain the same and should be kept */
.footer-widget .widget-title {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-widget .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e63946;
}

.footer-widget .widget-content,
.footer-widget .widget-text {
    font-size: 0.95rem;
}

.footer-widget .widget-text p {
    margin-bottom: 1em;
}

.footer-widget ul.user-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul.user-links li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start; /* Align icon with first line of text */
}

.footer-widget ul.user-links svg {
    margin-right: 12px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 4px; /* Adjust vertical alignment */
}

.footer-widget ul.user-links a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-widget ul.user-links a:hover {
    color: #fff;
}


/* Footer Bottom */
.footer-bottom {
    background-color: #111;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

.footer-bottom .inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom .copyright-text a {
    color: #fff;
    text-decoration: none;
}
.footer-bottom .copyright-text a:hover {
    text-decoration: underline;
}

.footer-bottom .footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.footer-bottom .footer-nav a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom .footer-nav a:hover {
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-top .right-box,
    .footer-bottom .inner-container {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .subscribe-form .form-group {
        min-width: 100%;
        width: 100%;
    }

    .footer-bottom .inner-container {
        align-items: center;
        text-align: center;
    }
}

/* ========================================
   Content Page Styles (Privacy, T&C, etc.)
   ======================================== */

.page-content {
    background-color: #fff;
    padding: 2rem 3rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .last-updated {
    font-style: italic;
    color: #666;
    margin-bottom: 2rem;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #1d3557;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.page-content h3 {
    font-size: 1.4rem;
    color: #457b9d;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content p, .page-content li {
    line-height: 1.7;
    color: #333;
}

.page-content ul {
    list-style-type: disc;
    padding-left: 25px;
}

.page-content a {
    color: #a1a1a1;
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

.page-content hr {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 2.5rem 0;
}

/* Table Styles */
.table-container {
    overflow-x: auto; /* For responsive tables */
    margin: 2rem 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.page-content th, .page-content td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.page-content thead {
    background-color: #f7f7f7;
    font-weight: bold;
    color: #333;
}

.page-content tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}
/* ========================================
   Homepage Sections Styles
   ======================================== */

/* 2. Vehicle Search Bar */


/* Responsive adjustments for tabs */
@media (max-width: 768px) {
    .nav-tabs-r8 {
        flex-direction: column;
    }
    .nav-tabs-r8 .nav-link {
        border-bottom: 1px solid #dee2e6;
    }
    .nav-tabs-r8 .nav-link.active {
        border-bottom: 3px solid #e63946;
    }
    .tab-content {
        padding: 1.5rem;
    }
}
/* 4. Why Choose Us Section */
.why-choose-us {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}
.why-choose-us h2 {
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-item {
    padding: 2rem;
}
.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.4rem;
    color: #1d3557;
    margin-bottom: 0.5rem;
}

/* 5. Services CTA Section */
.services-cta {
    padding: 4rem 0;
    background-color: #0e0e0e;
    color: #fff;
}
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
}
.service-box {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem;
    border-radius: 8px;
}
.service-box h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 0;
}
.cta-button.alt {
    background: #fff;
    color: #1d3557;
}
.cta-button.alt:hover {
    background: #f0f2f5;
}

/* 6. Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: #f0f2f5;
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.testimonial-card blockquote {
    margin: 0 0 1rem 0;
    font-style: italic;
    color: #333;
    border-left: 4px solid #000000;
    padding-left: 1.5rem;
}
.testimonial-card cite {
    font-weight: bold;
    color: #1d3557;
}

/* Responsive adjustments for grids */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Hero Section with Image Slider
   ======================================== */

.hero-slider {
    position: relative;
    height: 55vh; /* Make the hero section taller */
    width: 100%;
    overflow: hidden; /* Important for keeping slides contained */
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: flex-end; /* Horizontally align content to the right */
    color: #fff;
}

/* The dark overlay for text readability */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth fade transition */
    z-index: 0;
}

.hero-slide.active {
    opacity: 1; /* Show the active slide */
}

.hero-content {
    position: relative; /* Puts content above the overlay */
    z-index: 2;
    text-align: right;
    padding: 0 5%; /* Add some padding from the edge */
    max-width: 600px; /* Constrain the width of the text block */
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* New Sleek Transparent Button Style */
.cta-button {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 35px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #fff;
    color: #1a1a1a;
    transform: translateY(-3px); /* Add a subtle lift effect */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .hero-slider {
        justify-content: center; /* Center content on mobile */
        height: 40vh;
    }
    .hero-content {
        text-align: center; /* Center text on mobile */
        padding: 0 15px;
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}
/* ========================================
   Overlapping Content Section
   ======================================== */

.overlap-section {
    position: relative; /* Allows z-index to work */
    background-color: #f7f7f7;
    padding: 6rem 0;
    z-index: 5; /* Ensures this section sits ON TOP of the hero */

    /* KEY PART 1: The Overlap Effect */
    margin-top: -120px; /* Pulls the whole section UP over the hero. Adjust value as needed. */
    
    /* KEY PART 2: The 45-Degree Cut */
    /* This creates a diagonal line from 120px down on the left, to the top-right corner. */
    clip-path: polygon(0 0, 100% 120px, 100% 100%, 0% 100%);
}

.overlap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.image-column img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.content-column {
    padding-left: 1rem;
}

.content-column .sub-title {
    display: block;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.content-column h2 {
    font-size: 24px;
    word-spacing: 5px;
    color: #000000;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.content-column p {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: #333;
    margin-bottom: 2rem;
}

.cta-button-outline {
    background: transparent;
    border: 2px solid #1d3557;
    color: #1d3557;
    padding: 12px 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background: #474747;
    color: #fff;
}

/* Responsive Design for Mobile */
@media (max-width: 992px) {
    .overlap-section {
        /* On smaller screens, remove the complex overlap for a cleaner look */
        margin-top: 0;
        clip-path: none;
        padding: 3rem 0;
        background-color: #f8f9fa; /* Use a light grey for separation */
    }

    .overlap-grid {
        grid-template-columns: 1fr; /* Stack image and text vertically */
    }

    .content-column {
        padding-left: 0;
        text-align: center;
        margin-top: 2rem;
    }
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .image-content-section::before {
       display: none;
    }

    .section-grid {
        grid-template-columns: 1fr; /* Stack the columns on top of each other */
    }

    .image-content-section {
        background-color: #fff; /* Use a simple white background */
    }

    .content-column {
        padding-left: 0;
        text-align: center;
        margin-top: 2rem;
    }
}


/* ========================================
   Search Container Section
   ======================================== */

/* Container */
.search-container {
  font-family: 'Roboto Condensed', sans-serif;
  background: transparent;
  padding: 1.5rem;
  max-width: 1200px;
  margin: auto;
}

/* Header row */
.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.search-header h2 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

/* Toggle switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  font-size: 0.9rem;
  color: #333;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #333;
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Search form */
.search-form {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  font-family: inherit;
}

.search-form .dropdown {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-family: inherit;
  background: transparent;
  min-width: 150px;
}

/* Button */
.search-btn {
    font-family: inherit;
  padding: 10px 20px;
  background: #444;
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #000;
}

/* Responsive */
@media (max-width: 900px) {
  .search-form {
    flex-wrap: wrap;
  }
  .search-form .dropdown, .search-btn {
    flex: 1 1 100%;
  }
}
.search-bodytype {
  padding: 0.5rem 0;
  background-color: #fff; /* cleaner look */
  align-items: center;
  justify-content: center;
  display: flex; 
  justify-content: center;
}

.bodytype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  justify-content: center;
  width: 90%;
  max-width: 1200px;
}

.bodytype-card {
  padding: 1rem;
  text-align: center;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
}

.bodytype-card img {
  max-width: 100px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.bodytype-card span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

/* Hover effect */
.bodytype-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.bodytype-card:hover img {
  transform: scale(1.1);
}
.ribbon-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Full width */
    background-color: rgba(64, 95, 242, 0.85); /* Semi-transparent blue */
    color: #fff;
    padding: 3px 0; /* Top-bottom padding only */
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center; /* Center the text */
    z-index: 10;
    border-radius: 0; /* No rounded corners */
}
.image-box {
    position: relative;
}
.custom-accordion {
max-width: 800px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.accordion-item {
border-bottom: 1px solid #ccc;
}

.accordion-header {
background: #405ff2;
color: white;
padding: 15px 20px;
cursor: pointer;
font-weight: bold;
position: relative;
}

.accordion-header::after {
content: '+';
position: absolute;
right: 20px;
font-size: 18px;
transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
content: '−';
}

.accordion-content {
display: none;
padding: 15px 20px;
background-color: #f9f9f9;
}

.accordion-content ul {
padding-left: 20px;
margin: 0;
list-style: none;
}

.accordion-content li {
padding: 6px 0;
color: #333;
}

.accordion-content i {
color: green;
margin-right: 8px;
}
/* Form container styling */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Input field styling */
.form-box input[type="text"],
.form-box input[type="email"],
.form-box input[type="tel"],
.form-box textarea {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px; /* Rounded edges */
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

/* Textarea specific styling */
.form-box textarea {
    resize: vertical;
    min-height: 150px;
}

/* Focus state styling */
.form-box input[type="text"]:focus,
.form-box input[type="email"]:focus,
.form-box input[type="tel"]:focus,
.form-box textarea:focus {
    border-color: #4a90e2;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Button styling */
.theme-btn {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background-color: #3a7bc8;
    transform: translateY(-2px);
}

.theme-btn svg {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.theme-btn:hover svg {
    transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-box input[type="text"],
    .form-box input[type="email"],
    .form-box input[type="tel"],
    .form-box textarea {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .theme-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
}

.modal-box {
background: white;
padding: 2rem;
max-width: 400px;
border-radius: 8px;
text-align: center;
box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modal-box h2 {
margin-bottom: 1rem;
}

.modal-box button {
background-color: #007bff;
color: white;
padding: 0.6rem 1.2rem;
border: none;
border-radius: 5px;
cursor: pointer;
}

.modal-box button:hover {
background-color: #0056b3;
}
.modal-box button:active {
transform: translateY(2px);
}
@media (min-width: 1000px) {
    .image-fullscreen-style {
        height: 264px;
        object-fit: cover;
        object-position: center;
        width: 100%;
    }
}

/*-------Contact Page Map Section-------*/
.map-section {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}



/* ========================================
   Showroom General Styles
   ======================================== */
.showroom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 2rem 20px;
}
.hero-section {
    position: relative; height: 25vh; color: #fff; display: flex;
    align-items: center; justify-content: start; text-align: start; overflow: hidden;
}
.hero-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-content h1 { font-size: 1.5rem; font-weight: 500; }
.search-container {
    background-color: #fff; padding: 1.5rem; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); margin-top: -50px;
    position: relative; z-index: 10;
}
.search-form {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; align-items: center;
}

.search-form .search-btn {
    padding: 12px; font-weight: bold; cursor: pointer; transition: background-color 0.3s ease;
}
.search-form .search-btn:hover { background: #000000ff; }
.controls-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 2rem 0; flex-wrap: wrap; gap: 1rem;
}
.controls-bar .results-count { font-weight: 500; color: #333; }
.controls-bar .sort-dropdown { border: 1px solid #ccc; border-radius: 5px; padding: 8px; }
.view-switcher button {
    background: #fff; border: 1px solid #ccc; padding: 8px 12px; cursor: pointer;
    transition: all 0.2s ease;
}
.view-switcher button:first-of-type { border-radius: 5px 0 0 5px; }
.view-switcher button:last-of-type { border-radius: 0 5px 5px 0; border-left: none; }
.view-switcher button.active {
    background-color: #0000001e; color: #fff; border-color: #1d3557;
}

/* ========================================
   Car Card Styling (Grid & List) - REVISED
   ======================================== */
.car-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}
.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 5px 15px rgba(0, 0, 0, 0.03);
    border-color: rgba(230, 57, 70, 0.2);
}
.card-image {
    position: relative;
    overflow: hidden;
    background-color: #f7f7f9;
}
.card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.car-card:hover .card-image img {
    transform: scale(1.05);
}
.card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 5;
}
.badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: inline-block;
    width: fit-content;
}
.badge-ulez {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.badge-fuel {
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.ribbon-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    backdrop-filter: blur(1px);
    letter-spacing: 0.3px;
}
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

/* Card Header Structure */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.card-header-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
}
.car-card:hover .card-header-text h3 {
    color: #e63946;
}
.card-header-text h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #718096;
    margin: 0.25rem 0 0 0;
}
.card-price-block {
    text-align: right;
}
.card-price-block .price {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d3557;
    margin-bottom: 0;
    line-height: 1.2;
}

.card-body {
    margin: 0.5rem 0 1rem;
    position: relative;
}
.spec-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    width: 100%;
}
.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
}
.spec-icon {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
    color: #6b7280;
}
.car-card:hover .spec-chip {
    background: #eef2f6;
    color: #1f2937;
}

.brand-logo-container {
    position: absolute;
    right: 0;
    bottom: -6px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.car-card:hover .brand-logo-container {
    transform: scale(1.1);
}
.brand-logo {
    max-height: 29px;
    max-width: 34px;
    object-fit: contain;
}

.card-footer {
    margin-top: auto;
    padding-top: 0.5rem;
}
.details-link {
    display: block;
    text-align: center;
    background: #1a1a1a;
    color: #fff;
    padding: 11px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.car-card:hover .details-link {
    background-color: #e63946;
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.25);
}

/* --- GRID VIEW --- */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* --- LIST VIEW --- */
.list-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.list-view .car-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.list-view .car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}
.list-view .card-image {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
}
.list-view .card-image img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}
.list-view .card-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.list-view .card-header {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}
.list-view .card-header-text h3 {
    font-size: 1.5rem;
}
.list-view .card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-grow: 1;
}
.list-view .spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 12px;
    width: 80%;
}
.list-view .brand-logo-container {
    position: static;
    width: 48px;
    height: 48px;
    padding: 6px;
}
.list-view .brand-logo {
    max-height: 32px;
    max-width: 36px;
}
.list-view .card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}
.list-view .details-link {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.85rem;
    border-radius: 8px;
}
@media (max-width: 900px) {
    .list-view .spec-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}

@media (max-width: 700px) {
    .list-view .car-card {
        flex-direction: column;
    }
    .list-view .card-image {
        flex: 0 0 200px;
        width: 100%;
    }
    .list-view .spec-grid {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    .list-view .brand-logo-container {
        display: none;
    }
    .list-view .card-footer {
        justify-content: stretch;
        width: 100%;
        margin-top: 1rem;
    }
    .list-view .details-link {
        width: 100%;
        text-align: center;
    }
}

/* ========================================
   Pagination - NEW STYLES
   ======================================== */
.pagination-section { margin-top: 3rem; text-align: center; overflow: hidden; }
.pagination { display: inline-flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0 auto; max-width: 100%; border-radius: 5px; overflow: hidden; border: 1px solid #ddd; }
.pagination .page-item { margin: 0; }
.pagination .page-link {
    padding: 12px 18px; display: block; color: #1d3557; text-decoration: none;
    border-right: 1px solid #ddd; transition: all 0.3s ease;
}
.pagination .page-item:last-child .page-link { border-right: none; }
.pagination .page-link:hover { background-color: #f8f9fa; }
.pagination .page-item.active .page-link {
    background-color: #1d3557; color: #fff; font-weight: bold;
}
.pagination .page-item.disabled .page-link { color: #aaa; background-color: #fff; }
.pagination-text { margin-top: 1rem; color: #666; font-size: 0.9rem; }

@media (max-width: 600px) {
    .pagination-section { padding: 0 1rem; }
    .pagination .page-link { padding: 8px 11px; font-size: 0.85rem; }
}

/* --- Responsive Adjustments --- */
@media(max-width: 768px) {
    .list-view .car-card { flex-direction: column; }
    .list-view .card-image { flex: 0 0 220px; }
    .list-view .card-description { display: none; }
}

/* --- Global Utilities for these sections --- */
.text-center { text-align: center; }
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 1rem; color: #1a1a1a; }
.header-line { width: 60px; height: 3px; background: #e63946; margin: 0 auto; }

/* --- Why Choose Us Section --- */
.section-why-us {
    padding: 5rem 0;
    background-color: #f9f9fb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

.feature-card .icon-wrapper {
    width: 70px;
    height: 70px;
    background: #fff0f1; /* Light red background */
    color: #e63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.feature-card:hover .icon-wrapper {
    background: #e63946;
    color: #fff;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1d3557;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

/* --- Services CTA Section --- */
.section-services {
    padding: 5rem 0;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-box {
    position: relative;
    padding: 3.5rem;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
}

.service-content {
    position: relative;
    z-index: 2;
    max-width: 80%;
}

.service-icon {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-box h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.service-box p {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.service-btn {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: #fff;
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-box {
        padding: 2.5rem;
        text-align: center;
    }
    
    .service-content {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* ============================================================
   Toast Notification System
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.toast {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #e63946;
    border-radius: 4px;
    padding: 0.9rem 1.2rem;
    color: #111;
    min-width: 260px;
    max-width: 360px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    animation: slideInToast 0.35s ease forwards;
}

@keyframes slideInToast {
    from { transform: translateX(110%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.toast.error   { border-left-color: #ef4444; }
.toast.success { border-left-color: #22c55e; }
.toast.warning { border-left-color: #f59e0b; }

.toast-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
    transition: color 0.2s;
}
.toast-close:hover { color: #111; }
