/*
 * banner-carousel.css (Etap C split 2026-06-22) — warunkowo agencja/biuro.
 */

/* ==========================================================================
   BANNER CAROUSEL - Dynamic Announcements
   ========================================================================== */

#rousel {
    width: 100%;
    margin: 0;
}

.banner-wrapper {
    border-radius: 22px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 280px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-height: 0;
}

.banner-text {
    flex: 1;
}

.banner-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.banner-body {
    font-size: 1rem;
    line-height: 1.6;
    max-height: calc(1.6em * 5);
    overflow: hidden;
    position: relative;
}

.banner-body.expanded {
    max-height: none;
}

.banner-body p {
    margin-bottom: 0.75rem;
}

.banner-body p:last-child {
    margin-bottom: 0;
}

.banner-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.banner-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: inherit;
}

.banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
    padding: 1rem;
}

.banner-icon svg {
    width: 48px;
    height: 48px;
}

.banner-custom-icon {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

/* Indicators (dots) */
.banner-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.banner-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicators .indicator.active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.banner-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Read more button */
.banner-read-more {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 255, 255, 0.25);
    color: inherit;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-read-more:hover {
    background: rgba(255, 255, 255, 0.35);
    color: inherit;
}

/* Modal for full banner text */
.banner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.banner-modal.active {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
}

.banner-modal-content {
    position: relative;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-modal.active .banner-modal-content {
    transform: scale(1);
    opacity: 1;
}

.banner-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: inherit;
    transition: background 0.3s ease;
}

.banner-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

.banner-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.banner-modal-body {
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-wrapper {
        min-height: 340px;
        height: 340px;
        justify-content: center;
        align-items: center;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        flex: unset;
    }

    .banner-text {
        text-align: center;
        flex: unset;
    }

    .banner-icon {
        order: -1;
        width: 60px;
        height: 60px;
    }

    .banner-icon svg {
        width: 36px;
        height: 36px;
    }

    .banner-title {
        font-size: 1rem;
    }

    .banner-body {
        font-size: 0.9rem;
    }
}

/* === Banner Carousel Animations === */

/* Main carousel containers */
#banner-carousel,
#banner-carousel-agencja {
    position: relative;
    width: 100%;
}

/* Carousel container - holds all slides */
.banner-carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Individual carousel items - all loaded in DOM */
.banner-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    z-index: 1;
}

/* Active slide - visible and on top */
.banner-carousel-item.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Image banner specific styles */
.image-banner-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--banner-radius, 20px);
    overflow: hidden;
}

.image-banner-wrapper img {
    display: block;
    width: 100%;
    border-radius: var(--banner-radius, 20px);
}

@media (max-width: 767px) {
    .image-banner-wrapper,
    .image-banner-wrapper img {
        border-radius: 8px;
    }
}

/* Enhanced indicators - positioned outside carousel items */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 10;
    display: flex;
    gap: 12px;
}

/* Indicators for image banners */
.image-banner-wrapper~.banner-indicators,
#banner-carousel-agencja .banner-indicators {
    bottom: 20px;
}

.banner-indicators .indicator {
    width: 11px;
    height: 11px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-indicators .indicator.active {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.15);
}

.banner-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}

/* Loading state */
.banner-loading {
    opacity: 0.5;
    pointer-events: none;
}
/* Lista biuro - białe kółka */
