﻿/* ==================================
   PRODUCT VIDEO SECTION
================================== */

.product-video-section {
    padding: 75px 0;
    background: #f7f8fb;
    font-family: Arial, sans-serif;
}

    .product-video-section .container {
        max-width: 1200px;
        margin: auto;
        padding: 0 20px;
        box-sizing: border-box;
    }

/* SECTION HEADING */

.video-heading {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
}

.section-label {
    display: inline-block;
    color: #17214f;
    background: #eef2d8;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.video-heading h2 {
    color: #17214f;
    font-size: 34px;
    margin: 18px 0 12px;
    font-weight: 700;
}

.video-heading p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}


/* ==================================
   MAIN VIDEO LAYOUT
================================== */

.product-video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
    gap: 25px;
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(23, 33, 79, 0.08);
    align-items: start;
    box-sizing: border-box;
}


/* ==================================
   MAIN VIDEO PLAYER
================================== */

.main-video-area {
    min-width: 0;
}

.main-video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

    .main-video-wrapper video {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #000;
    }

.main-video-info {
    padding: 20px 5px 5px;
}

.video-tag {
    color: #17214f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-left: 4px solid #B3D342;
    padding-left: 10px;
}

.main-video-info h3 {
    color: #17214f;
    font-size: 23px;
    margin: 15px 0 10px;
    line-height: 1.4;
}

.main-video-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* ==================================
   VIDEO PLAYLIST
================================== */

.video-playlist {
    min-width: 0;
}

.playlist-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #17214f;
    font-size: 18px;
    margin: 0 0 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid #e8eaf0;
}

    .playlist-heading span {
        color: #777;
        font-size: 11px;
        font-weight: 600;
    }


/* VIDEO THUMBNAIL ITEM */

.video-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

    .video-thumb:hover {
        border-color: #B3D342;
        background: #faffed;
    }

    .video-thumb.active {
        border: 2px solid #17214f;
        background: #f4f6fb;
    }


/* THUMBNAIL IMAGE */

.thumb-image {
    position: relative;
    flex: 0 0 115px;
    width: 115px;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    overflow: hidden;
    background: #17214f;
}

    .thumb-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(23, 33, 79, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding-left: 2px;
    box-sizing: border-box;
}

.video-thumb.active .play-icon {
    background: #B3D342;
    color: #17214f;
}


/* THUMBNAIL DETAILS */

.thumb-details {
    flex: 1;
    min-width: 0;
}

    .thumb-details h4 {
        color: #17214f;
        font-size: 13px;
        line-height: 1.4;
        margin: 0 0 5px;
    }

    .thumb-details p {
        color: #888;
        font-size: 11px;
        line-height: 1.4;
        margin: 0;
    }


/* ==================================
   TABLET
================================== */

@media (max-width: 900px) {

    .product-video-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .video-playlist {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .playlist-heading {
        grid-column: 1 / -1;
    }

    .video-thumb {
        margin-bottom: 0;
    }

    .thumb-image {
        flex-basis: 100px;
        width: 100px;
    }
}


/* ==================================
   MOBILE
================================== */

@media (max-width: 576px) {

    .product-video-section {
        padding: 45px 0;
    }

    .video-heading h2 {
        font-size: 25px;
    }

    .video-heading p {
        font-size: 14px;
    }

    .product-video-layout {
        padding: 12px;
        gap: 20px;
    }

    .video-playlist {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .playlist-heading {
        font-size: 16px;
    }

    .thumb-image {
        flex-basis: 115px;
        width: 115px;
    }

    .main-video-info h3 {
        font-size: 19px;
    }
}
