﻿/* =========================================================
   CUSTOMER REELS / VIDEO TESTIMONIALS
   FULL RESPONSIVE CSS
========================================================= */

.customer-reels {
    width: 100%;
    padding: 80px 20px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}

.customer-reels *,
.customer-reels *::before,
.customer-reels *::after {
    box-sizing: border-box;
}

.customer-reels-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.customer-reels-header {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 45px;
    text-align: center;
}

.customer-reels-header span {
    display: inline-block;
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;

    color: #e30613;
}

.customer-reels-header h2 {
    margin: 0;

    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;

    color: #151515;
}

.customer-reels-header p {
    margin: 15px 0 0;

    font-size: 16px;
    line-height: 1.7;

    color: #666666;
}


/* =========================================================
   SLIDER WRAPPER
========================================================= */

.reels-wrapper {
    position: relative;
    width: 100%;
}


/* =========================================================
   REELS TRACK
========================================================= */

.reels-track {
    display: flex;
    align-items: flex-start;

    width: 100%;

    gap: 22px;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 5px 20px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.reels-track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   REEL CARD
========================================================= */

.reel-item {
    flex: 0 0 calc(25% - 17px);

    width: calc(25% - 17px);

    min-width: 0;

    scroll-snap-align: start;
}


/* =========================================================
   REEL VIDEO FRAME
========================================================= */

.reel-frame {
    position: relative;

    width: 100%;

    aspect-ratio: 9 / 16;

    background: #000000;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12);
}


/* =========================================================
   YOUTUBE IFRAME
========================================================= */

.reel-frame iframe {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =========================================================
   NAVIGATION BUTTONS
========================================================= */

.reels-btn {
    position: absolute;

    top: 45%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: #ffffff;
    color: #111111;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    z-index: 20;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.15);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.reels-btn:hover {
    background: #e30613;
    color: #ffffff;

    transform: translateY(-50%) scale(1.05);
}

.reels-prev {
    left: -23px;
}

.reels-next {
    right: -23px;
}


/* =========================================================
   DOTS
========================================================= */

.reels-dots {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 7px;

    margin-top: 20px;
}

.reels-dots span {
    display: block;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #d0d0d0;

    cursor: pointer;

    transition:
        width 0.3s ease,
        background 0.3s ease;
}

.reels-dots span.active {
    width: 25px;

    border-radius: 10px;

    background: #e30613;
}


/* =========================================================
   LARGE TABLET
========================================================= */

@media (max-width: 1100px) {

    .customer-reels {
        padding: 70px 20px;
    }

    .reel-item {
        flex: 0 0 calc(33.333% - 15px);
        width: calc(33.333% - 15px);
    }

    .customer-reels-header h2 {
        font-size: 36px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .customer-reels {
        padding: 60px 18px;
    }

    .reels-track {
        gap: 18px;
    }

    .reel-item {
        flex: 0 0 calc(50% - 9px);
        width: calc(50% - 9px);
    }

    .customer-reels-header {
        margin-bottom: 35px;
    }

    .customer-reels-header h2 {
        font-size: 34px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .customer-reels {
        width: 100%;
        padding: 55px 12px;

        overflow: hidden;
    }

    .customer-reels-container {
        width: 100%;
        max-width: 100%;
    }


    /* Heading */

    .customer-reels-header {
        width: 100%;

        padding: 0 6px;

        margin-bottom: 28px;
    }

    .customer-reels-header span {
        font-size: 12px;

        margin-bottom: 10px;
    }

    .customer-reels-header h2 {
        font-size: 28px;

        line-height: 1.25;
    }

    .customer-reels-header p {
        margin-top: 12px;

        font-size: 14px;

        line-height: 1.6;
    }


    /* Slider */

    .reels-wrapper {
        width: 100%;
    }

    .reels-track {
        width: 100%;

        gap: 14px;

        padding: 3px 7% 18px;

        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;

        -webkit-overflow-scrolling: touch;
    }


    /* One Reel on Mobile */

    .reel-item {
        flex: 0 0 86%;

        width: 86%;

        min-width: 86%;

        scroll-snap-align: center;
    }


    /* 9:16 Video */

    .reel-frame {
        width: 100%;

        aspect-ratio: 9 / 16;

        height: auto;

        border-radius: 16px;

        overflow: hidden;

        background: #000000;

        box-shadow:
            0 8px 25px rgba(0, 0, 0, 0.15);
    }


    /* YouTube */

    .reel-frame iframe {
        width: 100%;
        height: 100%;

        display: block;

        border: 0;
    }


    /* Hide arrows */

    .reels-btn {
        display: none;
    }


    /* Dots */

    .reels-dots {
        margin-top: 15px;

        gap: 6px;
    }

    .reels-dots span {
        width: 7px;
        height: 7px;
    }

    .reels-dots span.active {
        width: 22px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .customer-reels {
        padding: 50px 10px;
    }

    .customer-reels-header {
        padding: 0 5px;
    }

    .customer-reels-header h2 {
        font-size: 26px;
    }

    .customer-reels-header p {
        font-size: 13.5px;
    }

    .reels-track {
        gap: 12px;

        padding-left: 5%;
        padding-right: 5%;
    }

    .reel-item {
        flex: 0 0 90%;

        width: 90%;

        min-width: 90%;
    }

    .reel-frame {
        border-radius: 15px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .customer-reels {
        padding-left: 8px;
        padding-right: 8px;
    }

    .customer-reels-header h2 {
        font-size: 24px;
    }

    .reel-item {
        flex: 0 0 92%;

        width: 92%;

        min-width: 92%;
    }

}