/* Override landing behavior for videos page */
body.videos-page {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;

    background-image:
        linear-gradient(
            rgba(15, 23, 42, 0.75),
            rgba(15, 23, 42, 0.75)
        ),
        url("images/logo.jpg");

    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    color: #e5e7eb;

    /* IMPORTANT: allow scrolling */
    min-height: 100vh;
    display: block;
}

/* Main container */
.video-section {
    max-width: 1300px;
    margin: 80px auto;
    padding: 40px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 14px;
}

/* Header */
.video-section h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.video-section p {
    text-align: center;
    margin-bottom: 40px;
    color: #cbd5e1;
}

/* Grid layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
}

/* 16:9 responsive wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Note */
.video-note {
    margin-top: 30px;
    text-align: center;
    font-style: italic;
    color: #94a3b8;
}

/* Back button */
.back-home {
    display: inline-block;
    margin-top: 40px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
}

.back-home:hover {
    color: white;
}
