/* Parana Video Reviews Widget Style - Updated to match Image */

.parana-video-widget-container {
    direction: rtl;
    padding: 20px 0 60px 0; /* Increased bottom padding */
    display: flow-root; /* Best way to contain children and fix height */
    width: 100%;
    height: auto;
    clear: both;
    position: relative;
}

/* --- Video Grid --- */
.parana-video-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: min-content;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    height: auto;
}

.parana-video-card {
    position: relative;
    border-radius: 35px; /* High radius as in image */
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.parana-video-card:hover {
    transform: translateY(-5px);
}

.parana-video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Force square aspect ratio */
    background: #f8f8f8;
    overflow: hidden;
}

.parana-video-thumb-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parana-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #6966B0; /* Purple background as in image */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(105, 102, 176, 0.4);
    z-index: 3;
    transition: all 0.3s ease;
}

.parana-play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff; /* White icon */
    margin-right: -3px;
}

.parana-video-card:hover .parana-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- Pagination --- */
.parana-video-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: #fff;
    border-radius: 100px;
    border: 1.5px solid #E5E5F2;
    width: fit-content;
    margin: 0 auto;
}

.parana-page-num {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: #777;
    text-decoration: none;
    transition: all 0.3s;
}

.parana-page-num.active {
    background: #6966B0;
    color: #fff;
}

.parana-page-num:hover:not(.active) {
    background: #f0f0f0;
}

.parana-page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6966B0;
    font-size: 18px;
    text-decoration: none;
}

/* --- Modal --- */
.parana-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.parana-video-modal.active {
    display: flex;
}

.parana-video-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 9/16;
    border-radius: 20px;
    overflow: hidden;
}

.parana-modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
}

@media (max-width: 767px) {
    .parana-video-filters {
        flex-direction: column;
        align-items: flex-start;
    }
    .parana-video-reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .parana-video-card {
        border-radius: 20px;
    }
    .parana-play-btn {
        width: 45px;
        height: 45px;
    }
    .parana-play-btn svg {
        width: 18px;
        height: 18px;
    }
}
