/*
==============================================================================
TeleradiologyHUB
Global Frontend Design System
Cassiopeia / Joomla 5
Version 1
==============================================================================

Scope:
- Global visual language
- Header / navigation
- Typography
- Containers
- Breadcrumbs
- Buttons
- Forms
- Tables
- Alerts
- Footer foundation
- Responsive behaviour

Fabrik-specific directory styling will be handled separately.
==============================================================================
*/


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
    --thub-navy: #12355b;
    --thub-navy-deep: #0b2948;
    --thub-navy-soft: #1d4b73;

    --thub-teal: #159a9c;
    --thub-teal-dark: #117d7f;
    --thub-teal-soft: #eaf7f7;

    --thub-bg: #f7f9fc;
    --thub-surface: #ffffff;
    --thub-surface-soft: #f8fafc;

    --thub-text: #263548;
    --thub-heading: #142436;
    --thub-muted: #64748b;

    --thub-border: #e2e8f0;
    --thub-border-strong: #cbd5e1;

    --thub-success: #16845b;
    --thub-danger: #b42318;
    --thub-warning: #b76e00;

    --thub-radius-sm: 8px;
    --thub-radius: 12px;
    --thub-radius-lg: 18px;

    --thub-shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 1px 4px rgba(15, 23, 42, 0.04);

    --thub-shadow:
        0 8px 24px rgba(15, 23, 42, 0.07);

    --thub-content-width: 1320px;

    --cassiopeia-color-primary: var(--thub-navy);
    --cassiopeia-color-link: var(--thub-navy);
    --cassiopeia-color-hover: var(--thub-teal-dark);
}


/* ==========================================================================
   2. PAGE FOUNDATION
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--thub-bg);
    color: var(--thub-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.wrapper-fluid .site-grid,
.site-grid {
    width: min(
        calc(100% - 48px),
        var(--thub-content-width)
    );
    max-width: var(--thub-content-width);
    margin-inline: auto;
}

main {
    min-width: 0;
}

a {
    color: var(--thub-navy);
    text-underline-offset: 3px;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease;
}

a:hover,
a:focus {
    color: var(--thub-teal-dark);
}


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--thub-heading);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 650;
}

p {
    margin-bottom: 1rem;
}

.text-muted,
small {
    color: var(--thub-muted) !important;
}


/* ==========================================================================
   4. HEADER
   ========================================================================== */

.container-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    background-image: none;
    color: var(--thub-heading);
    border-bottom: 1px solid var(--thub-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.container-header.position-sticky {
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.05),
        0 8px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.container-header .grid-child {
    width: min(
        calc(100% - 48px),
        var(--thub-content-width)
    );
    max-width: var(--thub-content-width);
    margin-inline: auto;
}


/* ==========================================================================
   5. BRAND
   ========================================================================== */

.container-header .navbar-brand {
    margin: 0;
    padding: 1.15rem 0 0.45rem;
}

.container-header .navbar-brand a {
    color: var(--thub-navy-deep);
    text-decoration: none;
}

.container-header .site-title {
    color: var(--thub-navy-deep);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1;
}

.container-header .site-description {
    margin-top: 0.35rem;
    color: var(--thub-muted);
    font-size: 0.85rem;
}


/* ==========================================================================
   6. MAIN NAVIGATION
   ========================================================================== */

.container-header .container-nav {
    padding: 0 0 0.9rem;
}

.container-header .mod-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    align-items: center;
    margin: 0;
}

.container-header .mod-menu > li {
    position: relative;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    color: var(--thub-text);
    border-radius: var(--thub-radius-sm);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
    color: var(--thub-navy-deep);
    background: var(--thub-teal-soft);
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
    color: var(--thub-teal-dark);
    background: transparent;
}

.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after {
    position: absolute;
    right: 0.8rem;
    bottom: 0.2rem;
    left: 0.8rem;
    height: 2px;
    content: "";
    background: var(--thub-teal);
    border-radius: 999px;
}


/* ==========================================================================
   7. MOBILE NAVIGATION
   ========================================================================== */

.container-header .navbar-toggler {
    color: var(--thub-navy);
    background: var(--thub-surface);
    border: 1px solid var(--thub-border-strong);
    border-radius: var(--thub-radius-sm);
    box-shadow: none;
}

.container-header .navbar-toggler:hover,
.container-header .navbar-toggler:focus {
    color: var(--thub-teal-dark);
    background: var(--thub-teal-soft);
    border-color: var(--thub-teal);
}


/* ==========================================================================
   8. MAIN CONTENT AREA
   ========================================================================== */

.site-grid {
    padding-top: 1.75rem;
    padding-bottom: 4rem;
}

.container-component {
    min-width: 0;
}

.com-content-featured,
.com-content-category-blog,
.item-page,
.com-fabrik {
    min-width: 0;
}


/* ==========================================================================
   9. BREADCRUMBS
   ========================================================================== */

.container-breadcrumbs {
    margin-top: 1.25rem;
}

.container-breadcrumbs .mod-breadcrumbs {
    width: min(
        calc(100% - 48px),
        var(--thub-content-width)
    );
    max-width: var(--thub-content-width);
    margin-inline: auto;
}

.breadcrumb {
    gap: 0.25rem;
    align-items: center;
    margin: 0;
    padding: 0.6rem 0;
    background: transparent;
    color: var(--thub-muted);
    font-size: 0.9rem;
}

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--thub-muted);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--thub-teal-dark);
}

.breadcrumb-item.active {
    color: var(--thub-text);
}


/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

.btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: var(--thub-radius-sm);
    font-weight: 600;
    box-shadow: none;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--thub-navy);
    border-color: var(--thub-navy);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: var(--thub-navy-deep);
    border-color: var(--thub-navy-deep);
}

.btn-outline-primary {
    color: var(--thub-navy);
    border-color: var(--thub-navy);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: var(--thub-navy);
    border-color: var(--thub-navy);
}

.btn-success {
    background: var(--thub-success);
    border-color: var(--thub-success);
}


/* ==========================================================================
   11. FORMS
   ========================================================================== */

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
    min-height: 44px;
    border-color: var(--thub-border-strong);
    border-radius: var(--thub-radius-sm);
    background-color: var(--thub-surface);
    color: var(--thub-text);
    box-shadow: none;
}

textarea {
    min-height: 120px;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--thub-teal);
    box-shadow: 0 0 0 0.2rem rgba(21, 154, 156, 0.12);
}

label,
.form-label {
    color: var(--thub-heading);
    font-weight: 600;
}


/* ==========================================================================
   12. TABLES
   ========================================================================== */

.table {
    --bs-table-bg: transparent;
    color: var(--thub-text);
    border-color: var(--thub-border);
}

.table > :not(caption) > * > * {
    padding: 0.85rem 0.75rem;
    border-bottom-color: var(--thub-border);
}

.table thead th {
    color: var(--thub-heading);
    background: var(--thub-surface-soft);
    border-bottom-width: 1px;
    font-weight: 700;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.15s ease;
}

.table tbody tr:hover {
    background: rgba(234, 247, 247, 0.45);
}


/* ==========================================================================
   13. CARDS / GENERAL PANELS
   ========================================================================== */

.card {
    border: 1px solid var(--thub-border);
    border-radius: var(--thub-radius);
    background: var(--thub-surface);
    box-shadow: var(--thub-shadow-sm);
}

.card-header {
    border-bottom-color: var(--thub-border);
    background: var(--thub-surface-soft);
    color: var(--thub-heading);
    font-weight: 700;
}


/* ==========================================================================
   14. ALERTS
   ========================================================================== */

.alert {
    border-radius: var(--thub-radius);
}


/* ==========================================================================
   15. PAGINATION
   ========================================================================== */

.pagination {
    gap: 0.25rem;
}

.page-link {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--thub-navy);
    border-color: var(--thub-border);
    border-radius: var(--thub-radius-sm) !important;
}

.page-link:hover {
    color: var(--thub-teal-dark);
    background: var(--thub-teal-soft);
    border-color: var(--thub-teal);
}

.page-item.active .page-link {
    color: #fff;
    background: var(--thub-navy);
    border-color: var(--thub-navy);
}


/* ==========================================================================
   16. BACK TO TOP
   ========================================================================== */

.back-to-top-link {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--thub-navy);
    color: #fff;
    box-shadow: var(--thub-shadow);
}

.back-to-top-link:hover,
.back-to-top-link:focus {
    background: var(--thub-teal-dark);
    color: #fff;
}


/* ==========================================================================
   17. FOOTER FOUNDATION
   ========================================================================== */

.container-footer {
    margin-top: 0;
    padding: 0;
    background: var(--thub-navy-deep);
    background-image: none;
    color: rgba(255, 255, 255, 0.82);
}

