.rotating-top-banner {
    width: 100%;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    /* Part of header structure - inherits header positioning */
}

/*
 * Banner sits inside the fixed header but overflows below it (~53px).
 * Keep page content below header + banner until JS sets the exact height.
 * :has() covers the FOUC window before rotating-banner.js runs.
 */
body.has-rotating-banner .c27-top-content-margin,
body:has(#rotating-top-banner) .c27-top-content-margin {
    min-height: 136px;
}

.banner-slide {
    display: none;
    position: relative;
}

.banner-slide.active {
    display: block;
}

.banner-content,
.banner-content:visited,
.banner-content:active {
    display: block;
    position: relative;
    text-decoration: none;
    /* Background and border are set inline via PHP */
    transition: all 0.3s ease;
    overflow: visible;
    white-space: normal;
}

.banner-link,
.banner-link:link,
.banner-link:visited,
.banner-link:hover,
.banner-link:active {
    display: block;
    text-decoration: none;
    color: inherit;
}

.banner-link:hover,
.banner-link:visited,
.banner-link:active {
    text-decoration: none;
    color: inherit;
}

.banner-content:hover,
.banner-content:visited,
.banner-content:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.banner-inner {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    padding: 1rem 1rem 0.5625rem 1rem;
    min-height: 3rem;
    min-width: 0;
}

.banner-icon {
    flex-shrink: 0;
}

.banner-icon svg,
.banner-icon img {
    width: 2rem;
    height: 2rem;
}

.banner-text {
    flex-shrink: 0;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
}

.banner-headline {
    font-weight: 500;
    line-height: 1.4;
}

.banner-cta {
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
    overflow: visible;
}

.banner-progress {
    height: 0.3125rem;
    background: linear-gradient(to-r, transparent, rgba(37, 99, 235, 0.3));
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to-r, transparent, rgba(37, 99, 235, 0.6));
    width: 0%;
    transition: none;
}

/* Banner Navigation Dots */
.owl-dots {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    z-index: 1000;
    pointer-events: auto;
}

.owl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1001;
}

.owl-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Ensure dots don't trigger underlying link clicks */
.owl-dot {
    pointer-events: auto !important;
}

/* Hide dots on mobile, enable swipe gestures */
@media (max-width: 768px) {
    .owl-dots {
        display: none; /* Hide dots on mobile for swipe gestures */
    }
}

.owl-dot.active {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 1);
}

.owl-dot span {
    display: none;
}


/* Non-mobile adjustments */
@media not all and (max-width: 768px) {
    .banner-inner {
        padding: 0.5rem 1rem 0.2rem 1rem !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-inner {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
        padding: 0.75rem 0.75rem 0.3125rem 0.75rem;
        align-items: center;
    }

    .banner-icon svg,
    .banner-icon img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .banner-text {
        font-size: 0.9rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .banner-inner {
        padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    }

    .banner-headline {
        font-size: 0.85rem;
    }

    .banner-cta {
        font-size: 0.8rem;
    }
}
