/*
Theme Name: cars
Theme URI: http://www.autotrends.ma/
Description: Custom Wordpress theme for cars
Author: Abdeltif
Author URI: http://autotrends.com
Version: 1.0
*/


/* ========================================
   Auto Trends - Custom Styles
   ======================================== */

/* ========== General Styles ========== */

/* Regular */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStd.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Light */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

/* Light Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdLightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

/* Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

/* Semi-Medium */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdSemiMedium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

/* Semi-Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdSemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

/* Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Extra Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/TwCenMTStdExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

/* Ultra Bold */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/twcenmtstdultrabold.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

/* Extra Bold Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/twcenmtstdextraboldit.woff') format('woff');
    font-weight: 800;
    font-style: italic;
}

/* Ultra Bold Italic */
@font-face {
    font-family: 'TW Cen MT';
    src: url('./assets/fonts/twcenmtstdultraboldit.woff') format('woff');
    font-weight: 900;
    font-style: italic;
}

/* Condensed Variants */
@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/Tw Cen MT Std Medium Cond.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/Tw Cen MT Std Bold Cond.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/Tw Cen MT Std Bold Italic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/TwCenMTStdExtraBoldCond.woff') format('woff');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'TW Cen MT Condensed';
    src: url('./assets/fonts/TwCenMTStdUltraBoldCond.woff') format('woff');
    font-weight: 900;
    font-style: normal;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #56a5dc;
    --danger-color: #dc3545;
    --dark-color: #1a1a2e;
    --text-color: #1a1a1a;
    --bg-color: #fefcf6;
    --light-bg: #f8f9fa;
    --light-gray: #eeeeee;
    --medium-gray: rgba(175, 175, 175, 0.39);
    --category-red: #ed3e20;
    --fuel-table-border-radius: 10px;
    --footer-bg-color: rgb(18 18 18);
}

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

body {
    font-family: 'TW Cen MT', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

body a {
    text-decoration: none;
    color: var(--text-color);
}
body a:hover {
    text-decoration: none;
    color: var(--secondary-color);
}

.row.g-6 {
    --bs-gutter-x: 4rem;
    --bs-gutter-y: 4rem;
}

.row.g-7 {
    --bs-gutter-x: 5rem;
    --bs-gutter-y: 5rem;
}

.row.g-8 {
    --bs-gutter-x: 6rem;
    --bs-gutter-y: 6rem;
}

/* ========================================
   HEADER SECTION - 3 ROWS (NON-STICKY)
   ======================================== */

.header-section {
    background: var(--bg-color);
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
    margin-bottom: 25px;
}

/* ========== Row 1: Top Bar (Social Icons) ========== */
.top-bar {
    /*background: #f8f9fa !important;*/
}

.social-icon {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--secondary-color);
}

/* ========== Row 2: Main Header ========== */
.main-header {
    padding: 0;
}

/* Left Section - Video, Podcast, Menu */
.header-link {
    /*color: #0f1b26;*/
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.header-link:hover {
    color: var(--secondary-color);
}

.header-link i {
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    border: none;
    background: transparent;
}

/* Make sure your header or navigation wrapper has position relative */
/*header,*/
/*.header-section,*/
/*.navigation-row {*/
/*    position: relative;*/
/*    width: 100%;*/
/*}*/

/* ========== Mega Menu ========== */
.menu-item-has-mega {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 80%;
    transform: translateX(-27%);
    min-width: 1100px;
    max-width: 1400px;
    background: var(--bg-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    border-radius: 0px 0px 16px 16px;
    border: 1px solid #dee2e6;
    border-top: none;
}


.mega-menu .container {
    max-width: 100%;
    padding: 0 1rem;
}

.menu-item-has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

/* Mega Menu Cards */
.mega-menu-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden; /* Add overflow here too */
}

.mega-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    overflow: hidden !important; /* Force overflow hidden */
    transition: transform 0.3s ease;
    isolation: isolate; /* Create stacking context */
}

/*.mega-card:hover {*/
/*    transform: translateY(-3px);*/
/*}*/

.mega-card-content {
    display: flex;
    height: 160px;
    background: var(--dark-color);
    position: relative;
    background-image: url('assets/images/icons/logo-icon.svg');
    background-repeat: no-repeat;
    background-position: 70% 50%;
    background-size: 210px 210px;
    overflow: hidden !important; /* Force overflow hidden */
}

.mega-card-left {
    flex: 1;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.mega-card-title {
    color: white;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    position: relative;
    z-index: 2;
}

.mega-card-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mega-card-img-wrapper {
    width: 100%;
    height: 80%;
    position: relative;
    overflow: hidden;
    border-radius: 16px 0px 0px 16px;
}

.mega-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 0px 0px 16px;
    display: block;
}

/* Light ray effect */
.mega-card-img-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 150%;
    height: 200%;
    background: linear-gradient(
            120deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(15deg);
    transition: left 0.6s ease-in-out;
    z-index: 2;
    pointer-events: none;
}

.mega-card:hover .mega-card-img-wrapper::before {
    left: 150%;
}

.mega-card:hover .mega-card-right::after {
    left: 200%;
    opacity: 1;
}
.mega-card-content {
    display: flex;
    height: 160px;
    background: var(--dark-color);
    position: relative;
    background-image: url('assets/images/icons/logo-icon.svg');
    background-repeat: no-repeat;
    background-position: 70% 50%;
    background-size: 210px 210px;
}

.mega-card-left {
    flex: 1;
    padding: 1.1rem 0.1rem 1.1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
}

.mega-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    bottom: 0;
    overflow: hidden;
}

.bg-logo {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 120px;
    height: 120px;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.mega-card-title {
    color: white;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    position: relative;
    z-index: 2;
    letter-spacing: -1.0px;
}

.mega-card-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mega-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px 0px 0px 16px;
}

/* Mega Menu Articles */
.mega-menu-articles {
    padding: 1.3rem;
    height: 100%;
    border-left: 1px solid #f0f0f0;
    margin-left: 0.2rem;
}

.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    margin-bottom: 1.0rem;
    border-bottom: 1px solid #f0f0f0;
}

.article-list li:last-child {
    border-bottom: 10px solid transparent;
}

.article-list a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
    margin-bottom: 1.0rem;
}

.article-list a:hover {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 991px) {
    .mega-menu {
        display: none;
    }
}

/* ========== Magazine Mega Menu ========== */
.mega-menu-magazine {
    padding: 2rem 0;
    left: 0%;
    transform: translateX(-53%);
}

/* Column 1: Info Boxes */
.magazine-info-section {
    padding: 0 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.magazine-info-box {
    padding: 1rem;
    position: relative;
    min-height: 250px;
    border-bottom: 1px solid #e0e0e0;
}
.magazine-info-box:last-child {
    border-bottom: 0px solid transparent;
}

.magazine-box-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    /*letter-spacing: 0.5px;*/
}

.magazine-box-desc {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    margin-bottom: 0;
    padding-right: 36px;
}

.magazine-box-icon {
    position: absolute;
    bottom: 1.2rem;
    right: -0.6rem;
    width: 100px;
    height: 100px;
}

.magazine-box-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Column 2: Categories List */
.magazine-categories {
    padding: 1rem 2rem;
    /* @TODO:not sure if that centred in the design or not*/
    /*align-items: center;*/
    position: relative;
    height: 100%;
    display: flex;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.category-list li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.category-list li:last-child {
    border-bottom: 0px solid transparent;
}

.category-list a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.category-list a:hover {
    color: var(--secondary-color);
}

.cat-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 3px;
}

/* Column 2: Categories List with full-height border */
.magazine-categories {
    padding: 1rem 2rem;
    position: relative;
    height: 100%;
}

/* Add pseudo-elements for full-height borders */
.magazine-categories::before,
.magazine-categories::after {
    content: '';
    position: absolute;
    top: -2rem;
    bottom: -2rem;
    width: 1px;
    background: #e0e0e0;
}

.magazine-categories::before {
    left: 0;
}

.magazine-categories::after {
    right: 0;
}


/* Column 3: Media Types */
.magazine-media {
    padding: 1rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.media-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.media-item-large {
    flex-direction: row;
}

.media-item-small {
    flex-direction: row;
    align-items: center;
}

.media-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
}

.media-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.media-content {
    flex: 1;
}

.media-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.3rem 0;
    letter-spacing: 0.5px;
}

.media-item-small .media-title {
    margin: 0;
}
.media-item-small .media-icon {
    width: 20px;
    height: 20px;
}

.media-subtitle {
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .mega-menu-magazine {
        display: none;
    }
}



/* Center Section - Logo */
.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.logo:hover {
    color: #333;
}