.container-footer .grid-child {
    width: min(
        calc(100% - 48px),
        var(--thub-content-width)
    );
    max-width: var(--thub-content-width);
    margin-inline: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.container-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.container-footer a:hover {
    color: #fff;
}


/* ==========================================================================
   18. ACCESSIBILITY
   ========================================================================== */

:focus-visible {
    outline: 3px solid rgba(21, 154, 156, 0.35);
    outline-offset: 2px;
}


/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */

@media (min-width: 992px) {

    .container-header {
        min-height: 0;
    }

    .container-header .grid-child {
        display: flex;
        align-items: center;
    }

    .container-header .navbar-brand {
        flex: 0 0 auto;
        padding: 1.05rem 0;
        margin-right: 2rem;
    }

    .container-header .container-nav {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 0;
    }

    .container-header .mod-menu {
        justify-content: flex-start;
    }
}


@media (max-width: 991.98px) {

    body.wrapper-fluid .site-grid,
    .site-grid,
    .container-header .grid-child,
    .container-breadcrumbs .mod-breadcrumbs,
    .container-footer .grid-child {
        width: min(calc(100% - 32px), var(--thub-content-width));
    }

    .container-header .navbar-brand {
        padding-top: 0.9rem;
        padding-bottom: 0.9rem;
    }

    .container-header .container-nav {
        padding-bottom: 0.75rem;
    }

    .container-header .mod-menu {
        display: block;
        width: 100%;
        padding-top: 0.5rem;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        width: 100%;
        padding: 0.7rem 0.6rem;
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        right: auto;
        bottom: 0.25rem;
        left: 0.6rem;
        width: 32px;
    }

    .site-grid {
        padding-top: 1.25rem;
        padding-bottom: 3rem;
    }
}


@media (max-width: 575.98px) {

    body.wrapper-fluid .site-grid,
    .site-grid,
    .container-header .grid-child,
    .container-breadcrumbs .mod-breadcrumbs,
    .container-footer .grid-child {
        width: calc(100% - 24px);
    }

    h1 {
        margin-bottom: 1rem;
    }

    .btn {
        min-height: 44px;
    }

    .back-to-top-link {
        right: 1rem;
        bottom: 1rem;
    }
}


/* ==========================================================================
   20. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/*
==============================================================================
TeleradiologyHUB
Global Frontend Design V2
Human / editorial refinement
==============================================================================
*/


/* ==========================================================================
   21. V2 — WARMER PAGE TONE
   ========================================================================== */

:root {
    --thub-bg: #fbfbfa;
    --thub-surface-soft: #f7f8f8;
    --thub-text: #2f3a46;
    --thub-heading: #13263a;
    --thub-muted: #697586;
}


/* ==========================================================================
   22. V2 — COMPACT SINGLE-ROW DESKTOP HEADER
   ========================================================================== */

@media (min-width: 992px) {

    .container-header .grid-child {
        display: flex;
        align-items: center;
        min-height: 76px;
    }

    .container-header .navbar-brand {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin: 0 2.6rem 0 0;
        padding: 0;
    }

    .container-header .site-title {
        font-size: 1.45rem;
        font-weight: 700;
        letter-spacing: -0.03em;
        white-space: nowrap;
    }

    .container-header .container-nav {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        min-height: 76px;
        padding: 0;
    }

    .container-header .mod-menu {
        display: flex;
        align-items: center;
        gap: 1.7rem;
        width: 100%;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        min-height: auto;
        padding: 0;
        border-radius: 0;
        font-size: 0.96rem;
        font-weight: 600;
        background: transparent;
    }

    .container-header .mod-menu > li > a:hover,
    .container-header .mod-menu > li > a:focus {
        color: var(--thub-teal-dark);
        background: transparent;
    }

    .container-header .mod-menu > li.active > a,
    .container-header .mod-menu > li.current > a {
        color: var(--thub-teal-dark);
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        right: 0;
        bottom: -0.7rem;
        left: 0;
        height: 2px;
    }
}


/* ==========================================================================
   23. V2 — INNER PAGE TYPOGRAPHY
   ========================================================================== */

.container-component > h1:first-child,
.com-content-featured > h1:first-child,
.com-content-category-blog > h1:first-child,
.item-page > h1:first-child,
.com-fabrik > h1:first-child {
    font-size: clamp(2rem, 3vw, 2.65rem);
    margin-bottom: 1rem;
    letter-spacing: -0.035em;
}


/* ==========================================================================
   24. V2 — PAGE SPACING
   ========================================================================== */

.site-grid {
    padding-top: 1.35rem;
    padding-bottom: 3.5rem;
}

.container-component {
    padding-top: 0.25rem;
}


/* ==========================================================================
   25. V2 — BREADCRUMBS: QUIETER, EDITORIAL
   ========================================================================== */

.container-breadcrumbs {
    margin-top: 0.6rem;
}

.container-breadcrumbs .mod-breadcrumbs {
    padding-top: 0;
    padding-bottom: 0;
}

.breadcrumb {
    min-height: auto;
    padding: 0.35rem 0;
    background: transparent;
    border: 0;
    font-size: 0.86rem;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #a3adb9;
}


/* ==========================================================================
   26. V2 — REDUCE GENERIC UI FEEL
   ========================================================================== */

.card {
    border-radius: 10px;
    box-shadow: none;
}

.btn {
    border-radius: 7px;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
input[type="password"],
textarea,
select {
    border-radius: 7px;
}


/* ==========================================================================
   27. V2 — TABLES MORE EDITORIAL, LESS DASHBOARD-LIKE
   ========================================================================== */

.table thead th {
    background: transparent;
    border-bottom: 1px solid var(--thub-border-strong);
}

.table tbody tr:hover {
    background: rgba(21, 154, 156, 0.035);
}


/* ==========================================================================
   28. V2 — MOBILE HEADER REFINEMENT
   ========================================================================== */

@media (max-width: 991.98px) {

    .container-header .grid-child {
        min-height: 66px;
    }

    .container-header .navbar-brand {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .container-header .site-title {
        font-size: 1.3rem;
    }

    .container-header .container-nav {
        padding-bottom: 0.65rem;
    }

    .site-grid {
        padding-top: 1rem;
    }
}


/* ==========================================================================
   29. V2 — SMALL SCREEN TYPOGRAPHY
   ========================================================================== */

@media (max-width: 575.98px) {

    h1 {
        font-size: 2rem;
    }

    .container-component > h1:first-child,
    .com-content-featured > h1:first-child,
    .com-content-category-blog > h1:first-child,
    .item-page > h1:first-child,
    .com-fabrik > h1:first-child {
        font-size: 2rem;
    }
}



/*
==============================================================================
TeleradiologyHUB
Global Frontend Design V3
Desktop shell + breadcrumb refinement
==============================================================================
*/


/* ==========================================================================
   30. V3 — TRUE SINGLE-ROW DESKTOP HEADER
   ========================================================================== */

@media (min-width: 992px) {

    .container-header {
        min-height: 74px;
    }

    .container-header > .grid-child {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-areas: "brand nav";
        align-items: center;
        column-gap: 2.75rem;

        width: min(
            calc(100% - 48px),
            var(--thub-content-width)
        );
        max-width: var(--thub-content-width);

        min-height: 74px;
        margin-inline: auto;
    }

    .container-header .navbar-brand {
        grid-area: brand;
        align-self: center;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .container-nav {
        grid-area: nav;
        align-self: center;

        display: flex !important;
        align-items: center;
        justify-content: flex-start;

        width: auto;
        min-height: 74px;
        margin: 0;
        padding: 0 !important;
    }

    .container-header .navbar-collapse {
        display: flex !important;
        align-items: center;
        width: 100%;
    }

    .container-header .mod-menu {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;

        width: auto;
        margin: 0;
        padding: 0;
        gap: 1.9rem;
    }

    .container-header .mod-menu > li {
        display: flex;
        align-items: center;
        margin: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        display: inline-flex;
        align-items: center;

        min-height: 74px;
        padding: 0;

        color: var(--thub-text);
        background: transparent;
        border-radius: 0;

        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        right: 0;
        bottom: 17px;
        left: 0;
        height: 2px;
    }

    .container-header .site-title {
        font-size: 1.5rem;
        line-height: 1;
    }
}


/* ==========================================================================
   31. V3 — INNER PAGE TITLE SCALE
   ========================================================================== */

.com-fabrik h1,
.container-component > h1:first-child,
.com-content-featured > h1:first-child,
.com-content-category-blog > h1:first-child,
.item-page > h1:first-child {
    font-size: clamp(2rem, 2.7vw, 2.5rem);
    line-height: 1.12;
    margin-top: 0;
    margin-bottom: 1.15rem;
}


/* ==========================================================================
   32. V3 — CONTENT RHYTHM
   ========================================================================== */

.site-grid {
    padding-top: 1rem;
}

.container-component {
    padding-top: 0;
}


/* ==========================================================================
   33. V3 — BREADCRUMB CLEANUP
   ========================================================================== */

.container-breadcrumbs {
    margin-top: 0;
}

.container-breadcrumbs .mod-breadcrumbs {
    padding-top: 0.85rem;
    padding-bottom: 0.2rem;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    font-size: 0.84rem;
}

.breadcrumb .mod-breadcrumbs__here {
    display: none;
}

.breadcrumb-item a,
.breadcrumb-item.active {
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.45rem;
    padding-left: 0.45rem;
}


/* ==========================================================================
   34. V3 — REMOVE STRAY HOME/BREADCRUMB ICON APPEARANCE
   ========================================================================== */

.breadcrumb .icon-location,
.breadcrumb .icon-home,
.container-breadcrumbs .icon-location,
.container-breadcrumbs .icon-home {
    display: none !important;
}


/* ==========================================================================
   35. V3 — MOBILE PRESERVATION
   ========================================================================== */

@media (max-width: 991.98px) {

    .container-header > .grid-child {
        display: block !important;
        min-height: 0;
    }

    .container-header .site-title {
        font-size: 1.3rem;
    }

    .container-header .navbar-brand {
        margin: 0;
        padding: 0.8rem 0;
    }

    .container-header .container-nav {
        min-height: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        min-height: auto;
    }
}



/*
==============================================================================
TeleradiologyHUB
Global Frontend Design V4
Actual Cassiopeia header DOM correction
==============================================================================
*/


/* ==========================================================================
   36. V4 — HEADER ITSELF IS THE DESKTOP GRID
   ========================================================================== */

@media (min-width: 992px) {

    .container-header {
        display: grid !important;
        grid-template-columns: auto 1fr;
        grid-template-areas: "brand nav";
        align-items: center;
        column-gap: 3rem;

        width: 100%;
        min-height: 72px;

        padding-left: max(
            24px,
            calc((100vw - var(--thub-content-width)) / 2)
        );

        padding-right: max(
            24px,
            calc((100vw - var(--thub-content-width)) / 2)
        );
    }

    .container-header > .grid-child {
        width: auto !important;
        max-width: none !important;
        min-height: 72px;
        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header > .grid-child:first-of-type {
        grid-area: brand;
        display: flex !important;
        align-items: center;
    }

    .container-header > .grid-child.container-nav {
        grid-area: nav;
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
    }

    .container-header .navbar-brand {
        display: flex;
        align-items: center;

        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .brand-logo {
        display: inline-flex;
        align-items: center;

        color: var(--thub-navy-deep);
        text-decoration: none;
        line-height: 1;
    }

    .container-header .brand-logo span {
        display: inline-block;

        font-size: 1.48rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: -0.035em;

        white-space: nowrap;
    }

    .container-header .container-nav {
        min-height: 72px;
    }

    .container-header .mod-menu {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;

        width: auto;
        margin: 0;
        padding: 0;

        gap: 1.85rem;
    }

    .container-header .mod-menu > li {
        display: flex;
        align-items: center;
        margin: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        position: relative;

        display: inline-flex;
        align-items: center;

        min-height: 72px;
        padding: 0;

        color: var(--thub-text);
        background: transparent;
        border-radius: 0;

        font-size: 0.95rem;
        font-weight: 600;
        line-height: 1;

        white-space: nowrap;
    }

    .container-header .mod-menu > li > a:hover,
    .container-header .mod-menu > li > a:focus {
        color: var(--thub-teal-dark);
        background: transparent;
    }

    .container-header .mod-menu > li.active > a,
    .container-header .mod-menu > li.current > a {
        color: var(--thub-teal-dark);
    }

    .container-header .mod-menu > li.active > a::after,
    .container-header .mod-menu > li.current > a::after {
        position: absolute;
        right: 0;
        bottom: 14px;
        left: 0;

        height: 2px;

        content: "";
        background: var(--thub-teal);
        border-radius: 999px;
    }
}


/* ==========================================================================
   37. V4 — ENSURE NO OLD DESKTOP ROW BEHAVIOUR SURVIVES
   ========================================================================== */

@media (min-width: 992px) {

    .container-header .grid-child {
        display: flex;
    }

    .container-header .container-nav {
        width: auto;
    }

    .container-header .navbar-collapse {
        display: flex !important;
        align-items: center;
        width: auto;
    }
}


/* ==========================================================================
   38. V4 — MOBILE RESET
   ========================================================================== */

@media (max-width: 991.98px) {

    .container-header {
        display: block !important;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .container-header > .grid-child {
        width: min(
            calc(100% - 32px),
            var(--thub-content-width)
        ) !important;

        max-width: var(--thub-content-width) !important;
        min-height: 0;

        margin-inline: auto !important;
    }

    .container-header > .grid-child:first-of-type {
        display: block !important;
    }

    .container-header > .grid-child.container-nav {
        display: block !important;
    }

    .container-header .brand-logo span {
        font-size: 1.3rem;
    }
}



/*
==============================================================================
TELERADIOLOGYHUB HOMEPAGE DESIGN V1
Editorial healthcare / radiology network
==============================================================================
*/


/* ==========================================================================
   HOME FOUNDATION
   ========================================================================== */

.thub-home {
    --thub-home-rule: #dde5e8;
    padding-bottom: 2rem;
}

.thub-home h1,
.thub-home h2,
.thub-home h3 {
    margin-top: 0;
}

.thub-eyebrow {
    margin: 0 0 1.1rem;
    color: var(--thub-teal-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}


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

.thub-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    align-items: center;

    min-height: 590px;
    padding: clamp(4.5rem, 7vw, 7rem) 0 clamp(4rem, 6vw, 6rem);

    border-bottom: 1px solid var(--thub-home-rule);
}

.thub-hero__content {
    max-width: 800px;
}

.thub-hero h1 {
    max-width: 790px;
    margin-bottom: 1.55rem;

    color: var(--thub-heading);

    font-size: clamp(3rem, 4.8vw, 4.8rem);
    font-weight: 680;
    line-height: 1.01;
    letter-spacing: -0.052em;
}

.thub-hero__lead {
    max-width: 670px;
    margin: 0;

    color: var(--thub-muted);

    font-size: clamp(1.05rem, 1.35vw, 1.22rem);
    line-height: 1.7;
}

.thub-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;

    margin-top: 2.2rem;
}

.thub-hero .btn-lg {
    min-height: 48px;
    padding: 0.72rem 1.3rem;

    font-size: 0.96rem;
}

.thub-text-link {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;

    color: var(--thub-heading);

    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
}

.thub-text-link span {
    color: var(--thub-teal-dark);
    transition: transform 0.18s ease;
}

.thub-text-link:hover span {
    transform: translateX(3px);
}


/* ==========================================================================
   HERO VISUAL / LOTTIE
   ========================================================================== */

.thub-hero__visual {
    min-width: 0;
}

.thub-lottie-shell {
    position: relative;

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

    width: 100%;
    min-height: 330px;
    aspect-ratio: 1 / 0.82;

    overflow: hidden;
}

.thub-lottie-shell::before {
    position: absolute;
    z-index: -1;

    width: 82%;
    aspect-ratio: 1;
    content: "";

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(21, 154, 156, 0.105) 0%,
            rgba(21, 154, 156, 0.04) 44%,
            rgba(21, 154, 156, 0) 72%
        );
}

.thub-lottie-shell dotlottie-wc {
    display: block;
    width: min(100%, 470px) !important;
    height: min(100%, 390px) !important;
}


/* ==========================================================================
   HERO SERVICE INDEX
   ========================================================================== */

.thub-hero__services {
    margin-top: 0.4rem;
    border-top: 1px solid var(--thub-home-rule);
}

.thub-hero__services > div {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 0 0.8rem;

    padding: 0.9rem 0;

    border-bottom: 1px solid var(--thub-home-rule);
}

.thub-hero__services span {
    grid-row: 1 / 3;
    padding-top: 0.05rem;

    color: var(--thub-teal-dark);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.thub-hero__services strong {
    color: var(--thub-heading);

    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.35;
}

.thub-hero__services small {
    color: var(--thub-muted);

    font-size: 0.8rem;
    line-height: 1.45;
}


/* ==========================================================================
   SECTION INTRO
   ========================================================================== */

.thub-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 6rem);

    padding: clamp(5rem, 8vw, 8rem) 0 3.2rem;
}

.thub-section-heading .thub-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -0.6rem;
}

.thub-section-heading h2 {
    max-width: 620px;
    margin-bottom: 0;

    font-size: clamp(2.25rem, 3.6vw, 3.35rem);
    font-weight: 670;
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.thub-section-heading > p:last-child {
    align-self: end;

    max-width: 570px;
    margin: 0;

    color: var(--thub-muted);

    font-size: 1.04rem;
    line-height: 1.75;
}


/* ==========================================================================
   THREE SERVICE PATHWAYS
   ========================================================================== */

.thub-pathways {
    border-bottom: 1px solid var(--thub-home-rule);
}

.thub-pathway {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 210px;
    gap: 2rem;
    align-items: start;

    padding: 2.5rem 0;

    border-top: 1px solid var(--thub-home-rule);
}

.thub-pathway__number {
    padding-top: 0.15rem;

    color: var(--thub-teal-dark);

    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.thub-pathway__label {
    margin: 0 0 0.65rem;

    color: var(--thub-muted);

    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.thub-pathway h3 {
    margin-bottom: 0.7rem;

    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 680;
    letter-spacing: -0.025em;
}

.thub-pathway__body > p:not(.thub-pathway__label):not(.thub-pathway__meta) {
    max-width: 720px;
    margin-bottom: 0.8rem;

    color: var(--thub-text);

    line-height: 1.7;
}

.thub-pathway__meta {
    margin: 0;

    color: var(--thub-muted);

    font-size: 0.87rem;
}

.thub-pathway__action {
    padding-top: 1.55rem;
    text-align: right;
}

.thub-pathway__action a {
    color: var(--thub-heading);

    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
}

.thub-pathway__action a span {
    display: inline-block;

    margin-left: 0.3rem;

    color: var(--thub-teal-dark);

    transition: transform 0.18s ease;
}

.thub-pathway__action a:hover {
    color: var(--thub-teal-dark);
}

.thub-pathway__action a:hover span {
    transform: translateX(3px);
}


/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.thub-how {
    display: grid;
    grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
    gap: clamp(3rem, 8vw, 8rem);

    padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.thub-how__intro h2 {
    max-width: 440px;

    font-size: clamp(2.1rem, 3.2vw, 2.95rem);
    font-weight: 670;
    line-height: 1.09;
    letter-spacing: -0.045em;
}

.thub-how__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.thub-how__steps article {
    padding-top: 1rem;

    border-top: 2px solid var(--thub-heading);
}

.thub-how__steps article > span {
    display: block;

    margin-bottom: 2.3rem;

    color: var(--thub-teal-dark);

    font-size: 0.74rem;
    font-weight: 700;
}

.thub-how__steps h3 {
    margin-bottom: 0.55rem;

    font-size: 1.18rem;
    font-weight: 700;
}

.thub-how__steps p {
    margin: 0;

    color: var(--thub-muted);

    font-size: 0.92rem;
    line-height: 1.65;
}


/* ==========================================================================
   RADIOLOGIST CTA
   ========================================================================== */

.thub-professionals {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 8vw, 8rem);

    padding: clamp(3.5rem, 6vw, 5.5rem);

    background: var(--thub-navy-deep);
    color: #fff;
}

.thub-professionals .thub-eyebrow {
    color: #75d2cf;
}

.thub-professionals h2 {
    max-width: 540px;
    margin-bottom: 0;

    color: #fff;

    font-size: clamp(2.1rem, 3.2vw, 3rem);
    font-weight: 660;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.thub-professionals > div:last-child {
    align-self: end;
}

.thub-professionals > div:last-child p {
    max-width: 590px;
    margin: 0;

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

    font-size: 1.01rem;
    line-height: 1.78;
}


/* ==========================================================================
   HOMEPAGE ARTICLE CHROME
   ========================================================================== */

/*
The homepage already supplies its own H1.
Avoid generic Joomla article spacing fighting with the hero.
*/

body.itemid-101 .site-grid {
    padding-top: 0;
}

body.itemid-101 .container-component {
    padding-top: 0;
}


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

@media (max-width: 991.98px) {

    .thub-hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;

        min-height: auto;
        padding-top: 4.25rem;
    }

    .thub-hero__content {
        max-width: 760px;
    }

    .thub-hero__visual {
        display: grid;
        grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1.2fr);
        gap: 2rem;
        align-items: center;
    }

    .thub-lottie-shell {
        min-height: 270px;
    }

    .thub-section-heading {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .thub-section-heading .thub-eyebrow {
        margin-bottom: 0;
    }

    .thub-pathway {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .thub-pathway__action {
        grid-column: 2;

        padding-top: 0;

        text-align: left;
    }

    .thub-how {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .thub-professionals {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


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

@media (max-width: 700px) {

    .thub-hero {
        gap: 2.25rem;

        padding-top: 3rem;
        padding-bottom: 3.5rem;
    }

    .thub-hero h1 {
        font-size: clamp(2.45rem, 11vw, 3.5rem);
        line-height: 1.02;
    }

    .thub-hero__lead {
        font-size: 1rem;
    }

    .thub-hero__actions {
        align-items: flex-start;
        flex-direction: column;

        gap: 1rem;
    }

    .thub-hero__visual {
        display: block;
    }

    .thub-lottie-shell {
        min-height: 250px;
        margin-bottom: 1rem;
    }

    .thub-section-heading {
        padding-top: 4rem;
    }

    .thub-section-heading h2 {
        font-size: 2.15rem;
    }

    .thub-pathway {
        grid-template-columns: 1fr;

        gap: 0.75rem;

        padding: 1.9rem 0;
    }

    .thub-pathway__action {
        grid-column: 1;
    }

    .thub-how {
        padding: 4rem 0;
    }

    .thub-how__steps {
        grid-template-columns: 1fr;

        gap: 2.25rem;
    }

    .thub-how__steps article > span {
        margin-bottom: 1rem;
    }

    .thub-professionals {
        margin-right: -12px;
        margin-left: -12px;

        padding: 3rem 1.5rem;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .thub-text-link span,
    .thub-pathway__action a span {
        transition: none;
    }
}




/* ==========================================================
   TELERADIOLOGYHUB RADIOLOGIST CTA — CONSOLIDATED FINAL
   Desktop + tablet + mobile
   ========================================================== */

.thub-home {
    overflow-x: clip;
}


/* ----------------------------------------------------------
   BASE
   ---------------------------------------------------------- */

.thub-professionals {
    position: relative;
    isolation: isolate;

    min-height: 0;
    margin-bottom: 6.5rem;

    padding:
        clamp(2.7rem, 3.5vw, 3.6rem)
        clamp(2rem, 5vw, 4.75rem);

    background: #0b3155;

    overflow: visible;
}

.thub-professionals-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: none;
}

.thub-professionals-copy {
    width: 100%;
    max-width: none;
}

.thub-professionals-eyebrow {
    margin: 0 0 1rem;

    color: #69d4d2;

    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.thub-professionals h2 {
    max-width: 18ch;

    margin: 0 0 1.25rem;

    color: #fff;

    font-size: clamp(2.15rem, 3vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -.025em;
}

.thub-professionals-desc {
    max-width: 64ch;

    margin: 0 0 1.15rem;

    color: rgba(255, 255, 255, .76);

    font-size: .98rem;
    line-height: 1.62;
}


/* ----------------------------------------------------------
   JOIN CTA
   ---------------------------------------------------------- */

.thub-professionals-join {
    display: inline-flex;
    align-items: center;
    gap: .8rem;

    margin-top: .15rem;

    color: #fff;
    text-decoration: none;
}

.thub-professionals-join-text {
    display: flex;
    flex-direction: column;
}

.thub-professionals-join strong {
    color: #fff;

    font-size: 1rem;
    font-weight: 700;
}

.thub-professionals-join small {
    margin-top: .2rem;

    color: rgba(255, 255, 255, .58);

    font-size: .76rem;
    font-weight: 500;
}

.thub-professionals-join-arrow {
    color: #69d4d2;

    font-size: 1.2rem;

    transition: transform .18s ease;
}

.thub-professionals-join:hover,
.thub-professionals-join:focus {
    color: #fff;
    text-decoration: none;
}

.thub-professionals-join:hover
.thub-professionals-join-arrow {
    transform: translateX(4px);
}

.thub-professionals-join:focus-visible {
    outline: 2px solid #69d4d2;
    outline-offset: 6px;
    border-radius: 2px;
}


/* ----------------------------------------------------------
   DESKTOP ILLUSTRATION
   ---------------------------------------------------------- */

.thub-professionals-visual {
    position: absolute;
    z-index: 3;

    right: clamp(-4.25rem, -3.5vw, -1.5rem);
    top: 50%;

    width: clamp(600px, 48vw, 790px);
    height: auto;

    /*
     * Lottie source is landscape.
     * Do not force a square canvas.
     */
    aspect-ratio: 4 / 3;

    transform: translateY(-50%);

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

    pointer-events: none;
}


/* Pale background surface */
.thub-professionals-visual::before {
    content: "";

    position: absolute;
    z-index: -1;

    left: 53%;
    top: 50%;

    width: 55%;
    height: 52%;

    transform: translate(-50%, -50%);

    background: rgba(248, 251, 252, .96);

    border: 1px solid rgba(255, 255, 255, .34);
    border-radius: 24px;
}


/* Subtle desktop glow */
.thub-professionals-visual::after {
    content: "";

    position: absolute;
    z-index: -2;

    left: 53%;
    top: 54%;

    width: 67%;
    height: 67%;

    transform: translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(53, 111, 224, .20) 0%,
            rgba(53, 111, 224, 0) 70%
        );

    pointer-events: none;
}

.thub-professionals-lottie {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    transform: scaleX(-1);
    transform-origin: center;
}


/* ----------------------------------------------------------
   LAPTOP
   ---------------------------------------------------------- */

@media (min-width: 981px) and (max-width: 1299px) {

    .thub-professionals h2 {
        max-width: 18ch;
        margin-bottom: 1.15rem;
    }

    .thub-professionals-desc {
        max-width: 64ch;
        margin-bottom: 1.2rem;
        line-height: 1.68;
    }

    .thub-professionals-visual {
        right: clamp(-3rem, -3vw, -1rem);

        width: clamp(500px, 48vw, 650px);
        height: auto;

        aspect-ratio: 4 / 3;
    }

    .thub-professionals-visual::before {
        width: 56%;
        height: 52%;
    }
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (min-width: 721px) and (max-width: 980px) {

    .thub-professionals {
        padding-top: 3rem;
        padding-bottom: 3rem;

        margin-bottom: 6rem;
    }

    .thub-professionals-inner {
        width: 60%;
        max-width: 650px;
    }

    .thub-professionals-copy {
        max-width: 620px;
    }

    .thub-professionals h2 {
        max-width: 14ch;

        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }

    .thub-professionals-desc {
        max-width: 48ch;
    }

    .thub-professionals-visual {
        right: -2.8rem;
        top: 53%;

        width: clamp(390px, 48vw, 470px);
        height: auto;

        aspect-ratio: 4 / 3;
    }

    .thub-professionals-visual::before {
        width: 56%;
        height: 52%;
    }
}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 720px) {

    .thub-professionals {
        padding:
            2.75rem
            0
            0;

        margin-bottom: 6rem;

        overflow: visible;
    }

    .thub-professionals-inner {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        box-sizing: border-box;

        padding-left: 1.5rem;
        padding-right: 1.5rem;

        margin-bottom: 0;
    }

    .thub-professionals-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .thub-professionals h2 {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin-bottom: 1.35rem;

        font-size: clamp(2rem, 9vw, 2.55rem);
        line-height: 1.08;

        overflow-wrap: break-word;
        word-break: normal;
    }

    .thub-professionals-desc {
        width: 100%;
        max-width: 100%;
        min-width: 0;

        margin-bottom: 1.25rem;

        line-height: 1.6;

        overflow-wrap: break-word;
        word-break: normal;
    }

    .thub-professionals-join {
        margin-top: 0;
        margin-bottom: 0;
    }

    /*
     * Mobile illustration lives in normal document flow.
     * Negative margins compensate for transparent canvas space.
     */
    .thub-professionals-visual {
        position: relative;

        right: auto;
        top: auto;

        width: min(380px, 108vw);
        height: auto;
        max-width: none;

        aspect-ratio: auto;

        margin:
            -5rem
            auto
            -6rem;

        padding: 0;

        transform: none;
    }

    .thub-professionals-visual::before {
        left: 50%;
        top: 45%;

        width: 58%;
        height: 54%;

        border-radius: 20px;
    }

    /*
     * No glow on phones:
     * cleaner rendering and avoids visual spill.
     */
    .thub-professionals-visual::after {
        display: none;
    }

    .thub-professionals-lottie {
        display: block;

        width: 100%;
        height: auto;
        max-width: none;

        margin: 0 auto;

        object-fit: contain;

        transform:
            translateY(-8%)
            scaleX(-1);

        transform-origin: center;
    }
}


/* ----------------------------------------------------------
   NARROW PHONES
   ---------------------------------------------------------- */

@media (max-width: 420px) {

    .thub-professionals {
        margin-bottom: 6rem;
    }

    .thub-professionals-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .thub-professionals-visual {
        width: min(350px, 106vw);

        margin-top: -4.5rem;
        margin-bottom: -5.5rem;
    }

    .thub-professionals-lottie {
        transform:
            translateY(-7%)
            scaleX(-1);
    }
}


/* ----------------------------------------------------------
   REDUCED MOTION
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .thub-professionals-join-arrow {
        transition: none;
    }
}




/* ==========================================================================
   THUB HEADER V8 — FINAL CONSOLIDATED HEADER
   Structural parent:
   Brand | Navigation | Account

   Replaces legacy V5 / V5.1 / V5.2 / V6 / V6.x / V7 / V7.1 overrides.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. SHARED HEADER STRUCTURE
   -------------------------------------------------------------------------- */

.container-header {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    padding: 0 !important;

    color: var(--thub-text);
    background: var(--thub-surface);

    grid-template-columns: none !important;
    grid-template-areas: none !important;
}

.container-header .thub-header-row {
    width: min(
        calc(100% - 48px),
        var(--thub-content-width)
    );

    max-width: var(--thub-content-width);

    margin-inline: auto;
}

.container-header .thub-header-brand,
.container-header .thub-header-nav,
.container-header .thub-header-account {
    margin: 0 !important;
    padding: 0 !important;
}


/* --------------------------------------------------------------------------
   2. USER / ACCOUNT MENU — SHARED
   -------------------------------------------------------------------------- */

.container-header .thub-user-menu {
    position: relative;
    margin: 0;
}

.container-header .thub-user-menu__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    color: var(--thub-navy-deep);

    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1;

    text-decoration: none;

    border-radius: var(--thub-radius-sm);
}

.container-header .thub-user-menu__trigger:hover,
.container-header .thub-user-menu__trigger:focus {
    color: var(--thub-teal-dark);
    background: var(--thub-teal-soft);
    text-decoration: none;
}

.container-header .thub-user-menu__dropdown {
    min-width: 220px;

    margin-top: 0.4rem;
    padding: 0.45rem;

    background: var(--thub-surface);

    border: 1px solid var(--thub-border);
    border-radius: var(--thub-radius);

    box-shadow: var(--thub-shadow);
}

.container-header .thub-user-menu__item {
    display: flex;
    align-items: center;

    gap: 0.7rem;
}

.container-header .thub-user-menu__item-icon {
    flex: 0 0 1.15rem;

    width: 1.15rem;

    color: var(--thub-teal-dark);

    text-align: center;
}

.container-header .thub-user-menu__dropdown .dropdown-item {
    padding: 0.58rem 0.75rem;

    color: var(--thub-text);

    font-size: 0.92rem;

    text-decoration: none;

    border-radius: var(--thub-radius-sm);
}

.container-header .thub-user-menu__dropdown .dropdown-item:hover,
.container-header .thub-user-menu__dropdown .dropdown-item:focus {
    color: var(--thub-navy-deep);
    background: var(--thub-teal-soft);
}

.container-header .thub-user-menu__dropdown .dropdown-divider {
    margin: 0.4rem 0;

    border-color: var(--thub-border);
}


/* --------------------------------------------------------------------------
   3. DESKTOP HEADER
   Brand | Main Navigation | Account
   -------------------------------------------------------------------------- */

@media (min-width: 992px) {

    .container-header .thub-header-row {
        display: grid !important;

        grid-template-columns:
            minmax(max-content, 280px)
            minmax(0, 1fr)
            max-content;

        grid-template-areas:
            "brand nav account";

        align-items: center;

        min-height: 72px;

        column-gap: 2rem;
    }

    .container-header .thub-header-brand {
        grid-area: brand;

        display: flex !important;
        align-items: center;

        width: auto !important;
        max-width: none !important;

        justify-self: start;
    }

    .container-header .navbar-brand {
        display: flex;
        align-items: center;

        min-height: 0;

        margin: 0 !important;
        padding: 0 !important;

        line-height: 1;
    }

    .container-header .thub-header-nav {
        grid-area: nav;

        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        overflow: visible !important;

        justify-self: stretch;
    }

    .container-header .thub-header-nav nav {
        display: flex !important;
        align-items: center !important;

        width: auto !important;
        height: auto !important;

        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .mod-menu {
        align-items: center;
        justify-content: center;

        margin: 0;
    }

    .container-header .mod-menu > li > a,
    .container-header .mod-menu > li > span {
        min-height: 40px;

        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .container-header .thub-header-account {
        grid-area: account;

        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;

        width: auto !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        transform: none !important;

        visibility: visible !important;
        opacity: 1 !important;

        justify-self: end;
    }

    .container-header .thub-user-menu__login {
        display: inline-flex;
        align-items: center;

        min-height: 40px;

        gap: 0.42rem;

        padding: 0.45rem 0.75rem;

        color: var(--thub-navy-deep);
        background: transparent;

        border: 1px solid var(--thub-border-strong);
        border-radius: var(--thub-radius-sm);

        font-size: 0.92rem;
        font-weight: 650;
        line-height: 1;

        text-decoration: none;

        white-space: nowrap;
    }

    .container-header .thub-user-menu__login:hover,
    .container-header .thub-user-menu__login:focus {
        color: var(--thub-teal-dark);
        background: var(--thub-teal-soft);

        border-color: var(--thub-teal);

        text-decoration: none;
    }

    .container-header .thub-user-menu__trigger {
        min-height: 40px;

        padding: 0.45rem 0.7rem;

        white-space: nowrap;
    }

}


/* --------------------------------------------------------------------------
   4. MOBILE HEADER
   Brand | Account | Hamburger
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .container-header {
        min-height: 58px !important;
        height: 58px !important;
    }

    .container-header .thub-header-row {
        display: flex !important;
        align-items: center !important;

        width: calc(100% - 24px) !important;
        max-width: none !important;

        height: 58px !important;
        min-height: 58px !important;

        margin-inline: 12px !important;

        gap: 8px;
    }


    /* Brand */

    .container-header .thub-header-brand {
        order: 1;

        position: static !important;

        display: flex !important;
        align-items: center !important;

        flex: 1 1 auto;

        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;

        height: 58px !important;
        min-height: 58px !important;
    }

    .container-header .navbar-brand {
        display: flex !important;
        align-items: center !important;

        height: 58px;

        margin: 0 !important;
        padding: 0 !important;
    }

    .container-header .brand-logo span,
    .container-header .site-title {
        color: var(--thub-navy-deep) !important;

        font-size: 1.17rem !important;
        font-weight: 750 !important;

        letter-spacing: -0.025em !important;
        line-height: 1 !important;

        white-space: nowrap;
    }


    /* Account */

    .container-header .thub-header-account {
        order: 2;

        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 40px;

        width: 40px !important;
        max-width: 40px !important;

        height: 40px !important;
        min-height: 40px !important;

        transform: none !important;

        visibility: visible !important;
        opacity: 1 !important;
    }

    .container-header .thub-user-menu {
        width: 40px !important;
        height: 40px !important;
    }

    .container-header .thub-user-menu__login,
    .container-header .thub-user-menu__trigger {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;

        margin: 0 !important;
        padding: 0 !important;

        color: var(--thub-navy-deep);
        background: #fff;

        border: 1px solid var(--thub-border-strong);
        border-radius: 10px !important;

        line-height: 1 !important;

        text-decoration: none;
    }

    .container-header .thub-user-menu__login-text,
    .container-header .thub-user-menu__welcome {
        display: none !important;
    }

    .container-header
    .thub-user-menu__trigger.dropdown-toggle::after {
        position: absolute;

        right: 2px;
        bottom: 3px;

        margin: 0;

        border-width: 0.18em;
        border-top-width: 0.22em;
    }


    /* Navigation / hamburger */

    .container-header .thub-header-nav {
        order: 3;

        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        flex: 0 0 40px;

        width: 40px !important;
        max-width: 40px !important;

        height: 40px !important;
        min-height: 40px !important;

        overflow: visible !important;

        pointer-events: auto !important;
    }

    .container-header .thub-header-nav nav {
        position: static !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 40px !important;
        height: 40px !important;

        margin: 0 !important;
        padding: 0 !important;

        overflow: visible !important;
    }

    .container-header .navbar-toggler {
        position: static !important;

        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;

        margin: 0 !important;
        padding: 0 !important;

        color: var(--thub-navy);

        background: #fff;

        border: 1px solid var(--thub-border-strong);
        border-radius: 10px !important;

        box-shadow: none;

        transform: none !important;

        visibility: visible !important;
        opacity: 1 !important;

        pointer-events: auto !important;
    }

    .container-header .navbar-toggler:hover,
    .container-header .navbar-toggler:focus {
        color: var(--thub-teal-dark);
        background: var(--thub-teal-soft);

        border-color: var(--thub-teal);

        box-shadow: none;
    }


    /* Off-canvas navigation drawer */

    .container-header .navbar-collapse,
    .container-header .navbar-collapse.collapse,
    .container-header .navbar-collapse.collapsing {
        position: fixed !important;

        z-index: 1060;

        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;

        display: block !important;

        width: min(78vw, 300px) !important;

        height: 100vh !important;
        height: 100dvh !important;

        margin: 0 !important;

        padding:
            max(
                4.4rem,
                env(safe-area-inset-top)
            )
            1.15rem
            max(
                1.5rem,
                env(safe-area-inset-bottom)
            )
            1.15rem !important;

        overflow-y: auto;

        overscroll-behavior: contain;

        background: #fff;

        box-shadow:
            -100vw 0 0 100vw rgba(11, 41, 72, 0.26),
            -18px 0 42px rgba(15, 23, 42, 0.14);

        transform: translateX(105%);

        visibility: hidden;
        opacity: 0;

        pointer-events: none;

        transition:
            transform 220ms ease,
            opacity 180ms ease,
            visibility 220ms ease;
    }

    .container-header .navbar-collapse.show {
        transform: translateX(0);

        visibility: visible;
        opacity: 1;

        pointer-events: auto;
    }

    .container-header .navbar-collapse.collapsing {
        transition:
            transform 220ms ease,
            opacity 180ms ease,
            visibility 220ms ease !important;
    }


    /* Drawer links */

    .container-header .navbar-collapse .mod-menu {
        display: block !important;

        width: 100%;

        margin: 0;
        padding: 0;

        list-style: none;
    }

    .container-header .navbar-collapse .mod-menu > li {
        display: block;

        width: 100%;

        margin: 0 0 0.35rem;
    }

    .container-header .navbar-collapse .mod-menu > li > a,
    .container-header .navbar-collapse .mod-menu > li > span {
        position: relative;

        display: flex;
        align-items: center;

        width: 100%;
        min-height: 50px;

        padding: 0.8rem 0.9rem;

        color: var(--thub-text);

        background: transparent;

        border-radius: 9px;

        font-size: 1rem;
        font-weight: 650;
        line-height: 1.25;

        text-decoration: none;
    }

    .container-header .navbar-collapse .mod-menu > li > a:hover,
    .container-header .navbar-collapse .mod-menu > li > a:focus {
        color: var(--thub-teal-dark);

        background: var(--thub-teal-soft);
    }

    .container-header .navbar-collapse .mod-menu > li.active > a,
    .container-header .navbar-collapse .mod-menu > li.current > a {
        color: var(--thub-teal-dark);

        background: rgba(21, 154, 156, 0.07);
    }

    .container-header
    .navbar-collapse
    .mod-menu
    > li.active
    > a::after,

    .container-header
    .navbar-collapse
    .mod-menu
    > li.current
    > a::after {
        position: absolute;

        right: auto;
        bottom: 7px;
        left: 0.9rem;

        width: 30px;
        height: 2px;

        content: "";

        background: var(--thub-teal);

        border-radius: 999px;
    }

}


/* --------------------------------------------------------------------------
   5. NARROW PHONES
   -------------------------------------------------------------------------- */

@media (max-width: 420px) {

    .container-header .thub-header-row {
        width: calc(100% - 20px) !important;

        margin-inline: 10px !important;

        gap: 6px;
    }

    .container-header .brand-logo span,
    .container-header .site-title {
        font-size: 1.1rem !important;
    }

}


/* --------------------------------------------------------------------------
   6. HOMEPAGE HEADER → HERO SPACING
   Home menu item = 101
   -------------------------------------------------------------------------- */

body.itemid-101 .site-grid,
body.itemid-101 .container-component,
body.itemid-101 .item-page,
body.itemid-101 .thub-home {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.itemid-101 .thub-hero {
    min-height: 0 !important;

    margin-top: 0 !important;

    padding-top: 3rem !important;
    padding-bottom: 4rem !important;

    align-items: start !important;
}

@media (min-width: 992px) and (max-width: 1399.98px) {

    body.itemid-101 .thub-hero {
        padding-top: 2.5rem !important;
    }

}

@media (max-width: 991.98px) {

    body.itemid-101 .thub-hero {
        padding-top: 1.75rem !important;
        padding-bottom: 3rem !important;
    }

}


/* --------------------------------------------------------------------------
   7. REDUCED MOTION
   -------------------------------------------------------------------------- */

@media
    (max-width: 991.98px)
    and (prefers-reduced-motion: reduce) {

    .container-header .navbar-collapse,
    .container-header .navbar-collapse.collapse,
    .container-header .navbar-collapse.collapsing {
        transition: none !important;
    }

}




/* --------------------------------------------------------------------------
   8. ACCOUNT VISIBILITY / STACKING
   -------------------------------------------------------------------------- */

/*
 * Cassiopeia gives .container-topbar links a white foreground.
 * Explicitly override it for THUB's white header.
 */
.container-header
.container-topbar
.thub-user-menu__login,
.container-header
.container-topbar
.thub-user-menu__login:visited,
.container-header
.container-topbar
.thub-user-menu__login > span {
    color: var(--thub-navy-deep) !important;
}

.container-header
.container-topbar
.thub-user-menu__login:hover,
.container-header
.container-topbar
.thub-user-menu__login:focus,
.container-header
.container-topbar
.thub-user-menu__login:hover > span,
.container-header
.container-topbar
.thub-user-menu__login:focus > span {
    color: var(--thub-teal-dark) !important;
}


/*
 * Keep the authenticated account control and its dropdown
 * above homepage visual layers.
 */
.container-header {
    overflow: visible !important;
}

.container-header .thub-header-row,
.container-header .thub-header-account,
.container-header .thub-user-menu {
    overflow: visible !important;
}

.container-header .thub-header-account {
    position: relative !important;
    z-index: 1200;
}

.container-header .thub-user-menu {
    z-index: 1201;
}

.container-header .thub-user-menu__dropdown {
    z-index: 1300 !important;
}

/* ==========================================================================
   END THUB HEADER V8 — FINAL CONSOLIDATED HEADER
   ========================================================================== */


/* ==========================================================================
   TELERADIOLOGYHUB — RADIOLOGY AI PAGE V1
   Scoped entirely under .thub-ai
   ========================================================================== */


/* ==========================================================================
   FOUNDATION
   ========================================================================== */

.thub-ai {
    --thub-ai-rule: #dde5e8;
    overflow-x: clip;
    padding-bottom: 2rem;
}

.thub-ai h1,
.thub-ai h2,
.thub-ai h3 {
    margin-top: 0;
}

.thub-ai p:last-child {
    margin-bottom: 0;
}


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

.thub-ai-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    align-items: start;

    padding: 3rem 0 clamp(4rem, 6vw, 6rem);

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-hero__content {
    max-width: 800px;
}

.thub-ai-hero h1 {
    max-width: 850px;
    margin-bottom: 1.55rem;

    color: var(--thub-heading);

    font-size: clamp(3rem, 4.8vw, 4.8rem);
    font-weight: 680;
    line-height: 1.01;
    letter-spacing: -0.052em;
}

.thub-ai-hero__lead {
    max-width: 720px;
    margin: 0;

    color: var(--thub-muted);

    font-size: clamp(1.08rem, 1.4vw, 1.25rem);
    line-height: 1.7;
}

.thub-ai-hero__intro {
    max-width: 700px;
    margin: 1.25rem 0 0;

    color: var(--thub-text);

    font-size: 0.98rem;
    line-height: 1.75;
}

.thub-ai-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;

    margin-top: 2.2rem;
}

.thub-ai-hero .btn-lg {
    min-height: 48px;
    padding: 0.72rem 1.3rem;

    font-size: 0.96rem;
}

.thub-ai-hero__meta {
    max-width: 720px;
    margin: 1.7rem 0 0;

    color: var(--thub-muted);

    font-size: 0.84rem;
    line-height: 1.6;
}


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

.thub-ai-hero__visual {
    min-width: 0;
    padding-top: 0.4rem;
}

.thub-ai-hero__visual-label {
    margin: 0 0 1rem;

    color: var(--thub-muted);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.thub-ai-lifecycle {
    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid var(--thub-ai-rule);
}

.thub-ai-lifecycle li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0 0.85rem;

    padding: 1rem 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-lifecycle li > span {
    grid-row: 1 / 3;

    color: var(--thub-teal-dark);

    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.thub-ai-lifecycle strong {
    color: var(--thub-heading);

    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.35;
}

.thub-ai-lifecycle small {
    margin-top: 0.15rem;

    color: var(--thub-muted);

    font-size: 0.81rem;
    line-height: 1.45;
}


/* ==========================================================================
   SHARED SECTION HEADING
   ========================================================================== */

.thub-ai-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 6rem);

    padding: clamp(5rem, 8vw, 8rem) 0 3.2rem;
}

.thub-ai-section-heading .thub-eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -0.6rem;
}

.thub-ai-section-heading h2 {
    max-width: 680px;
    margin-bottom: 0;

    color: var(--thub-heading);

    font-size: clamp(2.25rem, 3.6vw, 3.35rem);
    font-weight: 670;
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.thub-ai-section-heading > p:last-child {
    align-self: end;

    max-width: 600px;
    margin: 0;

    color: var(--thub-muted);

    font-size: 1.04rem;
    line-height: 1.75;
}


/* ==========================================================================
   INTRO
   ========================================================================== */

.thub-ai-intro {
    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-intro__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);

    padding: 0 0 clamp(4.5rem, 7vw, 6.5rem);
}

.thub-ai-intro__body p {
    margin: 0;

    color: var(--thub-text);

    font-size: 1rem;
    line-height: 1.8;
}


/* ==========================================================================
   SERVICE ROWS
   ========================================================================== */

.thub-ai-services {
    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-service {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);

    padding: clamp(3rem, 5vw, 4.5rem) 0;

    border-top: 1px solid var(--thub-ai-rule);
}

.thub-ai-service__number {
    padding-top: 0.2rem;

    color: var(--thub-teal-dark);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.thub-ai-service__content {
    max-width: 970px;
}

.thub-ai-service__label {
    margin: 0 0 0.6rem;

    color: var(--thub-muted);

    font-size: 0.75rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.thub-ai-service h3 {
    max-width: 780px;
    margin-bottom: 1rem;

    color: var(--thub-heading);

    font-size: clamp(1.65rem, 2.3vw, 2.15rem);
    font-weight: 680;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.thub-ai-service__content > p:not(.thub-ai-service__label) {
    max-width: 840px;

    color: var(--thub-text);

    line-height: 1.75;
}

.thub-ai-service ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 2rem;

    max-width: 850px;
    margin: 1.5rem 0 0;
    padding: 0;

    list-style: none;
}

.thub-ai-service li {
    position: relative;

    padding-left: 1.2rem;

    color: var(--thub-muted);

    font-size: 0.9rem;
    line-height: 1.55;
}

.thub-ai-service li::before {
    position: absolute;
    top: 0.68em;
    left: 0;

    width: 5px;
    height: 5px;

    content: "";

    border-radius: 50%;
    background: var(--thub-teal-dark);
}


/* ==========================================================================
   EXPERTISE GRID
   ========================================================================== */

.thub-ai-expertise {
    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid var(--thub-ai-rule);
    border-left: 1px solid var(--thub-ai-rule);
}

.thub-ai-expertise-grid article {
    padding: clamp(2rem, 4vw, 3rem);

    border-right: 1px solid var(--thub-ai-rule);
    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-expertise-grid h3 {
    margin-bottom: 0.75rem;

    color: var(--thub-heading);

    font-size: 1.25rem;
    font-weight: 700;
}

.thub-ai-expertise-grid p {
    color: var(--thub-muted);

    line-height: 1.7;
}

.thub-ai-expertise-grid .thub-ai-tags {
    margin-top: 1.15rem;

    color: var(--thub-heading);

    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.75;
}

.thub-ai-expertise__action {
    padding: 2rem 0 clamp(4rem, 7vw, 6rem);
}


/* ==========================================================================
   ENGAGEMENT MODELS
   ========================================================================== */

.thub-ai-engagement {
    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-engagement-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;

    margin-bottom: clamp(4rem, 7vw, 6.5rem);

    background: var(--thub-ai-rule);
    border: 1px solid var(--thub-ai-rule);
}

.thub-ai-engagement-grid article {
    padding: clamp(1.8rem, 3vw, 2.7rem);

    background: var(--thub-surface);
}

.thub-ai-engagement-grid article > span {
    display: block;

    margin-bottom: 2.2rem;

    color: var(--thub-teal-dark);

    font-size: 0.72rem;
    font-weight: 700;
}

.thub-ai-engagement-grid h3 {
    margin-bottom: 0.7rem;

    color: var(--thub-heading);

    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.thub-ai-engagement-grid p {
    margin: 0;

    color: var(--thub-muted);

    font-size: 0.91rem;
    line-height: 1.7;
}


/* ==========================================================================
   CLINICAL VALUE
   ========================================================================== */

.thub-ai-clinical-value {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(3rem, 8vw, 8rem);

    padding: clamp(5rem, 8vw, 8rem) 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-clinical-value__heading h2 {
    max-width: 570px;

    color: var(--thub-heading);

    font-size: clamp(2.2rem, 3.5vw, 3.25rem);
    font-weight: 670;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.thub-ai-clinical-value__content {
    max-width: 710px;
}

.thub-ai-clinical-value__content p {
    color: var(--thub-text);

    font-size: 1rem;
    line-height: 1.82;
}

.thub-ai-clinical-value__content p:first-child {
    margin-top: 0;
}


/* ==========================================================================
   AUDIENCE
   ========================================================================== */

.thub-ai-audience {
    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-audience-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    margin-bottom: clamp(4rem, 7vw, 6.5rem);

    border-top: 1px solid var(--thub-ai-rule);
    border-left: 1px solid var(--thub-ai-rule);
}

.thub-ai-audience-grid > div {
    min-height: 115px;
    padding: 1.6rem;

    color: var(--thub-heading);

    font-size: 0.94rem;
    font-weight: 650;
    line-height: 1.45;

    border-right: 1px solid var(--thub-ai-rule);
    border-bottom: 1px solid var(--thub-ai-rule);
}


/* ==========================================================================
   PROJECT PROCESS
   ========================================================================== */

.thub-ai-process {
    display: grid;
    grid-template-columns: minmax(250px, 0.6fr) minmax(0, 1.4fr);
    gap: clamp(3rem, 8vw, 8rem);

    padding: clamp(5rem, 8vw, 7.5rem) 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-process__intro h2 {
    max-width: 460px;

    color: var(--thub-heading);

    font-size: clamp(2.1rem, 3.2vw, 2.95rem);
    font-weight: 670;
    line-height: 1.09;
    letter-spacing: -0.045em;
}

.thub-ai-process__intro > p:last-child {
    max-width: 450px;

    color: var(--thub-muted);

    line-height: 1.75;
}

.thub-ai-process__steps {
    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid var(--thub-ai-rule);
}

.thub-ai-process__steps li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 1.2rem;

    padding: 1.5rem 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-process__steps li > span {
    color: var(--thub-teal-dark);

    font-size: 0.72rem;
    font-weight: 700;
}

.thub-ai-process__steps h3 {
    margin-bottom: 0.35rem;

    color: var(--thub-heading);

    font-size: 1rem;
    font-weight: 700;
}

.thub-ai-process__steps p {
    margin: 0;

    color: var(--thub-muted);

    font-size: 0.91rem;
    line-height: 1.65;
}


/* ==========================================================================
   FAQ
   ========================================================================== */

.thub-ai-faq {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(3rem, 8vw, 8rem);

    padding: clamp(5rem, 8vw, 8rem) 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-faq__intro {
    position: relative;
}

.thub-ai-faq__intro h2 {
    max-width: 500px;

    color: var(--thub-heading);

    font-size: clamp(2.1rem, 3.25vw, 3rem);
    font-weight: 670;
    line-height: 1.09;
    letter-spacing: -0.045em;
}

.thub-ai-faq__intro > p:last-child {
    max-width: 440px;

    color: var(--thub-muted);

    line-height: 1.75;
}

.thub-ai-faq__items {
    border-top: 1px solid var(--thub-ai-rule);
}

.thub-ai-faq__items article {
    padding: 1.65rem 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-faq__items h3 {
    margin-bottom: 0.65rem;

    color: var(--thub-heading);

    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.thub-ai-faq__items p {
    max-width: 760px;
    margin: 0;

    color: var(--thub-muted);

    font-size: 0.93rem;
    line-height: 1.72;
}


/* ==========================================================================
   PROJECT CTA
   ========================================================================== */

.thub-ai-project {
    margin: clamp(5rem, 8vw, 8rem) 0;

    background: var(--thub-teal-soft);
    border: 1px solid var(--thub-border);
}

.thub-ai-project__content {
    max-width: 920px;
    padding: clamp(3rem, 6vw, 5rem);
}

.thub-ai-project h2 {
    max-width: 730px;
    margin-bottom: 1.15rem;

    color: var(--thub-heading);

    font-size: clamp(2.25rem, 3.8vw, 3.45rem);
    font-weight: 670;
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.thub-ai-project__content > p {
    max-width: 720px;

    color: var(--thub-text);

    line-height: 1.78;
}

.thub-ai-project__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;

    margin-top: 2rem;
}

.thub-ai-project__note {
    margin-top: 1.5rem !important;

    color: var(--thub-muted) !important;

    font-size: 0.84rem;
}


/* ==========================================================================
   RADIOLOGIST CTA
   ========================================================================== */

.thub-ai-radiologists {
    position: relative;

    margin-bottom: 6.5rem;
    padding: clamp(3rem, 6vw, 5rem);

    background: var(--thub-navy-deep);
    color: #fff;
}

.thub-ai-radiologists .thub-eyebrow {
    color: #75d2cf;
}

.thub-ai-radiologists__content {
    max-width: 900px;
}

.thub-ai-radiologists h2 {
    max-width: 650px;
    margin-bottom: 1rem;

    color: #fff;

    font-size: clamp(2.15rem, 3.4vw, 3.15rem);
    font-weight: 660;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.thub-ai-radiologists p {
    max-width: 680px;

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

    line-height: 1.78;
}

.thub-ai-radiologists__join {
    display: inline-flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;

    min-width: min(100%, 410px);
    margin-top: 1.8rem;
    padding: 1.1rem 1.25rem;

    color: #fff;
    text-decoration: none;

    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.thub-ai-radiologists__join > span:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.thub-ai-radiologists__join strong {
    color: #fff;

    font-size: 0.96rem;
}

.thub-ai-radiologists__join small {
    color: rgba(255, 255, 255, 0.62);

    font-size: 0.78rem;
}

.thub-ai-radiologists__join > span:last-child {
    color: #75d2cf;

    font-size: 1.2rem;

    transition: transform 0.18s ease;
}

.thub-ai-radiologists__join:hover {
    color: #fff;
}

.thub-ai-radiologists__join:hover > span:last-child {
    transform: translateX(4px);
}


/* ==========================================================================
   ARTICLE CHROME — RADIOLOGY AI ITEMID 134
   ========================================================================== */

body.itemid-134 .site-grid,
body.itemid-134 .container-component,
body.itemid-134 .item-page,
body.itemid-134 .thub-ai {
    margin-top: 0;
    padding-top: 0;
}


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

@media (max-width: 1199.98px) {

    .thub-ai-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
        gap: 3.5rem;
    }

    .thub-ai-engagement-grid,
    .thub-ai-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================================
   MOBILE / TABLET STACK
   ========================================================================== */

@media (max-width: 991.98px) {

    .thub-ai-hero {
        grid-template-columns: 1fr;
        gap: 3rem;

        padding-top: 1.75rem;
        padding-bottom: 3.5rem;
    }

    .thub-ai-hero__visual {
        max-width: 700px;
    }

    .thub-ai-section-heading,
    .thub-ai-clinical-value,
    .thub-ai-process,
    .thub-ai-faq {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .thub-ai-section-heading {
        padding-top: 4.5rem;
    }

    .thub-ai-section-heading .thub-eyebrow {
        margin-bottom: 0;
    }

    .thub-ai-intro__body {
        grid-template-columns: 1fr;
        gap: 1.3rem;
    }

}


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

@media (max-width: 767.98px) {

    .thub-ai-hero h1 {
        font-size: clamp(2.55rem, 11vw, 3.3rem);
        letter-spacing: -0.045em;
    }

    .thub-ai-service {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .thub-ai-service__number {
        padding-top: 0;
    }

    .thub-ai-service ul,
    .thub-ai-expertise-grid,
    .thub-ai-engagement-grid,
    .thub-ai-audience-grid {
        grid-template-columns: 1fr;
    }

    .thub-ai-expertise-grid,
    .thub-ai-audience-grid {
        border-left: 0;
    }

    .thub-ai-expertise-grid article,
    .thub-ai-audience-grid > div {
        border-right: 0;
    }

    .thub-ai-engagement-grid {
        gap: 0;
    }

    .thub-ai-engagement-grid article {
        border-bottom: 1px solid var(--thub-ai-rule);
    }

    .thub-ai-project {
        margin: 4rem 0;
    }

    .thub-ai-project__content,
    .thub-ai-radiologists {
        padding: 2.3rem 1.6rem;
    }

}


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

@media (max-width: 575.98px) {

    .thub-ai-hero__actions,
    .thub-ai-project__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .thub-ai-process__steps li {
        grid-template-columns: 42px minmax(0, 1fr);
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-radiologists__join > span:last-child,
    .thub-ai .thub-text-link span {
        transition: none;
    }

}

/* ==========================================================================
   TELERADIOLOGYHUB — RADIOLOGY AI PAGE V1.1
   Visual refinement + icons + FAQ drawers + progressive motion
   ========================================================================== */


/* ==========================================================================
   HERO — BETTER BALANCE
   ========================================================================== */

.thub-ai-hero {
    grid-template-columns: minmax(0, 1.26fr) minmax(320px, 0.74fr);
    gap: clamp(2.8rem, 4.5vw, 5rem);
}

.thub-ai-hero__content {
    max-width: 860px;
}

.thub-ai-hero h1 {
    max-width: 900px;

    font-size: clamp(2.9rem, 4.45vw, 4.45rem);
    line-height: 1.015;
    letter-spacing: -0.05em;
}

.thub-ai-hero__lead {
    max-width: 690px;
}

.thub-ai-hero__intro {
    max-width: 680px;
}


/* ==========================================================================
   LIFECYCLE — CONNECTED FLOW
   ========================================================================== */

.thub-ai-hero__visual {
    padding-top: 0.15rem;
}

.thub-ai-hero__visual-label {
    margin-bottom: 1.1rem;

    color: var(--thub-heading);
}

.thub-ai-lifecycle {
    position: relative;

    padding-left: 0.15rem;

    border-top: 0;
}

.thub-ai-lifecycle::before {
    position: absolute;
    top: 1.2rem;
    bottom: 1.2rem;
    left: 8px;

    width: 1px;

    content: "";

    background: var(--thub-ai-rule);
}

.thub-ai-lifecycle li {
    position: relative;

    grid-template-columns: 36px minmax(0, 1fr);

    padding: 0.86rem 0 0.86rem 1.55rem;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-lifecycle li:first-child {
    border-top: 1px solid var(--thub-ai-rule);
}

.thub-ai-lifecycle li::before {
    position: absolute;
    top: 1.18rem;
    left: 4px;
    z-index: 1;

    width: 9px;
    height: 9px;

    content: "";

    border: 2px solid var(--thub-surface);
    border-radius: 50%;
    background: var(--thub-teal-dark);
    box-shadow: 0 0 0 1px var(--thub-teal-dark);
}


/* ==========================================================================
   SHARED EDITORIAL SPACING
   ========================================================================== */

.thub-ai-section-heading {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.2rem, 4.5vw, 4.75rem);
}

.thub-ai-intro__body {
    gap: clamp(2rem, 4vw, 4rem);
}


/* ==========================================================================
   SERVICE ROWS + ICONS
   ========================================================================== */

.thub-ai-service {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: clamp(1.2rem, 2.6vw, 2.5rem);

    padding: clamp(2.65rem, 4.25vw, 3.8rem) 0;
}

.thub-ai-service__number {
    padding-top: 0.15rem;
}

.thub-ai-service__number::after {
    display: block;

    width: 22px;
    height: 2px;
    margin-top: 0.62rem;

    content: "";

    background: var(--thub-teal-dark);
}

.thub-ai-service__content {
    position: relative;

    max-width: 900px;
}

.thub-ai-service__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 1rem;

    color: var(--thub-teal-dark);

    font-size: 1rem;

    border: 1px solid var(--thub-border);
    border-radius: 50%;
    background: var(--thub-teal-soft);
}

.thub-ai-service h3 {
    max-width: 760px;
    margin-bottom: 0.85rem;
}

.thub-ai-service__content > p:not(.thub-ai-service__label) {
    max-width: 790px;

    line-height: 1.72;
}

.thub-ai-service ul {
    gap: 0.38rem 1.75rem;

    max-width: 800px;
    margin-top: 1.25rem;
}

.thub-ai-service li {
    font-size: 0.88rem;
    line-height: 1.48;
}


/* ==========================================================================
   EXPERTISE ICON PANELS
   ========================================================================== */

.thub-ai-expertise-grid article {
    position: relative;

    padding: clamp(1.9rem, 3.25vw, 2.8rem);
}

.thub-ai-expertise-grid article::before {
    position: absolute;
    top: -1px;
    left: -1px;

    width: 48px;
    height: 2px;

    content: "";

    background: var(--thub-teal-dark);
}

.thub-ai-icon-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    margin-bottom: 1.2rem;

    color: var(--thub-teal-dark);

    font-size: 0.95rem;

    border-radius: 10px;
    background: var(--thub-teal-soft);
}

.thub-ai-expertise-grid h3 {
    font-size: 1.18rem;
}


/* ==========================================================================
   ENGAGEMENT — 2 x 2 + ICONS
   ========================================================================== */

.thub-ai-engagement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thub-ai-engagement-grid article {
    min-height: 250px;
    padding: clamp(2rem, 3.5vw, 3rem);
}

.thub-ai-engagement-grid article > span {
    margin-bottom: 1.45rem;
}

.thub-ai-engagement-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 1.25rem;

    color: var(--thub-teal-dark);

    font-size: 1rem;

    border: 1px solid var(--thub-border);
    border-radius: 50%;
}

.thub-ai-engagement-grid h3 {
    max-width: 340px;

    font-size: 1.24rem;
}

.thub-ai-engagement-grid p {
    max-width: 440px;

    font-size: 0.94rem;
}


/* ==========================================================================
   AUDIENCE — ICON + LABEL
   ========================================================================== */

.thub-ai-audience-grid > div {
    min-height: 120px;
}

.thub-ai-audience-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.thub-ai-audience-item i {
    color: var(--thub-teal-dark);

    font-size: 1.05rem;
}

.thub-ai-audience-item span {
    max-width: 200px;
}


/* ==========================================================================
   CLINICAL VALUE / PROCESS / FAQ COLUMN BALANCE
   ========================================================================== */

.thub-ai-clinical-value {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.75rem, 5vw, 5.5rem);
}

.thub-ai-process,
.thub-ai-faq {
    gap: clamp(2.75rem, 5.5vw, 5.75rem);
}


/* ==========================================================================
   FAQ — NATIVE DETAILS / SUMMARY DRAWERS
   ========================================================================== */

.thub-ai-faq__items {
    border-top: 1px solid var(--thub-ai-rule);
}

.thub-ai-faq-item {
    margin: 0;

    border-bottom: 1px solid var(--thub-ai-rule);
}

.thub-ai-faq-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 1.5rem;
    align-items: center;

    padding: 1.45rem 0;

    color: var(--thub-heading);

    cursor: pointer;
    list-style: none;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.thub-ai-faq-item summary::-webkit-details-marker {
    display: none;
}

.thub-ai-faq-item summary::marker {
    content: "";
}

.thub-ai-faq-item summary:hover,
.thub-ai-faq-item summary:focus-visible {
    color: var(--thub-teal-dark);
}

.thub-ai-faq-item summary:focus-visible {
    outline: 2px solid var(--thub-teal);
    outline-offset: 5px;
}

.thub-ai-faq-item summary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: var(--thub-teal-dark);

    font-size: 0.72rem;

    border: 1px solid var(--thub-border);
    border-radius: 50%;

    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        color 0.22s ease;
}

.thub-ai-faq-item[open] summary i {
    color: #fff;

    background: var(--thub-teal-dark);
    border-color: var(--thub-teal-dark);

    transform: rotate(45deg);
}

.thub-ai-faq-item__answer {
    overflow: hidden;
}

.thub-ai-faq-item__answer p {
    max-width: 740px;
    margin: -0.15rem 3.5rem 1.55rem 0;

    color: var(--thub-muted);

    font-size: 0.92rem;
    line-height: 1.72;
}


/* ==========================================================================
   PROGRESSIVE SCROLL REVEAL

   Important:
   Elements remain fully visible unless JS explicitly adds
   .thub-ai-motion-ready to <html>.
   ========================================================================== */

html.thub-ai-motion-ready .thub-ai-reveal {
    opacity: 0;
    transform: translateY(18px);

    transition:
        opacity 0.48s ease,
        transform 0.48s ease;
}

html.thub-ai-motion-ready .thub-ai-reveal.thub-ai-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

html.thub-ai-motion-ready .thub-ai-service:nth-of-type(2),
html.thub-ai-motion-ready .thub-ai-icon-panel:nth-child(2),
html.thub-ai-motion-ready .thub-ai-audience-item:nth-child(2) {
    transition-delay: 0.04s;
}

html.thub-ai-motion-ready .thub-ai-service:nth-of-type(3),
html.thub-ai-motion-ready .thub-ai-icon-panel:nth-child(3),
html.thub-ai-motion-ready .thub-ai-audience-item:nth-child(3) {
    transition-delay: 0.08s;
}

html.thub-ai-motion-ready .thub-ai-service:nth-of-type(4),
html.thub-ai-motion-ready .thub-ai-icon-panel:nth-child(4),
html.thub-ai-motion-ready .thub-ai-audience-item:nth-child(4) {
    transition-delay: 0.12s;
}


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

@media (max-width: 1199.98px) {

    .thub-ai-hero {
        grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
        gap: 3rem;
    }

}


/* ==========================================================================
   TABLET / MOBILE STACK
   ========================================================================== */

@media (max-width: 991.98px) {

    .thub-ai-hero {
        gap: 2.4rem;

        padding-top: 1.5rem;
        padding-bottom: 3.25rem;
    }

    .thub-ai-section-heading {
        gap: 1.45rem;

        padding-top: 3.75rem;
        padding-bottom: 2.5rem;
    }

    .thub-ai-intro__body {
        gap: 1.05rem;

        padding-bottom: 3.75rem;
    }

    .thub-ai-clinical-value,
    .thub-ai-process,
    .thub-ai-faq {
        gap: 1.8rem;

        padding-top: 4rem;
        padding-bottom: 4rem;
    }

}


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

@media (max-width: 767.98px) {

    .thub-ai {
        padding-bottom: 1rem;
    }

    .thub-ai-hero {
        gap: 2rem;

        padding-top: 1.2rem;
        padding-bottom: 2.8rem;
    }

    .thub-ai-hero h1 {
        max-width: none;
        margin-bottom: 1.15rem;

        font-size: clamp(2.2rem, 10vw, 2.85rem);
        line-height: 1.04;
    }

    .thub-ai-hero__lead {
        font-size: 1rem;
        line-height: 1.62;
    }

    .thub-ai-hero__intro {
        margin-top: 0.95rem;

        font-size: 0.92rem;
        line-height: 1.65;
    }

    .thub-ai-section-heading {
        padding-top: 3.1rem;
        padding-bottom: 2rem;
    }

    .thub-ai-section-heading h2,
    .thub-ai-clinical-value__heading h2,
    .thub-ai-process__intro h2,
    .thub-ai-faq__intro h2,
    .thub-ai-project h2,
    .thub-ai-radiologists h2 {
        font-size: clamp(1.9rem, 8vw, 2.45rem);
        line-height: 1.08;
    }

    .thub-ai-intro__body {
        padding-bottom: 3.25rem;
    }

    .thub-ai-service {
        gap: 0.45rem;

        padding: 2.2rem 0;
    }

    .thub-ai-service__icon {
        width: 38px;
        height: 38px;
        margin-bottom: 0.8rem;
    }

    .thub-ai-service h3 {
        margin-bottom: 0.7rem;

        font-size: 1.4rem;
        line-height: 1.18;
    }

    .thub-ai-service__content > p:not(.thub-ai-service__label) {
        margin-bottom: 0.8rem;

        font-size: 0.92rem;
        line-height: 1.65;
    }

    .thub-ai-service ul {
        margin-top: 0.95rem;
    }

    .thub-ai-service li {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .thub-ai-engagement-grid {
        grid-template-columns: 1fr;
    }

    .thub-ai-engagement-grid article {
        min-height: 0;
        padding: 1.75rem;
    }

    .thub-ai-engagement-grid article > span {
        margin-bottom: 1rem;
    }

    .thub-ai-engagement-icon {
        margin-bottom: 1rem;
    }

    .thub-ai-clinical-value,
    .thub-ai-process,
    .thub-ai-faq {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .thub-ai-faq-item summary {
        grid-template-columns: minmax(0, 1fr) 30px;
        gap: 1rem;

        padding: 1.15rem 0;

        font-size: 0.95rem;
    }

    .thub-ai-faq-item summary i {
        width: 28px;
        height: 28px;
    }

    .thub-ai-faq-item__answer p {
        margin-right: 0;
        margin-bottom: 1.25rem;

        font-size: 0.87rem;
        line-height: 1.62;
    }

    .thub-ai-project {
        margin: 3.25rem 0;
    }

    .thub-ai-project__content,
    .thub-ai-radiologists {
        padding: 2.15rem 1.4rem;
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html.thub-ai-motion-ready .thub-ai-reveal,
    html.thub-ai-motion-ready .thub-ai-reveal.thub-ai-reveal--visible {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .thub-ai-faq-item summary i {
        transition: none;
    }

}


/* ==========================================================
   THUB_HOME_TESTIMONIAL_SPOTLIGHT_CSS_V2
   Profile-style autoplay spotlight adapted for homepage
   ========================================================== */

.thub-home .thub-home-testimonials {
    position: relative;

    margin:
        clamp(3.8rem, 7vw, 6.2rem)
        0;

    padding:
        clamp(1.55rem, 3.2vw, 2.4rem);

    overflow: hidden;

    border:
        1px solid
        rgba(17, 125, 127, .12);

    border-radius: 24px;

    background:
        radial-gradient(
            circle at 94% 4%,
            rgba(17, 125, 127, .09),
            transparent 31%
        ),
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fcfb 58%,
            #eef8f6 100%
        );

    box-shadow:
        0 20px 48px
        rgba(15, 39, 61, .065);
}


.thub-home .thub-home-testimonials::before {
    content: '';

    position: absolute;

    right: -115px;
    bottom: -145px;

    width: 280px;
    height: 280px;

    border:
        1px solid
        rgba(17, 125, 127, .07);

    border-radius: 50%;

    box-shadow:
        0 0 0 52px
        rgba(17, 125, 127, .022),
        0 0 0 104px
        rgba(17, 125, 127, .012);

    pointer-events: none;
}


.thub-home .thub-home-testimonials-header {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 2rem;

    margin-bottom: 1.6rem;
}


.thub-home .thub-home-testimonials-copy {
    max-width: 760px;
}


.thub-home .thub-home-testimonials-eyebrow {
    margin: 0 0 .48rem;

    color: #117d7f;

    font-size: .73rem;
    font-weight: 800;

    letter-spacing: .10em;
    text-transform: uppercase;
}


.thub-home .thub-home-testimonials h2 {
    max-width: 720px;

    margin: 0;

    color: #102d49;

    font-size:
        clamp(
            1.7rem,
            3vw,
            2.55rem
        );

    line-height: 1.12;

    letter-spacing: -.025em;
}


.thub-home .thub-home-testimonials-intro {
    max-width: 720px;

    margin: .8rem 0 0;

    color: #647588;

    font-size: .94rem;
    line-height: 1.65;
}


.thub-home .thub-home-testimonials-source {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: .4rem;

    padding: .60rem .82rem;

    color: #15364e;

    text-decoration: none;

    background:
        rgba(255, 255, 255, .88);

    border:
        1px solid
        rgba(17, 125, 127, .16);

    border-radius: 999px;

    box-shadow:
        0 7px 18px
        rgba(15, 39, 61, .045);

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.thub-home
.thub-home-testimonials-source
> span:first-child {
    color: #748393;

    font-size: .72rem;
}


.thub-home
.thub-home-testimonials-source
strong {
    display: inline-flex;
    align-items: center;

    gap: .28rem;

    font-size: .82rem;
}


.thub-home .thub-home-trustpilot-star {
    color: #00b67a;

    font-size: 1rem;
}


/* Spotlight layout */

.thub-home .thub-home-review-experience {
    position: relative;
    z-index: 2;
}


.thub-home .thub-home-review-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 3.15fr)
        minmax(210px, .85fr);

    gap: 1rem;

    min-height: 400px;
}


.thub-home .thub-home-review-main {
    min-width: 0;
}


.thub-home .thub-home-review-spotlight {
    position: relative;

    height: 400px;

    overflow: hidden;

    padding:
        34px
        38px
        29px;

    border:
        1px solid
        rgba(17, 125, 127, .10);

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 94% 0%,
            rgba(17, 125, 127, .085),
            transparent 38%
        ),
        #ffffff;

    box-shadow:
        0 10px 30px
        rgba(20, 55, 70, .05);

    transition:
        opacity .20s ease,
        transform .20s ease;
}


.thub-home
.thub-home-review-spotlight.is-switching {
    opacity: .58;

    transform:
        translateY(2px);
}


/* Autoplay progress */

.thub-home .thub-home-review-progress {
    position: absolute;

    top: 0;
    left: 24px;
    right: 24px;

    height: 3px;

    overflow: hidden;

    border-radius:
        0 0 4px 4px;

    background:
        rgba(17, 125, 127, .08);
}


.thub-home .thub-home-review-progress-fill {
    width: 100%;
    height: 100%;

    transform:
        scaleX(0);

    transform-origin:
        left center;

    background: #117d7f;
}


.thub-home
.thub-home-review-progress-fill.is-running {
    animation:
        thubHomeReviewAutoplayProgress
        8s
        linear
        forwards;
}


.thub-home
.thub-home-review-experience.is-paused
.thub-home-review-progress-fill {
    animation-play-state: paused;
}


@keyframes thubHomeReviewAutoplayProgress {

    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }

}


/* Spotlight content */

.thub-home .thub-home-review-quote {
    position: absolute;

    top: 26px;
    right: 34px;

    color:
        rgba(17, 125, 127, .09);

    font-family:
        Georgia,
        'Times New Roman',
        serif;

    font-size: 6rem;
    font-weight: 800;
    line-height: .8;

    pointer-events: none;
}


.thub-home .thub-home-review-inner {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    height: 100%;
}


.thub-home .thub-home-review-stars {
    flex: 0 0 auto;

    margin-bottom: 12px;

    color: #f4b400;

    font-size: 1rem;

    letter-spacing: .09em;
}


.thub-home .thub-home-review-copy-area {
    flex: 1 1 auto;

    min-height: 0;

    overflow: auto;

    padding-right: 10px;

    scrollbar-width: thin;
}


.thub-home .thub-home-review-title {
    max-width: 810px;

    margin:
        0
        0
        .7rem;

    color: #173650;

    font-size:
        clamp(
            1.15rem,
            1.8vw,
            1.42rem
        );

    font-weight: 800;
    line-height: 1.34;
}


.thub-home .thub-home-review-text {
    max-width: 860px;

    margin: 0;

    color: #536a77;

    font-size: .96rem;
    line-height: 1.72;
}


/* Reviewer */

.thub-home .thub-home-review-author-row {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 13px;

    margin-top: 17px;
}


.thub-home .thub-home-review-avatar {
    display: grid;
    place-items: center;

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #edf8f8,
            #e6f1f4
        );

    box-shadow:
        0 0 0 4px
        rgba(17, 125, 127, .07);
}


.thub-home .thub-home-review-avatar-flag {
    display: block;

    font-size: 2.2rem;
    line-height: 1;
}


.thub-home .thub-home-review-author-copy {
    min-width: 0;
}


.thub-home .thub-home-review-author-name {
    display: block;

    overflow: hidden;

    color: #173650;

    font-size: .95rem;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.thub-home .thub-home-review-author-meta {
    display: flex;
    align-items: center;

    gap: .35rem;

    margin-top: 4px;

    color: #647b87;

    font-size: .79rem;
    font-weight: 700;
}


/* Controls */

.thub-home .thub-home-review-bottom {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-top: 14px;
}


.thub-home .thub-home-review-arrows {
    display: flex;

    gap: 8px;
}


.thub-home .thub-home-review-arrow {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    padding: 0;

    border:
        1px solid
        rgba(17, 125, 127, .14);

    border-radius: 50%;

    background: #ffffff;

    color: #117d7f;

    font-size: .98rem;

    cursor: pointer;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.thub-home .thub-home-review-bottom-right {
    display: flex;
    align-items: center;

    gap: 15px;
}


.thub-home .thub-home-review-original-link {
    color: #117d7f;

    font-size: .75rem;
    font-weight: 750;

    text-decoration: none;
}


.thub-home .thub-home-review-position {
    color: #929faa;

    font-size: .72rem;
    font-weight: 650;

    white-space: nowrap;
}


/* Reviewer rail */

.thub-home .thub-home-review-rail {
    height: 400px;

    padding: 13px;

    border:
        1px solid
        rgba(17, 125, 127, .08);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, .72);
}


.thub-home .thub-home-review-rail-label {
    margin:
        2px
        4px
        10px;

    color: #8796a0;

    font-size: .67rem;
    font-weight: 800;

    letter-spacing: .09em;

    text-transform: uppercase;
}


.thub-home .thub-home-review-thumbs {
    display: flex;
    flex-direction: column;

    gap: 9px;

    height:
        calc(
            100% - 27px
        );
}


.thub-home .thub-home-review-thumb {
    position: relative;

    flex: 1 1 0;

    display: flex;
    align-items: center;

    gap: 9px;

    min-height: 0;

    width: 100%;

    padding:
        10px
        9px;

    overflow: hidden;

    border:
        1px solid
        rgba(17, 125, 127, .075);

    border-radius: 14px;

    background: #ffffff;

    cursor: pointer;

    text-align: left;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}


.thub-home .thub-home-review-thumb::before {
    content: '';

    position: absolute;

    left: 0;
    top: 11px;
    bottom: 11px;

    width: 3px;

    border-radius:
        0 3px 3px 0;

    background:
        rgba(17, 125, 127, .14);
}


.thub-home .thub-home-review-thumb-avatar {
    display: grid;
    place-items: center;

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #eef7f7,
            #e8f0f2
        );
}


.thub-home .thub-home-review-thumb-flag {
    display: block;

    font-size: 1.65rem;
    line-height: 1;
}


.thub-home .thub-home-review-thumb-meta {
    min-width: 0;

    flex: 1 1 auto;
}


.thub-home .thub-home-review-thumb-name {
    display: block;

    overflow: hidden;

    color: #173650;

    font-size: .76rem;
    font-weight: 800;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.thub-home .thub-home-review-thumb-stars {
    display: block;

    margin-top: 3px;

    color: #f4b400;

    font-size: .58rem;

    letter-spacing: .03em;
    line-height: 1;
}


.thub-home .thub-home-review-thumb-country {
    display: block;

    margin-top: 4px;

    overflow: hidden;

    color: #687e89;

    font-size: .67rem;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Bottom attribution */

.thub-home .thub-home-testimonials-bottom {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-top: .8rem;
}


.thub-home .thub-home-testimonials-bottom p {
    margin: 0;

    color: #7b8995;

    font-size: .76rem;
}


.thub-home .thub-home-testimonials-bottom a {
    display: inline-flex;
    align-items: center;

    gap: .35rem;

    color: #117579;

    font-size: .80rem;
    font-weight: 750;

    text-decoration: none;
}


/* Hover */

@media (hover: hover) and (pointer: fine) {

    .thub-home
    .thub-home-testimonials-source:hover,

    .thub-home
    .thub-home-testimonials-source:focus-visible,

    .thub-home
    .thub-home-review-arrow:hover,

    .thub-home
    .thub-home-review-arrow:focus-visible {
        transform:
            translateY(-1px);

        border-color:
            rgba(17, 125, 127, .30);

        box-shadow:
            0 8px 18px
            rgba(20, 55, 70, .065);
    }


    .thub-home
    .thub-home-review-thumb:hover,

    .thub-home
    .thub-home-review-thumb:focus-visible {
        transform:
            translateX(-2px);

        border-color:
            rgba(17, 125, 127, .22);

        box-shadow:
            0 7px 18px
            rgba(20, 55, 70, .045);

        outline: none;
    }

}


/* Tablet */

@media (max-width: 991.98px) {

    .thub-home .thub-home-review-layout {
        grid-template-columns: 1fr;

        min-height: 0;
    }


    .thub-home .thub-home-review-spotlight {
        height: 390px;
    }


    .thub-home .thub-home-review-rail {
        height: auto;
    }


    .thub-home .thub-home-review-thumbs {
        flex-direction: row;

        height: auto;

        overflow-x: auto;

        overscroll-behavior-inline:
            contain;

        scroll-snap-type:
            x proximity;

        scrollbar-width: none;
    }


    .thub-home
    .thub-home-review-thumbs::-webkit-scrollbar {
        display: none;
    }


    .thub-home .thub-home-review-thumb {
        flex:
            0 0
            min(
                76%,
                220px
            );

        min-height: 76px;

        scroll-snap-align: start;
    }

}


/* Mobile */

@media (max-width: 720px) {

    .thub-home .thub-home-testimonials {
        margin: 3rem 0;

        padding: 1.2rem;

        border-radius: 20px;
    }


    .thub-home .thub-home-testimonials-header {
        flex-direction: column;

        gap: 1rem;
    }


    .thub-home .thub-home-testimonials-source {
        align-self: flex-start;
    }


    .thub-home .thub-home-review-spotlight {
        height: 425px;

        padding:
            29px
            21px
            23px;
    }


    .thub-home .thub-home-review-quote {
        right: 18px;

        font-size: 4.8rem;
    }


    .thub-home .thub-home-review-text {
        font-size: .91rem;
        line-height: 1.63;
    }


    .thub-home .thub-home-review-bottom {
        align-items: flex-end;
    }


    .thub-home .thub-home-review-bottom-right {
        align-items: flex-end;
        flex-direction: column;

        gap: 4px;
    }


    .thub-home .thub-home-testimonials-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 420px) {

    .thub-home .thub-home-review-spotlight {
        height: 455px;
    }

}


/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .thub-home .thub-home-review-spotlight,
    .thub-home .thub-home-review-arrow,
    .thub-home .thub-home-review-thumb,
    .thub-home .thub-home-testimonials-source {
        transition: none !important;
    }


    .thub-home .thub-home-review-progress-fill {
        animation: none !important;
    }

}

/* /THUB_HOME_TESTIMONIAL_SPOTLIGHT_CSS_V2 */


/* ==========================================================================
   TELERADIOLOGYHUB — RADIOLOGY AI V2
   Stronger visual composition / Lottie-ready design
   ========================================================================== */


/* ==========================================================================
   V2 FOUNDATIONS
   ========================================================================== */

.thub-ai-v2 {
    --thub-ai-v2-pale: #f3faf9;
    --thub-ai-v2-blue: #f5f8fc;
    --thub-ai-v2-ink: #092b4d;
    --thub-ai-v2-card: #ffffff;
    --thub-ai-v2-shadow:
        0 18px 50px rgba(18, 53, 91, 0.075);
}


/* ==========================================================================
   HERO — MORE VISUAL / LESS EDITORIAL
   ========================================================================== */

.thub-ai-v2 .thub-ai-hero {
    position: relative;

    grid-template-columns:
        minmax(0, 1.02fr)
        minmax(400px, 0.98fr);

    gap: clamp(3rem, 6vw, 7rem);

    min-height: 620px;
    padding-top: clamp(3rem, 5vw, 5.5rem);
    padding-bottom: clamp(4rem, 7vw, 7rem);
}

.thub-ai-v2 .thub-ai-hero::after {
    position: absolute;
    right: -9vw;
    bottom: 0;

    width: 36vw;
    height: 36vw;

    max-width: 520px;
    max-height: 520px;

    content: "";
    pointer-events: none;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(21, 154, 156, 0.08) 0,
            rgba(21, 154, 156, 0.025) 46%,
            transparent 70%
        );
}

.thub-ai-v2 .thub-ai-hero__content {
    position: relative;
    z-index: 2;

    align-self: center;
}

.thub-ai-v2 .thub-ai-hero h1 {
    max-width: 720px;

    font-size: clamp(3rem, 4.65vw, 4.85rem);
    line-height: 0.99;
}

.thub-ai-v2 .thub-ai-hero__visual {
    position: relative;
    z-index: 2;

    align-self: center;

    padding: 0;
}


/* ==========================================================================
   HERO DIAGNOSTIC VIEWER / FUTURE LOTTIE SLOT
   ========================================================================== */

.thub-ai-v2 .thub-ai-hero-animation {
    position: relative;

    margin-bottom: 1.5rem;
}

.thub-ai-v2 .thub-ai-hero-animation__viewer {
    position: relative;

    overflow: hidden;

    min-height: 390px;

    border: 1px solid rgba(18, 53, 91, 0.14);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #0a2948 0%,
            #0d3559 56%,
            #0b2e4d 100%
        );

    box-shadow:
        0 28px 70px rgba(9, 43, 77, 0.17);
}

.thub-ai-v2 .thub-ai-hero-animation__viewer::before {
    position: absolute;
    top: -120px;
    right: -100px;

    width: 300px;
    height: 300px;

    content: "";

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(62, 214, 209, 0.2),
            transparent 67%
        );
}

.thub-ai-v2 .thub-ai-hero-animation__toolbar {
    display: flex;
    gap: 6px;

    height: 42px;
    padding: 17px 18px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.09);
}

.thub-ai-v2 .thub-ai-hero-animation__toolbar span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);
}

.thub-ai-v2 .thub-ai-hero-animation__scan {
    position: absolute;
    top: 77px;
    left: 50%;

    width: 205px;
    height: 205px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse at center,
            rgba(242, 247, 249, 0.88) 0 11%,
            rgba(130, 151, 166, 0.8) 12% 19%,
            rgba(37, 67, 88, 0.95) 20% 29%,
            rgba(179, 193, 202, 0.76) 30% 39%,
            rgba(33, 58, 77, 0.96) 40% 52%,
            rgba(112, 132, 148, 0.75) 53% 61%,
            rgba(17, 43, 63, 1) 62% 72%,
            transparent 73%
        );

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.07),
        0 0 60px rgba(21, 154, 156, 0.18);
}

.thub-ai-v2 .thub-ai-hero-animation__scan-ring {
    position: absolute;
    inset: -13px;

    border: 1px solid rgba(82, 215, 210, 0.24);
    border-radius: 50%;
}

.thub-ai-v2 .thub-ai-hero-animation__focus {
    position: absolute;
    top: 45%;
    left: 61%;

    width: 38px;
    height: 32px;

    transform: translate(-50%, -50%);

    border: 2px solid #56d6d2;
    border-radius: 48% 52% 45% 55%;
}

.thub-ai-v2 .thub-ai-hero-animation__focus span {
    position: absolute;
    inset: -8px;

    border: 1px solid rgba(86, 214, 210, 0.36);
    border-radius: inherit;
}

.thub-ai-v2 .thub-ai-hero-animation__crosshair::before,
.thub-ai-v2 .thub-ai-hero-animation__crosshair::after {
    position: absolute;

    content: "";

    background: rgba(86, 214, 210, 0.27);
}

.thub-ai-v2 .thub-ai-hero-animation__crosshair::before {
    top: 50%;
    left: -16px;

    width: calc(100% + 32px);
    height: 1px;
}

.thub-ai-v2 .thub-ai-hero-animation__crosshair::after {
    top: -16px;
    left: 50%;

    width: 1px;
    height: calc(100% + 32px);
}

.thub-ai-v2 .thub-ai-hero-animation__signal {
    position: absolute;
    right: 24px;
    bottom: 24px;
    left: 24px;

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

    border:
        1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;

    background:
        rgba(7, 35, 60, 0.68);

    backdrop-filter: blur(10px);
}

.thub-ai-v2 .thub-ai-hero-animation__signal span {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;

    padding: 0.85rem 0.45rem;

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

    text-align: center;

    font-size: 0.64rem;
    line-height: 1.25;

    border-right:
        1px solid rgba(255, 255, 255, 0.08);
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:last-child {
    border-right: 0;
}

.thub-ai-v2 .thub-ai-hero-animation__signal i {
    color: #65d9d6;

    font-size: 0.88rem;
}

.thub-ai-v2 .thub-ai-hero-animation__caption {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;

    margin-top: 1rem;

    color: var(--thub-muted);

    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.thub-ai-v2 .thub-ai-hero-animation__caption i {
    color: var(--thub-teal-dark);

    font-size: 0.58rem;
}


/* Existing lifecycle becomes a secondary compact summary */

.thub-ai-v2 .thub-ai-hero__visual-label,
.thub-ai-v2 .thub-ai-lifecycle {
    display: none;
}


/* ==========================================================================
   TOP CAPABILITY STRIP
   ========================================================================== */

.thub-ai-v2 .thub-ai-capabilities {
    position: relative;
    z-index: 4;

    margin-top: clamp(-2.5rem, -3vw, -1.5rem);
    margin-bottom: clamp(4.5rem, 7vw, 7.5rem);
}

.thub-ai-v2 .thub-ai-capabilities__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));

    overflow: hidden;

    border: 1px solid var(--thub-border);
    border-radius: 18px;

    background: #fff;

    box-shadow: var(--thub-ai-v2-shadow);
}

.thub-ai-v2 .thub-ai-capability {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;

    padding: 1.45rem 1.25rem;

    border-right: 1px solid var(--thub-border);

    transition:
        background-color 0.22s ease,
        transform 0.22s ease;
}

.thub-ai-v2 .thub-ai-capability:last-child {
    border-right: 0;
}

.thub-ai-v2 .thub-ai-capability:hover {
    background: var(--thub-ai-v2-pale);
}

.thub-ai-v2 .thub-ai-capability i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    color: var(--thub-teal-dark);

    font-size: 1rem;

    border-radius: 12px;

    background: var(--thub-teal-soft);
}

.thub-ai-v2 .thub-ai-capability span {
    color: var(--thub-heading);

    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.35;
}


/* ==========================================================================
   LIFECYCLE / INTRO CHAPTER
   ========================================================================== */

.thub-ai-v2 .thub-ai-intro {
    position: relative;

    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);

    padding-right: max(1.25rem, calc((100vw - 1280px) / 2));
    padding-left: max(1.25rem, calc((100vw - 1280px) / 2));

    background: var(--thub-ai-v2-pale);
}

.thub-ai-v2 .thub-ai-intro .thub-ai-section-heading {
    padding-top: clamp(5rem, 8vw, 8rem);
}

.thub-ai-v2 .thub-ai-intro__body {
    padding-bottom: clamp(5rem, 8vw, 8rem);
}


/* ==========================================================================
   SERVICES — LARGE ALTERNATING VISUAL PANELS
   ========================================================================== */

.thub-ai-v2 .thub-ai-services {
    padding-top: clamp(1rem, 2vw, 2rem);
}

.thub-ai-v2 .thub-ai-service--v2 {
    position: relative;

    grid-template-columns:
        minmax(54px, 0.13fr)
        minmax(0, 0.87fr);

    gap: clamp(1.5rem, 3.5vw, 3.5rem);

    margin: 1.4rem 0;
    padding:
        clamp(2.5rem, 5vw, 4.75rem)
        clamp(2rem, 5vw, 5rem);

    border: 1px solid var(--thub-border);
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 14px 45px rgba(18, 53, 91, 0.045);
}

.thub-ai-v2 .thub-ai-service--even {
    background: var(--thub-ai-v2-blue);
}

.thub-ai-v2 .thub-ai-service--v2::before {
    position: absolute;
    top: 0;
    left: 0;

    width: 5px;
    height: 100%;

    content: "";

    border-radius: 22px 0 0 22px;

    background:
        linear-gradient(
            to bottom,
            var(--thub-teal),
            var(--thub-navy)
        );
}

.thub-ai-v2 .thub-ai-service__number {
    color: rgba(18, 53, 91, 0.28);

    font-size: clamp(2rem, 3.4vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.thub-ai-v2 .thub-ai-service__number::after {
    width: 30px;
    margin-top: 0.75rem;
}

.thub-ai-v2 .thub-ai-service__content {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(220px, 0.85fr);
    column-gap: clamp(2rem, 5vw, 5rem);
}

.thub-ai-v2 .thub-ai-service__icon,
.thub-ai-v2 .thub-ai-service__label,
.thub-ai-v2 .thub-ai-service h3 {
    grid-column: 1 / -1;
}

.thub-ai-v2 .thub-ai-service__icon {
    width: 52px;
    height: 52px;

    margin-bottom: 1.15rem;

    font-size: 1.15rem;

    border: 0;
    border-radius: 15px;

    background: var(--thub-teal-soft);
}

.thub-ai-v2 .thub-ai-service h3 {
    max-width: 760px;

    margin-bottom: 1.4rem;

    font-size: clamp(1.55rem, 2.1vw, 2.05rem);
    line-height: 1.12;
}

.thub-ai-v2 .thub-ai-service__content > p:not(.thub-ai-service__label) {
    grid-column: 1;

    max-width: 680px;

    font-size: 0.96rem;
    line-height: 1.72;
}

.thub-ai-v2 .thub-ai-service ul {
    grid-column: 2;
    grid-row: span 4;

    align-self: start;

    display: grid;
    grid-template-columns: 1fr;

    gap: 0;

    margin: 0;
    padding: 0;

    border-top: 1px solid var(--thub-border);

    list-style: none;
}

.thub-ai-v2 .thub-ai-service li {
    position: relative;

    padding:
        0.75rem
        0
        0.75rem
        1.25rem;

    color: var(--thub-heading);

    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;

    border-bottom: 1px solid var(--thub-border);
}

.thub-ai-v2 .thub-ai-service li::before {
    position: absolute;
    top: 1.02rem;
    left: 0;

    width: 5px;
    height: 5px;

    content: "";

    border-radius: 50%;

    background: var(--thub-teal);
}


/* ==========================================================================
   EXPERTISE — GENUINE FEATURE PANELS
   ========================================================================== */

.thub-ai-v2 .thub-ai-expertise {
    margin-top: clamp(5rem, 8vw, 8rem);
}

.thub-ai-v2 .thub-ai-expertise-grid--v2 {
    gap: 1rem;

    border: 0;
}

.thub-ai-v2 .thub-ai-expertise-grid--v2 article {
    min-height: 290px;

    padding: clamp(2.3rem, 4vw, 3.5rem);

    border: 1px solid var(--thub-border);
    border-radius: 18px;

    background: var(--thub-ai-v2-pale);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.thub-ai-v2 .thub-ai-expertise-grid--v2 article::before {
    display: none;
}

.thub-ai-v2 .thub-ai-expertise-grid--v2 article:hover {
    transform: translateY(-4px);

    box-shadow: var(--thub-ai-v2-shadow);
}

.thub-ai-v2 .thub-ai-icon-panel__icon {
    width: 56px;
    height: 56px;

    margin-bottom: 2rem;

    font-size: 1.18rem;

    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(18, 53, 91, 0.06);
}

.thub-ai-v2 .thub-ai-expertise-grid h3 {
    font-size: 1.4rem;
}


/* ==========================================================================
   ENGAGEMENT — HIGHER-CONTRAST 2 x 2
   ========================================================================== */

.thub-ai-v2 .thub-ai-engagement-grid--v2 {
    gap: 1rem;
}

.thub-ai-v2 .thub-ai-engagement-grid--v2 article {
    position: relative;

    overflow: hidden;

    min-height: 290px;

    border: 1px solid var(--thub-border);
    border-radius: 18px;

    background: #fff;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.thub-ai-v2 .thub-ai-engagement-grid--v2 article:hover {
    transform: translateY(-4px);

    box-shadow: var(--thub-ai-v2-shadow);
}

.thub-ai-v2 .thub-ai-engagement-grid--v2 article > span {
    color: rgba(18, 53, 91, 0.22);

    font-size: 2.4rem;
    font-weight: 700;
}

.thub-ai-v2 .thub-ai-engagement-icon {
    width: 52px;
    height: 52px;

    border: 0;
    border-radius: 15px;

    background: var(--thub-teal-soft);
}


/* ==========================================================================
   CLINICAL VALUE — DARK MID-PAGE VISUAL RESET
   ========================================================================== */

.thub-ai-v2 .thub-ai-clinical-value--v2 {
    position: relative;

    overflow: hidden;

    margin-top: clamp(6rem, 9vw, 9rem);
    margin-right: calc(50% - 50vw);
    margin-bottom: clamp(6rem, 9vw, 9rem);
    margin-left: calc(50% - 50vw);

    padding:
        clamp(5rem, 8vw, 8rem)
        max(1.25rem, calc((100vw - 1280px) / 2));

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

    background:
        linear-gradient(
            135deg,
            #082844,
            #103b61
        );
}

.thub-ai-v2 .thub-ai-clinical-value--v2::before {
    position: absolute;
    top: -160px;
    right: 8%;

    width: 430px;
    height: 430px;

    content: "";

    border:
        1px solid rgba(92, 220, 216, 0.13);
    border-radius: 50%;

    box-shadow:
        0 0 0 65px rgba(92, 220, 216, 0.025),
        0 0 0 130px rgba(92, 220, 216, 0.018);
}

.thub-ai-v2
.thub-ai-clinical-value--v2
.thub-ai-clinical-value__heading,
.thub-ai-v2
.thub-ai-clinical-value--v2
.thub-ai-clinical-value__content {
    position: relative;
    z-index: 2;
}

.thub-ai-v2
.thub-ai-clinical-value--v2
.thub-ai-eyebrow {
    color: #71ddda;
}

.thub-ai-v2
.thub-ai-clinical-value--v2
h2 {
    color: #fff;

    max-width: 520px;
}

.thub-ai-v2
.thub-ai-clinical-value--v2
p {
    color: rgba(255, 255, 255, 0.74);
}

.thub-ai-v2
.thub-ai-clinical-value--v2
strong {
    color: #fff;
}


/* ==========================================================================
   AUDIENCE — VISUAL GRID
   ========================================================================== */

.thub-ai-v2 .thub-ai-audience-grid--v2 {
    gap: 0.75rem;

    border: 0;
}

.thub-ai-v2 .thub-ai-audience-grid--v2 > div {
    min-height: 155px;

    padding: 1.5rem;

    border: 1px solid var(--thub-border);
    border-radius: 15px;

    background: var(--thub-ai-v2-blue);
}

.thub-ai-v2 .thub-ai-audience-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 11px;

    background: #fff;
}


/* ==========================================================================
   PROCESS — STEP CARDS
   ========================================================================== */

.thub-ai-v2 .thub-ai-process--v2 {
    align-items: start;
}

.thub-ai-v2 .thub-ai-process--v2 .thub-ai-process__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.75rem;

    counter-reset: thub-ai-process;
}

.thub-ai-v2 .thub-ai-process--v2 .thub-ai-process__steps li {
    position: relative;

    min-height: 155px;
    padding: 2rem 1.5rem 1.5rem;

    border: 1px solid var(--thub-border);
    border-radius: 14px;

    background: #fff;

    counter-increment: thub-ai-process;
}

.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
li::before {
    display: block;

    margin-bottom: 1rem;

    color: var(--thub-teal-dark);

    content:
        "0"
        counter(thub-ai-process);

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}


/* ==========================================================================
   FAQ — STRONGER DRAWER DESIGN
   ========================================================================== */

.thub-ai-v2 .thub-ai-faq--v2 {
    margin-top: clamp(6rem, 9vw, 9rem);
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);

    padding:
        clamp(5rem, 8vw, 8rem)
        max(1.25rem, calc((100vw - 1280px) / 2));

    background: var(--thub-ai-v2-pale);
}

.thub-ai-v2 .thub-ai-faq--v2 .thub-ai-faq__items {
    border-top: 0;
}

.thub-ai-v2 .thub-ai-faq-item {
    margin-bottom: 0.6rem;

    border: 1px solid var(--thub-border);
    border-radius: 12px;

    background: #fff;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.thub-ai-v2 .thub-ai-faq-item[open] {
    border-color:
        rgba(21, 154, 156, 0.28);

    background:
        rgba(234, 247, 247, 0.72);
}

.thub-ai-v2 .thub-ai-faq-item summary {
    padding:
        1.35rem
        1.25rem;
}

.thub-ai-v2 .thub-ai-faq-item__answer p {
    margin:
        0
        4rem
        1.5rem
        1.25rem;
}


/* ==========================================================================
   CTA POLISH
   ========================================================================== */

.thub-ai-v2 .thub-ai-project {
    margin-top: clamp(5rem, 8vw, 8rem);

    border-radius: 22px;
}

.thub-ai-v2 .thub-ai-radiologists {
    border-radius: 22px;
}


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

@media (max-width: 1199.98px) {

    .thub-ai-v2 .thub-ai-hero {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(360px, 0.85fr);

        min-height: 560px;
    }

    .thub-ai-v2 .thub-ai-capabilities__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .thub-ai-v2 .thub-ai-capability:nth-child(3) {
        border-right: 0;
    }

    .thub-ai-v2 .thub-ai-capability:nth-child(-n + 3) {
        border-bottom: 1px solid var(--thub-border);
    }

}


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

@media (max-width: 991.98px) {

    .thub-ai-v2 .thub-ai-hero {
        grid-template-columns: 1fr;

        min-height: 0;
    }

    .thub-ai-v2 .thub-ai-hero__content {
        max-width: 760px;
    }

    .thub-ai-v2 .thub-ai-hero__visual {
        max-width: 700px;
    }

    .thub-ai-v2 .thub-ai-service__content {
        grid-template-columns: 1fr;
    }

    .thub-ai-v2
    .thub-ai-service__content
    > p:not(.thub-ai-service__label),
    .thub-ai-v2 .thub-ai-service ul {
        grid-column: 1;
    }

    .thub-ai-v2 .thub-ai-service ul {
        margin-top: 1.5rem;
    }

}


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

@media (max-width: 767.98px) {

    .thub-ai-v2 .thub-ai-hero {
        gap: 2.75rem;

        padding-top: 1.6rem;
        padding-bottom: 4rem;
    }

    .thub-ai-v2 .thub-ai-hero h1 {
        font-size:
            clamp(2.35rem, 10.8vw, 3.25rem);
    }

    .thub-ai-v2 .thub-ai-hero-animation__viewer {
        min-height: 335px;

        border-radius: 18px;
    }

    .thub-ai-v2 .thub-ai-hero-animation__scan {
        top: 68px;

        width: 175px;
        height: 175px;
    }

    .thub-ai-v2 .thub-ai-hero-animation__signal {
        right: 14px;
        bottom: 14px;
        left: 14px;
    }

    .thub-ai-v2
    .thub-ai-hero-animation__signal
    span {
        padding: 0.7rem 0.25rem;

        font-size: 0.56rem;
    }

    .thub-ai-v2
    .thub-ai-hero-animation__caption {
        flex-wrap: wrap;

        font-size: 0.63rem;
    }

    .thub-ai-v2 .thub-ai-capabilities {
        margin-top: 0;
        margin-bottom: 4rem;
    }

    .thub-ai-v2 .thub-ai-capabilities__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        border-radius: 14px;
    }

    .thub-ai-v2 .thub-ai-capability {
        min-height: 120px;

        padding: 1.2rem;

        border-right: 1px solid var(--thub-border);
        border-bottom: 1px solid var(--thub-border);
    }

    .thub-ai-v2 .thub-ai-capability:nth-child(2n) {
        border-right: 0;
    }

    .thub-ai-v2 .thub-ai-capability:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .thub-ai-v2 .thub-ai-service--v2 {
        grid-template-columns: 1fr;

        gap: 0.5rem;

        margin: 1rem 0;
        padding: 2rem 1.35rem 2.1rem;

        border-radius: 16px;
    }

    .thub-ai-v2 .thub-ai-service--v2::before {
        width: 4px;

        border-radius: 16px 0 0 16px;
    }

    .thub-ai-v2 .thub-ai-service__number {
        font-size: 1.5rem;
    }

    .thub-ai-v2 .thub-ai-service__number::after {
        display: none;
    }

    .thub-ai-v2 .thub-ai-service__icon {
        width: 44px;
        height: 44px;

        margin-top: 0.5rem;
    }

    .thub-ai-v2 .thub-ai-service h3 {
        font-size: 1.45rem;
    }

    .thub-ai-v2 .thub-ai-expertise-grid--v2 article,
    .thub-ai-v2 .thub-ai-engagement-grid--v2 article {
        min-height: 0;
    }

    .thub-ai-v2
    .thub-ai-process--v2
    .thub-ai-process__steps {
        grid-template-columns: 1fr;
    }

    .thub-ai-v2
    .thub-ai-process--v2
    .thub-ai-process__steps
    li {
        min-height: 0;
    }

    .thub-ai-v2 .thub-ai-faq-item__answer p {
        margin-right: 1.25rem;
    }

}


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

@media (max-width: 479.98px) {

    .thub-ai-v2 .thub-ai-hero-animation__signal {
        grid-template-columns: repeat(2, 1fr);
    }

    .thub-ai-v2
    .thub-ai-hero-animation__signal
    span:nth-child(2) {
        border-right: 0;
    }

    .thub-ai-v2
    .thub-ai-hero-animation__signal
    span:nth-child(-n + 2) {
        border-bottom:
            1px solid rgba(255, 255, 255, 0.08);
    }

}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-capability,
    .thub-ai-v2 .thub-ai-expertise-grid--v2 article,
    .thub-ai-v2 .thub-ai-engagement-grid--v2 article {
        transition: none;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI — DOTLOTTIE HERO LAYER
   ========================================================================== */

.thub-ai-v2 .thub-ai-hero-lottie {
    position: absolute;
    inset: 42px 0 0;

    z-index: 2;

    display: block;

    width: 100%;
    height: calc(100% - 42px);

    opacity: 0;

    transition: opacity 0.35s ease;
}

.thub-ai-v2 .thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-lottie {
    opacity: 1;
}

.thub-ai-v2 .thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__scan,
.thub-ai-v2 .thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__scan-ring,
.thub-ai-v2 .thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__focus,
.thub-ai-v2 .thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__crosshair {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-hero-lottie {
        display: none;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.1
   Compact capability grid / lifecycle rail
   Scoped override only
   ========================================================================== */


/* --------------------------------------------------------------------------
   Capability strip
   -------------------------------------------------------------------------- */

.thub-ai-v2
.thub-ai-capabilities--v21
.thub-ai-capabilities__grid {
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
}

.thub-ai-v2
.thub-ai-capabilities--v21
.thub-ai-capability {
    min-height: 150px;

    color: inherit;
    text-decoration: none;
}

.thub-ai-v2
.thub-ai-capabilities--v21
.thub-ai-capability i {
    width: 48px;
    height: 48px;

    font-size: 1.08rem;
}

.thub-ai-v2
.thub-ai-capabilities--v21
.thub-ai-capability span {
    font-size: 0.9rem;
    line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {

    .thub-ai-v2
    .thub-ai-capabilities--v21
    .thub-ai-capability:hover {
        transform: translateY(-3px);

        background: var(--thub-ai-v2-pale);
    }

}


/* --------------------------------------------------------------------------
   Lifecycle rail
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-lifecycle-rail {
    position: relative;

    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 0;

    margin: 0;
    padding:
        0
        0
        clamp(4.5rem, 7vw, 7rem);

    list-style: none;
}

.thub-ai-v2 .thub-ai-lifecycle-rail::before {
    position: absolute;
    top: 17px;
    right: 8%;
    left: 8%;

    height: 1px;

    content: "";

    background:
        linear-gradient(
            to right,
            rgba(21, 154, 156, 0.22),
            rgba(18, 53, 91, 0.28)
        );
}

.thub-ai-v2 .thub-ai-lifecycle-rail li {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;

    text-align: center;
}

.thub-ai-v2 .thub-ai-lifecycle-rail li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    color: var(--thub-teal-dark);

    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.05em;

    border:
        1px solid rgba(21, 154, 156, 0.22);
    border-radius: 50%;

    background: #fff;
}

.thub-ai-v2 .thub-ai-lifecycle-rail li strong {
    color: var(--thub-heading);

    font-size: 0.78rem;
    font-weight: 700;
}


/* --------------------------------------------------------------------------
   Six service cards — 2 columns x 3 rows
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-service-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1rem;

    margin-top: 1.4rem;
}

.thub-ai-v2 .thub-ai-service--compact {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 440px;

    gap: 0;

    margin: 0;
    padding:
        clamp(2rem, 3vw, 2.8rem);

    scroll-margin-top: 120px;

    border: 1px solid var(--thub-border);
    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 12px 34px rgba(18, 53, 91, 0.045);
}

.thub-ai-v2
.thub-ai-service--compact:nth-child(4n + 2),
.thub-ai-v2
.thub-ai-service--compact:nth-child(4n + 3) {
    background: var(--thub-ai-v2-blue);
}

.thub-ai-v2 .thub-ai-service--compact::before {
    width: 4px;

    border-radius: 20px 0 0 20px;
}

.thub-ai-v2 .thub-ai-service__top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.65rem;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__number {
    font-size: 1.8rem;
    line-height: 1;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__number::after {
    width: 24px;
    margin-top: 0.65rem;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__icon {
    width: 50px;
    height: 50px;

    margin: 0;

    flex: 0 0 auto;

    font-size: 1.05rem;

    border-radius: 15px;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__content {
    display: block;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__label {
    margin-bottom: 0.55rem;
}

.thub-ai-v2
.thub-ai-service--compact
h3 {
    margin-bottom: 1rem;

    font-size:
        clamp(1.35rem, 1.8vw, 1.75rem);

    line-height: 1.13;
}

.thub-ai-v2 .thub-ai-service__summary p {
    margin: 0;

    color: var(--thub-text);

    font-size: 0.94rem;
    line-height: 1.67;
}


/* --------------------------------------------------------------------------
   Service details drawer
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-service__details {
    margin-top: auto;
    padding-top: 1.4rem;
}

.thub-ai-v2 .thub-ai-service__details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding:
        1rem
        0
        0;

    color: var(--thub-navy);

    cursor: pointer;

    font-size: 0.82rem;
    font-weight: 750;

    border-top: 1px solid var(--thub-border);

    list-style: none;
}

.thub-ai-v2
.thub-ai-service__details
summary::-webkit-details-marker {
    display: none;
}

.thub-ai-v2
.thub-ai-service__details
summary i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    flex: 0 0 auto;

    color: var(--thub-teal-dark);

    font-size: 0.7rem;

    border-radius: 50%;

    background: var(--thub-teal-soft);

    transition:
        transform 0.2s ease;
}

.thub-ai-v2
.thub-ai-service__details[open]
summary i {
    transform: rotate(45deg);
}

.thub-ai-v2
.thub-ai-service__details-body {
    padding-top: 1rem;
}

.thub-ai-v2
.thub-ai-service__details-body
p {
    margin:
        0
        0
        1rem;

    color: var(--thub-muted);

    font-size: 0.88rem;
    line-height: 1.65;
}

.thub-ai-v2
.thub-ai-service__details-body
ul {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0;

    margin: 0;
    padding: 0;

    border-top: 1px solid var(--thub-border);

    list-style: none;
}

.thub-ai-v2
.thub-ai-service__details-body
li {
    position: relative;

    padding:
        0.72rem
        0.6rem
        0.72rem
        1.2rem;

    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.38;

    border-bottom: 1px solid var(--thub-border);
}

.thub-ai-v2
.thub-ai-service__details-body
li::before {
    position: absolute;
    top: 1rem;
    left: 0;

    width: 5px;
    height: 5px;

    content: "";

    border-radius: 50%;

    background: var(--thub-teal);
}


/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .thub-ai-v2
    .thub-ai-capabilities--v21
    .thub-ai-capabilities__grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .thub-ai-v2
    .thub-ai-lifecycle-rail {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        row-gap: 1.5rem;
    }

    .thub-ai-v2
    .thub-ai-lifecycle-rail::before {
        display: none;
    }

}


/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

    .thub-ai-v2
    .thub-ai-capabilities--v21
    .thub-ai-capabilities__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .thub-ai-v2
    .thub-ai-capabilities--v21
    .thub-ai-capability {
        min-height: 122px;
    }

    .thub-ai-v2
    .thub-ai-lifecycle-rail {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 1rem;

        padding-bottom: 4rem;
    }

    .thub-ai-v2
    .thub-ai-lifecycle-rail
    li {
        min-height: 95px;

        justify-content: center;

        padding: 1rem;

        border: 1px solid var(--thub-border);
        border-radius: 12px;

        background: #fff;
    }

    .thub-ai-v2
    .thub-ai-service-grid {
        grid-template-columns: 1fr;

        gap: 0.8rem;
    }

    .thub-ai-v2
    .thub-ai-service--compact {
        min-height: 0;

        padding: 1.7rem 1.35rem;

        border-radius: 16px;
    }

    .thub-ai-v2
    .thub-ai-service--compact::before {
        border-radius: 16px 0 0 16px;
    }

    .thub-ai-v2
    .thub-ai-service--compact
    h3 {
        font-size: 1.38rem;
    }

    .thub-ai-v2
    .thub-ai-service__summary
    p {
        font-size: 0.91rem;
    }

    .thub-ai-v2
    .thub-ai-service__details-body
    ul {
        grid-template-columns: 1fr;
    }

}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2
    .thub-ai-service__details
    summary i,

    .thub-ai-v2
    .thub-ai-capabilities--v21
    .thub-ai-capability {
        transition: none;
        transform: none;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.2
   Visual containment + natural-height cards
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. SAFE SECTION CONTAINMENT
   Stop viewport-breakout calculations from clipping content.
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-intro,
.thub-ai-v2 .thub-ai-clinical-value--v2,
.thub-ai-v2 .thub-ai-faq--v2 {
    margin-right: 0;
    margin-left: 0;

    padding-right:
        clamp(1.5rem, 4vw, 4rem);

    padding-left:
        clamp(1.5rem, 4vw, 4rem);
}


/* Keep the visual chapters intentional after removing full-viewport breakout. */

.thub-ai-v2 .thub-ai-intro {
    border-radius: 20px;
}

.thub-ai-v2 .thub-ai-clinical-value--v2 {
    border-radius: 22px;
}

.thub-ai-v2 .thub-ai-faq--v2 {
    border-radius: 20px;
}


/* Prevent grid children themselves from creating horizontal overflow. */

.thub-ai-v2 .thub-ai-intro > *,
.thub-ai-v2 .thub-ai-clinical-value--v2 > *,
.thub-ai-v2 .thub-ai-faq--v2 > * {
    min-width: 0;
}


/* --------------------------------------------------------------------------
   2. PROCESS CARDS
   Undo old 58px/content grid because V2 cards use their own card composition.
   -------------------------------------------------------------------------- */

.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps {
    align-items: start;

    gap: 1rem;
}


.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
li {
    display: block;

    grid-template-columns: none;

    min-width: 0;
    min-height: 0;

    padding:
        1.55rem
        1.55rem
        1.45rem;

    align-self: start;
}


/*
 * HTML already contains the correct 01–06 number.
 * Disable the V2 generated counter so numbers are not duplicated.
 */

.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
li::before {
    display: none;

    content: none;
}


.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
li > span {
    display: block;

    margin-bottom: 1rem;

    padding: 0;

    color: var(--thub-teal-dark);

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
}


.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
li > div {
    width: 100%;
    min-width: 0;
}


.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
h3 {
    max-width: none;

    margin:
        0
        0
        0.55rem;

    font-size: 1rem;
    line-height: 1.3;
}


.thub-ai-v2
.thub-ai-process--v2
.thub-ai-process__steps
p {
    max-width: none;

    margin: 0;

    font-size: 0.91rem;
    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   3. COMPACT SERVICE CARDS
   Let cards size according to actual visible content.
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-service-grid {
    align-items: start;
}


.thub-ai-v2 .thub-ai-service--compact {
    min-height: 0;

    align-self: start;
}


/*
 * Drawer no longer needs to be pushed to the bottom of an artificial
 * 440px card.
 */

.thub-ai-v2 .thub-ai-service--compact
.thub-ai-service__details {
    margin-top: 1.35rem;
}


/* --------------------------------------------------------------------------
   4. DESKTOP SECTION RHYTHM
   Slightly reduce excessive vertical scale around contained visual chapters.
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-clinical-value--v2 {
    margin-top:
        clamp(4.5rem, 7vw, 7rem);

    margin-bottom:
        clamp(4.5rem, 7vw, 7rem);

    padding-top:
        clamp(4rem, 6.5vw, 6rem);

    padding-bottom:
        clamp(4rem, 6.5vw, 6rem);
}


.thub-ai-v2 .thub-ai-faq--v2 {
    margin-top:
        clamp(4.5rem, 7vw, 7rem);

    padding-top:
        clamp(4rem, 6.5vw, 6rem);

    padding-bottom:
        clamp(4rem, 6.5vw, 6rem);
}


/* --------------------------------------------------------------------------
   5. TABLET / MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .thub-ai-v2 .thub-ai-intro,
    .thub-ai-v2 .thub-ai-clinical-value--v2,
    .thub-ai-v2 .thub-ai-faq--v2 {
        padding-right: 1.5rem;
        padding-left: 1.5rem;

        border-radius: 16px;
    }

}


@media (max-width: 767.98px) {

    .thub-ai-v2 .thub-ai-intro,
    .thub-ai-v2 .thub-ai-clinical-value--v2,
    .thub-ai-v2 .thub-ai-faq--v2 {
        padding-right: 1.15rem;
        padding-left: 1.15rem;

        border-radius: 14px;
    }


    .thub-ai-v2
    .thub-ai-process--v2
    .thub-ai-process__steps
    li {
        padding: 1.35rem;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.3
   Final micro-polish
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. SERVICE CARDS — MORE BREATHING ROOM WITHOUT ARTIFICIAL HEIGHT
   -------------------------------------------------------------------------- */

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__top {
    margin-bottom: 1.45rem;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__label {
    margin-bottom: 0.65rem;
}

.thub-ai-v2
.thub-ai-service--compact
h3 {
    margin-bottom: 1.15rem;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__summary p {
    line-height: 1.72;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__details {
    margin-top: 1.5rem;
}

.thub-ai-v2
.thub-ai-service--compact
.thub-ai-service__details summary {
    padding-top: 1.05rem;
}


/* --------------------------------------------------------------------------
   2. LIFECYCLE RAIL — STRONGER VISUAL PRESENCE
   -------------------------------------------------------------------------- */

.thub-ai-v2
.thub-ai-lifecycle-rail li span {
    width: 38px;
    height: 38px;

    font-size: 0.68rem;
}

.thub-ai-v2
.thub-ai-lifecycle-rail li strong {
    font-size: 0.84rem;
    line-height: 1.3;
}


/* --------------------------------------------------------------------------
   3. ENGAGEMENT CARDS — NATURAL HEIGHT + BETTER TEXT SCALE
   From one specialist to a dedicated radiology team
   -------------------------------------------------------------------------- */

.thub-ai-v2
.thub-ai-engagement-grid--v2 {
    align-items: start;
}

.thub-ai-v2
.thub-ai-engagement-grid--v2 article {
    min-height: 0;

    align-self: start;

    padding:
        1.7rem
        1.6rem
        1.6rem;
}

.thub-ai-v2
.thub-ai-engagement-grid--v2 article > span {
    margin-bottom: 1rem;
}

.thub-ai-v2
.thub-ai-engagement-grid--v2 h3 {
    margin-bottom: 0.7rem;

    font-size: 1.03rem;
    line-height: 1.3;
}

.thub-ai-v2
.thub-ai-engagement-grid--v2 p {
    margin-bottom: 0;

    font-size: 0.9rem;
    line-height: 1.62;
}


/* --------------------------------------------------------------------------
   4. TABLET
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {

    .thub-ai-v2
    .thub-ai-engagement-grid--v2 article {
        padding: 1.55rem;
    }

}


/* --------------------------------------------------------------------------
   5. MOBILE
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {

    .thub-ai-v2
    .thub-ai-lifecycle-rail li span {
        width: 36px;
        height: 36px;
    }

    .thub-ai-v2
    .thub-ai-lifecycle-rail li strong {
        font-size: 0.8rem;
    }

    .thub-ai-v2
    .thub-ai-engagement-grid--v2 article {
        padding: 1.45rem;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.4
   Robust visible/autoplay Lottie layer
   ========================================================================== */


/*
 * The animation must not remain invisible merely because a JS `load`
 * callback was missed. Native autoplay is now enabled in the component.
 *
 * Static scan artwork remains underneath as a graceful fallback.
 */

.thub-ai-v2 .thub-ai-hero-lottie {
    opacity: 1;
}


/*
 * Once the component exposes its DotLottie instance, remove the central
 * static scan artwork so the animated clinical visual becomes the focal
 * element.
 */

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__scan,

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__scan-ring,

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__focus,

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__crosshair {
    opacity: 0;
}


/*
 * Respect reduced motion: retain the static diagnostic viewer rather than
 * playing the animation.
 */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-hero-lottie {
        display: none;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.5
   Hero stabilization before CSS animation rebuild
   ========================================================================== */


/*
 * Retire the unreliable DotLottie visual layer from rendering.
 *
 * The asset/runtime remain on disk for rollback and audit purposes.
 * The existing static radiology viewer becomes the permanent visual base.
 */

.thub-ai-v2 .thub-ai-hero-lottie {
    display: none !important;
}


/*
 * Ensure the static radiology artwork remains visible even if an older
 * readiness class exists on the viewer.
 */

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__scan,

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__scan-ring,

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__focus,

.thub-ai-v2
.thub-ai-hero-animation__viewer.is-lottie-ready
.thub-ai-hero-animation__crosshair {
    opacity: 1;
}


/*
 * Keep the static viewer stable for reduced-motion users too.
 */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-hero-lottie {
        display: none !important;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.6
   CSS-based clinical imaging animation
   ========================================================================== */


/* --------------------------------------------------------------------------
   Stable animation canvas
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__viewer {
    position: relative;
    overflow: hidden;
}


/*
 * Moving scan beam.
 *
 * This intentionally sits above the static scan artwork but below the
 * informational badges.
 */

.thub-ai-v2 .thub-ai-hero-animation__viewer::after {
    content: "";

    position: absolute;
    z-index: 4;

    top: 42px;
    bottom: 0;
    left: -22%;

    width: 18%;

    pointer-events: none;

    opacity: 0;

    background:
        linear-gradient(
            90deg,
            rgba(21, 154, 156, 0) 0%,
            rgba(21, 154, 156, 0.07) 30%,
            rgba(21, 154, 156, 0.38) 52%,
            rgba(21, 154, 156, 0.08) 70%,
            rgba(21, 154, 156, 0) 100%
        );

    filter: blur(0.2px);

    animation:
        thub-ai-scan-beam
        7s
        ease-in-out
        infinite;
}


/* --------------------------------------------------------------------------
   Scan anatomy — quiet continuous motion
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__scan {
    transform-origin: 50% 50%;

    animation:
        thub-ai-scan-breathe
        6s
        ease-in-out
        infinite;
}


/* --------------------------------------------------------------------------
   Outer scan ring — pulse / acquisition cycle
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__scan-ring {
    transform-origin: 50% 50%;

    animation:
        thub-ai-ring-pulse
        4.8s
        ease-in-out
        infinite;
}


/* --------------------------------------------------------------------------
   ROI / focus — radiologist annotation cue
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__focus {
    transform-origin: 50% 50%;

    animation:
        thub-ai-focus-pulse
        3.6s
        ease-in-out
        infinite;
}

.thub-ai-v2 .thub-ai-hero-animation__focus span {
    animation:
        thub-ai-focus-node
        1.8s
        ease-in-out
        infinite;
}


/* --------------------------------------------------------------------------
   Crosshair — subtle targeting / review movement
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__crosshair {
    animation:
        thub-ai-crosshair-drift
        5.6s
        ease-in-out
        infinite;
}


/* --------------------------------------------------------------------------
   Workflow badges
   Annotation → Expert review → Ground truth → Validation
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__signal span {
    position: relative;

    transform: translateY(0);

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;

    animation:
        thub-ai-signal-step
        8s
        ease-in-out
        infinite;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(1) {
    animation-delay: 0s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(2) {
    animation-delay: 2s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(3) {
    animation-delay: 4s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(4) {
    animation-delay: 6s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span i {
    animation:
        thub-ai-signal-icon
        8s
        ease-in-out
        infinite;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(1) i {
    animation-delay: 0s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(2) i {
    animation-delay: 2s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(3) i {
    animation-delay: 4s;
}

.thub-ai-v2 .thub-ai-hero-animation__signal span:nth-child(4) i {
    animation-delay: 6s;
}


/* --------------------------------------------------------------------------
   Viewer toolbar — quiet diagnostic-console activity
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__toolbar span {
    animation:
        thub-ai-toolbar-pulse
        3.6s
        ease-in-out
        infinite;
}

.thub-ai-v2 .thub-ai-hero-animation__toolbar span:nth-child(2) {
    animation-delay: 0.45s;
}

.thub-ai-v2 .thub-ai-hero-animation__toolbar span:nth-child(3) {
    animation-delay: 0.9s;
}


/* --------------------------------------------------------------------------
   Caption flow
   Medical imaging → Clinical intelligence → AI validation
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__caption i {
    animation:
        thub-ai-caption-flow
        2.6s
        ease-in-out
        infinite;
}

.thub-ai-v2 .thub-ai-hero-animation__caption i:nth-of-type(2) {
    animation-delay: 1.3s;
}


/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */

@keyframes thub-ai-scan-beam {

    0%,
    10% {
        left: -22%;
        opacity: 0;
    }

    18% {
        opacity: 0.75;
    }

    48% {
        opacity: 0.9;
    }

    78% {
        opacity: 0.7;
    }

    90%,
    100% {
        left: 104%;
        opacity: 0;
    }

}


@keyframes thub-ai-scan-breathe {

    0%,
    100% {
        transform:
            rotate(-0.6deg)
            scale(1);
    }

    50% {
        transform:
            rotate(0.8deg)
            scale(1.018);
    }

}


@keyframes thub-ai-ring-pulse {

    0%,
    100% {
        transform: scale(0.985);
        opacity: 0.56;
    }

    48% {
        transform: scale(1.035);
        opacity: 0.95;
    }

    64% {
        transform: scale(1.01);
        opacity: 0.72;
    }

}


@keyframes thub-ai-focus-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.78;
        filter:
            drop-shadow(
                0 0 0
                rgba(21, 154, 156, 0)
            );
    }

    45% {
        transform: scale(1.055);
        opacity: 1;
        filter:
            drop-shadow(
                0 0 9px
                rgba(21, 154, 156, 0.34)
            );
    }

}


@keyframes thub-ai-focus-node {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.28);
        opacity: 1;
    }

}


@keyframes thub-ai-crosshair-drift {

    0%,
    100% {
        transform:
            translate(-3px, 2px);
        opacity: 0.5;
    }

    35% {
        transform:
            translate(4px, -3px);
        opacity: 0.88;
    }

    68% {
        transform:
            translate(1px, 4px);
        opacity: 0.72;
    }

}


@keyframes thub-ai-signal-step {

    0%,
    11%,
    100% {
        transform: translateY(0);
        background-color:
            rgba(255, 255, 255, 0.82);
    }

    4%,
    7% {
        transform: translateY(-3px);
        background-color:
            rgba(234, 247, 247, 0.98);
    }

}


@keyframes thub-ai-signal-icon {

    0%,
    11%,
    100% {
        transform: scale(1);
        opacity: 0.68;
    }

    4%,
    7% {
        transform: scale(1.16);
        opacity: 1;
    }

}


@keyframes thub-ai-toolbar-pulse {

    0%,
    100% {
        opacity: 0.38;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }

}


@keyframes thub-ai-caption-flow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.4;
    }

    50% {
        transform: translateX(3px);
        opacity: 1;
    }

}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-hero-animation__viewer::after,
    .thub-ai-v2 .thub-ai-hero-animation__scan,
    .thub-ai-v2 .thub-ai-hero-animation__scan-ring,
    .thub-ai-v2 .thub-ai-hero-animation__focus,
    .thub-ai-v2 .thub-ai-hero-animation__focus span,
    .thub-ai-v2 .thub-ai-hero-animation__crosshair,
    .thub-ai-v2 .thub-ai-hero-animation__signal span,
    .thub-ai-v2 .thub-ai-hero-animation__signal span i,
    .thub-ai-v2 .thub-ai-hero-animation__toolbar span,
    .thub-ai-v2 .thub-ai-hero-animation__caption i {
        animation: none !important;
    }

    .thub-ai-v2 .thub-ai-hero-animation__viewer::after {
        display: none;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.7
   Hero workflow signal contrast
   ========================================================================== */


/* --------------------------------------------------------------------------
   Workflow strip base
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__signal {
    background:
        rgba(7, 37, 64, 0.42);

    border-color:
        rgba(79, 209, 205, 0.16);
}


/* --------------------------------------------------------------------------
   Individual workflow cards
   -------------------------------------------------------------------------- */

.thub-ai-v2 .thub-ai-hero-animation__signal span {
    color:
        rgba(246, 251, 253, 0.96);

    background-color:
        rgba(8, 42, 72, 0.82);

    border-color:
        rgba(92, 219, 215, 0.18);

    text-shadow:
        0 1px 1px
        rgba(0, 0, 0, 0.18);
}


/* Icons remain recognisably teal against the dark tiles. */

.thub-ai-v2 .thub-ai-hero-animation__signal span i {
    color: #63ddd9;

    opacity: 0.94;
}


/* Slight separators between workflow stages. */

.thub-ai-v2
.thub-ai-hero-animation__signal
span + span {
    border-left-color:
        rgba(116, 223, 219, 0.16);
}


/* --------------------------------------------------------------------------
   Animated active state
   Dark → teal highlight → dark
   -------------------------------------------------------------------------- */

@keyframes thub-ai-signal-step {

    0%,
    11%,
    100% {
        transform:
            translateY(0);

        color:
            rgba(246, 251, 253, 0.96);

        background-color:
            rgba(8, 42, 72, 0.82);

        border-color:
            rgba(92, 219, 215, 0.18);

        box-shadow:
            inset 0 0 0 0
            rgba(99, 221, 217, 0);
    }

    4%,
    7% {
        transform:
            translateY(-3px);

        color:
            #082b47;

        background-color:
            rgba(191, 242, 239, 0.98);

        border-color:
            rgba(99, 221, 217, 0.72);

        box-shadow:
            0 8px 20px
            rgba(0, 22, 42, 0.16),
            inset 0 0 0 1px
            rgba(255, 255, 255, 0.34);
    }

}


@keyframes thub-ai-signal-icon {

    0%,
    11%,
    100% {
        transform:
            scale(1);

        color:
            #63ddd9;

        opacity: 0.94;
    }

    4%,
    7% {
        transform:
            scale(1.16);

        color:
            #0a6170;

        opacity: 1;
    }

}


/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2
    .thub-ai-hero-animation__signal span {
        color:
            rgba(246, 251, 253, 0.96);

        background-color:
            rgba(8, 42, 72, 0.82);
    }

    .thub-ai-v2
    .thub-ai-hero-animation__signal span i {
        color: #63ddd9;
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.8
   Center ROI / focus overlay
   ========================================================================== */


/*
 * Center the two thin ROI/focus rings on the scan anatomy.
 */

.thub-ai-v2 .thub-ai-hero-animation__focus {
    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/*
 * Preserve centering throughout the pulse animation.
 *
 * V2.6 animated only `scale()`, which replaced the element's base
 * translate(-50%, -50%) transform.
 */

@keyframes thub-ai-focus-pulse {

    0%,
    100% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0.78;

        filter:
            drop-shadow(
                0 0 0
                rgba(21, 154, 156, 0)
            );
    }

    45% {
        transform:
            translate(-50%, -50%)
            scale(1.055);

        opacity: 1;

        filter:
            drop-shadow(
                0 0 9px
                rgba(21, 154, 156, 0.34)
            );
    }

}


/*
 * Reduced-motion state remains geometrically centered.
 */

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-hero-animation__focus {
        transform:
            translate(-50%, -50%)
            scale(1);
    }

}


/* ==========================================================================
   THUB RADIOLOGY AI V2.9
   True circular ROI / focus overlays
   ========================================================================== */


/*
 * V2.8 centered the focus overlay.
 *
 * The original artwork used 38px × 32px with an asymmetric border-radius,
 * which intentionally produced an oval. Make the inner focus outline a
 * true circle instead.
 */

.thub-ai-v2 .thub-ai-hero-animation__focus {
    width: 38px;
    height: 38px;

    border-radius: 50%;
}


/*
 * The secondary outline already expands equally in every direction through
 * inset:-8px. With a circular parent it therefore becomes a concentric
 * 54px × 54px circle.
 */

.thub-ai-v2 .thub-ai-hero-animation__focus span {
    border-radius: 50%;
}


/*
 * Retain V2.8 geometry explicitly so later cascade changes cannot move the
 * concentric circles away from the scan centre.
 */

.thub-ai-v2 .thub-ai-hero-animation__focus {
    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        scale(1);
}


/*
 * Preserve centering throughout the pulse.
 */

@keyframes thub-ai-focus-pulse {

    0%,
    100% {
        transform:
            translate(-50%, -50%)
            scale(1);

        opacity: 0.78;

        filter:
            drop-shadow(
                0 0 0
                rgba(21, 154, 156, 0)
            );
    }

    45% {
        transform:
            translate(-50%, -50%)
            scale(1.055);

        opacity: 1;

        filter:
            drop-shadow(
                0 0 9px
                rgba(21, 154, 156, 0.34)
            );
    }

}


@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-hero-animation__focus {
        transform:
            translate(-50%, -50%)
            scale(1);
    }

}

/* ==========================================================
   THUB RADIOLOGY AI — TRUST NETWORK V1
   V3.0 AUTHORITY / SOCIAL PROOF SECTION
   ========================================================== */

.thub-ai-v2 .thub-ai-trust {
    position: relative;
    padding: clamp(4rem, 7vw, 6.5rem) 0;
    overflow: hidden;
}

.thub-ai-v2 .thub-ai-trust::before {
    content: "";
    position: absolute;
    inset: 8% auto auto 50%;
    width: min(780px, 92vw);
    height: min(420px, 52vw);
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(21, 154, 156, 0.11) 0%,
            rgba(21, 154, 156, 0.04) 45%,
            rgba(21, 154, 156, 0) 72%
        );
    pointer-events: none;
}

.thub-ai-v2 .thub-ai-trust__intro {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
}

.thub-ai-v2 .thub-ai-trust__intro h2 {
    margin-bottom: 1rem;
}

.thub-ai-v2 .thub-ai-trust__intro > p:last-child {
    max-width: 720px;
    margin: 0 auto;
    color: var(--thub-text-muted, #566676);
}

.thub-ai-v2 .thub-ai-trust__metrics {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    max-width: 1040px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border:
        1px solid
        rgba(21, 154, 156, 0.18);
    border-radius: 22px;
    background:
        linear-gradient(
            135deg,
            rgba(11, 41, 72, 0.985),
            rgba(18, 53, 91, 0.965)
        );
    box-shadow:
        0 18px 45px
        rgba(11, 41, 72, 0.12);
}

.thub-ai-v2 .thub-ai-trust__metric {
    position: relative;
    min-width: 0;
    padding: 1.5rem 1.15rem;
    text-align: center;
}

.thub-ai-v2
.thub-ai-trust__metric
+
.thub-ai-trust__metric::before {
    content: "";
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background:
        rgba(255, 255, 255, 0.14);
}

.thub-ai-v2 .thub-ai-trust__metric strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #ffffff;
    font-size:
        clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.thub-ai-v2 .thub-ai-trust__metric span {
    display: block;
    color:
        rgba(234, 247, 247, 0.84);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.35;
    letter-spacing: 0.025em;
}

.thub-ai-v2 .thub-ai-trust__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1040px;
    margin: 0 auto;
}

.thub-ai-v2 .thub-ai-trust-card {
    position: relative;
    min-width: 0;
    padding: 1.5rem;
    border:
        1px solid
        rgba(18, 53, 91, 0.10);
    border-radius: 18px;
    background:
        rgba(255, 255, 255, 0.92);
    box-shadow:
        0 12px 30px
        rgba(11, 41, 72, 0.06);
}

.thub-ai-v2 .thub-ai-trust-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 13px;
    background:
        var(--thub-teal-soft, #eaf7f7);
    color:
        var(--thub-teal-dark, #117d7f);
    font-size: 1rem;
}

.thub-ai-v2 .thub-ai-trust-card h3 {
    margin: 0 0 0.6rem;
    color:
        var(--thub-navy-deep, #0b2948);
    font-size:
        clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.3;
}

.thub-ai-v2 .thub-ai-trust-card p {
    margin: 0;
    color: #5b6977;
    font-size: 0.94rem;
    line-height: 1.65;
}

@media (max-width: 991.98px) {

    .thub-ai-v2 .thub-ai-trust__metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .thub-ai-v2
    .thub-ai-trust__metric:nth-child(3)::before {
        display: none;
    }

    .thub-ai-v2
    .thub-ai-trust__metric:nth-child(n + 3) {
        border-top:
            1px solid
            rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 767.98px) {

    .thub-ai-v2 .thub-ai-trust {
        padding: 3.5rem 0;
    }

    .thub-ai-v2 .thub-ai-trust__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {

    .thub-ai-v2 .thub-ai-trust__metrics {
        grid-template-columns: 1fr 1fr;
        border-radius: 18px;
    }

    .thub-ai-v2 .thub-ai-trust__metric {
        padding: 1.25rem 0.75rem;
    }

    .thub-ai-v2 .thub-ai-trust__metric strong {
        font-size: 1.6rem;
    }

    .thub-ai-v2 .thub-ai-trust__metric span {
        font-size: 0.76rem;
    }

    .thub-ai-v2 .thub-ai-trust-card {
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .thub-ai-v2 .thub-ai-trust *,
    .thub-ai-v2 .thub-ai-trust *::before,
    .thub-ai-v2 .thub-ai-trust *::after {
        scroll-behavior: auto !important;
    }
}
