/* 🔥 Featured Videos Section */
#videos {
    background: #f4f4f4; 
    background: #303030; 
    padding: 60px 20px;
    text-align: center; /* Center the title */
    color: #ccc; /* Dark text */
}

/* 🎬 Title */
#videos h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* 📹 Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* ✅ Expands up to 4 columns */
    gap: 50px; /* Space between videos */
    justify-content: center; /* Center when fewer videos exist */
    max-width: 1600px; /* ✅ Wider container */
    margin: auto;
}

/* 📱 Responsive: Adjust Column Count */
@media (max-width: 1400px) {
    .video-gallery {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* ✅ 3 columns at medium screen sizes */
    }
}

@media (max-width: 1000px) {
    .video-gallery {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* ✅ 2 columns */
    }
}

@media (max-width: 700px) {
    .video-gallery {
        grid-template-columns: 1fr; /* ✅ Stacks videos on small screens */
    }
}


/* 📺 Individual Video Card */
.video-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%; /* Allows grid to handle width */
    max-width: 500px; /* ✅ Ensures side-by-side layout */
}

/* 🎥 YouTube Video - Maintaining 16:9 Aspect Ratio */
.video-card iframe {
    width: 100%; 
    height: 280px; /* ✅ Adjusted for 16:9 ratio at 500px width */
    border-radius: 8px;
}

/* 🎵 Video Title */
.video-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: normal;
    color: #333; /* Darker text */
    margin-top: 10px;
}



/* 📱 Responsive: Single Column on Small Screens */
@media (max-width: 900px) {

    #videos {
        padding: 0px;
    }

    .video-gallery {
        grid-template-columns: 1fr; /* ✅ Stacks videos on smaller screens */
    }

    .video-card {
        max-width: 100%; /* Full width for small screens */
        padding: 0px;
    }
}















#videos {
    background-color: #1a1a1a; /* Dark base */
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 5%, transparent 10%), /* Subtle dots */
        linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%), /* Grid */
        linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%); /* Crossed lines */
    background-size: 5px 5px, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, 20px 20px;
    background-attachment: fixed; /* Keeps the texture in place */
    position: relative; /* Ensures ::before is positioned properly */
    overflow: hidden; /* Prevents weird scrolling issues */
}







