/* --- Videos Section Styles --- */
.videos-section {
    padding: 6rem 1rem;
    background-color: #ffffff;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #38a169;
    border-radius: 2px;
}

.video-grid {
    display: flex;
    flex-wrap: wrap; /* Allows videos to wrap to the next line */
    justify-content: center;
    gap: 2rem;
}

.video-item {
    flex: 1 1 45%; /* Videos take up a little less than 50% for spacing on large screens */
    padding: 1rem;
    border-radius: 10px;
    background-color: #f7f7f7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.video-container {
    position: relative;
    width: 100%;
    /* 16:9 aspect ratio (height is 56.25% of the width) */
    padding-bottom: 56.25%; 
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .video-grid {
        flex-direction: column; /* Stacks videos vertically on smaller screens */
        gap: 9.5rem;
    }

    .video-item {
        flex: 1 1 100%; /* Each video takes up the full width */
    }
}