/* ========================================
   PELAUTCONNECT BANNER — Frontend Styles
   ======================================== */

/* ----- Carousel Container ----- */
.pcb-carousel {
    position: relative;
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
}

.pcb-carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.pcb-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

/* ----- Banner Items ----- */
.pcb-banner-item {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 8%;
    box-sizing: border-box;
    cursor: pointer;
}

.pcb-banner-item-inner {
    width: 100%;
    max-width: 560px;
    background-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.pcb-banner-item.active .pcb-banner-item-inner {
    transform: scale(1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pcb-banner-item.prev .pcb-banner-item-inner,
.pcb-banner-item.next .pcb-banner-item-inner {
    transform: scale(0.82);
    opacity: 0.65;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.pcb-banner-item-inner img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
    background-color: #f4faff;
}

.pcb-banner-title {
    display: block;
    padding: 0.75rem 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #001e40;
    background-color: #ffffff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----- Carousel Arrows ----- */
.pcb-carousel-arrow {
    position: absolute;
    top: 35%;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #d1d5db;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.pcb-carousel-arrow:hover {
    background-color: #001e40;
    border-color: #001e40;
    box-shadow: 0 6px 20px rgba(0, 30, 64, 0.3);
}

.pcb-carousel-arrow:hover svg path {
    stroke: #ffffff;
}

.pcb-carousel-arrow-prev {
    left: 0;
}

.pcb-carousel-arrow-next {
    right: 0;
}

.pcb-carousel-arrow svg {
    display: block;
    pointer-events: none;
}

/* ----- Carousel Dots ----- */
.pcb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 4px;
}

.pcb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #c3c6d1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.pcb-carousel-dot.active {
    background-color: #0061a4;
    transform: scale(1.3);
}

.pcb-carousel-dot:hover {
    background-color: #0061a4;
}

/* ----- Modal Overlay ----- */
.pcb-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 30, 64, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.pcb-modal-overlay.active {
    display: flex;
}

.pcb-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    cursor: default;
}

.pcb-modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.4);
}

.pcb-modal-close {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #001e40;
    border: 3px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
    z-index: 2;
    padding: 0;
}

.pcb-modal-close:hover {
    transform: scale(1.1);
}

.pcb-modal-close svg {
    display: block;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .pcb-banner-item-inner {
        max-width: 500px;
    }

    .pcb-banner-item-inner img {
        max-height: 340px;
    }
}

@media (max-width: 768px) {
    .pcb-carousel {
        padding: 0 40px;
    }

    .pcb-banner-item {
        padding: 0 5%;
    }

    .pcb-banner-item-inner {
        max-width: 420px;
    }

    .pcb-banner-item-inner img {
        max-height: 260px;
    }

    .pcb-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .pcb-modal-overlay {
        padding: 1rem;
    }

    .pcb-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .pcb-modal-image {
        max-width: 95vw;
        max-height: 85vh;
    }

    .pcb-modal-close {
        top: -10px;
        right: -10px;
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .pcb-carousel {
        padding: 0 32px;
    }

    .pcb-banner-item {
        padding: 0 3%;
    }

    .pcb-banner-item-inner {
        max-width: 360px;
    }

    .pcb-banner-item-inner img {
        max-height: 200px;
    }

    .pcb-carousel-arrow {
        width: 32px;
        height: 32px;
    }
}
