﻿/* ---------- Top banner ---------- */
.srgc-top-banner {
    position: relative; /* own stacking context */
    z-index: 0; /* keep it below navbar & content */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    margin-bottom: 1rem;
    background: #0f1b2d; /* fallback backdrop */
}

    /* Consistent height; adjust if you want taller/shorter */
    .srgc-top-banner .carousel-item {
        height: clamp(160px, 28vh, 360px);
    }

        /* Always show the whole picture (no crop) */
        .srgc-top-banner .carousel-item img,
        .srgc-top-banner .banner-img {
            width: 100%;
            height: 100%;
            object-fit: contain; /* key: no cropping */
            background: #0f1b2d; /* behind letterboxing */
            padding: 12px; /* breathing space */
            display: block;
        }

/* Keep a 970x250 look on larger screens */
.ratio-banner {
    aspect-ratio: 970 / 250;
    width: 100%;
}

/* Friendlier height on phones */
@media (max-width: 576px) {
    .ratio-banner {
        aspect-ratio: 16 / 9;
    }
}

/* Buttons: untouched */
.srgc-top-banner .carousel-control-prev,
.srgc-top-banner .carousel-control-next {
    width: 56px;
}

/* Indicators */
.srgc-top-banner .carousel-indicators [data-bs-target] {
    background-color: rgba(255,255,255,.85);
}

.srgc-top-banner .carousel-indicators .active {
    background-color: #14d3c4;
}

.container-xxl > .srgc-top-banner {
    margin-top: .25rem;
}

/* ---------- Four-button bar (pill style) ---------- */
.srgc-cta-bar {
    position: relative;
    z-index: 1; /* above banner, below main content */
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1.25rem;
}

.cta-pill {
    --pill-bg1: #ff9c2b;
    --pill-bg2: #ff7a00;
    --pill-border: rgba(255,170,60,.8);
    --pill-glow: rgba(255,160,50,.45);
    padding: .55rem 1rem;
    border-radius: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background-image: linear-gradient(180deg, var(--pill-bg1), var(--pill-bg2));
    border: 1px solid var(--pill-border);
    box-shadow: 0 0 0 2px rgba(0,0,0,.12) inset, 0 8px 22px var(--pill-glow);
    text-decoration: none;
}

    .cta-pill:hover, .cta-pill:focus {
        filter: brightness(1.03);
        color: #111;
        box-shadow: 0 0 0 2px rgba(0,0,0,.12) inset, 0 10px 26px rgba(255,170,60,.56);
    }

@media (max-width: 576.98px) {
    .cta-pill {
        flex: 1 1 auto;
        text-align: center;
    }
}

/* ---------- Main content stays on top for reliable taps ---------- */
.content-root {
    position: relative;
    z-index: 10; /* above banner & button bar */
    isolation: isolate; /* new stacking context */
}

/* ---------- CRITICAL FIX: Navbar/Admin dropdown always above banner ---------- */
.navbar {
    position: relative;
    z-index: 4000; /* higher than banner/content */
}

.dropdown-menu {
    z-index: 4050; /* ensure menu overlays the banner */
}
