﻿/* 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: 280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 1rem;
}

.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: 1rem !important;
    padding-bottom: 1rem !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;
    height: 100%;
    width: 100%;
}

.heroBox .text-decoration-none img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure the image covers the entire section */
    filter: brightness(0.8);
    /* Darken the image */
    transform-style: preserve-3d;
    transition: transform .75s cubic-bezier(.1, .2, 0, 1);
    will-change: transform;
    /* Help optimize performance */
}

/* removed hover scale */

.heroBox .text-decoration-none .heroContent {
    position: absolute;
    /* Keep the absolute positioning for text */
    bottom: 20px;
    left: 30px;
    z-index: 100;
    /* 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 .text-decoration-none .heroContent .heroContent1 {
    font-size: 1.6rem;
    text-align: left;
    font-weight: 600 !important;
    line-height: 1.4;
    /* Healthy line-height for descenders */
}

.afterHeroContentText {
    margin-top: auto !important;
    color: white !important;
    font-size: 1.50rem !important;
    font-weight: 600 !important;
}

.bgWhiteContent .afterHeroContentText {
    color: black !important;
}

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

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

.licensingHeading {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 1.5rem !important;
}

/* Override bgCustom padding for Licensing page */
.bgCustom {
    padding: 1rem 0 !important;
}

.bgWhiteContent .licensingHeading {
    color: black !important;
}

.white-card .card-text {
    color: black !important;
}

/* Card button styles moved to modern-theme.css */