.banner {
    width: 100%; /* Full width */
    height: 300px; /* Fixed height for the banner */
    overflow: hidden; /* Hide overflow */
    position: relative; /* Position relative for overlay */
}

.banner img {
    position: absolute; /* Position absolute to allow cropping */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    min-width: 100%; /* Ensure the image covers the width */
    min-height: 100%; /* Ensure the image covers the height */
    width: auto; /* Allow width to adjust */
    height: auto; /* Allow height to adjust */
    transform: translate(-50%, -50%); /* Center the image */
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Optional overlay */
    color: white; /* Text color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* banner.css updates */
.banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.banner img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-text-container {
    max-width: 90%;
    padding: 20px;
}

.banner-text-container h1 {
    margin: 0 0 15px 0;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.banner-text-container p {
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.5;
}

/* Responsive design for banner */
@media (max-width: 768px) {
    .banner {
        height: 250px;
    }
    
    .banner-text-container h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .banner-text-container p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }
    
    .banner-text-container h1 {
        font-size: 1.5rem;
    }
    
    .banner-text-container p {
        font-size: 0.9rem;
    }
}
