﻿
/* Full-width hero with solid background */
.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /*  padding: 80px 20px; */
}

/* Slider inner container */
.hero-slide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    background-color: #F2F2F2;
}


/* Left text block */
.hero-content-block {
    max-width: 35%; /* propotion set for 30-70 for the two blocks in the div*/
}

.hero-heading {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 50px;
    color: #D60056;
}



.hero-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #333;
    margin-bottom: 25px;
}


.hero-text {
    color: #1a1a1a;
}

.hero-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #0072CE;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

/* Right image block */
.hero-image-block {
    position: relative;
    display: flex;
    align-items: end;
    z-index: 2;
}

    .hero-image-block img {
        max-width: 100%;
        height: 550px;
    }

/* Bottom color block */
.hero-bottom-color {
    position: absolute;
    bottom: 0;
    z-index: 0;
    width: 100%;
    height: 90px; /* adjust thickness */
    background-color: #E68396; /* change to desired color */
}

/* CTA buttons container */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
    max-width: 500px;
    position: relative;
    z-index: 1; /* above bottom block */
    margin-bottom: 130px;
}

    /* Normal button style (applied to all buttons by default) */
    .hero-cta-group .btn {
        flex: 1 1 auto;
        min-width: 150px;
        padding: 8px 12px;
        background-color: #D60056;
        color: white;
        text-decoration: none;
        border-radius: 10px;
        text-align: center;
        transition: background 0.2s ease-in-out;
        border-color: #D60056 !important;
        border: 2px solid #D60056;
        font-weight: 700;
        outline: none;
    }

        /* Hover effect (for normal hover) - if hovered reverse the styling */
        /*.hero-cta-group .btn:hover {
    background-color: #F2F2F2;
    color: #002856;
    border-color: #002856 !important;
}*/


        /* Last button always looks like hovered */
        .hero-cta-group .btn:last-child {
            background-color: #F2F2F2;
            color: #002856;
            border-color: #002856 !important;
            outline: none;
        }
/* Last button always looks like hovered  - if hovered reverse the styling */
/*.hero-cta-group .btn:last-child:hover {
    background-color: #D60056;
    color: white;
    border-color: #D60056 !important;
}*/


/* Tablet only (min-width: 769px and max-width: 991px) */
/* Mobile (max-width: 768px) */
@media (max-width: 769px) {
    .hero-container {
        position: relative; /* to make absolute bottom-color works */
        padding: 15px 15px;
    }

    .hero-slide-inner {
        flex-direction: column; /* keep stacked */
        text-align: left;
        gap: 4px;
    }

    .hero-heading {
        font-size: 1.4rem;
        line-height: 1.2;
        margin-bottom: 4px; /* remove default bottom margin 
    }

    .hero-paragraph {
        font-size: 0.85rem;
        margin-top: 0;  /* remove default top margin */
        margin-bottom: 4px;
    }

    .hero-image-block {
        margin-top: -20px;
        margin-top: -10px; /* reduce gap above image */
        margin-bottom: -20px; /* overlap into bottom color */
    }

        .hero-image-block img {
            max-width: 100%;
            display: block;
            margin: 0 auto;
            height: auto;
        }

    .hero-cta-group {
        margin-top: 5px; /* closer to text */
        gap: 10px;
    }

        .hero-cta-group .btn {
            min-width: 100%;
            font-size: 0.8rem;
            padding: 7px 10px;
        }

    .hero-bottom-color {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #E68396;
        z-index: 0;
        height: 50px;
    }
}
