/* Homepage Ads carousel — standalone section only */

#tb-home-ads-section {
    scroll-margin-top: 5rem;
}

.tb-ads-section__title {
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
    padding-bottom: 0.65rem;
    border-bottom: 3px solid #006aff;
}

.tb-ads-carousel-shell {
    position: relative;
    margin-top: 2.5rem;
}

.tb-ads-carousel-viewport {
    overflow: hidden;
    margin: 0 2.75rem;
}

@media (max-width: 639px) {
    .tb-ads-carousel-viewport {
        margin: 0 2.25rem;
    }
}

.tb-ads-carousel-track {
    display: flex;
    gap: var(--tb-ads-gap, 1rem);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .tb-ads-carousel-track {
        transition-duration: 0.01ms;
    }
}

.tb-ads-carousel-slide {
    flex: 0 0 var(--tb-ads-slide-basis, 100%);
    min-width: 0;
}

.tb-ads-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tb-ads-card:hover {
    box-shadow: 0 12px 28px rgba(0, 106, 255, 0.1);
    transform: translateY(-2px);
}

.tb-ads-card__top {
    position: relative;
    margin-bottom: 0.65rem;
    min-height: 1.75rem;
}

.tb-ads-card__views {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.tb-ads-card__fav {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.tb-ads-card__fav:hover {
    border-color: #fda4af;
    color: #e11d48;
    transform: scale(1.06);
}

.tb-ads-card__fav.is-active {
    color: #e11d48;
    border-color: #fecdd3;
    background: #fff1f2;
}

.tb-ads-card__media {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
}

.tb-ads-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tb-ads-card__discount {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0.25rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.tb-ads-card__discount i {
    font-size: 0.6rem;
}

.tb-ads-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.55rem 0.15rem 0.2rem;
}

.tb-ads-card__headline {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.45;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tb-ads-card__date {
    margin: 0;
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.tb-ads-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tb-ads-carousel-nav:hover {
    border-color: #006aff;
    color: #006aff;
    background: #f5f9ff;
}

.tb-ads-carousel-nav:focus-visible {
    outline: 2px solid #006aff;
    outline-offset: 2px;
}

.tb-ads-carousel-nav--prev {
    left: 0;
}

.tb-ads-carousel-nav--next {
    right: 0;
}

.tb-ads-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.35rem;
}

.tb-ads-carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.tb-ads-carousel-dot.is-active {
    width: 1.35rem;
    background: #006aff;
}

.tb-ads-section__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    border-radius: 999px;
    border: 1px solid #006aff;
    background: #fff;
    padding: 0.7rem 1.65rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #006aff;
    box-shadow: 0 4px 14px rgba(0, 106, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tb-ads-section__more:hover {
    background: #006aff;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 106, 255, 0.28);
}