/* Right Section - Buttons */
.btn-outline-dark {
    border: 2px solid #333;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: #333;
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ========== Row 3: Navigation Menu (Sticky) ========== */
.navigation-menu {
    background: var(--bg-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1020;
    border-bottom: 1px solid #000;
    transition: box-shadow 0.3s ease;
}

.navigation-menu.is-sticky {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--light-gray);
}

/* WordPress Compatible Menu Structure */
.nav-menu {
    list-style: none;
    margin: 0;
    /*margin-top: 25px;*/
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;  /* Changed from space-between to center */
    flex-wrap: wrap;
}

.menu-item {
    position: relative;
    margin: 0;
    padding: 0;
}

.menu-link {
    display: block;
    padding: .3rem 1.2rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 25px;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.0;
}

.menu-link:hover {
    color: var(--secondary-color);
      /*background: #f8f9fa;*/
}

/* Current/Active Menu Item */
.current-menu-item .menu-link,
.menu-item.active .menu-link {
    color: var(--secondary-color);
    border-bottom: 3px solid transparent;
}

/* Menu Item with Children (Dropdown) */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children > .menu-link i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover > .menu-link i {
    transform: rotate(180deg);
}

/* Submenu (Dropdown) */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-color);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 220px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu .menu-item {
    border-bottom: 1px solid #f0f0f0;
}

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

