:root {
    --red-main: #D90015;
    --red-hover: #B30012;
    --red-light-bg: #FFF5F5;
    --white-bg: #FFFFFF;
    --off-white: #F9F9FB;
    --text-black: #111111;
    --text-dark-gray: #333333;
    --text-muted: #666666;
    --border-light: #EBEBEB;
    --border-red: #FFCCCC;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --primary-red: #d32f2f;
    --primary-red-hover: #b71c1c;
    --dark-text: #222222;
    --light-bg: #f5f6f8;
    --card-border: #e0e0e0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

/* Top Notification Bar */
.top-bar {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 5px 5%;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency-select {
    padding: 2px 5px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    color: #333;
}

/* Header Base Styling */
header {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-red);
    font-style: italic;
}

.logo-text {
    line-height: 1.1;
}

.logo-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-red);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 2px;
}

.search-box {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 10px 20px;
    background-color: var(--white);
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: var(--dark-text);
}

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

.header-actions {
    display: flex;
    gap: 20px;
}
.header-mobile {
    display: none;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 600;
}

.action-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

.action-item.whatsapp i {
    color: #25D366;
}

/* Container position for popup placement */
.auth-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Popup Box Styling */
.auth-popup-card {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 16px 14px;
    z-index: 1050;
    text-align: center;
    margin-top: 8px;
}

/* Top pointer arrow */
.auth-popup-card::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #dcdcdc;
    border-left: 1px solid #dcdcdc;
    transform: rotate(45deg);
}

/* Inner Text */
.auth-popup-text {
    font-size: 13px;
    color: #444444;
    line-height: 1.4;
    margin-bottom: 12px;
    text-align: left;
}

/* Buttons inside Popup */
.auth-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.auth-btn-red {
    background-color: var(--primary-red);
    color: #ffffff !important;
}

.auth-btn-red:hover {
    background-color: var(--primary-red-hover);
}

.auth-btn-light {
    background-color: #f1f3b8;
    color: #555555 !important;
    border: 1px solid #e2e4a6;
}

.auth-btn-light:hover {
    background-color: #e5e7a9;
}

/* Separator Line */
.auth-divider {
    border-top: 1px dashed #ccc;
    margin: 12px 0;
}

/* Trigger: Show on Hover */
.auth-dropdown-wrapper:hover .auth-popup-card {
    display: block;
}

/* Trigger: Show on Click (via JavaScript) */
.auth-dropdown-wrapper.active .auth-popup-card {
    display: block;
}

/* Navigation Bar */
.desktop-nav {
    display: block;
}

.mobile-nav {
    display: none;
}
nav {
    background-color: var(--primary-red);
}

