/* General Body and Container */
body {
    background: #0f172a;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

.how-to-use-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px; 
    position: relative; 
    z-index: 2; 
}

/* Typography */
.how-to-use-container h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: white;
}

.how-to-use-container h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 25px;
    text-align: center;
}

/* Video Row */
.video-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 60px; /* Spacing between rows */
    gap: 20px;
}

/* Video Section */
.video-section {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    margin: 0; /* Remove default margin as flexbox handles spacing */
}

/* Empty placeholder for maintaining layout */
.video-section.empty-placeholder {
    visibility: hidden;
}

.video-section iframe {
    width: 100%; /* Use width instead of max-width */
    aspect-ratio: 16 / 9; /* Standard video aspect ratio */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .video-row {
        flex-direction: column;
    }

    .video-section {
        min-width: auto;
        margin-bottom: 60px;
    }

    .video-section.empty-placeholder {
        display: none;
    }
}

@media (max-width: 768px) {
    .how-to-use-container h1 {
        font-size: 2.5rem;
    }
    .how-to-use-container h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    .video-section {
        padding: 20px;
    }
    .video-row {
        margin-bottom: 40px;
    }
}
