/* Tyres for Car Brands strip — copied from the home page (homepage.css + homeStyle.css) so it looks identical here. */
@media (max-width: 480px) {
    .brand-logos {
        gap: 12px;
        animation-duration: calc(var(--marquee-duration, 50s) * 0.7);
    }

    .brand-card {
        min-width: 120px;
        padding: 0 10px;
    }

    .brand-card img {
        width: 40px;
        margin-bottom: 6px;
    }
}

.brand-section {
    background-color: var(--secondary-bg, #000000);
    color: var(--white-color, #ffffff);
}

.car-logo-wrapper {
    overflow: hidden;
    margin-top: 30px;
}

.brand-logos {
    display: flex;
    gap: 20px;
    align-items: center;
    will-change: transform;
    animation: marquee var(--marquee-duration, 50s) linear infinite;
    width: max-content;
}

.brand-logos:hover {
    animation-play-state: paused;
}

.brand-logos .brand-card {
    flex: 0 0 auto;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

.brand-card {
    background: transparent;
    min-width: 200px;
    color: #ffffff;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-card.active {
    color: #fff;
}

.brand-card img {
    width: 50px;
    margin-bottom: 8px;
}

.brand-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .brand-card {
        width: 160px;
    }

    .brand-card h3 {
        font-size: 18px;
    }
}


/* ============================================
   BRAND SECTION (Top) — Proper Spacing
   ============================================ */

.brand-section.brand-section-top {
    padding-top: 30px;
    padding-bottom: 30px;
}

.brand-section-inner {
    width: 100%;
}

.brand-heading-area {
    text-align: center;
    margin-bottom: 25px;
}

.brand-main-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #E30613;
    letter-spacing: 1px;
}

.brand-section-top .car-logo-wrapper {
    overflow: hidden;
    padding-bottom: 10px;
}

.brand-section-top .brand-logos {
    gap: 35px;
}

.brand-section-top .brand-card {
    min-width: 140px;
    padding: 10px 15px;
}

/* Large Screens: Side-by-Side Layout */
@media (min-width: 992px) {
    .brand-section-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
        max-width: 1600px;
        margin: 0 auto;
        padding: 0 40px;
    }

    .brand-heading-area {
        flex: 0 0 300px;
        text-align: left;
        margin-bottom: 0;
    }

    .brand-main-title {
        font-size: 1.6rem;
        line-height: 1.25;
        white-space: normal;
        /* Allow wrapping */
        display: inline-block;
    }

    .brand-section-top .car-logo-wrapper {
        flex: 1;
        min-width: 0;
        /* Allow logos to shrink/scroll */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .brand-section.brand-section-top {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .brand-heading-area {
        margin-bottom: 15px;
    }

    .brand-main-title {
        font-size: 1.3rem;
        padding-bottom: 6px;
        border-bottom-width: 2px;
    }

    .brand-section-top .brand-logos {
        gap: 20px;
    }

    .brand-section-top .brand-card {
        min-width: 120px;
        padding: 8px 10px;
    }
}

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


