﻿/* 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 */
    }

    .productsList {
        justify-content: center;
    }

    .productsList .card {
        min-width: 100% !important;
    }
}

.wrapper {
    background-color: rgb(3, 120, 124);
    height: 500px;
    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;
    /* 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: 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;
}

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

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

.productsList .card-body p {
    margin-bottom: 0.5rem;
}

.productsList .card-body p:last-child {
    margin-bottom: 0;
}

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

.productsList .card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

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

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