.nav-container {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-item a {
    display: block;
    padding: 12px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.nav-item:hover > a {
    background-color: var(--primary-red-hover);
}

/* Mega Dropdown Menu */
.dropdown-menu-custom {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #eee;
    width: 450px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    padding: 15px;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-radius: 0 0 8px 8px;
}

.nav-item:hover .dropdown-menu-custom {
    display: grid;
}

.dropdown-menu-custom ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.dropdown-menu-custom li a {
    color: var(--dark-text);
    padding: 6px 0;
    font-size: 13px;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-menu-custom li a:hover {
    color: var(--primary-red);
    background: none;
}

.dropdown-menu-custom li a img {
    width: 18px;
    height: auto;
    object-fit: contain;
}

/* Mobile View (Screens 768px and smaller) */
@media (max-width: 768px) {
    /* Mobile popup adjustments */
    .header-mobile .auth-popup-card {
        right: -5px;
        width: 200px;
    }

    .header-mobile .auth-popup-card::before {
        right: 15px;
    }
    /* Hide Desktop Nav on Mobile */
    .desktop-nav {
        display: none !important;
    }

    /* Show Mobile Nav on Mobile */
    .mobile-nav {
        display: block !important;
    }

    /* Mobile Navigation Styling */
    .mobile-nav {
        background-color: var(--primary-red);
        padding: 8px 0;
    }

    .mobile-nav .nav-container {
        display: flex;
        justify-content: space-around;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 10px 0;
        background-color: #c82333; /* Your red background color */
    }

    .mobile-nav .nav-item a {
        color: #ffffff !important; /* Force font color to white */
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

    .mobile-nav .nav-item a:hover {
        color: #f8f9fa; /* Slight hover effect */
    }
}

/* Main Container Layout */
.wrapper {
    max-width: 1300px;
    margin: 20px auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 20px;
}

/* Sidebar Styling */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-box {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    overflow: hidden;
    padding: 15px;
}

.sidebar-title {
    background: var(--light-bg);
    color: var(--primary-red);
    padding: 10px 15px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid var(--primary-red);
    margin: -15px -15px 15px -15px;
}

.sidebar-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--dark-text);
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.sidebar-list li a:hover {
    color: var(--primary-red);
}

/* Brand Grid Section (Desktop Default: Hidden) */
.brand-grid-section {
    display: none;
    margin: 20px 0;
}

.brand-grid-header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 15px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.brand-card {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.brand-card img {
    max-width: 100%;
    height: 45px;
    object-fit: contain;
}

/* Hero Carousel Styling */
.hero-carousel {
    border-radius: 6px;
    overflow: hidden;
}

.hero-slide {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-overlay {
    background: rgba(0,0,0,0.4);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    color: var(--white);
}

.hero-slide h1 {
    font-size: 28px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 0;
}

.hero-slide p {
    background: var(--primary-red);
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0;
}

/*  =====================================================
    LEFT PANEL 
    ===================================================== */

 /* SIDEBAR CONTAINER & CARDS */
.sidebar-wrapper {
    width: 100%;
    max-width: 240px;
    font-family: Arial, sans-serif;
}

.sidebar-box {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* CARD TITLES */
.sidebar-title {
    color: #c53030; /* Red header text */
    font-size: 15px;
    font-weight: 700;
    padding: 12px 15px;
    border-bottom: 2px solid #c53030;
    margin: 0;
}

/* PRICE SLIDER CONTAINER */
.price-slider-container {
    background: #ffffff;
    padding: 25px 20px 15px 20px;
    text-align: center;
}

/* BOOTSTRAP-SLIDER OVERRIDES */
.slider.slider-horizontal {
    width: 100% !important;
}

.slider-track {
    height: 8px !important;
    background: #e2e8f0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

.slider-selection {
    background: #d43939 !important; /* Red Track Line */
    border-radius: 4px !important;
    box-shadow: none !important;
}

.slider-handle {
    width: 20px !important;
    height: 20px !important;
    background: #007bb6 !important; /* Blue Circular Handles */
    border: 2px solid #007bb6 !important;
    border-radius: 50% !important;
    /* margin-top: -6px !important; */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    cursor: pointer;
}

.price-slider-display {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 700;
    color: #d43939;
}

/* SELECT2 BRAND DROPDOWN */
.brand-select-wrapper {
    padding: 12px 15px 5px 15px;
    background: #ffffff;
}

.brand-select-wrapper select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 13px;
    color: #4a5568;
    background-color: #fff;
}

/* SIDEBAR LISTS & DIVIDERS */
.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.sidebar-list li {
    border-bottom: 1px solid #edf2f7;
}

.sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-list li a {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #2d3748;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-list li a:hover {
    background-color: #f7fafc;
    color: #c53030;
}

.sidebar-list li a img {
    width: 18px;
    height: 12px;
    margin-right: 10px;
    object-fit: cover;
    border-radius: 2px;
}

/* ===================================================
   RIGHT PANEL & CARD FIXES (UPDATED)
   =================================================== */

.right-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    min-width: 0; /* Prevents flex child overflow bug in modern browser grids */
    box-sizing: border-box;
}

/* Clean Reset for All Elements inside Right Panel */
.right-panel * {
    box-sizing: border-box;
    position: static !important; /* Force static positioning to stop overlapping */
}

/* Right Panel Main Containers/Cards */
.right-panel > div,
.right-panel .card,
.right-panel .sidebar-box,
.right-panel .user-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important; /* Allows box to auto-expand to fit text */
    min-height: initial !important;
    padding: 15px 12px !important;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 6px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
}

/* Prevent Typography Clipping & Overlapping */
.right-panel h1, 
.right-panel h2, 
.right-panel h3, 
.right-panel h4, 
.right-panel h5,
.right-panel h6,
.right-panel p,
.right-panel span,
.right-panel div {
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: normal !important;
    line-height: 1.4 !important;
    margin: 4px 0 !important;
    padding: 0 !important;
    height: auto !important;
    text-align: center;
}

/* Fix Action & Auth Buttons inside Right Panel */
.right-panel a,
.right-panel .btn,
.right-panel .auth-btn,
.right-panel .btn-red {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 38px !important;
    height: auto !important;
    padding: 8px 12px !important;
    margin: 6px 0 !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.btn-red {
    background: linear-gradient(to bottom, #e53935, var(--primary-red));
    color: var(--white) !important;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn-red:hover {
    background: var(--primary-red-hover);
    color: var(--white) !important;
}

.btn-red-block{
    background: linear-gradient(to bottom, #e53935, var(--primary-red));
    color: var(--white) !important;
    padding: 5px;
    border-radius: 5px;
    text-decoration: none;
}
.btn-red-block:hover{
    background: var(--primary-red-hover);
    color: var(--white) !important;
}
/* "How to Buy" Banner Container Fix */
.how-to-buy-btn,
.right-panel .how-to-buy-btn {
    background: linear-gradient(to right, var(--primary-red), #e53935);
    color: var(--white) !important;
    padding: 12px 15px !important;
    border-radius: 6px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    width: 100% !important;
}

.how-to-buy-btn:hover {
    color: var(--white) !important;
}

.how-to-buy-btn i {
    font-size: 20px;
    background: var(--white);
    color: var(--primary-red);
    padding: 6px;
    border-radius: 50%;
    margin: 0 !important;
}

/* Images & Icons Inside Right Panel */
.right-panel img,
.right-panel svg {
    max-width: 100% !important;
    max-height: 100px !important;
    height: auto !important;
    display: block;
    margin: 0 auto 8px !important;
    object-fit: contain;
}

.user-card i.avatar {
    font-size: 40px;
    color: #888;
    margin-bottom: 10px;
}

/* Car Section */
.section-header {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 15px;
    font-weight: bold;
    font-size: 15px;
    margin: 20px 0 10px 0;
    border-radius: 4px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
}

.car-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.car-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #eee;
}

.car-details {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.car-title {
    font-size: 12px;
    font-weight: bold;
    color: var(--dark-text);
    margin-bottom: 5px;
    line-height: 1.2;
}

.car-price {
    font-size: 12px;
    color: var(--primary-red);
    font-weight: 800;
}

.view-more-container {
    text-align: right;
    margin-top: 10px;
}

.btn-view-more {
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.btn-view-more:hover {
    color: var(--white);
    background: var(--primary-red-hover);
}

/* Content Info Block */
.info-content {
    background: var(--white);
    padding: 30px;
    margin-top: 30px;
    border-radius: 6px;
    border: 1px solid var(--card-border);
}

.info-content h2 {
    font-size: 24px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.info-content h3 {
    font-size: 18px;
    color: var(--dark-text);
    margin: 15px 0 10px 0;
}

.info-content p, .info-content ul {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.info-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.btn-contact-blue {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

/* Why Choose Us */
.why-us-section {
    background-color: var(--white-bg);
    padding: 45px 5%;
    margin-bottom: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.why-box {
    text-align: center;
    padding: 15px;
}

.why-box i {
    font-size: 2.3rem;
    color: var(--red-main);
    margin-bottom: 12px;
}

.why-box h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 8px;
}

.why-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Bootstrap Slider Override Colors */
.slider-selection {
    background: var(--primary-red);
}

/* Footer */
footer {
    background-color: #e9ecef;
    padding: 40px 5% 20px 5%;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    color: var(--primary-red);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col ul li a {
    color: #555;
    text-decoration: none;
    font-size: 13px;
    line-height: 2;
}

.footer-col ul li a:hover {
    color: var(--primary-red);
}

.copyright {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 13px;
    margin-top: 30px;
}

/* ===================================================
   RESPONSIVE BREAKPOINTS
   =================================================== */

@media (max-width: 992px) {
    .wrapper {
        grid-template-columns: 220px 1fr;
    }
    .right-panel {
        grid-column: span 2;
        flex-direction: row;
    }
    .user-card, .how-to-buy-btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    /* Top Bar Mobile Tweaks */
    .top-bar {
        padding: 6px 12px;
        justify-content: center;
        gap: 10px;
        font-size: 13px;
        font-weight: 500;
    }

    .currency-select {
        font-size: 12px;
        padding: 1px 4px;
        border-radius: 3px;
    }

    /* Mobile Header Layout */
    .header-desktop {
        display: none !important;
    }

    .header-mobile {
        display: flex !important;
        flex-direction: column;
        background-color: #e0e0e0;
        padding: 12px 15px 10px 15px;
        gap: 10px;
    }

    .mobile-header-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header-mobile .header-actions {
        display: flex;
        gap: 15px;
        align-items: center;
    }

    .header-mobile .action-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--primary-red);
        font-size: 11px;
        font-weight: bold;
    }

    .header-mobile .action-item i {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--white) !important;
        margin-bottom: 2px;
    }

    .header-mobile .action-item.whatsapp i {
        background-color: #25D366;
    }

    .header-mobile .action-item.login i {
        background-color: var(--primary-red);
    }

    /* Full-width Search Box below Logo & Actions */
    .header-mobile .search-box {
        width: 100%;
        max-width: 100%;
        margin: 0;
        display: flex;
        background-color: var(--white);
        border-radius: 4px;
        border: 1px solid #ccc;
        overflow: hidden;
    }

    .header-mobile .search-box input {
        width: 100%;
        border: none;
        padding: 8px 12px;
        font-size: 14px;
        outline: none;
    }

    .header-mobile .search-box button {
        border: none;
        border-left: 1px solid var(--primary-red);
        background: transparent;
        padding: 8px 15px;
        color: #000;
        font-size: 16px;
        cursor: pointer;
    }
    
    /* Mobile Navigation Bar */
    nav {
        background-color: var(--primary-red);
        padding: 8px 0;
    }

    .nav-container {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        padding: 0 10px;
    }

    .nav-item a {
        padding: 4px 6px;
        font-size: 15px;
        font-weight: 800;
        color: #000000;
    }

    .nav-item:hover > a {
        background-color: transparent;
        text-decoration: underline;
    }

    /* Hide sidebars on mobile */
    .sidebar, 
    .right-panel {
        display: none !important;
    }
    
    /* Make main container span full width */
    .wrapper {
        grid-template-columns: 1fr;
    }

    /* Show brand grid on mobile */
    .brand-grid-section {
        display: block;
    }

    .brand-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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