﻿/* Styles for small screens like mobile phones */
@media screen and (max-width: 600px) {

    .wrapper,
    .heroBox a {
        height: auto !important;
        /* Ensure the image covers the entire section */
    }
}

.wrapper {
    background-color: rgb(3, 120, 124);
    height: 500px;
    /*height: 50rem;*/
    width: 100%;
    display: flex;
    flex-direction: column;
}

.heroBox {
    height: 100%;
    /* Ensure the container takes full height of its parent */
    width: 100%;
    /* Ensure the container takes full width of its parent, adjust as needed for responsiveness */
    overflow: hidden;
    /* Ensure no overflow from the image container */
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heroBox .text-decoration-none {
    position: relative;
    /* height: 100% removed to anchor text to image bottom */
    display: inline-block;
    unicode-bidi: isolate;
    user-select: text;
}

.heroBox .text-decoration-none img {
    max-width: 100%;
    height: auto;
    object-fit: scale-down;
    /* removed hover scale */
    filter: brightness(0.8);
    /* Darken the image */
    transform-style: preserve-3d;
    /* Help optimize performance */
}

.heroBox .text-decoration-none .heroContent {
    position: absolute;
    /* Keep the absolute positioning for text */
    bottom: 25px;
    /* Adjust to the desired position */
    left: 40px;
    /* Adjust to the desired position */
    z-index: 1;
    /* Ensure it stays above the other content */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    color: white;
    text-decoration: none;
    transform: none !important;
    /* Prevent the text from scaling */
    pointer-events: none;
    /* So hover still works on image */
}

.heroBox a .heroContent .heroContent1 {
    font-size: 1.6rem;
    text-align: left;
    font-weight: 600 !important;
}

.afterHeroContentText {
    margin-top: auto !important;
    color: white !important;
    font-size: 1.50rem !important;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important;
    font-weight: 600 !important;
}

.afterHeroContentText a {
    color: transparent;
    font-size: 1.2rem;
    background-color: transparent;
}

.afterHeroContentText:hover a {
    color: #026d70;
    font-size: 1rem;
    background-color: transparent;
}

.keyFeatures {
    margin-top: 1.6rem !important;
    font-size: 1.0rem !important;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.keyFeatures .card {
    min-width: 15%;
    background-color: #f0f9fa;
    width: 100% !important;
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.1, .2, 0, 1);
    will-change: transform;
    /* Help optimize performance */
}

.keyFeatures .card .card-header {
    background-color: rgb(3, 120, 124);
}

.keyFeatures .card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    border: outset 0.1rem #026d70;
}

.keyFeatures .card a {
    color: transparent;
    font-size: 1rem;
    background-color: transparent;
}

.keyFeatures .card:hover a {
    color: #026d70;
    font-size: 1rem;
    background-color: transparent;
}