/* You CSS goes in here */
/* ===== GLOBAL RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* ===== HEADER ===== */
.header-container {
    text-align: center;
    padding: 20px;
}

.underline {
    width: 60px;
    height: 4px;
    background: #0077b6;
    margin: 10px auto;
}

/* ===== NAVIGATION ===== */
.vertical-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 20px;
}

.nav-item {
    text-align: center;
    max-width: 600px;
}

.cta-text {
    margin-bottom: 10px;
    font-size: 16px;
}

.play-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    background-color: #0077b6;
    color: white;
    border-radius: 5px;
    transition: 0.3s;
}

.play-btn:hover {
    background-color: #023e8a;
}

/* ===== VIDEO OVERLAY ===== */
.video-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);

    /* IMPORTANT FIX */
    justify-content: center;
    align-items: flex-start;   /* was center */
    
    padding: 40px 15px;
    overflow-y: auto;
    z-index: 1000;
}


/* ===== VIDEO CARD ===== */
.video-card {
    position: relative;
    background: white;
    padding: 30px 20px 20px 20px;
    width: 100%;
    max-width: 900px;
    border-radius: 10px;
    text-align: center;
}

/* CLOSE BUTTON */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* ===== RESPONSIVE VIDEO ===== */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    margin-top: 15px;
}

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

/* ===== DESCRIPTION ===== */
.description-box {
    margin-top: 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .video-card {
        padding: 15px;
    }

    .description-box {
        font-size: 14px;
    }

    .cta-text {
        font-size: 14px;
    }
}
