/* ==============================================
   General & Utility Classes
============================================== */
.biomed {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.heading-biomed {
    font-size: 2.8rem;
    font-style: italic;
    background: #1A4E80;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #287CC5;
    -webkit-text-stroke: 1px #287CC5;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

.heading-biomed::after {
    content: "──-----──";
    font-size: 20px;
    color: #ef7904;
    display: block;
    margin-top: 10px;
    letter-spacing: 8px;
}

.heading-biomed.active {
    animation: typing 3s steps(30, end) forwards;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.carousel {
    width: 100%;
    overflow: hidden;
}

.container-home {
    max-width: 100%;
    padding: 2rem 3rem;
}

.content-box {
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #287CC5;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #10467B;
}

.section-title:hover::after {
    width: 90px;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

/* Hero Video Section */
.hero-video-wrapper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: transparent;
    line-height: 0;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: transparent;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

#videoTime {
    font-size: 0.8rem;
    min-width: 90px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-weight: 600;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

#soundToggle {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#soundToggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.12);
}

/* Readiness Card Section */
.ubmc-readiness-section {
    width: 100%;
    padding: 24px 0 28px;
    background: #ffffff;
}

.ubmc-readiness-card {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 42px 28px 52px;
    text-align: center;
    background: linear-gradient(135deg, #6b281a 0%, #551e15 100%);
    border-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.ubmc-readiness-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 226px;
    height: 8px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff8a00 0%, #ff1010 100%);
    border-radius: 0 0 8px 8px;
}

.ubmc-readiness-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    margin-bottom: 26px;
    border-radius: 50px;
    background: #ff1010;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.ubmc-readiness-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.ubmc-readiness-title span {
    color: #ff8a00;
}

.ubmc-readiness-description {
    max-width: 850px;
    margin: 26px auto 0;
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1.6;
}

/* Image and Count Section */
.ubmc-impact-section {
    width: 100%;
    padding: 30px 20px 0;
    background: #ffffff;
}

.ubmc-impact-card {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: stretch;
    border: 1px solid #111827;

    /* background: #101827; */
    /* border-radius: 12px; */
    /* box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18); */
}

.ubmc-impact-image-wrapper {
    width: 90%;
    min-height: 250px;
    overflow: hidden;
    border-radius: 10px;
    background: #1f2937;
}

.ubmc-impact-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.ubmc-impact-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-content: center;
}

.ubmc-readiness-count-box {
    min-height: 210px;
    padding: 30px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #111827;
    /* border-radius: 10px; */
    /* background: #ffffff; */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* .ubmc-readiness-count-box:hover {
    transform: translateY(-4px);
    background: #333d4d;
} */

.ubmc-readiness-count-box p {
    width: 100%;
    margin: 0 0 12px;
    color: #ff8a00 !important;
    font-size: 3rem !important;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    text-align: center;
}

.ubmc-readiness-count-box:nth-child(2) p {
    color: #2f9bff !important;
}

.ubmc-count-title {
    width: 100%;
    color: #0f0707;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.ubmc-count-description {
    max-width: 220px;
    margin: 10px auto 0;
    color: #0f0707;
    font-size: 0.95rem;
    line-height: 1.35;
    text-align: center;
}

/* Partners Logo Marquee */
.ubmc-logo-section {
    width: 100%;
    padding: 30px 0 45px;
    background: #ffffff;
    overflow: hidden;
}

.ubmc-logo-heading {
    margin-bottom: 26px;
    color: #000000;
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 700;
    text-align: center;
}

.ubmc-logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 8px 0;
}

.ubmc-logo-marquee::before,
.ubmc-logo-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.ubmc-logo-marquee::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.ubmc-logo-marquee::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.ubmc-marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ubmcLogoScroll 24s linear infinite;
}

.ubmc-logo-marquee:hover .ubmc-marquee-track {
    animation-play-state: paused;
}

.ubmc-marquee-logo-card {
    flex: 0 0 auto;
    width: 200px;
    height: 100px;
    margin: 0 16px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ubmc-marquee-logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

.ubmc-marquee-logo {
    max-width: 100%;
    max-height: 66px;
    object-fit: contain;
}

@keyframes ubmcLogoScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* What We Do / Focus Cards */
.focus-card,
.what-we-do-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    height: 380px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.focus-card:hover,
.what-we-do-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.focus-card img,
.what-we-do-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.focus-card:hover img,
.what-we-do-card:hover img {
    transform: scale(1.06);
}

.card-content,
.card-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.overlay-text,
.focus-card h5,
.what-we-do-card h5 {
    font-weight: bold;
    font-size: 1.25rem;
    color: #2B0A3D;
    margin: 0;
    line-height: 1.4;
}

/* Responsive Enhancements */
html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (max-width: 992px) {
    .ubmc-impact-card {
        grid-template-columns: 1fr;
    }

    .ubmc-impact-image-wrapper {
        min-height: 300px;
    }

    .ubmc-impact-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .container-home {
        padding: 1.5rem 1rem;
    }

    .content-box {
        padding: 25px 15px;
    }

    .focus-card,
    .what-we-do-card {
        height: 360px;
    }

    .ubmc-readiness-section {
        padding: 28px 12px 20px;
    }

    .ubmc-readiness-card {
        padding: 24px 18px 28px;
    }

    .ubmc-readiness-card::before {
        width: 170px;
        height: 7px;
    }

    .ubmc-readiness-badge {
        padding: 8px 16px;
        font-size: 0.62rem;
        line-height: 1.3;
    }

    .ubmc-impact-section {
        padding: 24px 0 0;
    }

    .ubmc-impact-card {
        padding: 18px;
        gap: 18px;
        border-radius: 10px;
    }

    .ubmc-impact-stats {
        gap: 16px;
    }

    .ubmc-readiness-count-box {
        min-height: 185px;
        padding: 28px 18px;
    }

    .ubmc-readiness-count-box p {
        font-size: clamp(2.5rem, 8vw, 3.6rem) !important;
    }

    .ubmc-count-title {
        font-size: 1.15rem;
    }

    .ubmc-count-description {
        font-size: 0.92rem;
    }

    .ubmc-logo-section {
        padding: 26px 0 36px;
    }

    .ubmc-logo-marquee::before,
    .ubmc-logo-marquee::after {
        width: 45px;
    }

    .ubmc-marquee-logo-card {
        width: 160px;
        height: 82px;
        margin: 0 10px;
        padding: 14px 18px;
        border-radius: 12px;
    }

    .ubmc-marquee-logo {
        max-height: 54px;
    }

    .carousel,
    .hero-video-wrapper,
    .container-fluid {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .hero-video-wrapper {
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
}

@media (max-width: 576px) {
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1.5rem;
    }

    .focus-card,
    .what-we-do-card {
        height: 340px;
    }

    .ubmc-readiness-card {
        padding: 22px 14px 24px;
    }

    .ubmc-readiness-card::before {
        width: 140px;
        height: 6px;
    }

    .ubmc-impact-card {
        padding: 14px;
    }

    .ubmc-impact-image-wrapper {
        min-height: 220px;
    }

    .ubmc-impact-image {
        min-height: 220px;
    }

    .ubmc-impact-stats {
        grid-template-columns: 1fr;
    }

    .ubmc-readiness-count-box {
        width: 100%;
        min-height: 170px;
        padding: 26px 16px;
    }

    .ubmc-readiness-count-box p {
        font-size: clamp(2.8rem, 14vw, 4rem) !important;
    }

    .ubmc-marquee-logo-card {
        width: 140px;
        height: 74px;
        margin: 0 8px;
        padding: 12px 14px;
    }

    .ubmc-marquee-logo {
        max-height: 48px;
    }
}

.blurred-bg {
    z-index: 1;
    background: transparent;
}

.blurred-bg img {
    filter: blur(2px) brightness(0.5);
    transform: scale(1.08);
    display: block;
}

.bg-overlay {
    z-index: 2;
}

video {
    z-index: 2;
    background: transparent;
}

video::-webkit-media-controls {
    background: rgba(0, 0, 0, 0.5) !important;
}