.sub-menu .menu-item a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-menu .menu-item a:hover {
      /*background: #f8f9fa;*/
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Search Menu Item */
.menu-item-search {
    margin-left: auto;
    display: none;
}

.menu-item-search .menu-link {
    padding: 1rem;
}

.search-toggle {
    cursor: pointer;
}

/* Search Bar */
.search-bar-wrapper {
      /*background: #f8f9fa;*/
    /*border-bottom: 1px solid #dee2e6;*/
}

.search-bar-wrapper .form-control {
    border: 2px solid #dee2e6;
}

.search-bar-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* ========== Mobile Menu Offcanvas ========== */
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu-item {
    /*border-bottom: 1px solid #f0f0f0;*/
}

.mobile-menu-item a {
    display: block;
    padding: 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-item a:hover {
      /*background: #f8f9fa;*/
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.mobile-menu-item .has-submenu {
    position: relative;
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
      /*background: #f8f9fa;*/
    display: none;
}

.mobile-submenu li {
    /*border-bottom: 1px solid #e0e0e0;*/
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    padding: 0.75rem 1rem 0.75rem 2rem;
    font-size: 0.9rem;
}

.mobile-menu-item .has-submenu.active + .mobile-submenu {
    display: block;
}

/* ========== Trending Search Section  ========== */
.search-wrapper {
    position: relative;
    display: inline-block;
    width: 250px; /* Adjust as needed */
    margin-left: 100px;
}

.search-input {
    width: 100%;
    padding: 8px 50px 6px 20px; /* Right padding for button space */
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    font-size: 15px;
    outline: none;

}

.search-input:focus {
    border-color: #333;
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: #1a1a2e; /* Dark background */
    border: none;
    border-radius: 50%; /* Makes it circular */
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #333;
}

.search-button i {
    font-size: 16px;
}

.search-input::placeholder {
    color: #d6d6d6;
}

.trending-tags {
    flex: 1;
}

.trending-tags .badge {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--light-gray);
    /*min-height: 38px;*/
    line-height: 20px;
}

.trending-tags .badge:hover {
    background: var(--secondary-color) !important;
    color: white !important;
    border-color: var(--secondary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar-inline {
        width: 100%;
        margin-bottom: 10px;
    }

    .trending-tags {
        justify-content: flex-start;
    }
}

.card {
    background: transparent!important;
}
/* ========== Promo Section with Swiper ========== */

.promo-section {
    /*background: #f8f9fa;*/
    margin-top: 0;
}

.h2-title-small {
    background: var(--primary-color);
    color: white;
    display: inline-block;
    padding: 3px 6px 3px 6px;
    height: 20px;
    line-height: 18px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.promoSwiper {
    padding: 5px 0 10px 0;
}

.promo-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 184px;
    width: 131px;
}

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

.promo-card img {
    width: 100%;
    height: 184px;
    object-fit: cover;
    display: block;
}

.promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0.6), rgba(0,0,0.89), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.promo-overlay h5 {
    margin: 0 0 10px 0;
    font-weight: 600;
}

.promo-overlay .badge {
    font-size: 1rem;
    padding: 5px 15px;
}

.promo-overlay img {
    width: 42px;
    height: 42px;
    background: var(--dark-color);
    border-radius: 50%;
    padding: 3px;
    border: 1px solid white;
    margin: 0 auto 10px auto;
}

    /* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    background: var(--bg-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
}

/* ========== Main Content Area ========== */
.search-widget {
    border: 1px solid #eeeeee;
    background: #f9f7f5;
    border-radius: 16px;
}

.search-widget h4 {
    font-weight: bold;
    color: var(--dark-color);
    margin-top: 8px;
}

.toggle-container {
    position: relative;
    display: inline-flex;
    background-color: #1a1d2e;
    border-radius: 50px;
    padding: 0px 5px;
    gap: 0;
    min-width: 100%;
    margin-bottom: 30px;
}

.toggle-slider {
    position: absolute;
    background-color: var(--bg-color);
    border-radius: 50px;
    height: calc(100% - 10px);
    top: 5px;
    left: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.toggle-btn {
    position: relative;
    z-index: 2;
    padding: 12px 32px 10px 32px;
    border: none;
    background: transparent;
    color: white;
    font-weight: bold;
    font-size: 22px;
    line-height: 22px;
    /*height: 28px;*/
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 50px;
    min-width: 50%;
}

.toggle-btn.active {
    color: #1a1d2e;
}

.search-form {
    padding: 2px 25px 40px 25px;
}


.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Add your custom caret image */
    background-image: url('assets/images/icons/down.svg');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;

    /* Styling */
    padding: 4px 40px 4px 15px;
    border: 1px solid #f3f3f3;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    color: var(--medium-gray); /* Gray color for placeholder */
    background-color: var(--bg-color);
    cursor: pointer;

    margin-bottom: 36px;
}

/* Change text color when an option is selected */
.form-select:not(:invalid) {
    color: #333;
}

/* Style for options */
.form-select option {
    color: #333; /* Black text for options */
}

.form-select option:first-child {
    color: #999; /* Gray for placeholder option */
}



.btn-dark {
    background: var(--dark-color);
    border: none;
    padding: 0.6rem;
    font-weight: 600;
    transition: background 0.3s ease;
    border-radius: 6px;
    font-size: 22px;
    line-height: 22px;
    text-transform: uppercase;
}

.btn-dark:hover {
    background: #2c3e50;
}

.featured-content img {
    width: 100%;
    height: auto;
}

.video-wrapper {
    position: relative;
    width: 100%; /* Takes full width of parent */
    max-width: 600px; /* Optional: set maximum size */
    aspect-ratio: 1 / 1; /* Maintains square shape */
    overflow: hidden;
    border-radius: 18px;
    margin: 0 auto;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78%; /* 100 / (9/16) to fill square */
    height: 100%;
}

.custom-play-btn {
    position: absolute;
    top: 5%;
    left: 95%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0);
    border: 0px solid transparent;
    /*border-radius: 50%;*/
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

.custom-play-btn:hover {
    background-color: rgba(255, 0, 0, 0);
    /*transform: translate(-50%, -50%) scale(1.1);*/
}

.custom-play-btn.playing {
    opacity: 0;
    pointer-events: none;
}


.widget {
    /*box-shadow: 0 2px 5px rgba(0,0,0,0.1);*/
}

.widget img {
    margin-top: 10px;
}


.search-widget,
.featured-content,
.widget-container {
    height: 100%;
}

.sidebar-section .widget {
    padding: 0;
}

.sidebar-section .widget {
    padding: 0;
}

.sidebar-section  .fuel-icon {
    right: -13px;
}
.sidebar-section  .fuel-widget {
    padding-top: 2em!important;
    padding-left: 2em!important;
}
.sidebar-section  .sidebar-title {
    margin-top: 1.2em;
    padding: 0.3em 1.5em 0.2em 1.5em;
}
.sidebar-section  .slider-header {
    margin-top: 1em;
    margin-left: 2em;
}
.sidebar-section  .car-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

/* Dossier Page - Minimal additions to style.css */

/* Featured Article */
.dossier-featured .row {
    min-height: 600px;
}

.main-thump {
    padding: 0em 1em 1em 0em;
}

.content-texts {
    padding: 0.8em 1.5em 1.5em 1.5em;
}

.date-meta {
    font-size: 1.2em;
    font-weight: 600;
    color: #717171;
    padding-top: 2em;
}

/* Dossier Section Title - Line in front (left side) */
/* Dossier Section Title - Line after text extending to right */
.dossier-section-title {

    font-weight: 600;
    font-size: 2.2rem;
    letter-spacing: 1px;
    color: #717171;
    display: flex;
    align-items: center;
    gap: 20px;
}

.dossier-section-title::after {
    content: '';
    flex: 1;
    height: 8px;
    background-color: var(--text-color);
}

/* Dossier List Items */
.dossier-list-item h3 a:hover {
    color: #56a5dc;
}

.dossier-list-item:last-child {
    border-bottom: none !important;
}
.main-category {
    font-size: 1.2em;
    color: var(--secondary-color);
}
.dossier-list-item .list-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
}
.dossier-list-item .list-excerpt {
    font-size: 1.2em;
    font-weight: 500;
    color: #717171;
    line-height: 1.3em;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pagination styling */
.pagination {
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin: 0 0.25rem;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;

}

.pagination .page-numbers.current {
    background-color: var(--text-color);
    color: #ffffff;
    border-color: var(--text-color);
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #56a5dc;
    color: #ffffff;
    border-color: #56a5dc;
}

@media (max-width: 768px) {
    .dossier-featured .row {
        min-height: auto;
    }

    .dossier-list-item .col-3 {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .dossier-section-title::before {
        width: 40px;
    }
}


/* ===================================
   PODCAST ARCHIVE PAGE
   =================================== */

/* Page Title */
.podcasts-archive .page-title {

    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Podcast Card */
.podcast-card {
    background: var(--bg-color);
    border-radius: 0;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.podcast-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Podcast Cover */
.podcast-cover {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #d946a6 0%, #7b2cbf 100%);
}

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

/* Podcast Content */
.podcast-content {
    padding: 2rem;
}

.podcast-meta .date {

    font-size: 0.875rem;
    font-weight: 400;
    color: #afafaf;
    text-transform: capitalize;
}

.podcast-title {

    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.podcast-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.podcast-title a:hover {
    color: #56a5dc;
}

.podcast-excerpt {
    margin-bottom: 1.5rem;
}

.podcast-excerpt p {

    font-size: 1rem;
    font-weight: 400;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Podcast Player Link */
.podcast-player {
    padding-top: 1rem;
    border-top: 1px solid #eeeeee;
}

.audio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;

    transition: opacity 0.3s ease;
}

.audio-link:hover {
    opacity: 0.8;
}

.audio-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-color);
}

.audio-meta {
    font-size: 0.875rem;
    font-weight: 400;
    color: #afafaf;
}

/* Responsive */
@media (max-width: 767px) {
    .podcast-content {
        padding: 1.5rem;
    }

    .podcasts-archive .page-title {
        font-size: 2rem;
    }

    .podcast-title {
        font-size: 1.25rem;
    }

    .podcast-cover {
        padding-bottom: 75%; /* Shorter on mobile */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .podcast-cover {
        padding-bottom: 120%; /* Taller in tablet view */
    }
}


/* Category Page Styles */
.category-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.6em;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 0.3em;
}

/* Featured Grid Cards */
.category-featured-grid {
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 2em;
}
.category-featured-card {
    background: var(--bg-color);
    overflow: hidden;
}

.category-featured-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-featured-img:hover {
    transform: scale(1.05);
}

.category-featured-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.category-featured-title a {
    color: var(--text-color);
    text-decoration: none;
}

.category-featured-title a:hover {
    color: #56a5dc;
}

/* Article List Items */
.category-article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.6rem;
}

.category-article-item {
    padding-bottom: 1.5rem;
    /*border-bottom: 1px solid #eeeeee;*/
}

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

.category-article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.category-article-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.category-article-title a {
    color: var(--text-color);
    text-decoration: none;
}

.category-article-title a:hover {
    color: #56a5dc;
}

.category-article-excerpt {
    font-size: 1.3rem;
    font-weight: 300;
    /*line-height: 1.3;*/
    color: #666;
}

/* Pagination */
.category-pagination {
    margin-top: 2rem;
}

.category-pagination .page-numbers {
    display: inline-flex;
    gap: 0.25rem;
    padding: 0;
    list-style: none;
}

.category-pagination .page-numbers li {
    display: inline-block;
}

.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #eeeeee;
    background: var(--bg-color);
}

.category-pagination .page-numbers .current {
    background: #56a5dc;
    color: #fff;
    border-color: #56a5dc;
}

.category-pagination .page-numbers a:hover {
    background: #f8f9fa;
}

/* Responsive */
@media (max-width: 767px) {
    .category-article-img {
        height: 200px;
    }

    .category-article-title {
        font-size: 1.1rem;
    }
}



/* ========== Car Slider Widget ========== */
.car-slider-widget {
    background: var(--bg-color);
    overflow: hidden;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

/* Fuel Widget */
.fuel-widget {
    position: relative;
    background-color: var(--primary-color) !important;
    min-height: 150px;
    border-radius: 16px;
}

.fuel-widget h5 {
    font-size: 34px;
    font-weight: bold;
    line-height: 1.3;
    z-index: 1;
    position: relative;
    display: inline-block; /* Makes width fit the text content */
}

.fuel-widget h5:after {
    content: '';
    display: block;
    width: 100%; /* Now 100% of the inline-block text width */
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 14px;
    left: 0;
    z-index: -1; /* Places line BEHIND the text */
}

.fuel-icon {
    position: absolute;
    right: -20px;
    top: 65%;
    transform: translateY(-50%);
}
.fuel-icon img {
    filter: brightness(0) invert(1);
    transform: rotateY(180deg);
}


/* Slider Header */

.car-slider-section {
    border: 1px solid #eeeeee;
    background: #f9f7f5;
    border-radius: 16px;
}
.slider-header {
    padding-top: 5px;
}

.slider-header h5 {
    /*color: #0f1b26;*/
    /*font-size: 34px;*/
    /*font-weight: 700;*/

    font-size: 34px;
    font-weight: bold;
    line-height: 1.3;
    z-index: 1;
    position: relative;
    display: inline-block;
}
.slider-header h5:after {
    content: '';
    display: block;
    width: 100%; /* Now 100% of the inline-block text width */
    height: 4px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 13px;
    left: 0;
    z-index: -1; /* Places line BEHIND the text */
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 4px;
    justify-self: flex-end;
    margin-right: 25px;
}

.slider-btn {
    width: 25px;
    height: 16px;
    border: 1px solid rgba(221, 221, 221, 0.6);
    background: #f9f7f5;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: #1a1d2e;
    color: #fff;
    border-color: #1a1d2e;
}

.slider-btn .fas {
    color: #adadad;
}

.slider-btn i {
    font-size: 12px;
}

/* Car Swiper */
.carSwiper {
    padding: 0 0 20px 0;
}

.carSwiper .swiper-slide {
    width: 100%;
    height: auto;
}

.car-slide-content {
    /*background: #fff;*/
    border-radius: 8px;
    overflow: hidden;
}

/* Car Image */
.car-image {
    /*background: #f8f9fa;*/
    /*padding: 8px;*/
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.car-image img {
    max-width: 80%;
    height: auto;
    transition: transform 0.3s ease;
}

.car-slide-content:hover .car-image img {
    transform: scale(1.05);
}

/* Car Info */
.car-info {
    /*background: #fff;*/
}

.car-model {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.car-version {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.car-price {
    font-size: 20px;
    color: #d80000 !important;
    font-weight: bold;
    margin-bottom: 0px;
}

/* Responsive */
@media (max-width: 992px) {
    .slider-header h5 {
        font-size: 16px;
    }

    .car-model {
        font-size: 14px;
    }

    .car-price {
        font-size: 13px;
    }

    .fuel-widget h5 {
        font-size: 16px;
    }

    .fuel-icon {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .car-slider-widget {
        margin-bottom: 20px;
    }
}

/* ========== Car Types Section ========== */

.car-types {
    border: 1px solid #eeeeee;
    background: #f9f7f5;
}

.car-types h2 {
    font-size: 48px;
    font-weight: 600;
}

.car-types .row {
    display: flex;
    flex-wrap: wrap;
}

.car-types .row > [class*='col-'] {
    display: flex;
}

.car-type-card {
    padding: 2rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distributes space evenly */
    min-height: 280px; /* Set minimum card height */
    background-image: url('assets/images/icons/logo-icon.svg');
    background-size: 140px;
    background-repeat: no-repeat;
    background-position: center 30px;
    /*background: #0a4b78;*/
}

.car-type-card:hover {
    transform: translateY(-4px);
    /*box-shadow: 0 10px 20px rgba(0,0,0,0.1);*/
}

.car-type-card img {
    width: 100%;
    height: 150px; /* Fixed height for image area */
    object-fit: contain; /* Keeps aspect ratio, centers image */
    object-position: center; /* Ensures centering */
    margin-bottom: 1rem;
}

.car-type-card h5 {
    font-size: 36px;
    font-weight: 600;
    margin-top: auto; /* Pushes title to bottom */
}


/* ========== News Section (3 Columns) ========== */
.news-section {
    background: var(--bg-color);
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    position: relative;
    z-index: 2;
}

.title-icon {
    /*color: var(--primary-color);*/
    margin-left: 5px;
    position: absolute;
    right: -15px;
    z-index: -1;
    top: 40%;
    transform: translateY(-50%);
}
.title-icon img {
    width: 52px;
    height: 52px;
}

/* Left Column: Featured Article */
.featured-article {
    /*border: 1px solid #e0e0e0;*/
    border-radius: 0;
    overflow: hidden;
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    height: 100%;
}

.featured-article:hover {
    /*transform: translateY(-5px);*/
    /*box-shadow: 0 10px 30px rgba(0,0,0,0.1);*/
}

.featured-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-image img {
    transform: scale(1.05);
}

/*.featured-content {*/
/*    background: #fff;*/
/*}*/

/* Vertical dividers between columns */
.news-section .row > [class*='col-']:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
    background: rgba(224, 224, 224, 0.62);
    margin-bottom: 15px;
}

/* Make columns position relative for absolute positioning */
.news-section .row > [class*='col-'] {
    position: relative;
    padding: 0px 25px;
}

/* Remove divider on mobile when columns stack */
@media (max-width: 991px) {
    .news-section .row > [class*='col-']:not(:last-child)::after {
        display: none;
    }
}


.badge-category {
    display: inline-block;
    /*background: #6c757d;*/
    color: var(--category-red);
    font-size: 22px;
    font-weight: 700;
    padding: 0px 0px;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.featured-title {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Middle Column: News List */
.news-list {
    background: var(--bg-color);
    height: 100%;
}

.news-item {
    padding-bottom: 6px;
    padding-top: 8px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: padding-left 0.3s ease;
}
.news-item:first-child {
    padding-top: 0px;
    margin-top: -5px;
}

.news-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news-item:hover {
    padding-left: 10px;
}

.news-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.news-item:hover .news-title {
    color: var(--primary-color);
}

/* Right Column: Popular Sidebar */
.popular-sidebar {
    background: var(--bg-color);
    height: 100%;
}

/* Center the inline-block element within parent */
.popular-sidebar {
    background: var(--bg-color);
    height: 100%;
    text-align: center; /* Centers the inline-block child */
}

/* Background fits text width, text centered vertically */
.sidebar-title {
    font-size: 24px;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    margin: 0 auto 20px auto;
    letter-spacing: 1px;

    /* Keep inline-block for width-to-content */
    display: inline-block;

    /* Vertical centering of text */
    padding: 7px 5px 2px 5px; /* Adjust padding for desired height */
    line-height: 1.2; /* Adjust line-height for vertical balance */
}


.popular-item {
    cursor: pointer;
    transition: transform 0.3s ease;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    padding-top: 5px;
}

.popular-item:last-child {
    border-bottom: 0px solid transparent;
}

.popular-item:hover {
    transform: translateX(5px);
}

.popular-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    overflow: hidden;
}

.popular-image img {
    width: 100%;
    height: 65px;
    object-fit: cover;
}

.popular-content {
    flex: 1;
}

.popular-category {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--category-red);
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.popular-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1;
    color: var(--primary-color);
    margin-bottom: 0;
}
.popular-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0;

    /* Multi-line truncation */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 36px;
    }

    .featured-title {
        font-size: 16px;
    }

    .news-title {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    .featured-image {
        height: 200px;
    }

    .popular-image {
        width: 80px;
        height: 60px;
    }

    .popular-title {
        font-size: 12px;
    }
}


/* ========== Test Drives Section ========== */
.test-drives {
    border: 1px solid #eeeeee;
    background: #f9f7f5;
    padding-bottom: 10px!important;
}

/* Section Header with Controls */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CRITICAL: Force equal heights in Swiper */
.essaiSwiper {
    padding: 0 0 0px 0;
}

.essaiSwiper .swiper-wrapper {
    align-items: stretch; /* Makes all slides equal height */
}

.essaiSwiper .swiper-slide {
    height: auto; /* Required for flexbox equal heights */
    display: flex;
}

/* Card - Fixed Structure */
.test-drives .card {
    border: none;
    transition: all 0.3s ease;
    padding: 15px;
    background: transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Image Container - Fixed Height */
.card-img-top {
    height: 160px !important; /* Force fixed height */
    width: 100% !important;
    object-fit: cover !important; /* Crop to fill */
    object-position: center !important;
    border-radius: 15px 15px 0px 0px !important;
    background-color: #f5f5f5;
    flex-shrink: 0;
    display: block; /* Remove any inline spacing */
}

/* Card Body */
.test-drives .card-body {
    border: 1px solid #eeeeee;
    border-radius: 0px 0px 15px 15px;
    padding: 15px;
    min-height: 60px; /* Ensures minimum height for body */
}

.test-drives .card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .slider-controls {
        align-self: flex-end;
    }
}
/* Responsive Adjustments */
@media (max-width: 992px) {
    .test-drives .card img {
        height: 140px; /* Slightly smaller on tablets */
    }

    .test-drives .card-title {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .test-drives .card img {
        height: 180px; /* Larger on mobile for better visibility */
    }

    .test-drives .card-title {
        font-size: 20px;
    }
}

/* ========== Guides Section ========== */

.guides-section {
    text-align: center; /* Centers all inline/inline-block children */
}

.guides-section .row {
    text-align: left; /* Reset for the cards */
}
/* Guide Card */
.guide-card {
    background: #2c3e50 !important; /* Dark blue-gray like screenshot */
    border-radius: 16px !important;
    padding: 25px !important;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: left;
    margin-right: 20px;
    margin-left: 20px;
}

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

/* Title */
.guide-card h5 {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Description Text */
.guide-card p {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    flex: 1; /* Pushes icons to bottom */
}

/* Icon Wrapper - Bottom Right */
.icon-wrapper {
    position: absolute;
    bottom: 13px;
    right: 10px;
    width: 217px;
    height: 158px;
}

/* Small Icon (EV Plug) - Top Left of Icon Area */
.small-icon {
    position: absolute;
    top: 19px;
    left: 28px;
    width: 50px;
    height: 50px;
    z-index: 2;
    filter: brightness(0) invert(1) opacity(0.8); /* Makes icon white */
}

/* Big Icon (Car) - Bottom Right, Overlapping */
.big-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    z-index: 1;
    filter: brightness(0) invert(1) opacity(0.8); /* Semi-transparent white */
}

/* Responsive */
@media (max-width: 992px) {
    .guide-card {
        min-height: 280px;
    }

    .guide-card h5 {
        font-size: 22px;
    }

    .icon-wrapper {
        width: 100px;
        height: 80px;
    }

    .small-icon {
        width: 35px;
        height: 35px;
    }

    .big-icon {
        width: 75px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .guide-card {
        min-height: 260px;
    }

    .guide-card h5 {
        font-size: 20px;
    }

    .guide-card p {
        font-size: 13px;
    }
}


/* ========== Dossiers Section ========== */
.dossiers-section .card {
    border: none;
    border-radius: 0!important;
    /*box-shadow: 0 4px 8px rgba(0,0,0,0.1);*/
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.dossiers-section .card:hover {
    transform: translateY(-10px);
    /*box-shadow: 0 8px 16px rgba(0,0,0,0.2);*/
}

.dossiers-section .card-img-top {
    border-radius: 0!important;
}
.dossiers-section .card {
    /*padding: 20px;*/
}
.dossiers-section .card img {
    height: 200px;
    object-fit: cover;
    border-radius: 0;
}

.dossiers-section .card-body {
    padding: 10px 0px 0px 0px;
}

.dossiers-section .card-category {
    display: block;
    color: var(--category-red);
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.dossiers-section .card-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #000;
    margin-bottom: 0;
}



/* ========== Videos Section with Swiper ========== */

.videos-section {
    background: var(--bg-color);
}

.videos-section .section-title {
    margin: 0;
}

.watch-all-link {
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.watch-all-link i {
    padding-bottom: 3px;
}

.watch-all-link:hover {
    color: var(--secondary-color);
}

.videoSwiper {
    padding: 20px 0;
    margin: 0 -15px;
}

.videoSwiper .swiper-slide {
    height: auto;
}

.video-card {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 450px;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    padding: 20px 24px 10px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.video-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.video-duration {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
}

.video-duration i {
    font-size: 0.75rem;
    padding-bottom: 3px;
}

/* Swiper Navigation Buttons */


/* Swiper Navigation Buttons */
.videoSwiper .swiper-button-next,
.videoSwiper .swiper-button-prev {
    color: #000;
    background: rgba(255,255,255,0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.videoSwiper .swiper-button-next:after,
.videoSwiper .swiper-button-prev:after {
    font-size: 18px;
}

.videoSwiper .swiper-button-next:hover,
.videoSwiper .swiper-button-prev:hover {
    background: var(--bg-color);
}


/* ========== Films Section ========== */
.films-section {
    text-align: center; /* Centers all inline/inline-block children */
    background: var(--dark-color);
}
.films-section .row {
    text-align: left; /* Reset for the cards */
}
.films-section .section-title {
    color: white;
    margin-bottom: 40px;
}
.film-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.film-card p {
    font-size: 30px;
    font-weight: 600;
}

.film-card:hover img {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


/* ========== Barometre Content Section ========== */
.barometre-content-section {
    /*background: #f8f9fa;*/
    border-top: 1px solid #e0e0e0;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: #333;
}

/* Breadcrumb with Font Awesome separator */
.breadcrumb-item + .breadcrumb-item::before {
    content: "\f054"; /* Font Awesome chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    color: #999;
    padding: 0.08rem 0.5rem 0 0;
}

/* Title and Description */
.barometre-title {
    font-size: 3.9rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.barometre-desc {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    /*line-height: 1.6;*/
    color: var(--primary-color);
    max-width: 80%;
    margin: 0 auto;
}

/* ========== Fuel Table - Override Bootstrap ========== */
.fuel-table-wrapper {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    text-align: center;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}

/* Force table to use separate borders for radius */
.barometre-content-section .fuel-table-wrapper .fuel-table {
    /*margin: 0;*/
    border-collapse: separate !important;
    border-spacing: 0 28px !important; /* Spacing between rows */
    width: 90%;
    margin: 0 auto;
}


/* Force thead background and colors */
.barometre-content-section .fuel-table-wrapper .fuel-table thead {
    background-color: var(--dark-color) !important;
}

.barometre-content-section .fuel-table-wrapper .fuel-table thead th {
    background-color: var(--dark-color) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    font-size: 1.8rem;
    padding: 0.3rem 2rem 0.1rem 2rem;
}

/* Add margin-top to tbody (works in most browsers) */
.barometre-content-section .fuel-table-wrapper .fuel-table tbody::before {
    content: '';
    display: block;
    height: 1px;
    background: transparent;
}


/* Rounded thead corners */
.barometre-content-section .fuel-table-wrapper .fuel-table thead th:first-child {
    border-top-left-radius: var(--fuel-table-border-radius) !important;
    border-bottom-left-radius: var(--fuel-table-border-radius) !important;
}

.barometre-content-section .fuel-table-wrapper .fuel-table thead th:last-child {
    border-top-right-radius: var(--fuel-table-border-radius) !important;
    border-bottom-right-radius: var(--fuel-table-border-radius) !important;
}

/* Remove Bootstrap's default border-bottom from thead */
.barometre-content-section .fuel-table-wrapper .fuel-table thead th,
.versions-table-wrapper .versions-table thead th
{
    border-bottom: none !important;
}

/* Tbody rows styling */
/*.barometre-content-section .fuel-table-wrapper .fuel-table tbody tr {*/
/*    background: gray;*/
/*}*/

.barometre-content-section .fuel-table-wrapper .fuel-table tbody td
/*.versions-table-wrapper .versions-table td */
{
    background: var(--light-gray) !important;
    padding: 1.5rem 2rem;
    vertical-align: middle;
    border: none !important;
}

/* Rounded tbody row corners */
.barometre-content-section .fuel-table-wrapper .fuel-table tbody tr td:first-child
/*.versions-table-wrapper .versions-table tbody tr td:first-child */
{
    border-top-left-radius: var(--fuel-table-border-radius) !important;
    border-bottom-left-radius: var(--fuel-table-border-radius) !important;
}

.barometre-content-section .fuel-table-wrapper .fuel-table tbody tr td:last-child
/*.versions-table-wrapper .versions-table tbody tr td:last-child */
{
    border-top-right-radius: var(--fuel-table-border-radius) !important;
    border-bottom-right-radius: var(--fuel-table-border-radius) !important;
}

.company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: var(--bg-color);
    border-radius: 50%;
    padding: 10px;
}

.company-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
}

.price-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.version-name {
    font-weight: 600;
    font-size: 1.0rem;
    display: block;
    /*line-height: 1rem;*/
    margin-bottom: -0.5rem;
    margin-left: 1rem;
}
.details-version {
    font-weight: 500;
    font-size: 0.7rem;
    margin-left: 1rem;
    /*line-height: 8px;*/
}
.compare-version input{
    margin-top: 0.4rem;
}

.price-version {
    color: var(--secondary-color) !important;
}
.price-version.promo {
    color: var(--danger-color) !important;
    position: relative;
}
.price-version.promo:before {
    content: " ";
    width: 25px;
    height: 25px;
    display: inline-block;
    /*border: 1px solid red;*/
    background: url("assets/images/icons/discount-badge.svg") no-repeat center;
    background-size: contain;
    top: 22px;
    left: 15px;
    position: absolute;
}

.versions-table-wrapper .versions-table {
    /*margin: 0;*/
    border-collapse: separate !important;
    border-spacing: 0 12px !important; /* Spacing between rows */
    width: 95%;
    margin: 0 auto;
}
.versions-table thead th {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.1rem;
}


/* Subscription wrapper - 90% width and centered */
.subscription-wrapper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 5rem auto;
}

.subscription-wrapper .row {
    margin-bottom: 0;
}

/* Subscription Boxes */
.subscription-box {
    background: var(--bg-color);
    border-radius: var(--fuel-table-border-radius);
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}
.versions-table-wrapper .versions-table td
{
    background: var(--light-gray) !important;
    padding: 1rem 1rem;
    vertical-align: middle;
    border: none !important;
}

.newsletter-box {
    background: #424f5f;
    color: white;
}

.whatsapp-box {
    background: #4caf50;
    color: white;
}

.subscription-icon {
    flex-shrink: 0;
}

.subscription-icon i {
    font-size: 3rem;
}
.subscription-icon img {
    width: 60px;
    height: 60px;
}

.subscription-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subscription-content h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0; /* Remove bottom margin */
    line-height: 1.3;
    white-space: nowrap;
    flex-shrink: 0; /* Prevent text from shrinking */
    text-align: center;
}

.subscription-form {
    flex: 1;
}

/* Input wrapper with button inside */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.subscription-form .form-control {
    width: 100%;
    border-radius: 50px;
    padding: 0.55rem 130px 0.55rem 1.5rem;
    border: none;
    font-size: 0.9rem;
}

.subscription-form .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.btn-subscribe {
    position: absolute;
    right: 5px;
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 10px;
}

.whatsapp-box .btn-subscribe {
    background: var(--bg-color);
    color: #424f5f;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    white-space: nowrap;
    letter-spacing: 1px;
    padding: 0.4rem 3rem 0.2rem 3rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .subscription-content {
        flex-direction: column;
        align-items: stretch;
    }

    .subscription-content h5 {
        white-space: normal;
        text-align: center;
    }
}
/* Nouveautés Section */
.nouveautes-section {
    margin-top: 3rem;
}

.nouveautesSwiper .swiper-slide {
    width: auto;
}

/* Nouveautés Section - Fix card sizes */
.nouveautes-section .car-slide-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.nouveautes-section .car-image {
    /*background: #f8f9fa;*/
    padding: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: 180px;
    flex-shrink: 0;
}

.nouveautes-section .car-image img {
    max-width: 95%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.nouveautes-section .car-info {
    /*background: #fff;*/
    padding: 1rem;
    flex-grow: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .barometre-title {
        font-size: 1.8rem;
    }

    .subscription-box {
        flex-direction: column;
        text-align: center;
    }

    .subscription-form {
        flex-direction: column;
    }

    .fuel-table thead th,
    .fuel-table tbody td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}


/* ========== Fiche Content Section ========== */
/* Add border and radius to fiche container */
.fiche-content-section .container {
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 1rem;
    /*background: white;*/
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.05);*/
}

/* Adjust section background if needed */
.fiche-content-section {
    /*background: #f8f9fa;*/
    padding: 0.1rem 0;
}

/* Responsive padding */
@media (max-width: 768px) {
    .fiche-content-section .container {
        padding: 1.5rem;
    }
}

/* Breadcrumb with full-width bottom border */
.fiche-content-section nav[aria-label="breadcrumb"] {
    margin-left: -1rem;
    margin-right: -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 1.5rem;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .fiche-content-section nav[aria-label="breadcrumb"] {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Fiche Header */
.fiche-header {
    margin-bottom: 2rem;
}

.fiche-title {
    font-size: 2.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
}

.fiche-price-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0rem 0.8rem;
    /*border: 1px solid #eeeeee;*/
}

.fiche-content-section .wrapper-price {
    border: 1px solid #eeeeee;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.2rem 1rem;
}

.fiche-price-section img {
    width: 32px;
    height: 32px;
}

.price-icon {
    font-size: 2rem;
    color: var(--secondary-color);
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--category-red);
}

.old-price {
    font-size: 1.0rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: var(--secondary-color);
    color: white;
    padding: 2px 3px 1px 3px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
    line-height: 10px;
}

/* Media Tabs (Images/Videos) */
.media-tabs {
    display: flex;
    gap: 6px;
    /*border: 1px solid #dee2e6;*/
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.media-tab {
    background: rgba(248, 249, 250, 0);
    border: 1px solid #eeeeee;
    padding: 2px 3px 1px 3px;
    line-height: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}


.media-tab i {
    font-size: 1.1rem;
}

.media-tab img {
    width: 15px;
    height: 15px;
}

.media-tab.active {
    background: var(--medium-gray);
    color: white;
}

.media-tab.active img {
    filter: brightness(0) invert(1);
}
.media-tab:hover:not(.active) img {
    filter: brightness(0) invert(1);
}

.media-tab:hover:not(.active) {
    background: var(--medium-gray);
    color: white;
}

/* Responsive */
@media (max-width: 576px) {
    .media-tabs {
        width: 100%;
    }

    .media-tab {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}


/* ========== Photo Gallery ========== */
.photo-gallery {
    background: rgb(26, 26, 26);
    /*border-radius: 12px;*/
    overflow: hidden;
    /*padding: 1rem;*/
}

.mainGallerySwiper {
    position: relative;
    /*border-radius: 8px;*/
    overflow: hidden;
    background: #f8f9fa;
}

.mainGallerySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.mainGallerySwiper .swiper-slide img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    /*max-width: 100%;*/
    /*!* max-height: 400px; *!*/
    /*height: 100%;*/
    /*object-fit: cover;*/
}

.top10-carousel-section .swiper-button-next,
.top10-carousel-section .swiper-button-prev,
.mainGallerySwiper .swiper-button-next,
.mainGallerySwiper .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.7);
    width: 28px;
    height: 30px;
}

.top10-carousel-section .swiper-button-prev,
.mainGallerySwiper .swiper-button-prev {
    border-radius: 0px 6px 6px 0px;
    left: 0;
}
.top10-carousel-section .swiper-button-next,
.mainGallerySwiper .swiper-button-next {
    border-radius: 6px 0px 0px 6px;
    right: 0;
}

.mainGallerySwiper .swiper-button-next::after,
.mainGallerySwiper .swiper-button-prev::after {
    font-size: 1rem;
}

.gallery-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.2rem 0.4rem 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
    line-height: 0.8rem;
    z-index: 10;
}

.gallery-badge i {
    margin-right: 0.5rem;
    display: none;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    margin-top: 6px;
}

.thumbGallerySwiper .swiper-slide {
    cursor: pointer;
    /*border-radius: 8px;*/
    overflow: hidden;
    position: relative;
    /*border: 2px solid transparent;*/
    transition: border 0.3s ease;
}

.thumbGallerySwiper .swiper-slide:hover,
.thumbGallerySwiper .swiper-slide-thumb-active {
    border-color: var(--secondary-color);
}

.thumbGallerySwiper .swiper-slide img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.thumb-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========== Collapsible Details Sections ========== */
.details-accordion {
    /*margin-top: 0rem;*/
}

.detail-section {
    /*background: white;*/
    margin-bottom: 2.4rem;
    overflow: hidden;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1rem;
    background: #3e3d3d;
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.3rem;
}

.btn-collapse {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

.label-details {
    font-weight: 500;
    font-size: 0.7rem;
}

/* Icon styling */
.btn-collapse i {
    font-size: 12px;
    border: 1px solid #FFF;
    border-radius: 4px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Hide minus icon when collapsed */
.detail-header.collapsed .icon-minus {
    display: none !important;
}

/* Show plus icon when collapsed */
.detail-header.collapsed .icon-plus {
    display: flex !important;
}

/* Hide plus icon when expanded */
.detail-header:not(.collapsed) .icon-plus {
    display: none !important;
}

/* Show minus icon when expanded */
.detail-header:not(.collapsed) .icon-minus {
    display: flex !important;
}

.detail-body {
    padding: 0rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1.6rem 0 0.1rem 0;
    /*border-bottom: 1px solid #e0e0e0;*/
    font-size: 1.1rem;
    font-weight: 500;
    color: #3e3d3d;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 1px;
}

.detail-value {
    text-align: right;
}


/* ========== Sidebar Widgets ========== */
.widget {
    background: #f4f4f7;
    border-radius: 12px;
    padding: 1.5rem;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
}
.widget.car-slider-widget {
    background: none;
}

.widget-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    padding-bottom: 1.2rem;
    /*border-bottom: 2px solid #f0f0f0;*/
}

/* Versions & Models Lists */
.versions-list,
.models-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.versions-list li,
.models-list li {
    margin-bottom: 0.75rem;
}

.versions-list li:last-child,
.models-list li:last-child {
    margin-bottom: 0;
}

.versions-list a,
.models-list a {
    color: #333;
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.versions-list a:hover,
.models-list a:hover {
    color: var(--secondary-color);
}

.versions-list a i,
.models-list a i {
    font-size: 0.8rem;
    /*margin-top: -0.1rem;*/
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.3rem 0.1rem 0.3rem;
    border-radius: 9px;
}

/* Nouveautés Widget Slider */
.nouveautes-widget .widget-header {
    margin-bottom: 1rem;
}

.nouveautes-widget .car-slider-section {
   background: transparent;
    border: none;
}

.nouveautes-widget .slider-header h5 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    padding-bottom: 0.7rem;
}

.nouveautes-widget .slider-header h5:after {
   content: none;
}

.nouveautes-widget  .carSwiper {
    padding: 0 0 5px 0;
}



/* Thumbnail navigation arrows */
.thumbnail-gallery {
    position: relative;
}

.thumb-button-next,
.thumb-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 0.8rem;
    transition: background 0.3s ease;
}

.thumb-button-next:hover,
.thumb-button-prev:hover {
    background: var(--secondary-color);
}

.thumb-button-prev {
    left: 5px;
}

.thumb-button-next {
    right: 5px;
}

/* Hide arrows when not needed */
.thumb-button-next.swiper-button-disabled,
.thumb-button-prev.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}


/* Compare Form Widget - Select styling */
.compare-widget .form-select {
    margin-bottom: 1px;
    border: 1px solid #eeeeee;
}



/* Change text color when an option is selected */
.compare-widget .form-select:not(:invalid) {
    color: #333;
}

/* Style for options */
.compare-widget .form-select option {
    color: var(--light-gray); /* Black text for options */
}

.compare-widget .form-select option:first-child {
    color: var(--light-gray); /* Gray for placeholder option */
}

/* When select has a valid value (not placeholder), make it black */
.compare-widget .form-select:valid {
    color: #333 !important;
}

.compare-widget .form-select:focus, .compare-widget .form-select:active {
    border: 1px solid #eeeeee;
    box-shadow: none;
    color: #333 !important;
}

.compare-form > .mb-3 {
    margin-bottom: 10px !important;
}

.compare-widget .btn-dark {
    margin-top: 2rem;
    padding: 0.7rem 1rem 0.5rem 1rem;
}


/* Responsive */
@media (max-width: 991px) {
    .fiche-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .mainGallerySwiper .swiper-slide {
        min-height: 300px;
    }

    .detail-header {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .detail-body {
        padding: 1.5rem;
    }

    .widget {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .fiche-price-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-info {
        flex-wrap: wrap;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-value {
        text-align: left;
    }

    .thumbGallerySwiper .swiper-slide img {
        height: 80px;
    }
}

/* ========== Voitures Neuves Page Styles ========== */
.search-form-panel, .top10-carousel-section {
    border: 1px solid #eeeeee;
    background: #f9f7f5;
    border-radius: 16px;
}

/* Change text color when an option is selected */
.search-form-panel .form-select:not(:invalid) {
    color: #333!important;
}

/* Style for options */
.search-form-panel .form-select option {
    color: #333!important; /* Black text for options */
}

.search-form-panel .form-select option:first-child {
    color: #999!important; /* Gray for placeholder option */
}
.search-form-panel input.form-select {
    background-image: none;
}
.search-form-panel input.form-select::placeholder {
    background-image: none;
    color: #999 !important;
}

/* Search Form Panel */
.search-form-panel h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Top 10 Carousel Section */
.top10-carousel-section h2 {
    color: var(--category-red);
    font-weight: 600;
    font-size: 2.1rem;
}

.top10Swiper {
    padding: 0.1rem 2rem;
}

.top-position {
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--secondary-color);
    font-size: 8rem;
    font-weight: bold;
    z-index: -1;
}

.top10-carousel-section .car-card img {
    max-height: 180px;
    padding-top: 1rem;
}

.top10-carousel-section .car-card h5 {
    font-size: 1.2rem;
    font-weight: 500;
}

.top10-carousel-section .badge {
    background-color: #5b9bd5;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.top10-carousel-section .swiper-button-prev,
.mainGallerySwiper .swiper-button-prev {
    left: 0;
    top: calc(50% - 1.7rem);
    transform: translateY(calc(50% - 1.7rem));
}
.top10-carousel-section .swiper-button-next,
.mainGallerySwiper .swiper-button-next {
    right: 0;
    top: calc(50% - 1.7rem);
    transform: translateY(calc(50% - 1.7rem));
}

/* Brand Grid Section */
.brand-grid-section h2 {
    font-weight: 600;
    font-size: 2.6rem;
    /*letter-spacing: 0.3rem;*/
}

.brand-grid-section .brand-tile {
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-rows: 1fr auto;    /* Image area flexible, title fixed */
    align-items: center;
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
    padding: 1rem;
    gap: 0.5rem;
    border-radius: 12px;
    background-color: #eeeeee;
}

.brand-grid-section .brand-tile img {
    max-height: 90px;
    max-width: 75%;
    width: auto;
    height: auto;
    object-fit: contain;
    justify-self: center;
    align-self: center;
    padding-top: 0.5rem;
}

.brand-grid-section .brand-tile p {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    grid-row: 2;                     /* Always in second row */
}

/* Tablet */
@media (max-width: 991px) {
    .brand-grid-section .brand-tile {
        max-width: 140px;
    }
    .brand-grid-section .brand-tile img {
        max-height: 50px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .brand-grid-section .brand-tile {
        max-width: 120px;
    }
    .brand-grid-section .brand-tile img {
        max-height: 40px;
    }
    .brand-grid-section .brand-tile p {
        font-size: 0.7rem;
    }
}


/* Car Listing Page Styles - Add to style.css */

/* Page Title */
.page-title-wrapper {
    padding: 1rem 0;
}

.page-main-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Active Filters */
.active-filters .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-color: #afafaf;
}

/* Filter Sidebar */
.filter-sidebar-wrapper {
    background: var(--bg-color);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.sticky-sidebar {
    position: sticky;
    top: 20px;
}

.filter-header-box {
    display: flex;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #0f1b26;
}

.filter-main-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eeeeee;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.filter-options-list .form-check {
    margin-bottom: 0.75rem;
}

.filter-options-list .form-check-label {
    font-size: 0.875rem;
    color: var(--text-color);
    cursor: pointer;
}

.filter-options-list .form-check-input:checked {
    background-color: var(--text-color);
    border-color: var(--text-color);
}

.filter-show-more {
    font-size: 0.875rem;
    color: #56a5dc;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
}

.filter-show-more:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
    .filter-sidebar-wrapper {
        margin-bottom: 2rem;
    }

    .sticky-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .page-main-title {
        font-size: 1rem;
    }

    .active-filters {
        width: 100%;
        margin-bottom: 1rem;
    }

    .car-models-grid .row {
        margin: 0 -0.5rem;
    }

    .car-models-grid .row > div {
        padding: 0 0.5rem;
    }
}


/* ========== Brand Page Styles ========== */

 /* Main Title */
.brand-main-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
/* Subtitle Section */
.wrap-box {
    border: 1px solid #eeeeee;
    padding: 15px;
}
.brand-subtitle-section {
    background: var(--bg-color);
    /*padding: 1.5rem 0;*/
    padding-bottom: 1.3rem;
    margin-bottom: 2rem;
    position: relative;
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    border-bottom: 1px solid #eeeeee;
}

.brand-subtitle-text p {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
}
.wrap-box .brand-logo {
    margin-right: 2rem;;
}

.brand-subtitle-text .price-highlight {
    color: #dc3545;
    font-weight: 600;
}

.brand-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Car Models Grid */
.car-models-grid {
    margin-bottom: 3rem;
}

.car-model-card {
    background: var(--bg-color);
    /*border-radius: 8px;*/
    overflow: hidden;
    border: 1px solid #eeeeee;
    /*box-shadow: 0 2px 8px rgba(0,0,0,0.08);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.car-image-wrapper {
    background: var(--bg-color);
    padding: 0.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    /*border: 1px solid red;*/
}

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

.car-name-badge {
    background: #1a1d2e;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description Section */
.brand-description-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.description-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 1rem;
    margin-top: 5rem;
    margin-left: 1rem;
}

.description-text p {
    font-size: 1.1rem;
    /*line-height: 1.8;*/
    color: #333;
    text-align: justify;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Newsletter Section */
.newsletter-box {
    background: #424f5f;
    border-radius: 10px;
    padding: 1.5rem;
}

.newsletter-icon {
    color: #666;
}

.newsletter-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.newsletter-form {
    gap: 10px;
}

.newsletter-input {
    border-radius: 25px;
    padding: 0.6rem 1.2rem;
    border: 1px solid #ddd;
    min-width: 250px;
}

.newsletter-btn {
    background: #007bff;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #0056b3;
}

/* WhatsApp Section */
.whatsapp-box {
    background: #25D366;
    border-radius: 10px;
    padding: 1.5rem;
}

.whatsapp-icon {
    color: #fff;
}

.whatsapp-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
}

.whatsapp-btn {
    background: var(--bg-color);
    color: #25D366;
    border: none;
    border-radius: 25px;
    padding: 0.6rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
}

.whatsapp-btn:hover {
    background: #f0f0f0;
    color: #25D366;
}

/* Sidebar - Autres Marques Section */
.autres-marques-section {
    background: #f4f4f7;
    border-radius: 16px;
    overflow: hidden;
}

.autres-marques-header {
    background: #f8f8f8;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.autres-marques-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.autres-marques-body {
    padding: 1.5rem;
    background: #f8f8f8;
}

.brand-logo-item {
    background: var(--bg-color);
    padding: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Forces square shape */
    width: 100%;
    position: relative;
}

.brand-logo-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}


.arrow-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.arrow-btn:hover {
    color: #000;
}

.carousel-arrows {
    display: flex;
    gap: 10px;
}
.carSwiper.autres-marques {
    padding-bottom: 1rem ;
}
.slider-controls.autres-marques {
    padding-bottom: 1.5rem ;
}

.brand-logo-item img {
    margin-top: 0;
}

.brand-logo.car img {
    max-height: 80px;
}
.wrap-box .brand-logo.car  {
    margin-right: 0.5rem;
}
.brand-logo.version {
    margin-right: 0.1rem;
}
.brand-logo.version img {
   max-width: 80px;
}

/* Advertisement Banner */
.ad-banner-content {
    background: linear-gradient(135deg, #3a2b5e 0%, #8b3a62 50%, #ff6b6b 100%);
    border-radius: 10px;
    padding: 2rem;
    color: #fff;
}

.ad-banner-header {
    margin-bottom: 1.5rem;
}

.ad-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.ad-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.ad-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ff9966;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.ad-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
}

.ad-advantages {
    margin-bottom: 1.5rem;
}

.ad-advantages-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.ad-advantages-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0;
}

.ad-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ad-logo-box {
    width: 60px;
    height: 60px;
    border: 3px solid #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ad-logo-letter {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.ad-contact-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.ad-contact-email {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 0;
}

/* Car Comparison Section */
.car-comparison-section {
    background-color: var(--bg-color);
}

.fiche-title.comparateur {
    font-size: 3rem;
    margin-top: 2.4rem;
}

.section-title {

    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0;
}

.comparison-card {
    background: var(--bg-color);
    border: 1px solid #eeeeee;
    /*border-radius: 8px;*/
    padding: 1rem;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.comparison-card:hover {
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.card-header-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.card-header-actions .fas.fa-ellipsis-v {
    font-size: 1.6rem;
}

.btn-more {
    background: transparent;
    border: none;
    color: #afafaf;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.btn-more:hover {
    color: var(--text-color);
}

.action-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #f3f3f3;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);*/
    display: none;
    min-width: 150px;
    z-index: 10;
}

.card-header-actions:hover .action-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-color);
    font-size: 0.9rem;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f8f9fa;
}

.car-model-name {

    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0rem;
    text-align: center;
    margin-top: 2rem;
}

.car-image-wrapper {
    margin: 0 0 2.5rem  0;
    text-align: center;
}

.car-image-wrapper img {
    max-width: 100%;
    height: auto;
}

.car-info {
    text-align: center;
    padding-bottom: 2.5rem;
}

.car-year {
    display: block;
    font-size: 1.0rem;
    color: #9b9b9b;
    font-weight: 500;
    margin: 0;
    padding: 0;
    line-height: 1rem;
}

.car-specs {
    font-size: 1.5rem;
    color: #9b9b9b;
    font-weight: 600;
    line-height: 1.5rem;
    margin: 0.5rem;
}

.car-price {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 2.5rem;
    color: #ed3e20;
    margin: 0.2rem;
}

.comparison-divider {
    border: 0;
    border-top: 2px solid #eeeeee;
    margin: 0;
}

/* Comparison-specific styles */
.car-comparison-specs {
    margin: 2rem 0;
}

.comparison-row-header {
    background-color: #f3f3f3;
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid #a1a09e;
    text-align: center;
}

.comparison-row-header h4 {

    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-align: center;
}

.comparison-row-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--bg-color);
    /*border-bottom: 1px solid #eeeeee;*/
}

.comparison-value {
    padding: 1.5rem 1rem;
    text-align: center;

    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    /*border-right: 1px solid #eeeeee;*/
}

.comparison-value:last-child {
    border-right: none;
}

.comparison-label {

    font-size: 1.8rem;
    font-weight: 300;
}

.action-dropdown {
    z-index: 1000 !important;
}

.action-dropdown.show {
    display: block !important;
}

/* Make cards equal height */
.comparison-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Fixed height for car title - handles 1 or 2 lines */
.car-model-name {
    min-height: 6rem;
    max-height: 6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show max 2 lines */
    -webkit-box-orient: vertical;
    line-height: 3rem;
}

/* Fixed height container for images - UPDATED TO COVER */
.car-image-wrapper {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 2.5rem 0;
    overflow: hidden; /* Crop overflowing parts */
}

.comparison-card .car-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill entire container */
    object-position: center; /* Keep car centered when cropping */
}

/* Fixed minimum height for car info section */
.car-info {
    min-height: 120px;
}


/* ========== Single Article Styles ========== */
.article-main {
    background: var(--bg-color);
}

.article-category {
    display: inline-block;
    color: var(--category-red);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.article-meta {
    font-size: 14px;
    color: #6c757d;
    /*padding-bottom: 20px;*/
    /*border-bottom: 1px solid #e0e0e0;*/
}

.article-meta span {
    display: inline-flex;
    align-items: center;
}

.article-featured-image {
    overflow: hidden;
    /*border-radius: 8px;*/
}

.article-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-content {
    font-size: 1.4em;
    font-weight: 600;
    line-height: 1.4;
    color: #717171;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3 {
    font-weight: 700;
    color: #717171;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

/* Article Tags */
.article-tags .tag-badge {
    display: inline-block;
    background: #717171;
    color: #ffffff;
    padding: 4px 15px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.article-tags .tag-badge:hover {
    background: var(--secondary-color);
    color: #fff;
}

.article-tags .tags-label {
    font-size: 1.0em;
    font-weight: 400;
    color: #717171;
    margin-right: 15px;
}

/* Social Share */
.article-share .share-label {
    font-weight: 600;
    color: var(--primary-color);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Related Articles */
.section-title-small {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    position: relative;
    padding-bottom: 10px;
}

.section-title-small::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--category-red);
}

.related-card {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-image {
    overflow: hidden;
    height: 180px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 15px;
}

.related-category {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--category-red);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--primary-color);
    margin: 0;
}

.related-title:hover {
    color: var(--secondary-color);
}

/* Sidebar Mini Car Cards */
.car-card-mini {
    background: var(--bg-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

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

.car-card-mini .car-image {
    margin-bottom: 10px;
}

.car-card-mini .car-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.car-card-mini .car-brand {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.car-card-mini .car-model {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.car-card-mini .car-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--category-red);
    margin: 0;
}
.article-cat {
    font-weight: 600;
    font-size: 1.3em;
    color: #d2d2d2;
    display: flex;
    position: relative;
    z-index: 2;
    margin-bottom: 1.1rem;
}
.article-icon {
    width: 28px;
    height: 28px;
    left: 0px;
    top: -4px;
    position: relative;
    margin-right: 0.4em;
    /*z-index: -1;*/
}

/* Responsive */
@media (max-width: 991px) {
    .article-title {
        font-size: 28px;
    }

    .article-content {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .article-title {
        font-size: 24px;
    }

    .related-image {
        height: 150px;
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .car-model-name {
        font-size: 2rem;
        min-height: 5rem;
        max-height: 5rem;
        line-height: 2.5rem;
    }

    .car-image-wrapper {
        height: 180px;
    }

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

@media (max-width: 767px) {
    .car-model-name {
        font-size: 1.8rem;
        min-height: 4.5rem;
        max-height: 4.5rem;
        line-height: 2.25rem;
    }

    .car-image-wrapper {
        height: 160px;
    }

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

    .car-info {
        min-height: 100px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .comparison-row-values {
        grid-template-columns: 1fr;
    }

    .comparison-value {
        border-right: none;
        border-bottom: 1px solid #eeeeee;
        padding: 1rem;
    }

    .comparison-value:last-child {
        border-bottom: none;
    }

    .comparison-row-header h4 {
        text-align: left;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .comparison-row-values {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Additional responsive adjustments */
@media (max-width: 991px) {
    .section-title {
        font-size: 1.5rem;
    }

    .car-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .comparison-card {
        margin-bottom: 1rem;
    }
}

/* Empty card for adding cars */
.comparison-card-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 2px dashed #afafaf;
    background: #f9f9f9;
}

.empty-card-content {
    text-align: center;
}

.empty-card-content i {
    color: #56a5dc;
}

.empty-card-content h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Modal styles */
#carSelectionModal .modal-content {
    border-radius: 12px;
}

#carSelectionModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #eeeeee;
}

#carSelectionModal .modal-title {
    font-weight: 600;
    color: var(--text-color);
}

#carSelectionModal .form-select {
    border: 1px solid #eeeeee;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

#carSelectionModal .form-select:focus {
    border-color: #56a5dc;
    box-shadow: 0 0 0 0.2rem rgba(86, 165, 220, 0.25);
}

#carSelectionModal .form-select option {
    color: var(--text-color);
}

#carSelectionModal .form-select option:first-child {
    color: #afafaf;
}

#carSelectionModal .btn-dark {
    background-color: var(--text-color);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
}

#carSelectionModal .btn-dark:hover {
    background-color: #1a2d3d;
}

#carSelectionModal .btn-secondary {
    background-color: #afafaf;
    border: none;
    padding: 0.75rem 2rem;
}

#carSelectionModal .btn-secondary:hover {
    background-color: #999;
}

/* Recent Cars Section */
.recent-cars-section {
    background: var(--bg-color);
}

.recent-cars-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.recent-car-card {
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    padding: 1.5rem;
}

.recent-car-image {
    margin-bottom: 1rem;
}

.recent-car-image img {
    width: 100%;
    border-radius: 8px;
}

.recent-car-details {
    text-align: center;
}

.recent-car-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.recent-car-price {
    font-size: 1rem;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .brand-main-title {
        font-size: 2rem;
    }

    .brand-logo-img {
        width: 80px;
        height: 80px;
    }

    .newsletter-input {
        min-width: 200px;
    }

    .ad-main-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 767px) {
    .brand-main-title {
        font-size: 1.75rem;
    }

    .brand-subtitle-text p {
        font-size: 1.1rem;
    }

    .brand-logo-img {
        width: 60px;
        height: 60px;
    }

    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }

    .newsletter-input {
        width: 100%;
        min-width: auto;
    }

    .newsletter-btn,
    .whatsapp-btn {
        width: 100%;
    }

    .ad-banner-content {
        padding: 1.5rem;
    }

    .ad-main-title {
        font-size: 1.2rem;
    }
}



/* ========== Footer Section ========== */
.footer-section {
    background: var(--footer-bg-color);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.footer-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: rgb(255, 255, 255);
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.footer-icon {
    width: 34px;
    height: 34px;
    left: -5px;
    position: absolute;
    z-index: -1;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    /*margin-bottom: 0.75rem;*/
}

.footer-links a {
    color: rgb(162, 162, 162);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    /*letter-spacing: 0.7px;*/
    /*line-height: 1.6;*/
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e1dede;
}

.footer-copyright {
    color: rgb(162, 162, 162);
    font-size: 0.9rem;
    font-weight: 600;
    padding-top: 2rem;
    /*border-top: 1px solid #dee2e6;*/
}


/* ========== Swiper Custom Overrides ========== */
.swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.promoSwiper .swiper-slide {
    width: 200px;
}

.videoSwiper .swiper-slide {
    width: 280px;
}

/* ========== Responsive Design ========== */
@media (max-width: 992px) {
    /* Navigation Menu - Stack on mobile */
    .nav-menu {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    .promo-card img {
        height: 250px;
    }

    .featured-article img {
        height: 300px;
    }

    .promoSwiper .swiper-slide {
        width: 180px;
    }

    .videoSwiper .swiper-slide {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }

    .header-link span {
        display: none !important;
    }

    .promo-card img {
        height: 220px;
    }

    .car-type-card {
        padding: 1.5rem 0.5rem;
    }

    .featured-article img {
        height: 250px;
    }

    .promoSwiper .swiper-slide {
        width: 160px;
    }

    .videoSwiper .swiper-slide {
        width: 220px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    h2 {
        font-size: 1.5rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .promo-card img {
        height: 200px;
    }

    .promoSwiper .swiper-slide {
        width: 150px;
    }

    .videoSwiper .swiper-slide {
        width: 200px;
    }

    .video-thumbnail img {
        height: 120px;
    }
}

/* Desktop Only - Show navigation */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* ========== Utility Classes ========== */
.shadow-sm {
    box-shadow: 0 2px 5px rgba(0,0,0,0.08) !important;
}

.shadow {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

.rounded {
    border-radius: 8px !important;
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.video-thumbnail:hover .play-button i {
    animation: pulse 1s ease-in-out infinite;
}
/* ========== Custom Updates 2026-02-01 ========== */

/* Page background color */
body {
    background-color: #fefbf3;
}

/* News title - 2 line ellipsis */
.news-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em; /* 2 lines × 1.4em */
}

/* Video slider navigation buttons */
.video-slider-wrapper {
    position: relative;
}

.video-slider-wrapper .swiper-button-next,
.video-slider-wrapper .swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-slider-wrapper .swiper-button-next:hover,
.video-slider-wrapper .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.video-slider-wrapper .swiper-button-next {
    right: 10px;
}

.video-slider-wrapper .swiper-button-prev {
    left: 10px;
}

.video-slider-wrapper .swiper-button-next::after,
.video-slider-wrapper .swiper-button-prev::after {
    font-size: 20px;
    color: #333;
}

/* Play overlay for video slides (if needed) */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.play-overlay i {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.video-slide-link {
    position: relative;
    display: block;
}

.video-slide-link:hover .play-overlay {
    background: rgba(0, 0, 0, 0.9);
}

/* Search form submit button disabled state */
.search-submit-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Section titles - 2 line ellipsis for all content sections */
.actualites-section .card-title,
.articles-section .card-title,
.dossiers-section .card-title,
.essai-section .card-title,
.films-section p,
.promo-section h5,
.videos-section .video-title,
.newcars-section .car-title,
.guides-section h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4em;
    max-height: 2.8em;
}
