/* video.css */
.videos{
  font-family: var(--secondary-font);
}


.videos .banner {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)),
        url(/images/new/about_horizontal.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 5rem 1rem;
    color: white;
    text-align: center;
    font-size: 60px;
    font-weight: 600;
}

.videos .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 90%;
}

.videos .main_category {
    color: var(--dark-green);
    font-size: 34px;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9bb6a9;
}

.videos .cards {
    display: grid;
    /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    margin-bottom: 40px;
}

.videos .video {
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 1px 7px 0px #1d513561;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.videos .video:hover {
    transform: translateY(-5px);
}

.videos .video .thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.videos .video .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.videos .video .video-title {
  padding: 9px;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  line-height: 1.5;
}

.videos .video .play {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background-color: #b09d38e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    box-shadow: 0px 0px 10px 1px #d0b731;
}

/* @keyframes blinker {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3),
            0 0 0 6px rgba(255, 255, 255, 0.3),
            0 0 0 12px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3),
            0 0 0 12px rgba(255, 255, 255, 0.3),
            0 0 0 18px rgba(255, 255, 255, 0);
    }
} */

@keyframes blink {
    0% {
        box-shadow: 0 0 0 0 rgb(224 209 134 / 61%);
    }
    100% {
        box-shadow: 0 0 0 10px rgb(227 210 123 / 56%);
    }
}

.videos .video .play::after {
    content: "";
    border-left: 15px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 5px;
    border-radius: 3px;
}

.videos .video:hover .play {
    animation: 1s linear infinite blink;
    background-color: #b09d38;
}

/* Popup/Modal Styles */
.videos .popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.videos .popup-overlay.active {
    display: flex;
}

.videos .popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
}

.videos .popup-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background: var(--dark-green, #9bb6a9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.videos .popup-close:hover {
    background: var(--darker-green, #7a9589);
}

.videos .popup-close::before,
.videos .popup-close::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
}

.videos .popup-close::before {
    transform: rotate(45deg);
}

.videos .popup-close::after {
    transform: rotate(-45deg);
}

.videos .video-frame {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    background: #000;
}

@media (max-width: 1000px) {
    .videos .cards {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .videos .banner {
        font-size: 40px;
        padding: 3rem 1rem;
    }

    .videos .main_category {
        font-size: 28px;
    }

    .videos .popup-close {
        top: -50px;
        right: 0;
    }
}

/* Responsive Design */
@media (max-width: 500px) {
    .videos .banner {
        font-size: 51px;
        padding: 5rem 0rem;
    }

    .videos .container {
        width: 100%;
    }

    .videos .cards {
        padding: 0px;
        gap: 40px;
    }
}
