.videos-section {
    padding: 80px 0;
    background-color: #f4eaea; /* Lighter gray for a softer look */
}

.video-wrapper {
    margin-bottom: 2rem; /* Add some space between video players */
}

.video-container {
    position: relative;
    border-radius: 20px; /* More rounded corners */
    overflow: hidden;
    box-shadow: 5px 8px 5px rgba(255, 1, 1, 0.986); /* Softer, deeper shadow */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.video-container:hover {
    transform: translateY(-12px) scale(1.02); /* More pronounced hover effect */
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}

.video-container.video-playing {
    background-image: none !important;
}

.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    z-index: 1;
}

.external-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.control-btn {
    background-color: rgb(255, 0, 0); /* Make it semi-transparent */
    color: rgb(2, 1, 1);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-btn:hover {
    background-color: #004a80;
    transform: scale(1.1);
}

.control-btn:active {
    transform: scale(1.05);
}

/* Fullscreen button specific styles */
.fullscreen-btn {
    background-color: #ff0000; /* A different color for distinction */
    color: rgb(15, 5, 5);
}

.fullscreen-btn:hover {
    background-color: #024a97;
}

/* Fullscreen mode styles */
.video-container.fullscreen-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    background-color: rgba(0, 0, 0, 0.95); /* Dark overlay */
    z-index: 9999; /* Ensure it's on top */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* No rounded corners in fullscreen */
    box-shadow: none; /* No shadow in fullscreen */
    transform: none; /* Remove any transforms */
}

.video-container.fullscreen-active .video-player {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure video fits within screen */
}

.video-container.fullscreen-active .external-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
}