/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */
.gp-video-wrapper {
    padding: 70px 0 100px;
}
 /* tabs  */
 .gp-video-tabs {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0px;
    border-bottom: 1px solid #F0F0F0;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 30px;
    white-space: nowrap;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}
/* 1. Base Scrollbar Setup (Invisible by default) */
.gp-video-tabs::-webkit-scrollbar {
    height: 5px; /* Height of the horizontal scrollbar */
}

.gp-video-tabs::-webkit-scrollbar-track {
    background: transparent; /* Invisible track */
}

.gp-video-tabs::-webkit-scrollbar-thumb {
    background: transparent; /* Invisible thumb by default */
    border-radius: 10px;
}

/* 2. Show the scrollbar thumb ONLY on container hover */
.gp-video-tabs:hover::-webkit-scrollbar-thumb {
    background: #C1C1C1; /* Shows up when you hover over the tabs */
}

/* 3. Optional: Change thumb color when hovering directly over the scrollbar itself */
.gp-video-tabs::-webkit-scrollbar-thumb:hover {
    background: #A8A8A8; 
}
.gp-video-tabs li, 
.gp-video-tabs a { /* Adjust the selector to match your actual HTML child elements */
    flex-shrink: 0;
}
 
/* .gp-video-tabs::-webkit-scrollbar {
    display: none;
} */
 
.gp-tab {
    position: relative;
    padding: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: #7A7A82;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
 
.gp-tab:hover {
    color: #006608;
}
 
.gp-tab.active {
    color: #006608;
    font-weight: 700;
}
 
.gp-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #006608;
}

.gp-tab-content {
    display: none;
}

.gp-tab-content.active {
    display: block;
}

/* Modal */

#gp-video-modal {
    display: none;
}

.gp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.8);
    z-index: 9998;
}

.gp-modal-content {
    position: fixed;
    width: 80%;
    max-width: 900px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.gp-close {
    position: absolute;
    right: -48px;
    top: -28px;
    text-align: center;
    cursor: pointer;
    font-size: 27px;
    color: #fff;
    border: 1px solid #fff;
    display: block;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.video-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.video-card {
    background: #F7F9FC;
    border-radius: 12px;
    padding: 16px;
    overflow: hidden;
    transition: 0.3s ease;
}

.video-thumb {
    position: relative;
    height: 167px;
    overflow: hidden;
}

.video-thumb .video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    position: relative;
}
.video-thumb .video-thumb-img:after {
    content:"";
    position: absolute;
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.video-content h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #111;
    margin: 10px 0 5px;
    line-height: 1.3;
}

.video-content p {
    font-size: 16px;
    color: #7A7A7A;
    line-height: 1.6;
    font-family: "Urbanist", sans-serif !important;
    font-weight: 500;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tablet */
@media (max-width: 992px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-thumb {
        height: 220px;
    }
}
@media (max-width: 767px) {
    .gp-video-wrapper {
        padding: 40px 0;
    }
    .gp-close {
        right: 0;
        top:-88px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-thumb {
        height: 220px;
    }

    .video-content h3 {
        font-size: 18px !important;
    }
     .video-content p {
        font-size: 14px;
    }
}