/* Hidden items */
.branded-hidden-video { display: none; }

.branded-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row */
    gap: 20px;
} 


.branded-video-item {
    text-align: center;
    font-size:16px!important; 
}
.video-thumb-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #f6f6f6;
}
.video-thumb-wrapper img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.youtube-icon-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-size: 34px;
    opacity: 0.95;
}

.branded-toggle-wrap { text-align: center; margin-top: 18px; }
.branded-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
    color: #0073aa;
    transition: transform 0.2s ease;
}
.branded-toggle-btn:hover { transform: scale(1.06);  }


.branded-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr)!important;
    gap: 20px;
    margin: 20px 0;
}
.branded-video-item {
    text-align: center;
}
.branded-video-item img {
    aspect-ratio:16/9;
    object-fit:cover; 
}

.video-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.video-popup {
    background: white;
    padding: 20px;
    max-width: 90%;
    width: 600px;
    text-align: center;
    position: relative;
}
.video-popup iframe {
    width: 100%;
    height: 315px;
}
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
}



.video-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-popup {
    background: #000;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.video-popup iframe {
    width: 100%;
    height: 450px;
    border: none;
    display: block;
}

.video-popup h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 22px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 22px;
    font-weight: bold;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 50%;
    line-height: 1;
}
 

#video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#video-popup-box {
    position: relative;
    background: #000;
    padding: 5px;
    border-radius: 10px;
    border-color:#d3d3d3; 

}

#video-popup-box iframe {
    max-width: 100%;
    height: auto;
}

#video-popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
}

.video-popup iframe {
    width: 100%;
    height: 540px !important;
    min-height: 540px;
    aspect-ratio: 16 / 9;
    border: none;
    display: block;
}

.video-popup iframe {
    width: 100% !important;
    height: 540px !important;
    max-height: 100vh;
}

.video-popup {
    max-height: 90vh;
    overflow: auto;
}

.branded-video-item img {
    width: 100%;
    cursor: pointer;
}


.youtube-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #ff0000;
    transition: transform 0.3s ease, color 0.3s ease;
    pointer-events: none; /* Allow clicks to pass through */
}

.video-thumb-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.video-thumb-wrapper:hover .youtube-icon-overlay {
    transform: translate(-50%, -50%) scale(1.2);
    color: #cc0000; /* Slightly darker red on hover */
}


#video-popup-close {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #fff;
    color: #000 !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10001;
}

#video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

#video-popup-box {
    position: relative;
    margin-top: 50px;
    max-width: 95%;
    max-height: 90vh;
    overflow: hidden;
    background: transparent;
}

#video-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: black;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.video-title {
    margin-top: 10px;
    font-weight: 300;
    font-size: 16px!important;
}


@media (max-width: 767px) {
.branded-content-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin: 20px 0;
}

}

#branded-toggle-more {
    display: inline-flex;
    align-items: center; /* vertically center content */
    justify-content: center; /* horizontally center if needed */
    padding: 10px 20px;
    background-color: #ffffff; /* flat white */
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease, border-radius 0.3s ease;
}

#branded-toggle-more i {
    display: inline-block;
    color: #ff0000; /* red arrow */
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect: rounded + scale + light background */
#branded-toggle-more:hover {
   
    transform: scale(1.03);

}

/* Arrow animation and color change on hover */
#branded-toggle-more:hover i {
    transform: translateY(3px); /* arrow moves down */
    color: #ff6666; /* light red */
}