/* LBN City Banners — Hero Rotator + Sidebar Ad
   Covers .atr-hero-* and .atr-sidebar-ad classes.
   -------------------------------------------------- */

/* ── Hero rotator container ── */
.atr-hero-rotator,
.atr-hero-static {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 260px;
    overflow: hidden;
    background-color: var(--atr-sea-800, #1a3340);
}

/* ── Slides ── */
.atr-hero-slide,
.atr-hero-static {
    background-image: linear-gradient(180deg,rgba(42,33,24,0) 0%,rgba(42,33,24,0.72) 100%), var(--lbn-cb-hero-bg);
    background-size: cover;
    background-position: center;
}

.atr-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.atr-hero-slide.active {
    opacity: 1;
}

/* ── Full-cover link on paid slides ── */
.atr-hero-slide-link {
    position: absolute;
    inset: 0;
    display: block;
}

/* ── Fallback brand slide content ── */
.atr-hero-slide--brand-content,
.atr-hero-static .atr-hero-overlay-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px;
    color: #fff;
}

.atr-hero-top {
    margin-bottom: 12px;
}

.atr-hero-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

.atr-hero-title {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    line-height: 1.25;
    margin: 0 0 12px;
    color: #fff;
}

.atr-hero-excerpt {
    font-size: clamp(.875rem, 1.5vw, 1rem);
    opacity: .85;
    margin: 0 0 24px;
    max-width: 540px;
}

.atr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.atr-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}

.atr-cta-btn:hover { opacity: .85; }

.atr-cta-btn-light {
    background: #fff;
    color: #1a3340;
}

.atr-cta-btn-outline {
    border: 2px solid rgba(255,255,255,.7);
    color: #fff;
    background: transparent;
}

/* ── Dot navigation ── */
.atr-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.atr-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
}

.atr-hero-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Static hero (no paid banners) ── */
.atr-hero-static {
    display: flex;
    align-items: flex-end;
}

/* ── Sidebar ad ── */
.atr-sidebar-ad {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.atr-sidebar-ad img {
    width: 100%;
    height: auto;
    display: block;
}

.atr-sidebar-ad a {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .atr-hero-rotator,
    .atr-hero-static {
        aspect-ratio: 4 / 5;   /* was fixed at 21/9 — too short on phones, and forces cropping on the paid banner image */
    }
    .atr-hero-slide,
    .atr-hero-static {
        /* Prefer a dedicated mobile crop if one was uploaded; otherwise fall back to
           the desktop image with background-size:contain so the advertiser's banner
           is never cropped — it just letterboxes onto --atr-sea-800 instead. */
        background-image: linear-gradient(180deg,rgba(42,33,24,0) 0%,rgba(42,33,24,0.72) 100%), var(--lbn-cb-hero-bg-mobile, var(--lbn-cb-hero-bg));
        background-size: cover, var(--lbn-cb-hero-bg-mobile-size, contain);
        background-color: var(--atr-sea-800, #1a3340);
    }
    .atr-hero-slide--brand-content,
    .atr-hero-static .atr-hero-overlay-content {
        padding: 20px 20px 40px;
    }
    .atr-hero-title { font-size: clamp(1.3rem, 6vw, 1.8rem); margin-bottom: 8px; }
    .atr-hero-excerpt { font-size: .85rem; margin-bottom: 16px; }
    .atr-cta-btn { padding: 9px 18px; font-size: .85rem; }
    .atr-hero-dots { bottom: 12px; }
}
@media (max-width: 420px) {
    .atr-hero-actions { flex-direction: column; align-items: stretch; }
    .atr-cta-btn { justify-content: center; }
}
