.video-section {
    max-width: 1200px;
    margin: 0 auto; /* Center the container within its parent */
}

.video-section h2 {
    margin: 0 0 10px;
    font-weight: 700;
    font-size: 1.5em;
    color: #fff;
    text-transform: uppercase; /* Optional: transform text to uppercase */
    border-bottom: 2px solid #fff;
    padding-bottom: 10px;
}

.video-title {
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 20px;
    font-weight: 700;
    font-size: 1.5em;
    text-transform: uppercase; /* Optional: transform text to uppercase */
    padding-bottom: 10px;
}

.video-divider {
    border-bottom: 2px solid #fff;
    margin: 20px 0;
}

.video-grid {
    display: flex;
    gap: 10px; /* Adjust space between items */
    margin-top: 20px; /* Add spacing above the grid if needed */
}

.video-item {
    flex: 1 1 calc(20% - 10px); /* 5 videos in 1 row with space */
    position: relative;
    margin: 0; /* Remove any margin */
    overflow: hidden; /* Ensure children don't overflow */
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    transition: transform 0.3s; /* Smooth transition for scaling */
}

.video-item:hover {
    transform: scale(1.05); /* Scale up slightly on hover */
}

.video-thumbnail {
    position: relative;
    height: 100%; /* Fill the item */
    overflow: hidden; /* Hide overflow */
    border-radius: 5px; /* Optional: add some styling */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: add shadow */
}

.video-thumbnail img {
    width: 100%;
    height: 100%; /* Cover the full height */
    object-fit: cover; /* Maintain aspect ratio while filling */
}

.video-overlay {
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 150%;
    backdrop-filter: blur(4px); /* Add blur effect */
    transition: opacity 0.3s; /* Smooth transition for opacity */
    opacity: 0.8; /* Slightly transparent overlay */
}

.video-item:hover .video-overlay {
    opacity: 1; /* Make overlay fully opaque on hover */
}

.video-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the title */
    color: #fff; /* Title color */
    font-size: 1.2em; /* Adjust font size as needed */
    text-align: center;
    z-index: 1; /* Place above the overlay */
    transition: color 0.3s; /* Smooth transition for title color */
}

.video-item:hover .video-title {
    color: #ffdd57; /* Change title color on hover */
}

.more-videos-container {
    display: flex;
    justify-content: flex-end; /* Aligns the button to the right */
}

.more-videos {
    background: rgba(0, 0, 0, 0.5); /* Adjust the color to match your theme */
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: inline-block; /* Prevents the button from taking the full width */
}

.more-videos:hover {
    color: #f0a500;
    background: #3a3b40; /* Slightly lighter shade with a hint of blue */
}

/* Mobile styles */
.mobile-view {
    display: none;
}

@media (max-width: 1024px) {

    .video-section {
        padding: 20px;
    }    
}

@media (max-width: 768px) {

    .dot,
    .desktop-view,
    .video-divider {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .video-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
        aspect-ratio: 16 / 9;

    }

    .slide {
        display: none;
        width: 100%;
    }

    .slide.active {
        display: block;
    }

    .dots-container {
        text-align: center;
        padding: 10px 0;
    }

    .dot.active, .dot:hover {
        background-color: #717171;
    }
}
