/* Main background container (YouTube video is inside this) */
.change-bg-section {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
}

/* Hover Overlay Above the Video */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Does not interfere with clicks */
}

/* Hover effect for text */
.hover-change {
    font-family: 'Gilroy', sans-serif;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, opacity 0.3s ease-in-out;
    padding: 1px 04px; /* Added padding for better appearance */
    border-radius: 5px; /* Optional: Adds rounded corners */
}

/* Background color appears only on hover */
.hover-change:hover {
    color: white;
    background-color: #F3725E;
}

/* Ensures smooth fade-in and fade-out */
.interactive-heading .hover-change,
.interactive-heading .static-text {
    transition: opacity 0.3s ease-in-out;
}