/* ==========================================
   Section Title
========================================== */

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

/* ==========================================
   Hero Banner
========================================== */

.hero-banner {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 25px;
}

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

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 2;
    color: #fff;
    max-width: 500px;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* ==========================================
   Brand Cards
========================================== */

.brand-category-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 120px;
    padding: 15px;

    transition: all 0.3s ease;
}

.brand-category-card:hover {
    border-color: #dc3545;
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.12);
    transform: translateY(-3px);
}

.brand-circle {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-circle img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;

    transition: transform 0.3s ease;
}

.brand-category-card:hover .brand-circle img {
    transform: scale(1.05);
}

/* ==========================================
   Category Cards
========================================== */

.category-card {
    position: relative;
    display: block;
    height: 220px;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    transition: all .3s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.category-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to top,
        rgba(0, 0, 0, .85),
        rgba(0, 0, 0, .15)
    );

    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.category-overlay h5 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.category-card:hover {
    transform: translateY(-6px);
}

.category-card:hover img {
    transform: scale(1.1);
}

/* ==========================================
   Mobile Responsive
========================================== */

@media (max-width: 767px) {

    .section-title {
        font-size: 22px;
    }

    .hero-banner {
        height: 220px;
        margin-bottom: 15px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .brand-category-card {
        min-height: 90px;
        padding: 10px;
    }

    .brand-circle {
        height: 60px;
    }

    .brand-circle img {
        max-width: 120px;
        max-height: 60px;
    }

    .category-card {
        height: 160px;
    }

    .category-overlay h5 {
        font-size: 16px;
    }
}

.sidebar-ad-card {
    background: #1d2940;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.ad-image {
    position: relative;
}

.ad-image img {
    width: 100%;
    display: block;
    border-radius: 18px 18px 0 0;
}

.ad-badge {
    position: absolute;
    top: 10px;
    right: 10px;

    background: rgba(0,0,0,.5);
    color: #fff;

    font-size: 11px;
    font-weight: 600;

    padding: 3px 8px;
    border-radius: 20px;
}

.ad-body {
    padding: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ad-body h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.ad-body p {
    color: #d6d6d6;
    margin: 3px 0 0;
    font-size: 14px;
}

.ad-btn {
    border-radius: 12px;
    padding: 10px 20px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .sidebar-ad-card {
        max-width: 400px;
        margin: 0 auto 20px;
    }
}

.category-section .row.g-3 {
    margin-bottom: 30px;
}