/**
 * Hero Carousel Style.
 *
 * @package Polanger_VideoHub
 * @since 1.8.0
 */

.pvh-hero-carousel {
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 0 32px;
    padding: 0 20px;
    overflow: visible;
    background: transparent;
}

.pvh-hero-carousel .pvh-hero-carousel-wrapper {
    margin: 0;
    padding: 0;
    overflow: visible;
}

.pvh-hero-carousel .pvh-hero-carousel-track {
    gap: 14px;
    padding: 0;
    scroll-snap-type: x mandatory;
}

.pvh-hero-carousel .pvh-hero-carousel-card {
    position: relative;
    display: block;
    flex: 0 0 var(--pvh-hero-carousel-desktop-width, calc((100% - 28px) / 3));
    min-width: var(--pvh-hero-carousel-desktop-width, calc((100% - 28px) / 3));
    height: 420px;
    overflow: hidden;
    border-radius: 14px;
    color: #ffffff;
    text-decoration: none !important;
    background: #111827;
    scroll-snap-align: start;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    transform: translateZ(0);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.pvh-hero-carousel .pvh-hero-carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
}

.pvh-hero-carousel .pvh-hero-carousel-card:hover .pvh-hero-backdrop img {
    transform: scale(1.05);
}

.pvh-hero-carousel .pvh-hero-backdrop img {
    object-position: center center;
}

.pvh-hero-carousel .pvh-hero-gradient {
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.08) 100%),
        linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent 52%);
}

.pvh-hero-carousel .pvh-hero-content {
    padding: 24px;
}

.pvh-hero-carousel .pvh-hero-title {
    font-size: 24px;
    line-height: 1.18;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvh-hero-carousel .pvh-hero-meta {
    margin-bottom: 14px;
}

.pvh-hero-carousel .pvh-hero-video-icon {
    top: 14px;
    right: 14px;
}

.pvh-hero-carousel .pvh-hero-no-thumbnail {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.28);
    background: linear-gradient(135deg, #111827 0%, #1f2937 48%, #0f172a 100%);
}

.pvh-hero-carousel .pvh-hero-no-thumbnail .dashicons {
    width: 58px;
    height: 58px;
    font-size: 58px;
}

.pvh-hero-carousel .pvh-carousel-btn {
    width: 40px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
}

.pvh-hero-carousel .pvh-carousel-prev {
    left: -10px;
}

.pvh-hero-carousel .pvh-carousel-next {
    right: -10px;
}

@media screen and (max-width: 1024px) {
    .pvh-hero-carousel .pvh-hero-carousel-card {
        flex-basis: var(--pvh-hero-carousel-tablet-width, calc((100% - 14px) / 2));
        min-width: var(--pvh-hero-carousel-tablet-width, calc((100% - 14px) / 2));
        height: 360px;
    }
}

@media screen and (max-width: 768px) {
    .pvh-hero-carousel {
        padding: 0 10px;
        margin-bottom: 24px;
    }

    .pvh-hero-carousel .pvh-hero-carousel-card {
        flex-basis: var(--pvh-hero-carousel-mobile-width, 100%);
        min-width: var(--pvh-hero-carousel-mobile-width, 100%);
        height: 300px;
    }

    .pvh-hero-carousel .pvh-hero-carousel-track {
        gap: 12px;
    }

    .pvh-hero-carousel .pvh-hero-content {
        padding: 18px;
    }

    .pvh-hero-carousel .pvh-hero-title {
        font-size: 20px;
        -webkit-line-clamp: 2;
    }

    .pvh-hero-carousel .pvh-carousel-btn {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .pvh-hero-carousel .pvh-hero-carousel-card {
        height: 270px;
    }

    .pvh-hero-carousel .pvh-hero-title {
        font-size: 18px;
    }
}
