.video-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.8);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 20px;
    padding: 0;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
    opacity: 1;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.modal-title {
    color: #004439;
    margin: 0;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    line-height: 34px; /* 121.429% */
}

.close-modal {
    position: static;
    background: none;
    border: none;
    color: #004439;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal.active .close-modal {
    opacity: 1;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 0 91px;
    width: auto;
    border-radius: 25px;
}

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

.video-modal-footer {
    padding: 29px 91px; 
}


.modal-explore-btn {
    display: block;
    padding: 15px;
    background: #59B224;
    color: #FFF;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.modal-explore-btn:hover {
    background: #4a8a2e;
    color: #FFF;
    text-decoration: none;
}

.video-modal-description {
    text-align: center;
    color: #3B605A;
    padding: 0 20px 25px 20px;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px; /* 171.429% */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-title {
        font-size: 18px;
    }

    .video-modal-header {
        padding: 15px;
    }

    .video-modal-footer {
        padding: 15px;
    }

    .video-modal-description {
        font-size: 14px;
        line-height: 24px;
        padding: 15px 15px 10px 15px;
    }

    .video-container {
        margin: 0 15px;
    }
}
