/**
 * Reviews Section Styles
 *
 * @package TwentyTwentyFive_Child
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --jtr-reviews-bg: #0E0E0E;
    --jtr-reviews-red: #FF2F2E;
    --jtr-reviews-white: #ffffff;
    --jtr-reviews-gray: #888888;
    --jtr-reviews-card-bg: transparent;
    --jtr-reviews-padding: clamp(20px, 10vw, 180px) clamp(20px, 11vw, 200px) 0 clamp(20px, 11vw, 200px);
}

/* ==========================================================================
   Section Container
   ========================================================================== */
.jtr-reviews {
    background-color: var(--jtr-reviews-bg);
    padding: 80px 0;
    overflow: hidden;
}

.jtr-reviews__container {
    padding: var(--jtr-reviews-padding);
    max-width: 100%;
}

/* ==========================================================================
   Title
   ========================================================================== */
.jtr-reviews__title {
    font-family: 'MirthaDisplayTrial', serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    text-align: center;
    margin: 0 0 20px 0;
}

.jtr-reviews__title-white {
    color: var(--jtr-reviews-white);
}

.jtr-reviews__title-red {
    color: var(--jtr-reviews-red);
    font-style: normal;
}

/* ==========================================================================
   Pagination Indicator
   ========================================================================== */
.jtr-reviews__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 50px;
    font-family: 'Matter', sans-serif;
    font-size: 16px;
    color: var(--jtr-reviews-white);
}

.jtr-reviews__pagination-separator {
    color: var(--jtr-reviews-gray);
}

/* ==========================================================================
   Slider Container
   ========================================================================== */
.jtr-reviews__slider {
    width: 100%;
    overflow: visible;
    touch-action: pan-y;
}

.jtr-reviews__slider .swiper-slide {
    flex-shrink: 0;
}

/* ==========================================================================
   Review Card
   ========================================================================== */
.jtr-reviews__card {
    background: var(--jtr-reviews-card-bg);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Star Rating
   ========================================================================== */
.jtr-reviews__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.jtr-reviews__star {
    display: inline-flex;
    width: 34px;
    height: 34px;
}

.jtr-reviews__star svg {
    width: 100%;
    height: 100%;
}

.jtr-reviews__star--half {
    position: relative;
    overflow: hidden;
}

.jtr-reviews__star--empty {
    opacity: 0.5;
}

.jtr-reviews__star--empty svg path:first-child {
    fill: #4A4A4A;
}

/* ==========================================================================
   Review Content
   ========================================================================== */
.jtr-reviews__content {
    font-family: 'Matter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--jtr-reviews-white);
    margin: 0 0 24px 0;
    flex-grow: 1;
}

/* ==========================================================================
   Reviewer Info
   ========================================================================== */
.jtr-reviews__reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.jtr-reviews__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.jtr-reviews__avatar--placeholder {
    background-color: #333;
}

.jtr-reviews__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.jtr-reviews__name {
    font-family: 'Matter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--jtr-reviews-white);
}

.jtr-reviews__job-title {
    font-family: 'Matter', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--jtr-reviews-gray);
}

/* ==========================================================================
   Placeholder (Empty State)
   ========================================================================== */
.jtr-reviews__placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--jtr-reviews-gray);
    font-family: 'Matter', sans-serif;
}

.jtr-reviews__placeholder p {
    margin: 10px 0;
}

/* video section  */
.video-reels-slider{
    margin-top: 40px;
}
.reel{
    position: relative;
    border: 8px solid #ff2f2e;
    width: calc(100% - 20px) !important;
    height: auto !important;
}
.reel video {
    height: 100%;
    width: 100%;
}
.swiper-button-next,
.swiper-button-prev{
	background: #ff2f2e;
	border-radius: 50%;
	padding: 6px;
	width: 24px;
	height: 24px;
	color: #fff;	
}
.swiper-button-next{right: 0px}
.swiper-button-prev{left: 0px}
.swiper-button-next:after,
.swiper-button-prev:after{
	font-size: 16px;
}



/* ==========================================================================
   Responsive: Large Desktop (1400px)
   ========================================================================== */
@media (min-width: 769px) {
    .videoReelsSwiper {
        display: block;
        columns: 3;
        gap: 20px;
    }

    .videoReelsSwiper .swiper-wrapper {
        display: contents; /* IMPORTANT */
    }

    .videoReelsSwiper .swiper-slide {
        break-inside: avoid;
        margin-bottom: 25px;
    }
    .videoReelsSwiper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .video-overlay{
        display: none;
    }
    .reel{
        width: calc(100% - 20px) !important;
    }
	.videoReelsSwiper .swiper-button-next,
	.videoReelsSwiper .swiper-button-prev {
		display: none !important;
	}
}


@media (max-width: 1400px) {
    .jtr-reviews__title {
        font-size: 64px;
    }
}

/* ==========================================================================
   Responsive: Desktop (1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    .jtr-reviews__title {
        font-size: 56px;
    }

    .jtr-reviews {
        padding: 60px 0;
    }
}

/* ==========================================================================
   Responsive: Tablet (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .jtr-reviews__title {
        font-size: 48px;
    }

    .jtr-reviews__pagination {
        margin-bottom: 40px;
    }
}

/* ==========================================================================
   Responsive: Mobile Landscape (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .jtr-reviews {
        padding: 50px 0;
    }

    .jtr-reviews__title {
        font-size: 40px;
    }

    .jtr-reviews__stars {
        margin-bottom: 20px;
    }

    .jtr-reviews__content {
        font-size: 15px;
        margin-bottom: 20px;
    }
	.videoReelsSwiper .swiper-wrapper {
        display: flex;
    }
    .video-overlay {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }
    
    .sound-icon {
        background: rgba(0,0,0,0.6);
        color: #fff;
        padding: 8px 14px;
        border-radius: 30px;
        font-size: 14px;
        transition: opacity 0.3s ease;
    }
    .reel {
        width: calc(100% - 16px) !important;
    }
	.jtr-reviews__pagination {
		visibility: hidden;
	}
}

/* ==========================================================================
   Responsive: Mobile Portrait (480px)
   ========================================================================== */
@media (max-width: 480px) {
    .jtr-reviews {
        padding: 40px 0;
    }

    .jtr-reviews__title {
        font-size: 32px;
    }

    .jtr-reviews__pagination {
        margin-bottom: 30px;
    }

    .jtr-reviews__star {
        width: 28px;
        height: 28px;
    }

    .jtr-reviews__content {
        font-size: 14px;
    }

    .jtr-reviews__avatar {
        width: 40px;
        height: 40px;
    }

    .jtr-reviews__name {
        font-size: 14px;
    }

    .jtr-reviews__job-title {
        font-size: 12px;
    }
}
