/* =========================
   PRODUCT BOXES
========================= */

.product-section {
    padding: 60px 0;
}

.product-box {
    display: block;
    position: relative;
    height: 100%;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Title */
.product-box .product-title {
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #222222;
    transition: all 0.3s ease;
}

/* Description */
.product-box p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    transition: all 0.3s ease;
}

/* Hover */
.product-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Hover title */
.product-box:hover .product-title {
    color: var(--primary);
    transform: scale(1.05);
}

/* Hover text */
.product-box:hover p {
    color: #444444;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 767.98px) {

    .product-section {
        padding: 35px 0;
    }

    .product-box {
        padding: 25px 20px;
    }

    .product-box .product-title {
        font-size: 22px;
    }

    .product-box p {
        font-size: 14px;
    }
}
   
    .product-section {
    padding: 40px 0 30px;
}

@media (max-width: 767.98px) {
    .product-section {
        padding: 30px 0 20px;
    }
}


.hero .hero-img-wrap img {
    width: 100%;
    max-width: 550px;
    height: auto;
    margin: 0 auto;
}

.hero .hero-img-wrap img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}



/* =========================================================
   MOBILE HERO CORRECTION
   Desktop layout is unchanged.
   On phones, keep the hero text and image side-by-side
   like the desktop reference instead of stacking them.
   ========================================================= */
@media (max-width: 767.98px) {

    .hero {
        padding: 22px 0 18px !important;
        overflow: hidden;
    }

    .hero .container {
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero .container > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Override Bootstrap col-12 on mobile */
    .hero .hero-text {
        flex: 0 0 58% !important;
        width: 58% !important;
        max-width: 58% !important;
        padding-left: 0 !important;
        padding-right: 6px !important;
        margin: 0 !important;
    }

    .hero .hero-image {
        flex: 0 0 42% !important;
        width: 42% !important;
        max-width: 42% !important;
        padding-left: 2px !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }

    .hero .intro-excerpt {
        width: 100%;
        margin: 0;
    }

    .hero .intro-excerpt h1,
    .hero h1 {
        font-size: 18px !important;
        line-height: 1.18 !important;
        margin: 0 0 8px !important;
        word-break: normal;
    }

    .hero .intro-excerpt p,
    .hero p {
        font-size: 9px !important;
        line-height: 1.35 !important;
        margin: 0 0 8px !important;
    }

    .hero .intro-excerpt .btn {
        font-size: 9px !important;
        line-height: 1.2;
        padding: 6px 9px !important;
        white-space: nowrap;
    }

    .hero .hero-img-wrap {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero .hero-img-wrap img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: contain !important;
    }
}


/* =========================================================
   FINAL MOBILE HERO FIX V2
   Removes the artificial blank space caused by the fixed
   hero image wrapper. Desktop is untouched.
   ========================================================= */
@media (max-width: 767.98px) {

    .hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 26px 0 28px !important;
        margin: 0 !important;
        overflow: hidden !important;
        background: #3f6b5c !important;
    }

    .hero .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .hero .container > .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
    }

    .hero .hero-text {
        flex: 0 0 58% !important;
        width: 58% !important;
        max-width: 58% !important;
        padding: 0 9px 0 0 !important;
        margin: 0 !important;
    }

    .hero .hero-image {
        flex: 0 0 42% !important;
        width: 42% !important;
        max-width: 42% !important;
        padding: 0 0 0 5px !important;
        margin: 0 !important;
    }

    .hero .intro-excerpt {
        width: 100% !important;
        margin: 0 !important;
    }

    .hero .intro-excerpt h1,
    .hero h1 {
        color: #ffffff !important;
        font-size: 19px !important;
        line-height: 1.18 !important;
        font-weight: 700 !important;
        margin: 0 0 10px !important;
    }

    .hero .intro-excerpt p,
    .hero p {
        color: rgba(255,255,255,.88) !important;
        font-size: 9px !important;
        line-height: 1.45 !important;
        margin: 0 0 10px !important;
    }

    .hero .intro-excerpt .btn,
    .hero .btn-secondary {
        display: inline-block !important;
        background: #f9bf24 !important;
        border: 1px solid #f9bf24 !important;
        color: #222222 !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
        padding: 7px 11px !important;
        border-radius: 20px !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    /* IMPORTANT: no fixed 180px wrapper.
       The wrapper now follows the actual image size. */
    .hero .hero-img-wrap {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero .hero-img-wrap img {
        display: block !important;
        width: 100% !important;
        max-width: 145px !important;
        height: auto !important;
        max-height: 145px !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    .hero + .product-section {
        position: relative !important;
        z-index: 2 !important;
        clear: both !important;
        margin: 0 !important;
        padding: 24px 0 20px !important;
        background: #ffffff !important;
    }
}
