/* =========================================================
   HERO
========================================================= */

.bifx5Hero {
    position: relative;
    width: 100%;
    min-height: 760px;

    margin: 0;
    padding: 0;

    overflow: hidden;
    isolation: isolate;

    background: #062441;
    color: #ffffff;
}


/* =========================================================
   BACKGROUND SLIDES
========================================================= */

.bifx5Hero__bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0;

    transform: scale(1);

    transition:
        opacity 1.2s ease,
        transform 6s ease;

    z-index: -5;
}


.bifx5Hero__bg.is-active {
    opacity: 1;

    transform: scale(1.04);
}


/* =========================================================
   DARK OVERLAY
========================================================= */

.bifx5Hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 27, 54, 0.98) 0%,
            rgba(3, 27, 54, 0.94) 28%,
            rgba(3, 34, 64, 0.78) 52%,
            rgba(3, 39, 70, 0.45) 75%,
            rgba(3, 27, 54, 0.18) 100%
        );

    z-index: -2;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.bifx5Hero__content {
    position: relative;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    padding:
        30px
        65px
        45px;

    box-sizing: border-box;

    z-index: 5;
}


.bifx5Hero__text {
    width: 100%;
    max-width: 780px;
}


/* =========================================================
   TAG
========================================================= */

.bifx5Hero__tag {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    margin-bottom: 25px;

    padding:
        11px
        23px;

    border:
        1px solid
        rgba(0, 174, 239, 0.8);

    border-radius: 50px;

    background:
        rgba(4, 38, 68, 0.55);

    color: #00c7ed;

    font:
        500 15px/1.2 Arial,
        sans-serif;

    backdrop-filter: blur(8px);
}


.bifx5Hero__dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #00c7ed;
}


/* =========================================================
   TITLE
========================================================= */

.bifx5Hero__title {
    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family:
        "Montserrat",
        "Manrope",
        Arial,
        sans-serif;

    font-size:
        clamp(48px, 5vw, 76px);

    line-height: 1.04;

    font-weight: 800;

    letter-spacing: -2.5px;
}


.bifx5Hero__title span {
    color: #ff8517;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.bifx5Hero__description {
    max-width: 720px;

    margin:
        27px
        0
        33px;

    color:
        rgba(255, 255, 255, 0.91);

    font:
        400 18px/1.7 Arial,
        sans-serif;
}


/* =========================================================
   BUTTONS
========================================================= */

.bifx5Hero__buttons {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-wrap: wrap;
}


.bifx5Hero__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    min-width: 205px;
    height: 56px;

    padding:
        0
        24px;

    border-radius: 9px;

    text-decoration: none;

    font:
        700 16px Arial,
        sans-serif;

    transition:
        all 0.3s ease;
}


/* PRIMARY */

.bifx5Hero__button--primary {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #00aeea,
            #00c2e7
        );

    box-shadow:
        0 10px 28px
        rgba(0, 174, 239, 0.22);
}


.bifx5Hero__button--primary:hover {
    color: #ffffff;

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(0, 174, 239, 0.38);
}


/* OUTLINE */

.bifx5Hero__button--outline {
    color: #ffffff;

    background:
        rgba(3, 30, 55, 0.30);

    border:
        1px solid
        rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(5px);
}


.bifx5Hero__button--outline:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.10);

    transform:
        translateY(-3px);
}


/* =========================================================
   STATS
========================================================= */

.bifx5Hero__stats {
    position: relative;

    width:
        calc(100% - 130px);

    max-width: 1270px;

    margin:
        0
        auto
        60px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    z-index: 10;
}


/* =========================================================
   STAT CARD
========================================================= */

.bifx5Hero__card {
    min-height: 165px;

    padding:
        18px
        24px
        20px;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    border-radius: 12px;

    background:
        rgba(8, 42, 73, 0.76);

    backdrop-filter: blur(10px);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}


.bifx5Hero__card:hover {
    transform:
        translateY(-6px);

    border-color:
        rgba(0, 174, 239, 0.85);
}


/* =========================================================
   STAT ICON
========================================================= */

.bifx5Hero__icon {
    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 9px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #00aeea,
            #0085b7
        );

    color: #ffffff;

    font-size: 19px;
}


