﻿/* ===================== Light (Default) ===================== */
.home.page {
    background: #F6F7F9;
}

.home.section-title {
    color: #111827;
    font-weight: 800;
}

/* Carousel */
.home.carousel {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background: #fff;
}

.home.carousel-inner {
    border-radius: 18px;
}

.home.carousel-slide {
    position: relative;
    display: block;
}

.home.carousel-img {
    object-fit: cover;
}

@media (max-width: 768px) {
    .home.carousel-img {
        height: 210px;
    }
}

.home.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.12), rgba(0,0,0,.00));
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.home.carousel-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 12px;
}

.home.carousel-title {
    color: #fff;
    font-weight: 900;
    font-size: 20px;
    max-width: 70%;
}

.home.carousel-desc {
    color: rgba(255,255,255,.9);
    margin-top: 6px;
    max-width: 70%;
    font-size: 14px;
}

/* Quiz banner */
.home.quiz-banner {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    background: #fff;
}

.home.quiz-banner-img {
    height: 230px;
    object-fit: cover;
}

/* Business card (grid col-md-4) */
.home.business-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

    .home.business-card:hover {
        transform: translateY(-2px);
        border-color: #D1D5DB;
        background: #F9FAFB;
    }

.home.business-imgwrap {
    position: relative;
    height: 170px;
    background: #f3f4f6;
}

.home.business-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home.business-imgshade {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: .08;
}

.home.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #FFF3CD;
    color: #B45F06;
    border-radius: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.home.business-body {
    padding: 12px;
}

.home.business-title {
    color: #111827;
    font-weight: 900;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home.business-desc {
    color: #6B7280;
    font-size: 13px;
    margin-top: 6px;
    min-height: 38px;
}

.home.business-cat {
    color: #4B5563;
    font-size: 12px;
    margin-top: 6px;
}

.home.business-rating {
    color: #4B5563;
    font-size: 13px;
    margin-top: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
}

    .home.business-rating i {
        color: #F5A623;
    }

/* Feed Ad between businesses */
.home.feed-ad {
    display: block;
    text-decoration: none;
}

.home.feed-ad-card {
    position: relative;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.home.feed-ad-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.home.feed-ad-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 12px;
}

/* Load more */
.home.loadmore-btn {
    border-radius: 14px;
}

.home.loadmore-spinner {
    color: #6B7280;
}

/* ===================== Dark (body.dark) ===================== */
.dark .home.page {
    background: #0F141A;
}

.dark .home.section-title {
    color: #fff;
}

.dark .home.carousel {
    background: #141B23;
    border-color: #223041;
}

.dark .home.quiz-banner {
    background: #141B23;
    border-color: #223041;
}

.dark .home.business-card {
    background: #141B23;
    border-color: #223041;
}

    .dark .home.business-card:hover {
        background: #111827;
        border-color: #2A3B52;
    }

.dark .home.offer-badge {
    background: #3A2F00;
    color: #FFD36A;
}

.dark .home.business-title {
    color: #fff;
}

.dark .home.business-desc {
    color: #A7B0BC;
}

.dark .home.business-cat {
    color: #A7B0BC;
}

.dark .home.business-rating {
    color: #A7B0BC;
}

.dark .home.feed-ad-card {
    background: #141B23;
    border-color: #223041;
}

.dark .home.loadmore-spinner {
    color: #A7B0BC;
}
