/* --------------------------------------------------------
   CLEAN & FIXED VENOBOX CSS (FULL FILE)
   Optimized for video popups + autoplay
---------------------------------------------------------*/

/* Generic resets inside modal */
.vbox-overlay *,
.vbox-overlay *:before,
.vbox-overlay *:after {
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.vbox-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.95) !important;  /* dark clean background */
}

/* ------------------------------
   TITLE / CLOSE BUTTON
-------------------------------*/
.vbox-title {
    width: 100%;
    line-height: 40px;
    font-size: 14px;
    text-align: center;
    padding: 6px 50px;
    display: none;
}

.vbox-close {
    cursor: pointer;
    position: fixed;
    top: 8px;
    right: 12px;
    font-size: 30px;
    color: #fff !important;
    z-index: 9999999;
}

/* ------------------------------
   ARROWS (next/prev)
-------------------------------*/
.vbox-next,
.vbox-prev {
    position: fixed;
    top: 50%;
    width: 45px;
    height: 45px;
    z-index: 99999;
    cursor: pointer;
}

.vbox-prev { left: 15px; }
.vbox-next { right: 15px; }

.vbox-prev span,
.vbox-next span {
    width: 20px;
    height: 20px;
    border-top: 2px solid #ccc;
    border-right: 2px solid #ccc;
    display: block;
}

.vbox-prev span {
    transform: rotate(-135deg);
    margin-left: 12px;
}

.vbox-next span {
    transform: rotate(45deg);
    margin-left: 12px;
}

/* ------------------------------
   MAIN POPUP CONTAINER
-------------------------------*/
.vbox-container {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.vbox-content {
    width: 100%;
    padding: 20px 4%;
    text-align: center;
}

/* ------------------------------
   IMAGE & VIDEO RESET
-------------------------------*/
.venoframe,
.vbox-inline {
    max-width: 100%;
    width: 100%;
    border: none;
    background: #000;
}

/* Make video responsive */
.venoframe {
    height: 70vh !important;
}

.venoframe.vbvid {
    width: 100%;
    height: 70vh !important;
}

/* Desktop sizes */
@media (min-width: 768px) {
    .venoframe {
        width: 90%;
        height: 70vh !important;
    }
}

@media (min-width: 992px) {
    .venoframe {
        width: 80%;
        max-width: 1200px;
        height: 70vh !important;
    }
}

/* ------------------------------
   FIX: Prevent video black cut
-------------------------------*/
.vbox-figlio {
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    max-width: 100%;
}

.venoframe,
iframe,
video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: #000 !important;
}

/* ------------------------------
   "Watch Video" Button Styling
-------------------------------*/
.btn-watch-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white !important;
    font-size: 18px;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 18px;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
}

.btn-watch-video i {
    font-size: 28px;
}

/* ------------------------------
   OPTIONAL: Remove scroll on body
-------------------------------*/
.vbox-open {
    overflow: hidden !important;
}

/* ===== FIX: Ensure video shows properly in About section ===== */

.about .video-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 350px !important;
    display: block !important;
}

.about .video-box,
.about video {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 350px !important;
    border-radius: 8px !important;
    background: #000 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix extra padding so text aligns nicely */
.about .content {
    padding-left: 20px !important;
}

@media (max-width: 768px) {
    .about .content {
        margin-top: 25px !important;
        padding-left: 0 !important;
        text-align: center !important;
    }
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #000;
    border-radius: 10px;
    padding: 10px;
}

.video-modal video {
    width: 100%;
    border-radius: 10px;
}

.video-close {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

/* Fix right-side About text alignment */
.about .content {
    padding-left: 40px !important;
    padding-right: 15px !important;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertically center text */
}

/* Improve paragraph readability */
.about .content p {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Fix UL spacing */
.about .content ul {
    padding-left: 0 !important;
    margin-top: 10px;
}

.about .content ul li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    font-size: 15px;
}

/* Icon spacing */
.about .content ul li i {
    color: #e43c5c;        /* theme color */
    margin-right: 10px;
    font-size: 18px;
    margin-top: 2px;
}

/* Mobile fixes */
@media (max-width: 768px) {
    .about .content {
        padding-left: 0 !important;
        text-align: center;
        margin-top: 20px;
    }

    .about .content ul li {
        justify-content: center;
    }
}