/* 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: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* 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: 400;
    transition: background-color 0.3s ease;
}

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



/* 📱 Mobile: consistent layout for all hero banners */
@media (max-width: 768px) {
    .hero-banner {
        position: relative;
        min-height: 300px;
        display: flex;
        align-items: center;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

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

    /* Overlay always covers full banner - consistent for both approaches */
    .hero-banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    /* Text container styling for mobile - consistent for all */
    .hero-text-container {
        margin: 16px;
        padding: 16px 20px;
        max-width: calc(100% - 32px);
        background-color: rgba(0, 47, 108, 0.9);
        color: #ffffff;
        border-radius: 12px;
        text-align: left;
    }

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

    .hero-subheading {
        font-size: 14px;
        margin-bottom: 14px;
        line-height: 1.5;
        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: 280px;
        display: flex;
        align-items: center;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

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

    /* Overlay always covers full banner - consistent for both approaches */
    .hero-banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Text container for small screens - consistent for all */
    .hero-text-container {
        margin: 12px;
        padding: 16px 18px;
        max-width: calc(100% - 24px);
        background-color: rgba(0, 47, 108, 0.9);
        color: #ffffff;
        border-radius: 10px;
        text-align: center;
    }

    .hero-heading {
        font-size: 22px !important;
        margin-bottom: 10px;
        line-height: 1.3 !important;
        color: #fff;
    }

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

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