/**
 * CTA Cards Row Block - Frontend
 * Three cards in a row on desktop, swipeable slider on mobile.
 */

.wp-block-bb6bf7-cta-cards-row.swfarLtXYh,
.swfarLtXYh {
    margin: 2rem 0;
    padding: 0;
    position: relative;
}

.tz6TPnpOEcGQ {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 0 auto;
}

/* Card = 600×300 (2:1) on desktop and mobile — supports horizontal promo images */
.y39oR1u8vx {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
    aspect-ratio: 2 / 1;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-site-bg, #1a1a1a);
    color: var(--color-text-primary, #fff);
}

/* 3 rows when line3 nowhere filled; 4 rows when at least one card has line3 */
.fk5lAAr4K {
    width: 100%;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


.wza3PWo8O {
    display: flex;
    align-items: center;
    margin: 0;
}



.nEr8IrDRpSZ {
    margin-top: auto;
    align-items: center;
}

.bAGbNRExT {
    font-size: 0.9rem !important;
    opacity: 0.95;
}

.rr7J7qkR {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: inherit;
}

.l6sToAPARD8k {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.95;
}

.s2NAaAWTd4 {
    margin: 0;
}

.s2NAaAWTd4 .tomEu2Nf {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.s2NAaAWTd4 .tomEu2Nf:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Mobile: horizontal slider — no negative margin to avoid page horizontal scroll */
@media (max-width: 767px) {
    .wp-block-bb6bf7-cta-cards-row.swfarLtXYh,
    .swfarLtXYh {
        overflow-x: hidden;
    }

    .tz6TPnpOEcGQ {
        display: flex;
        grid-template-columns: unset;
        gap: 1rem;
        padding: 0 1rem 1rem;
        margin: 0;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .tz6TPnpOEcGQ::-webkit-scrollbar {
        height: 6px;
    }

    .tz6TPnpOEcGQ::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.3);
        border-radius: 3px;
    }

    .y39oR1u8vx {
        flex: 0 0 85%;
        min-width: 85%;
        max-width: 85%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        aspect-ratio: 2 / 1;
        min-height: 190px;
    }
}

@media (max-width: 480px) {
    .y39oR1u8vx {
        flex: 0 0 90%;
        min-width: 90%;
        max-width: 90%;
    }
}

.u6Xs9o4upx {
    margin-bottom: 0.45rem;
}

.gXKlA5Xj4YF {
    margin-bottom: 0.25rem;
}

.iNxR4iRPBB7 {
    margin-bottom: 0;
}

/* Last card-row (with button) always sticks to bottom */
.wza3PWo8O:last-child {
    margin-top: auto;
}
