/* new Hero Section with img tag */
.hero-banner {
    position: relative;
    overflow: hidden;
    min-height: clamp(420px, 46vh, 760px);
}

/* Background image */
.hero-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;  /* always centered */
    display: block;
    z-index: 0;
    pointer-events: none;
}

/* Wrapper for text; sits above image */
.hero-banner-overlay {
    position: relative;
    z-index: 1;
}

/* Text box */
.hero-text-container {
    max-width: 600px;
    margin: clamp(16px, 4vw, 60px);
    padding: 20px 24px;
    background-color: rgba(0, 47, 108, 0.85);
    border-radius: 16px;
    color: #fff;
}

.hero-heading {
    font-size: 35px;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #fff;
}

.hero-subheading {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 100;
    color: #fff;
}

.hero-btn {
    display: inline-block;
    background-color: #00b4ff;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 300;
    transition: background-color 0.3s ease;
}

.hero-btn:hover {
    background-color: #0094cc;
}



/* 📱 Mobile: Keep overlay on image like desktop */
@media (max-width: 768px) {
    .hero-banner {
        position: relative;
        min-height: clamp(420px, 50vh, 600px);
    }

    /* Keep image positioned absolutely */
    .hero-banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
    }

    /* Keep overlay wrapper positioned */
    .hero-banner-overlay {
        position: relative;
        z-index: 1;
    }

    /* Keep dark overlay on mobile */
    .hero-text-container {
        max-width: 90%;
        margin: clamp(16px, 4vw, 40px);
        padding: 16px 20px;
        background-color: rgba(0, 47, 108, 0.85);
        color: #fff;
        border-radius: 12px;
        text-align: left;
    }

    .hero-heading {
        font-size: 24px;
        margin-bottom: 8px;
        color: #fff;
    }

    .hero-subheading {
        font-size: 14px;
        margin-bottom: 14px;
        color: #fff;
    }

    .hero-btn {
        display: inline-block;
        margin-top: 4px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 999px;
    }
}
@media (max-width: 480px) {
    .hero-banner {
        position: relative;
        min-height: 400px;
    }

    .hero-banner-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
    }
    
    .hero-banner-overlay {
        position: relative;
        z-index: 1;
    }

    /* Keep dark overlay on small mobile too */
    .hero-text-container {
        max-width: 95%;
        margin: 16px auto;
        padding: 16px;
        text-align: center;
        background-color: rgba(0, 47, 108, 0.85);
        color: #fff;
        border-radius: 12px;
    }

    .hero-heading {
        font-size: 22px;
        margin-bottom: 10px;
        color: #fff;
    }

    .hero-subheading {
        font-size: 14px;
        margin-bottom: 14px;
        color: #fff;
    }

    .hero-btn {
        display: inline-block;
        margin: 0 auto;
        max-width: 90%;
        width: auto;
        border-radius: 999px;
        padding: 12px 24px;
        font-size: 15px;
    }
}
