/* Card Carousel Block Styles */

.card-carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-carousel-track::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.card-carousel-card {
    position: relative;
    flex: 0 0 18rem;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    scroll-snap-align: start;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (min-width: 640px) {
    .card-carousel-card {
        flex-basis: 20rem;
    }
}

@media (min-width: 1024px) {
    .card-carousel-card {
        flex-basis: 22rem;
    }
}

.card-carousel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.card-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-carousel-fallback {
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #000000 100%);
}

.card-carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.card-carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #ffffff;
}

.card-carousel-title {
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 600;
}

@media (min-width: 768px) {
    .card-carousel-title {
        font-size: 1.75rem;
    }
}

.card-carousel-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
}

.card-carousel-description p {
    margin: 0;
}

.card-carousel-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease;
}

.card-carousel-cta:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.card-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.card-carousel-button {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, opacity 0.3s ease, border-color 0.3s ease;
}

.card-carousel-button:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
}

.card-carousel-button.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.card-carousel-icon {
    width: 20px;
    height: 20px;
}

.wp-block-venari-card-carousel,
.wp-block-acf-card-carousel {
    color: #ffffff;
}

.editor-styles-wrapper .wp-block-acf-card-carousel,
.editor-styles-wrapper .wp-block[data-type="acf/card-carousel"] {
    max-width: none !important;
    width: 100% !important;
}