/* =========================================================
   STAT NUMBER
========================================================= */

.bifx5Hero__number {
    margin: 0;

    color: #ff8517;

    font-family:
        "Montserrat",
        "Manrope",
        Arial,
        sans-serif;

    font-size: 56px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: -2px;
}


/* =========================================================
   STAT LABEL
========================================================= */

.bifx5Hero__label {
    margin-top: 12px;

    color: #ffffff;

    font:
        600 16px/1.35 Arial,
        sans-serif;
}


/* =========================================================
   SCROLL
========================================================= */

.bifx5Hero__scroll {
    position: absolute;

    left: 50%;
    bottom: 10px;

    transform:
        translateX(-50%);

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.60);

    border-radius: 50%;

    color: #ffffff;

    text-decoration: none;

    font-size: 23px;

    z-index: 20;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .bifx5Hero__content {
        padding:
            30px
            45px
            45px;
    }

    .bifx5Hero__stats {
        width:
            calc(100% - 90px);

        grid-template-columns:
            repeat(2, 1fr);
    }

}


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

@media (max-width: 767px) {

    .bifx5Hero {
        min-height: auto;

        padding-bottom: 30px;
    }

    .bifx5Hero__content {
        padding:
            30px
            22px
            35px;
    }

    .bifx5Hero__title {
        font-size: 42px;

        line-height: 1.06;

        letter-spacing: -1.5px;
    }

    .bifx5Hero__description {
        font-size: 15px;

        line-height: 1.65;
    }

    .bifx5Hero__buttons {
        gap: 12px;
    }

    .bifx5Hero__button {
        width: 100%;

        min-width: 0;

        height: 52px;
    }

    .bifx5Hero__stats {
        width: auto;

        margin:
            0
            22px
            35px;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .bifx5Hero__card {
        min-height: 140px;

        padding: 15px;
    }

    .bifx5Hero__icon {
        width: 36px;
        height: 36px;

        font-size: 16px;
    }

    .bifx5Hero__number {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .bifx5Hero__label {
        font-size: 13px;
    }

    .bifx5Hero__scroll {
        display: none;
    }
}


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

@media (max-width: 430px) {

    .bifx5Hero__title {
        font-size: 36px;
    }

    .bifx5Hero__number {
        font-size: 31px;
    }

    .bifx5Hero__label {
        font-size: 12px;
    }

}
/* =========================================================
   BIOINFRATECH HERO — TRANSPARENT STAT CARDS
   ========================================================= */

.bifx5Hero__card {
    background: rgba(255, 255, 255, 0.08) !important;

    border: 1px solid rgba(255, 255, 255, 0.38) !important;

    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease !important;
}


/* Hover */
.bifx5Hero__card:hover {
    background: rgba(255, 255, 255, 0.14) !important;

    border-color: rgba(255, 255, 255, 0.70) !important;

    transform: translateY(-6px) !important;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}


/* Number */
.bifx5Hero__number {
    color: #ff8517 !important;
}


/* Label */
.bifx5Hero__label {
    color: #ffffff !important;
}

/* =========================================================
   BIOINFRATECH HERO — FINAL COUNTER FIX
   Remove icons + center counter content
========================================================= */

/* Hide counter icons completely */
.bifx5Hero__card .bifx5Hero__icon {
    display: none !important;
}


/* Center all counter card content */
.bifx5Hero__card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}


/* Counter number perfectly centered */
.bifx5Hero__number {
    width: 100% !important;
    margin: 0 !important;

    text-align: center !important;

    display: block !important;

    color: #ff8517 !important;
}


/* Label centered */
.bifx5Hero__label {
    width: 100% !important;

    margin-top: 12px !important;

    text-align: center !important;

    color: #ffffff !important;
}


/* Mobile */
@media (max-width: 767px) {

    .bifx5Hero__card {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .bifx5Hero__number {
        text-align: center !important;
    }

    .bifx5Hero__label {
        text-align: center !important;
    }

}

/* FIX: prevent hero and statistics from being vertically compressed on short screens */
.bifx5Hero {
    height: auto !important;
    min-height: 620px !important;
    max-height: none !important;
    display: block !important;
    padding: 0 !important;
}
.bifx5Hero__content {
    padding: clamp(38px, 4vw, 58px) 5vw 30px !important;
}
.bifx5Hero__tag {
    margin-bottom: 20px !important;
    padding: 9px 17px !important;
    font-size: 13px !important;
}
.bifx5Hero__title {
    font-size: clamp(2.7rem, 4.35vw, 4.25rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.045em !important;
}
.bifx5Hero__description {
    max-width: 660px !important;
    margin: 18px 0 24px !important;
    font-size: clamp(15px, 1.25vw, 17px) !important;
    line-height: 1.62 !important;
}
.bifx5Hero__button {
    min-width: 180px !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
}
.bifx5Hero__stats {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    width: min(1240px, calc(100% - 9vw)) !important;
    max-width: 1240px !important;
    margin: 0 auto 28px !important;
    gap: 14px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.bifx5Hero__card {
    min-height: 104px !important;
    height: auto !important;
    padding: 16px 14px !important;
    border-radius: 14px !important;
}
.bifx5Hero__number {
    font-size: clamp(1.7rem, 2.8vw, 2.5rem) !important;
    line-height: 1.1 !important;
}
.bifx5Hero__label {
    margin-top: 7px !important;
    font-size: clamp(11px, .95vw, 13px) !important;
    line-height: 1.4 !important;
}
.bifx5Hero__scroll { display: none !important; }
@media (max-width: 1100px) and (min-width: 768px) {
    .bifx5Hero { min-height: 640px !important; }
    .bifx5Hero__content { padding: 42px 5vw 28px !important; }
    .bifx5Hero__title { font-size: clamp(2.45rem, 4.8vw, 3.6rem) !important; }
    .bifx5Hero__stats { width: calc(100% - 8vw) !important; gap: 10px !important; }
    .bifx5Hero__card { min-height: 96px !important; padding: 12px 10px !important; }
}
@media (max-width: 767px) {
    .bifx5Hero { height: auto !important; min-height: 0 !important; max-height: none !important; display: block !important; padding: 0 0 22px !important; }
    .bifx5Hero__content { padding: 42px 22px 26px !important; }
    .bifx5Hero__title { font-size: clamp(2.25rem, 9.2vw, 3rem) !important; line-height: 1.04 !important; }
    .bifx5Hero__description { font-size: 15px !important; margin: 18px 0 22px !important; }
    .bifx5Hero__buttons { gap: 10px !important; flex-wrap: wrap !important; }
    .bifx5Hero__button { width: 100% !important; min-width: 0 !important; min-height: 48px !important; }
    .bifx5Hero__stats { position: relative !important; inset: auto !important; transform: none !important; width: auto !important; margin: 0 18px !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .bifx5Hero__card { min-height: 88px !important; padding: 12px 8px !important; }
    .bifx5Hero__number { font-size: clamp(1.55rem, 7vw, 2.1rem) !important; }
    .bifx5Hero__label { font-size: 11px !important; }
}


/* Final hero breathing-room and metric-card height refinement */
.bifx5Hero {
    min-height: 690px !important;
}
.bifx5Hero__content {
    padding-top: clamp(42px, 4.2vw, 62px) !important;
    padding-bottom: 34px !important;
}
.bifx5Hero__stats {
    align-items: stretch !important;
    margin-top: 0 !important;
    margin-bottom: 36px !important;
    gap: 14px !important;
}
.bifx5Hero__card {
    min-height: 124px !important;
    padding: 20px 14px !important;
    box-sizing: border-box !important;
}
.bifx5Hero__number {
    line-height: 1.12 !important;
}
.bifx5Hero__label {
    margin-top: 9px !important;
    line-height: 1.45 !important;
}
@media (max-width: 1100px) and (min-width: 768px) {
    .bifx5Hero { min-height: 680px !important; }
    .bifx5Hero__card { min-height: 116px !important; }
}
@media (max-width: 767px) {
    .bifx5Hero { min-height: 0 !important; }
    .bifx5Hero__content { padding-top: 38px !important; }
    .bifx5Hero__card { min-height: 104px !important; padding: 16px 8px !important; }
    .bifx5Hero__label { font-size: 11px !important; }
}
