/* Video Gallery Styles */
.cv-video-gallery {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px;
}

/* Tab Navigation */
.cv-tab-navigation {
    display: flex;
    background: #fff;
    margin-bottom: 40px;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.cv-tab-btn {
    border: none;
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    background: none !important;
    color: #000 !important;
    box-shadow: none !important;
    border-radius: 0px !important;
    margin: 0px 22px 0px 0px !important;
    padding: 0px !important;
    font-family: "Roboto", Sans-serif !important;
    font-size: 18px !important;
    font-weight: 500 !important;
  }

.cv-tab-btn:hover {
    color: #E14035 !important;
    border-bottom: 1px solid #E14035;
}


.cv-play-button svg {
    width: 40px !important;
    height: 40px !important;
  }

.cv-tab-btn.active {
    color: #E14035 !important;
    background: none;
    border-bottom: 1px solid #E14035;
}

.cv-tab-btn.active:hover {
    color: #E14035;
}

/* Video Grid */
.cv-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

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

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

.cv-load-more {
    display: inline-block;
    margin: 40px auto 10px;
    padding: 10px 22px;
    background: #E14035;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
}

.cv-load-more[disabled] {
    opacity: .7;
    cursor: default;
}

/* Spinner while loading */
.cv-load-more.is-loading {
    position: relative;
    color: transparent;
}
.cv-load-more.is-loading:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    margin-left: -9px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.6);
    border-top-color: #fff;
    animation: cv-spin .6s linear infinite;
}

@keyframes cv-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Video Card */
.cv-video-card {
    background: none;
    border: none;
    cursor: pointer;
}

.cv-video-thumbnail {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cv-video-thumbnail img {
    width: 100%;
    height: 160px !important;
    object-fit: cover;
    
}

.cv-video-title a {
    color: #333 !important;
}

.page-id-19928 .cv-play-button {
    position: absolute;
    top: 56%;
    left: 56%;
    transform: translate(-50%, -50%);
}

.cv-play-button svg circle {
    fill: #E14035;
}

.cv-video-title {
    margin-bottom: 5px;
    font-size: 0.888rem;
    font-weight: 500;
    line-height: 1.113rem;
    color: #333333;
}

.cv-video-date {
    font-size: 14px;
    color: #666;
}

/* Modal Styles */
.cv-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.cv-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.cv-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cv-modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.cv-video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.cv-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cv-load-more {
    padding: 10px 20px 10px 20px !important;
    font-size: 14px !important;
}

.load-more-button {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cv-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .cv-video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cv-tab-navigation {
        flex-direction: column;
    }
    
    .cv-tab-btn {
        text-align: left;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .cv-modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .cv-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cv-video-gallery {
        padding: 0px;
    }
}

@media (max-width: 767px) {
.cv-video-gallery {
    padding-left: 20px;
    padding-right: 20px;
}
.cv-tab-btn {
    text-align: center;
    margin-bottom: 10px !important;
}
}
