/* ── Banner Carousel ─────────────────────────────────────────────────── */
.banner-carousel-wrap {
    width: 100%;
    margin-top: 5px;
}

.banner-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 480px;
    line-height: 0;
}

.banner-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.banner-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.banner-slide img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* Text overlay */
.banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.38) 100%);
    z-index: 5;
    pointer-events: none;
}

.banner-overlay h1 {
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 10px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.55);
    line-height: 1.2;
}

.banner-overlay p {
    color: rgba(255,255,255,0.92);
    font-size: 1.1rem;
    margin: 0 0 20px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.banner-cta {
    pointer-events: all;
}

/* Overlay on placeholder (not absolute since placeholder uses flex) */
.banner-placeholder {
    position: relative;
}

.banner-overlay-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 100%);
}

@media (max-width: 768px) {
    .banner-overlay h1 { font-size: 1.5rem; }
    .banner-overlay p  { font-size: 0.9rem; margin-bottom: 14px; }
}

/* Prev / Next buttons */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s;
    z-index: 10;
    line-height: 1;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.banner-btn-prev { left: 4px; }
.banner-btn-next { right: 4px; }

/* Dots */
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, border-color 0.2s;
}

.banner-dot.active,
.banner-dot:hover {
    background: #fff;
    border-color: #fff;
}

/* Placeholder (shown when no banners are configured in ES) */
.banner-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-placeholder-inner {
    text-align: center;
    color: #64748b;
}

.banner-placeholder-inner i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    opacity: 0.5;
}

.banner-placeholder-inner p {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1;
}

.banner-placeholder-inner small {
    font-size: 0.78rem;
    opacity: 0.8;
}

.banner-placeholder-inner code {
    background: rgba(0,0,0,0.08);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-carousel {
        max-height: 220px;
    }

    .banner-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}
