/* Frontend Slider Styles */
.pcs-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    /* CSS Variables from Settings */
    --arrow-bg: #0073aa;
    --arrow-color: #ffffff;
    --overlay-opacity: 0.5;
    --font-family: 'Inter', sans-serif;

    font-family: var(--font-family);
    border-radius: 8px;
    /* Optional rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pcs-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.pcs-slide {
    min-width: 100%;
    position: relative;
    max-height: 600px;
    /* Limit height */
    overflow: hidden;
}

.pcs-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 400px;
}

/* Overlay */
.pcs-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 60px 20px 30px;
    color: #fff;
    text-align: center;
}

.pcs-overlay-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, var(--overlay-opacity));
    /* Using the opacity setting but maybe better on a box? */
    /* Actually let's just make the text readable directly or use the setting for a bar */
    background: rgba(0, 0, 0, var(--overlay-opacity));
    /* Dark overlay based on opacity slider usually for readability */
    padding: 20px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.pcs-overlay h3 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.pcs-overlay p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
    color: #eee;
}

/* Navigation - The Blue Arrows from Image */
.pcs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--arrow-bg);
    color: var(--arrow-color);
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 4px;
}

.pcs-nav:hover {
    filter: brightness(1.1);
    transform: translateY(-50%) scale(1.05);
}

.pcs-nav svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pcs-prev {
    left: 20px;
}

.pcs-next {
    right: 20px;
}

/* Dots */
.pcs-dots {
    position: absolute;
    bottom: 20px;
    /* Above overlay if full height, or inside */
    /* Actually looking at image, they are often on image. Let's put them high z-index */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.pcs-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    /* Square with slight round as per image (looks like rounded squares) */
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.pcs-dot.active {
    background: #fff;
    transform: scale(1.2);
}

@media (max-width: 768px) {

    /* Card layout for mobile AND tablets to fix cropping and hidden text */
    .pcs-slide {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }

    .pcs-slide img {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: contain !important;
        background: transparent;
        flex-shrink: 0;
    }

    .pcs-overlay {
        position: relative;
        /* Move text below image */
        background: #fff;
        /* Solid background for readability */
        padding: 20px;
        height: auto !important;
        text-align: left;
    }

    .pcs-overlay-content {
        background: transparent;
        padding: 0;
        backdrop-filter: none;
        color: #333;
    }

    .pcs-overlay h3 {
        font-size: 1.4rem;
        margin-bottom: 8px;
        color: #333;
    }

    .pcs-overlay p {
        font-size: 1rem;
        display: block;
        /* Show all text */
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        color: #555;
    }

    /* Better centering for arrows on mobile (relative to image approx height) */
    .pcs-nav {
        /* top: 50% inherited from non-mobile styles if we don't override it */
        /* But wait, on mobile the card is taller because of text below. top: 50% centers regarding the WHOLE card (image + text). */
        /* If user wants to remove 100px, they likely want the default centering or found 100px to be wrong. */
        /* However, since I am editing the block that sets .pcs-nav, I need to provide the full content. */
        /* I will remove the 'top' property from this block so it inherits from the main .pcs-nav which is top: 50%. */
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        opacity: 0.9;
    }

    .pcs-nav svg {
        width: 20px;
        height: 20px;
    }

    .pcs-prev {
        left: 5px;
    }

    .pcs-next {
        right: 5px;
    }

    /* Dots at the very bottom */
    .pcs-dots {
        top: auto;
        bottom: 10px;
        width: 100%;
        justify-content: center;
        padding-bottom: 0;
        z-index: 20;
        /* Ensure on top */
    }

    .pcs-dot {
        width: 10px;
        height: 10px;
        background: #ccc;
        border: none;
        margin: 0 4px;
    }

    .pcs-dot.active {
        background: #333;
    }
}

/* Removed conflicting max-width: 480px block */