/**
 * Reviews Page Styles
 * @package MonsterFairings
 * @since 1.0.0
 */

/* =========================
   Review Nav / Slider
   ========================= */
   .review-nav .slick-track {
    width: 100% !important;
    transform: translate3d(0, 0px, 0px) !important;
    display: flex;
    justify-content: center;
    margin-left: 0 !important;
}

.review-slider .slick-prev {
    left: 32.5% !important;
    right: auto;
}

.review-slider .slick-next {
    left: auto;
    right: 33% !important;
}

/* =========================
   Video Reviews (generic)
   ========================= */
.video-holder {
    position: relative;
    margin: 10px;
    float: left;
    display: inline-block;
    vertical-align: top;
    width: 33.333333%;
}

.video-holder:first-child {
    width: 45%;
}

.video-holder:nth-child(2) {
    width: 55%;
}

.video-holder img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.video-holder a {
    position: relative;
    display: block;
    height: 100%;
}

.video-holder a:before {
    content: '';
    position: absolute;
    margin: auto;
    inset: 0;
    background: url(../images/play.png) no-repeat center center;
    width: 50px;
    height: 50px;
    background-size: contain;
}

/* =========================
   UGC Video Section
   ========================= */
section.ugc_video_section .video-holder {
    float: unset;
    display: unset;
    height: initial;
    /* max-width: 286px; */
}

section.ugc_video_section .title {
    text-align: center;
}

section.ugc_video_section .title:after {
    display: none;
}

section.ugc_video_section .container-fluid {
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

section.ugc_video_section .swiper {
    margin-top: 32px;
}

.ugc_video_section {
    background: #F7F7F7;
}

.ugc_video_section .ugc_navs {
    display: flex;
    position: absolute;
    top: 8%;
    right: 15%;
    gap: 15px;
}

.ugc_video_section .ugc_navs .swiper_button_prev_ugc,
.ugc_video_section .ugc_navs .swiper_button_next_ugc {
    background: #DF213D;
    color: #fff;
    height: 50px;
    width: 50px;
    text-align: center;
    border-radius: 50px;
    transition: .3s ease;
    cursor: pointer;
}

.ugc_video_section .ugc_navs .swiper_button_prev_ugc:hover,
.ugc_video_section .ugc_navs .swiper_button_next_ugc:hover {
    background: #000;
}

.ugc_video_section .ugc_navs i {
    display: inline-block;
    vertical-align: baseline;
    line-height: 50px;
}

/* Edge gradients on wide screens */
@media only screen and (min-width: 1200px) {
    section.ugc_video_section .swiper:before {
        content: "";
        background: linear-gradient(to left, rgba(255 255 255 / 0.28), rgba(255, 255, 255, 1));
        opacity: 0.5;
        display: block;
        height: 100%;
        width: 11%;
        position: absolute;
        left: 0;
        z-index: 2;
    }
    section.ugc_video_section .swiper:after {
        content: "";
        background: linear-gradient(to right, rgba(255 255 255 / 0.28), rgba(255, 255, 255, 1));
        opacity: 0.5;
        display: block;
        height: 100%;
        width: 11%;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 2;
    }
}

/* =========================
   SiteJabber / Text
   ========================= */
.macbook-text .title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.macbook-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* =========================
   Links
   ========================= */
.reviews-link {
    display: inline-block;
    padding: 10px 16px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.reviews-link:active,
.reviews-link:focus,
.reviews-link:hover {
    background: #f5f5f5;
    outline: none;
}

/* =========================
   Full-width Reviews Container
   ========================= */
.full-width-container {
    grid-template-columns: none !important;
}

/* Hide branding/tutorials (global + full-width) */
.full-width-container .sk_branding,
.full-width-container .sk-below-button-container,
.sk-bio-count,
.tutorial_link {
    display: none !important;
}

/* =========================
   Responsive
   ========================= */

/* max-width: 1024px — merged */
@media only screen and (max-width: 1024px) {
    .ugc_video_section .ugc_navs {
        display: none;
    }
    .full-width-container {
        padding: 0 15px !important;
    }
}

/* max-width: 768px — merged */
@media only screen and (max-width: 768px) {
    .full-width-container {
        padding: 0 10px !important;
    }
    .video-holder {
        margin: 0 auto 12px;
        display: block;
        float: none;
        width: 350px;
        max-width: 100%;
    }
    .video-holder:first-child,
    .video-holder:nth-child(2) {
        width: 350px;
        max-width: 100%;
    }
    .video-holder a:before {
        width: 40px;
        height: 40px;
        background-size: contain;
    }
    .macbook-text .title {
        font-size: 1.5rem;
    }
    .macbook-text p {
        font-size: 1rem;
    }
}

/* =========================
   Sitejabber reviews — desktop 2-column when full-width layout is active
   ========================= */
@media (min-width: 768px) {
  .full-width-container .sk-sitejabber-item {
    position: static !important;
    height: auto !important;                 /* kill fixed inline height */
    display: grid !important;                /* build a real grid */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;                               /* space between columns/cards */
    align-items: stretch;
  }

  /* Remove the masonry/absolute positioning Sitejabber injects */
  .full-width-container .sk-sitejabber-item-sizer {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .full-width-container .sk-sitejabber-item-item {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    transform: none !important;
    display: block !important;               /* allow natural height */
    margin: 0 !important;
  }

  /* Make each review look like a card */
  .full-width-container .sk-sitejabber-item-item > * {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
    padding: 20px;
    height: 100%;
  }
}

/* Keep single column on tablet/mobile (Sitejabber default flow) */
@media (max-width: 767px) {
  .full-width-container .sk-sitejabber-item {
    display: block !important;
  }
}