.image-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Full-screen height for desktop and larger screens */
    overflow: hidden;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area while maintaining aspect ratio */
    object-position: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
     /* Semi-transparent black background
     background-color: rgba(11, 11, 11, 0.5); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: rgb(121, 119, 119);
    padding: 20px;
    box-sizing: border-box;
}

.overlay h1 {
    font-size: 2.5em; /* Adjust font size for large screens */
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7); /* Optional: Adds shadow to text */
}

.links a {
    color:#FFC107;
    text-decoration: none;
    font-size: 1.2em;
    margin: 10px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.3); /* Slightly opaque white background */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.links a:hover {
    background-color: rgba(255, 255, 255, 0.7); /* Lighten the background on hover */
    color: black;
}

/* Responsive Design */

/* Medium Screens (Tablets) */
@media (max-width: 768px) {
    .image-section {
        height: 50vh; /* Reduce section height for tablets */
    }

    .overlay h1 {
        font-size: 2rem; /* Adjust font size for smaller screens */
    }

    .links a {
        font-size: 1rem; /* Slightly smaller font for links */
        padding: 8px 16px; /* Adjust padding for better fit */
    }
}

/* Small Screens (Mobile) */
@media (max-width: 480px) {
    .image-section {
        height: 40vh; /* Further reduce section height for mobiles */
    }

    .overlay {
        padding: 15px; /* Reduce padding for smaller screens */
    }

    .overlay h1 {
        font-size: 1.5rem; /* Further reduce font size */
    }

    .links a {
        font-size: 0.9rem; /* Smaller font size for links */
        padding: 6px 12px; /* Adjust padding for compact design */
    }
}
