/* HCQM tokens track MudBlazor palette so dark/light flip automatically */
:root,
.landing-shell,
.public-form-shell {
    --hcqm-bg: var(--mud-palette-background, #0D1117);
    --hcqm-surface: var(--mud-palette-surface, #161B22);
    --hcqm-primary: var(--mud-palette-primary, #1b6ec2);
    --hcqm-primary-hover: #1861ac;
    --hcqm-border: var(--mud-palette-lines-default, #30363D);
    --hcqm-text: var(--mud-palette-text-primary, #FFFFFF);
    --hcqm-muted: var(--mud-palette-text-secondary, #B0B8C1);
    --hcqm-muted-2: var(--mud-palette-text-secondary, #8b949e);
}

html, body {
    background: var(--mud-palette-background, var(--hcqm-bg)) !important;
    color: var(--mud-palette-text-primary, var(--hcqm-text));
    overflow-x: hidden;
    max-width: 100vw;
}

#app.landing-shell,
#app.public-form-shell,
.landing-shell,
.public-form-shell {
    min-height: 100vh;
    background: var(--mud-palette-background, var(--hcqm-bg)) !important;
    color: var(--mud-palette-text-primary, var(--hcqm-text));
}

.landing-appbar.mud-appbar {
    background: color-mix(in srgb, var(--mud-palette-appbar-background, var(--hcqm-surface)) 92%, transparent) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--mud-palette-lines-default, var(--hcqm-border));
    color: var(--mud-palette-text-primary, var(--hcqm-text)) !important;
}

.landing-brand-avatar {
    background: transparent !important;
    width: 44px !important;
    height: 44px !important;
}

.landing-brand-avatar .header-logo,
.header-logo {
    width: 100%;
    height: 100%;
    max-height: 40px;
    object-fit: contain;
    display: block;
}

.landing-brand-title {
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: var(--mud-palette-text-primary) !important;
}

.landing-brand-sub {
    color: var(--mud-palette-text-secondary) !important;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.landing-nav-btn.mud-button-root,
.landing-nav-btn .mud-button-root {
    color: var(--mud-palette-text-secondary) !important;
    text-transform: none !important;
    font-weight: 600 !important;
}

.landing-nav-btn.mud-button-root:hover,
.landing-nav-btn .mud-button-root:hover {
    color: var(--mud-palette-text-primary) !important;
    background: rgba(27, 110, 194, 0.12) !important;
}

/* Light mode: brand title + subtitle blue; nav hover handled in mudblazor-overrides.css */
.theme-light .landing-brand-title,
.theme-light .landing-brand-sub {
    color: #0054a5 !important;
    -webkit-text-fill-color: #0054a5 !important;
}

.theme-toggle-btn {
    color: var(--mud-palette-text-secondary) !important;
}

.landing-login-btn {
    border-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-text-primary) !important;
}

.landing-cta-btn {
    background: var(--hcqm-primary) !important;
}

.landing-cta-btn:hover,
.landing-cta-glow:hover {
    background: var(--hcqm-primary-hover) !important;
}

.landing-cta-glow {
    box-shadow: 0 0 0 1px rgba(27, 110, 194, 0.35), 0 0 18px rgba(27, 110, 194, 0.35);
    transition: box-shadow 0.25s ease, transform 0.2s ease, background 0.2s ease;
}

.landing-cta-glow:hover {
    box-shadow: 0 0 0 1px rgba(27, 110, 194, 0.55), 0 0 28px rgba(27, 110, 194, 0.55);
    transform: translateY(-1px);
}

.lang-switcher-group {
    border-color: var(--hcqm-border) !important;
    overflow: hidden;
    border-radius: 8px !important;
}

/* Logical radii: outer edges rounded in both LTR and RTL */
.lang-switcher-group > .mud-button-root:first-child,
.lang-switcher-group .mud-button:first-child {
    border-radius: 0 !important;
    border-start-start-radius: 8px !important;
    border-end-start-radius: 8px !important;
    border-start-end-radius: 0 !important;
    border-end-end-radius: 0 !important;
}

.lang-switcher-group > .mud-button-root:last-child,
.lang-switcher-group .mud-button:last-child {
    border-radius: 0 !important;
    border-start-end-radius: 8px !important;
    border-end-end-radius: 8px !important;
    border-start-start-radius: 0 !important;
    border-end-start-radius: 0 !important;
}

.lang-switcher .lang-btn {
    min-width: 40px !important;
    color: var(--mud-palette-text-secondary) !important;
    border-color: var(--mud-palette-lines-default) !important;
    font-weight: 700 !important;
}

.lang-switcher .lang-btn-active {
    background: rgba(27, 110, 194, 0.25) !important;
    color: var(--mud-palette-text-primary) !important;
    border-color: var(--mud-palette-primary) !important;
}

.landing-drawer.mud-drawer {
    background: var(--mud-palette-drawer-background, var(--mud-palette-surface)) !important;
    border-inline-start: 1px solid var(--mud-palette-lines-default);
}

.landing-main {
    background: var(--mud-palette-background);
    min-height: 100vh;
}

.landing-main-inner {
    padding-top: 72px;
    min-height: calc(100vh - 72px);
    overflow-x: hidden;
}

.landing-footer {
    background: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
    border-top: 1px solid var(--mud-palette-lines-default);
    margin-top: 3rem;
}

.landing-footer .mud-typography,
.landing-footer .mud-typography-h1,
.landing-footer .mud-typography-h2,
.landing-footer .mud-typography-h3,
.landing-footer .mud-typography-h4,
.landing-footer .mud-typography-h5,
.landing-footer .mud-typography-h6,
.landing-footer .mud-typography-subtitle1,
.landing-footer .mud-typography-body1,
.landing-footer h1,
.landing-footer h2,
.landing-footer h3,
.landing-footer h4,
.landing-footer h5,
.landing-footer h6 {
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
}

.landing-footer .landing-muted,
.landing-footer .mud-typography-body2,
.landing-footer .mud-typography-caption {
    color: var(--mud-palette-text-secondary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-secondary);
}

.landing-footer-logo {
    max-width: 180px;
    height: auto;
}

.comment-highlight {
    outline: 2px solid var(--mud-palette-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    scroll-margin-top: 6rem;
}

.landing-footer-link,
.landing-footer .mud-link {
    color: var(--mud-palette-text-secondary) !important;
    text-decoration: none !important;
}

.landing-footer-link:hover,
.landing-footer .mud-link:hover {
    color: var(--mud-palette-primary) !important;
}

.landing-footer-divider {
    border-color: var(--mud-palette-divider, var(--mud-palette-lines-default)) !important;
}

.landing-muted {
    color: var(--mud-palette-text-secondary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-secondary);
}

/* Page sections */
.hcqm-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
    background:
        radial-gradient(ellipse 80% 60% at 70% 0%, rgba(27, 110, 194, 0.22), transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(24, 97, 172, 0.12), transparent 55%),
        var(--mud-palette-background);
    overflow: hidden;
}

.hcqm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(48, 54, 61, 0.15) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(48, 54, 61, 0.15) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
    pointer-events: none;
}

.hcqm-hero-content {
    position: relative;
    z-index: 1;
}

/* Dedicated slider band above .hcqm-hero (collapsed entirely when no slides) */
.hero-slider-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.hero-slider-wrapper.mb-4 {
    margin-bottom: 0 !important;
}

.hero-slider-wrapper + .hcqm-hero {
    margin-top: 0;
    padding-top: 1.25rem;
}

/* Hero image slider — full-bleed stage; uniform translucent surface (no edge vignette) */
.hcqm-hero-slider,
.custom-carousel-wrapper {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    --slider-surface: rgba(10, 15, 26, 0.45);
}

.theme-light .hcqm-hero-slider,
.theme-light .custom-carousel-wrapper,
#app.theme-light .hcqm-hero-slider,
#app.theme-light .custom-carousel-wrapper {
    --slider-surface: rgba(255, 255, 255, 0.35);
}

.hero-slider-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: var(--slider-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hcqm-hero-carousel.mud-carousel,
.hcqm-hero-carousel {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    height: clamp(220px, 42vw, 460px) !important;
    border-radius: 0 !important;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
}

/* Hide any residual MudCarousel chrome when arrows/bullets are disabled */
.hcqm-hero-carousel .mud-carousel-elements,
.hcqm-hero-carousel .mud-carousel-bullets,
.hcqm-hero-carousel .mud-button-root.mud-icon-button {
    display: none !important;
}

/* Slide stage fills the carousel; controls overlay on top */
.hcqm-hero-carousel .mud-carousel-swipe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.hcqm-hero-carousel > .d-flex.flex-grow-1.align-self-auto {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 3;
    pointer-events: none;
    margin: 0 !important;
}

.hcqm-hero-carousel > .d-flex.flex-grow-1.align-self-auto .mud-button-root,
.hcqm-hero-carousel > .d-flex.flex-grow-1.align-self-auto button,
.hcqm-hero-carousel > .d-flex.flex-grow-1.align-self-auto [role="button"] {
    pointer-events: auto;
}

.hcqm-hero-carousel .mud-carousel-item,
.hcqm-hero-slide {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.hcqm-hero-slide-img,
.hcqm-hero-carousel .slider-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: var(--mud-palette-background-gray, var(--mud-palette-background));
}

/* Option A: flexible object-position focus */
.slide-image-top {
    object-fit: cover !important;
    object-position: center top !important;
}

.slide-image-center {
    object-fit: cover !important;
    object-position: center center !important;
}

.slide-image-bottom {
    object-fit: cover !important;
    object-position: center bottom !important;
}

/* Option B: blurred backdrop — full image, no crop */
.slide-wrapper-backdrop {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slide-bg-blur {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) brightness(0.7);
    transform: scale(1.1); /* Prevents white edges from blur */
    z-index: 1;
    pointer-events: none;
}

.slide-img-contain,
.hcqm-hero-slide-img.slide-img-contain {
    position: relative;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: transparent !important;
}

.hcqm-hero-slide-overlay,
.hcqm-hero-carousel .slider-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: transparent;
    pointer-events: none;
    z-index: 3;
}

.hcqm-hero-slide-copy {
    pointer-events: auto;
    padding-block: clamp(1.5rem, 4vw, 3rem) !important;
    text-align: start;
}

.hcqm-hero-slide-title {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    font-weight: 800 !important;
    font-size: clamp(1.35rem, 3.5vw, 2.35rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 36rem;
}

.hcqm-hero-slide-subtitle {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 2vw, 1.1rem) !important;
    max-width: 34rem;
    line-height: 1.7 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Light mode: dark caption ink over translucent white surface */
.theme-light .hcqm-hero-slide-title,
#app.theme-light .hcqm-hero-slide-title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(15, 23, 42, 0.2);
}

.theme-light .hcqm-hero-slide-subtitle,
#app.theme-light .hcqm-hero-slide-subtitle {
    color: rgba(15, 23, 42, 0.88) !important;
    -webkit-text-fill-color: rgba(15, 23, 42, 0.88);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85), 0 1px 8px rgba(15, 23, 42, 0.15);
}

.hcqm-hero-slider-rtl .hcqm-hero-slide-copy {
    text-align: start;
}

.hcqm-hero-carousel .mud-carousel-bullet {
    background: rgba(255, 255, 255, 0.45) !important;
}

.hcqm-hero-carousel .mud-carousel-bullet.mud-carousel-bullet-active {
    background: var(--mud-palette-primary) !important;
}

.hcqm-hero-carousel .mud-button-root.mud-icon-button {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.28) !important;
}

@media (max-width: 600px) {
    .hcqm-hero-slide-overlay {
        align-items: flex-end;
    }

    .hcqm-hero-slide-copy {
        padding-inline: 1rem !important;
    }

    .hero-slider-wrapper {
        margin-bottom: 0;
    }
}

.hcqm-hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
    margin-bottom: 1rem !important;
}

.hcqm-hero-lead {
    color: var(--mud-palette-text-secondary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-secondary);
    font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
    max-width: 36rem;
}

.hcqm-page-header {
    position: relative;
    padding: 2.5rem 0 1.5rem;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background:
        linear-gradient(135deg, rgba(27, 110, 194, 0.12), transparent 55%),
        var(--mud-palette-background);
}

/* Full-width photo hero — seamless full-bleed image + uniform translucent surface */
.hcqm-page-hero {
    --hcqm-hero-image: url('/images/darkPlaceHolder.jpg');
    --hcqm-hero-fallback:
        linear-gradient(160deg, #080c14 0%, #0f172a 48%, #111827 100%);
    --hcqm-hero-surface: rgba(10, 15, 26, 0.45);
    --hcqm-hero-text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.6);

    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    padding: 2.5rem 1rem;
    overflow: hidden;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
}

.theme-light .hcqm-page-hero,
#app.theme-light .hcqm-page-hero {
    --hcqm-hero-image: url('/images/lightPlaceHolder.jpg');
    --hcqm-hero-fallback:
        linear-gradient(160deg, #f8fafc 0%, #eef2f7 45%, #e2e8f0 100%);
    --hcqm-hero-surface: rgba(255, 255, 255, 0.35);
    --hcqm-hero-text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 2px 12px rgba(15, 23, 42, 0.2);
}

@media (min-width: 600px) {
    .hcqm-page-hero {
        min-height: 260px;
        padding: 3rem 1.25rem;
    }
}

@media (min-width: 960px) {
    .hcqm-page-hero {
        min-height: 320px;
        padding: 3.5rem 1.5rem;
    }
}

/* Full-bleed cover image layer (edge-to-edge) */
.hcqm-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    border: none !important;
    box-shadow: none !important;
    background-color: #080c14;
    background-image:
        var(--hcqm-hero-image),
        var(--hcqm-hero-fallback);
    background-size: cover, cover;
    background-position: center center, center center;
    background-repeat: no-repeat, no-repeat;
}

.theme-light .hcqm-page-hero::before,
#app.theme-light .hcqm-page-hero::before {
    background-color: #f8fafc;
}

/* Uniform semi-transparent surface — image peeks through evenly (no edge masks) */
.hcqm-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: var(--hcqm-hero-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hcqm-page-hero > * {
    position: relative;
    z-index: 2;
}

.hcqm-page-hero .mud-typography,
.hcqm-page-hero .mud-typography-h1,
.hcqm-page-hero .mud-typography-h2,
.hcqm-page-hero .mud-typography-h3,
.hcqm-page-hero .mud-typography-h4,
.hcqm-page-hero .mud-typography-h5,
.hcqm-page-hero .mud-typography-h6,
.hcqm-page-hero .hcqm-hero-title,
.hcqm-page-hero h1,
.hcqm-page-hero h2,
.hcqm-page-hero h3,
.hcqm-page-hero h4,
.hcqm-page-hero h5,
.hcqm-page-hero h6 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 800 !important;
    text-align: center;
    text-shadow: var(--hcqm-hero-text-shadow) !important;
    margin: 0 !important;
}

/* Light mode: dark caption ink over translucent white surface */
.theme-light .hcqm-page-hero .mud-typography,
.theme-light .hcqm-page-hero .mud-typography-h1,
.theme-light .hcqm-page-hero .mud-typography-h2,
.theme-light .hcqm-page-hero .mud-typography-h3,
.theme-light .hcqm-page-hero .mud-typography-h4,
.theme-light .hcqm-page-hero .mud-typography-h5,
.theme-light .hcqm-page-hero .mud-typography-h6,
.theme-light .hcqm-page-hero .hcqm-hero-title,
.theme-light .hcqm-page-hero h1,
.theme-light .hcqm-page-hero h2,
.theme-light .hcqm-page-hero h3,
.theme-light .hcqm-page-hero h4,
.theme-light .hcqm-page-hero h5,
.theme-light .hcqm-page-hero h6,
#app.theme-light .hcqm-page-hero .mud-typography,
#app.theme-light .hcqm-page-hero .mud-typography-h1,
#app.theme-light .hcqm-page-hero .mud-typography-h2,
#app.theme-light .hcqm-page-hero .mud-typography-h3,
#app.theme-light .hcqm-page-hero .mud-typography-h4,
#app.theme-light .hcqm-page-hero .mud-typography-h5,
#app.theme-light .hcqm-page-hero .mud-typography-h6,
#app.theme-light .hcqm-page-hero .hcqm-hero-title,
#app.theme-light .hcqm-page-hero h1,
#app.theme-light .hcqm-page-hero h2,
#app.theme-light .hcqm-page-hero h3,
#app.theme-light .hcqm-page-hero h4,
#app.theme-light .hcqm-page-hero h5,
#app.theme-light .hcqm-page-hero h6 {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: var(--hcqm-hero-text-shadow) !important;
}

/* Hero text wrappers — open / edge-less over the uniform surface (no glass card) */
.hcqm-page-hero .hcqm-hero-content,
.hcqm-page-hero .hcqm-hero-stack,
.hcqm-page-hero .hcqm-hero-split-copy,
.hcqm-page-hero > .mud-container:not(:has(.hcqm-hero-split)):not(:has(.hcqm-hero-stack)):not(:has(.hcqm-hero-content)) {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: clamp(0.5rem, 1.5vw, 1rem) 0;
    box-shadow: none;
    max-width: min(52rem, 100%);
}

.hcqm-page-hero--no-image,
.theme-light .hcqm-page-hero--no-image,
#app.theme-light .hcqm-page-hero--no-image {
    --hcqm-hero-image: none;
}

.hcqm-page-hero .hcqm-hero-split {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.hcqm-page-hero .hcqm-hero-split-copy {
    flex: 1 1 0;
    min-width: 0;
    text-align: start;
}

.hcqm-page-hero .hcqm-hero-split-copy .mud-breadcrumbs {
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.hcqm-page-hero .hcqm-hero-split-copy .mud-typography-h3,
.hcqm-page-hero .hcqm-hero-split-copy h3 {
    text-align: start !important;
}

.hcqm-page-hero .hcqm-hero-cert-preview {
    flex: 0 1 280px;
    max-width: min(320px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.hcqm-page-hero .hcqm-hero-cert-preview img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hcqm-verify-card {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
}

.hcqm-verify-action-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.hcqm-verify-action-row .mud-input-control {
    flex: 1 1 auto;
    min-width: 0;
}

.hcqm-verify-action-row .mud-button-root {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
    margin-top: 4px;
}

.hcqm-verify-notice {
    margin-top: 1.75rem;
    justify-content: center;
    text-align: center;
}

.hcqm-verify-notice .mud-alert-message {
    flex: 0 1 auto;
    text-align: center;
}

.hcqm-verify-cta-media {
    width: 100%;
    max-width: 280px;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
}

.hcqm-verify-cta-media img {
    width: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 960px) {
    .hcqm-page-hero .hcqm-hero-split {
        flex-direction: column;
        text-align: center;
    }

    .hcqm-page-hero .hcqm-hero-split-copy,
    .hcqm-page-hero .hcqm-hero-split-copy .mud-typography-h3,
    .hcqm-page-hero .hcqm-hero-split-copy h3 {
        text-align: center !important;
    }

    .hcqm-page-hero .hcqm-hero-split-copy .mud-breadcrumbs {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .hcqm-verify-action-row {
        flex-direction: column;
    }

    .hcqm-verify-action-row .mud-button-root {
        width: 100%;
        margin-top: 0;
    }
}

.hcqm-experts-quote {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 2.5rem;
}

.hcqm-experts-quote-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
    color: var(--mud-palette-primary);
}

@media (max-width: 600px) {
    .hcqm-experts-quote {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.hcqm-experts-filter {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 1rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    background: var(--mud-palette-surface);
    margin-bottom: 2rem;
}

.hcqm-expert-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hcqm-expert-card .hcqm-expert-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.hcqm-expert-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0.75rem 0 1rem;
    min-height: 2rem;
}

.hcqm-expert-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 1rem;
    text-align: start;
}

.hcqm-expert-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.9rem;
}

.hcqm-experts-stats {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
}

.hcqm-experts-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.75rem;
    height: 100%;
}

.hcqm-experts-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--mud-palette-primary);
    line-height: 1.2;
}

@media (max-width: 960px) {
    .hcqm-experts-filter {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hcqm-experts-filter {
        grid-template-columns: 1fr;
    }
}

.hcqm-page-hero .hcqm-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    max-width: 52rem;
    margin-inline: auto;
}

.hcqm-page-hero .hcqm-hero-subtitle,
.hcqm-page-hero .mud-typography-body1,
.hcqm-page-hero .mud-typography-body2,
.hcqm-page-hero p {
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: var(--hcqm-hero-text-shadow) !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.theme-light .hcqm-page-hero .hcqm-hero-subtitle,
.theme-light .hcqm-page-hero .mud-typography-body1,
.theme-light .hcqm-page-hero .mud-typography-body2,
.theme-light .hcqm-page-hero p,
#app.theme-light .hcqm-page-hero .hcqm-hero-subtitle,
#app.theme-light .hcqm-page-hero .mud-typography-body1,
#app.theme-light .hcqm-page-hero .mud-typography-body2,
#app.theme-light .hcqm-page-hero p {
    color: rgba(15, 23, 42, 0.88) !important;
    -webkit-text-fill-color: rgba(15, 23, 42, 0.88) !important;
    text-shadow: var(--hcqm-hero-text-shadow) !important;
}

.hcqm-page-hero .mud-breadcrumbs,
.hcqm-page-hero .mud-breadcrumb-item,
.hcqm-page-hero .mud-breadcrumb-item .mud-button-root,
.hcqm-page-hero .mud-breadcrumb-item a,
.hcqm-page-hero .mud-breadcrumb-separator {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: var(--hcqm-hero-text-shadow) !important;
}

.theme-light .hcqm-page-hero .mud-breadcrumbs,
.theme-light .hcqm-page-hero .mud-breadcrumb-item,
.theme-light .hcqm-page-hero .mud-breadcrumb-item .mud-button-root,
.theme-light .hcqm-page-hero .mud-breadcrumb-item a,
.theme-light .hcqm-page-hero .mud-breadcrumb-separator,
#app.theme-light .hcqm-page-hero .mud-breadcrumbs,
#app.theme-light .hcqm-page-hero .mud-breadcrumb-item,
#app.theme-light .hcqm-page-hero .mud-breadcrumb-item .mud-button-root,
#app.theme-light .hcqm-page-hero .mud-breadcrumb-item a,
#app.theme-light .hcqm-page-hero .mud-breadcrumb-separator {
    color: rgba(15, 23, 42, 0.82) !important;
    -webkit-text-fill-color: rgba(15, 23, 42, 0.82) !important;
    text-shadow: var(--hcqm-hero-text-shadow) !important;
}

.hcqm-page-hero .mud-breadcrumbs {
    justify-content: center;
    padding: 0;
    margin: 0;
}

.hcqm-checkin-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    max-width: 46rem;
    margin: 0 auto 2rem;
}

.hcqm-checkin-trust {
    margin-top: 2.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.hcqm-checkin-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    height: 100%;
    padding: 0.75rem;
}

.hcqm-feature-card .d-flex.align-center .hcqm-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
}

.hcqm-feature-card .mud-card-actions {
    justify-content: center;
}

.hcqm-stat-card,
.hcqm-feature-card,
.hcqm-surface-card {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 14px !important;
    color: var(--mud-palette-text-primary) !important;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.hcqm-feature-card:hover,
.hcqm-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--mud-palette-primary) !important;
    box-shadow: 0 10px 28px rgba(27, 110, 194, 0.22);
}

.hcqm-training-card {
    overflow: hidden;
}

.hcqm-training-card-accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--mud-palette-primary),
        color-mix(in srgb, var(--mud-palette-primary) 45%, #38bdf8)
    );
}

.hcqm-training-card .hcqm-training-card-icon {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    border-radius: 18px;
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}

.hcqm-training-card .mud-typography-h6 {
    line-height: 1.4 !important;
}

.hcqm-training-card .landing-muted {
    flex-grow: 1;
}

.hcqm-stat-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--mud-palette-primary) !important;
}

.hcqm-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(27, 110, 194, 0.15);
    color: var(--mud-palette-primary);
    margin-bottom: 1rem;
}

.hcqm-cta-band {
    background:
        linear-gradient(120deg, rgba(27, 110, 194, 0.18), transparent 70%),
        var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    color: var(--mud-palette-text-primary);
}

.hcqm-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.hcqm-ambassador-subtabs .mud-tabs-toolbar {
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 80%, transparent);
}

.hcqm-ambassador-subtabs .mud-tab {
    min-height: 2.75rem;
}

/* Related sites dialog — clean list cards with side icon + external affordance */
.related-sites-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.related-sites-dialog-header-icon {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.related-sites-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: min(60vh, 420px);
    overflow-y: auto;
    padding: 0.15rem 0.1rem 0.35rem;
}

.related-sites-list--page {
    max-height: none;
    overflow: visible;
}

.related-sites-page-card .mud-card-header {
    padding-bottom: 0.5rem;
}

.related-site-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    text-align: start;
    padding: 0.85rem 1rem;
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 85%, transparent);
    border-radius: 14px;
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, var(--mud-palette-background));
    color: inherit;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.related-site-item:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 55%, transparent);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.related-site-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.related-site-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.related-site-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.related-site-title {
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
    color: var(--mud-palette-text-primary);
}

.related-site-subtitle {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--mud-palette-text-secondary);
    direction: ltr;
    unicode-bidi: plaintext;
}

.related-site-external {
    flex-shrink: 0;
    opacity: 0.55;
    color: var(--mud-palette-primary);
}

.related-site-item:hover .related-site-external {
    opacity: 1;
}

.hcqm-section-title {
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 0.75rem !important;
}

.hcqm-page-header .mud-typography,
.hcqm-page-header .mud-typography-h3,
.hcqm-page-header h1,
.hcqm-page-header h2,
.hcqm-page-header h3 {
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

.hcqm-page-header .landing-muted,
.hcqm-page-header .mud-typography-body1,
.hcqm-page-header .mud-typography-body2 {
    color: var(--mud-palette-text-secondary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-secondary);
}

.hcqm-form-card {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 16px !important;
    color: var(--mud-palette-text-primary) !important;
}

/* Demand wizard success panel — theme-aware (fixes dark #0D1117 in light mode) */
.hcqm-demand-result {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 14px !important;
    color: var(--mud-palette-text-primary) !important;
}

.hcqm-demand-result .mud-typography {
    color: inherit;
}

/* ContactUs — info rows (label beside link) */
.contact-info-group__title {
    margin-bottom: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    color: var(--mud-palette-text-primary) !important;
}

.contact-info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: color-mix(in srgb, var(--mud-palette-background) 72%, var(--mud-palette-surface));
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-row--link:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
    box-shadow: 0 4px 14px rgba(27, 110, 194, 0.08);
}

.contact-info-row__icon {
    flex: 0 0 auto;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    color: var(--mud-palette-primary);
}

.contact-info-row__body {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
}

.contact-info-row__label {
    margin: 0 !important;
    font-weight: 600 !important;
    color: var(--mud-palette-text-secondary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-secondary);
    white-space: nowrap;
}

.contact-info-row__sep {
    color: var(--mud-palette-text-secondary);
    opacity: 0.55;
    font-weight: 600;
    line-height: 1;
    user-select: none;
}

.contact-info-row__value {
    margin: 0 !important;
    font-weight: 600 !important;
    word-break: break-word;
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
}

a.contact-info-row__value.mud-link,
.contact-info-row__value.mud-link {
    color: var(--mud-palette-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-primary);
}

.contact-social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-social-btn.mud-button-root {
    border-radius: 12px !important;
}

/* Online exam UI */
.exam-page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.exam-meta-list {
    width: 100%;
}

.exam-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
    min-width: 0;
}

.exam-meta-row-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.exam-meta-row-text {
    min-width: 0;
}

.exam-meta-row-text .mud-typography {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exam-meta-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
    color: var(--mud-palette-primary);
}

.exam-meta-chevron {
    flex: 0 0 auto;
    color: var(--mud-palette-text-secondary);
    opacity: 0.7;
}

[dir="rtl"] .exam-meta-chevron {
    transform: scaleX(-1);
}

.exam-verify-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 14px;
    background: var(--mud-palette-surface);
    padding: 16px;
}

.exam-stepper {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 1.25rem;
    width: 100%;
}

.exam-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
}

.exam-step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    border: 2px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    z-index: 1;
}

.exam-step.is-done .exam-step-dot {
    background: var(--mud-palette-success);
    border-color: var(--mud-palette-success);
    color: #fff;
}

.exam-step.is-active .exam-step-dot {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
}

.exam-step-label {
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.3;
}

.exam-step.is-active .exam-step-label,
.exam-step.is-done .exam-step-label {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.exam-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 17px;
    inset-inline-start: calc(50% + 20px);
    inset-inline-end: calc(-50% + 20px);
    height: 2px;
    background: var(--mud-palette-lines-default);
}

.exam-step.is-done:not(:last-child)::after {
    background: var(--mud-palette-success);
}

.exam-info-card,
.exam-metric-card,
.exam-question-card,
.exam-progress-card {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 14px !important;
}

.exam-timer-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface));
    animation: exam-soft-pulse 2s infinite ease-in-out;
    will-change: box-shadow;
}

.exam-timer-box .exam-timer-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.exam-timer-digits {
    font-weight: 800;
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
    color: var(--mud-palette-text-primary);
}

.exam-metric-card {
    height: 100%;
    padding: 16px !important;
    text-align: center;
}

.exam-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 6px;
}

.exam-question-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    color: var(--mud-palette-primary);
    font-weight: 700;
    font-size: 0.85rem;
}

.exam-nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.exam-nav-row .mud-button-root {
    flex: 1 1 160px;
}

.exam-char-counter {
    text-align: end;
    font-size: 0.8rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 6px;
}

@keyframes exam-soft-pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mud-palette-primary) 40%, transparent); }
    70% { box-shadow: 0 0 0 10px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@media (max-width: 600px) {
    .exam-step-label {
        font-size: 0.7rem;
    }

    .exam-timer-box {
        justify-content: center;
        text-align: center;
    }

    .exam-nav-row .mud-button-root {
        flex: 1 1 100%;
    }
}

.hcqm-about-image {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    width: 100%;
    display: block;
}

.hcqm-about-quote {
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface));
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.hcqm-about-panel {
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    padding: 1.5rem;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

.hcqm-about-panel-header {
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap;
    align-items: center !important;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

.hcqm-about-panel-header .mud-typography,
.hcqm-about-panel-header .mud-icon-root {
    flex: 0 0 auto;
    width: auto !important;
    max-width: none;
    margin: 0 !important;
}

.hcqm-about-vm-grid-wrap {
    position: relative;
}

.hcqm-about-v-divider {
    width: 1px;
    height: 60%;
    align-self: center;
    flex: 0 0 1px;
    background: var(--mud-palette-lines-default);
}

.hcqm-about-v-divider--grid {
    display: none;
}

@media (min-width: 960px) {
    .hcqm-about-v-divider--grid {
        display: block;
        position: absolute;
        left: 50%;
        top: 20%;
        height: 60%;
        width: 1px;
        transform: translateX(-50%);
        background: var(--mud-palette-lines-default);
        pointer-events: none;
    }
}

.hcqm-about-values-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

.hcqm-about-values-grid {
    width: 100%;
    max-width: 920px;
    margin-inline: auto !important;
}

.hcqm-about-value-col {
    position: relative;
}

.hcqm-about-value-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    height: 100%;
}

/* Partial vertical divider between value columns on desktop */
@media (min-width: 960px) {
    .hcqm-about-value-col--divided::after {
        content: "";
        position: absolute;
        inset-inline-end: 0;
        top: 20%;
        height: 60%;
        width: 1px;
        background: var(--mud-palette-lines-default);
        pointer-events: none;
    }
}

@media (max-width: 959.98px) {
    .hcqm-about-v-divider,
    .hcqm-about-v-divider--grid,
    .hcqm-about-value-col--divided::after {
        display: none !important;
    }
}

/* Dense Mud inputs RTL polish */
.landing-shell[dir="rtl"] .mud-input-label,
.public-form-shell[dir="rtl"] .mud-input-label,
.landing-shell[dir="rtl"] .mud-input-label-inputcontrol,
.public-form-shell[dir="rtl"] .mud-input-label-inputcontrol {
    right: 14px !important;
    left: auto !important;
    text-align: right !important;
    transform-origin: top right !important;
}

.landing-shell[dir="rtl"] .mud-input > input,
.landing-shell[dir="rtl"] .mud-input > textarea,
.public-form-shell[dir="rtl"] .mud-input > input,
.public-form-shell[dir="rtl"] .mud-input > textarea,
.landing-shell[dir="rtl"] .mud-select-input,
.public-form-shell[dir="rtl"] .mud-select-input {
    text-align: right !important;
    direction: rtl !important;
}

/* Prevent Bootstrap/MainTheme light overrides on landing */
.landing-shell .container-fluid.page-header,
.landing-shell .bg-dark.footer,
.landing-shell .copyright {
    display: none !important;
}

/* Courses catalog — card grid */
.courses-catalog .mb-8 {
    margin-bottom: 3rem !important;
}

.courses-category-header {
    flex-wrap: wrap;
}

.courses-category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.courses-category-banner {
    width: 120px;
    max-height: 72px;
    object-fit: contain;
    border-radius: 10px;
}

.course-card {
    border-radius: 12px !important;
    border: 1px solid var(--mud-palette-lines-default, #E5E7EB) !important;
    background: var(--mud-palette-surface, #fff) !important;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.course-card:hover {
    border-color: #0054a5 !important;
    box-shadow: 0 8px 24px rgba(0, 84, 165, 0.12);
    transform: translateY(-2px);
}

.course-card-title {
    color: var(--mud-palette-text-primary) !important;
    -webkit-text-fill-color: var(--mud-palette-text-primary);
    line-height: 1.45 !important;
}

.course-card-subtitle {
    line-height: 1.4 !important;
}

.course-card-chip {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.courses-cta-band {
    border-radius: 12px;
    background: linear-gradient(135deg, #0054a5 0%, #1b6ec2 100%);
    color: #fff !important;
}

.courses-cta-band .mud-typography {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.courses-cert-img {
    width: 100%;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

/* Individual certificate verification card */
.certificate-page {
    width: 100%;
    max-width: 100%;
}

.certificate-wrapper,
#certificate-container {
    position: relative;
    overflow: hidden;
    background-color: #ffffff !important;
    color: #111827 !important;
    min-height: 500px;
    max-width: 900px;
    margin: 1.5rem auto;
    border: 4px solid #0054a5;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 84, 165, 0.18);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

#certificate-container *,
#certificate-container *::before,
#certificate-container *::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* html2canvas clone: desktop-locked layout + Arabic-safe text */
#certificate-container.certificate-pdf-export,
#certificate-container.certificate-pdf-export * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-rendering: geometricPrecision;
}

/*
 * Always render/export the certificate at the fixed desktop template size,
 * even when the live viewport is mobile (html2canvas inherits window media queries).
 */
.certificate-print-only #certificate-container,
.certificate-print-only .certificate-wrapper,
#certificate-container.certificate-pdf-export {
    width: 900px !important;
    max-width: 900px !important;
    min-width: 900px !important;
    min-height: 560px !important;
    margin: 0 !important;
    border-width: 4px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

.certificate-print-only .certificate-inner,
#certificate-container.certificate-pdf-export .certificate-inner {
    padding: 2.5rem !important;
}

.certificate-print-only .certificate-logo,
#certificate-container.certificate-pdf-export .certificate-logo {
    height: 72px !important;
}

.certificate-print-only .certificate-title,
#certificate-container.certificate-pdf-export .certificate-title {
    font-size: 2rem !important;
    letter-spacing: 0.08em !important;
    line-height: 1.35 !important;
    margin-bottom: 0.35rem !important;
}

.certificate-print-only .certificate-title-ar,
#certificate-container.certificate-pdf-export .certificate-title-ar {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-top: 0.45rem !important;
}

.certificate-print-only .certificate-name,
#certificate-container.certificate-pdf-export .certificate-name {
    font-size: 1.85rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.25rem !important;
}

.certificate-print-only .certificate-name-ar,
#certificate-container.certificate-pdf-export .certificate-name-ar {
    font-size: 1.45rem !important;
    line-height: 1.45 !important;
    margin-top: 0.2rem !important;
}

.certificate-print-only .certificate-course,
#certificate-container.certificate-pdf-export .certificate-course {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
}

.certificate-print-only .certificate-lead,
#certificate-container.certificate-pdf-export .certificate-lead {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    margin-bottom: 0.55rem !important;
}

/* Force Bootstrap desktop grid/flex inside the PDF template */
.certificate-print-only .certificate-meta.row,
#certificate-container.certificate-pdf-export .certificate-meta.row {
    display: flex !important;
    flex-wrap: wrap !important;
    text-align: center !important;
    row-gap: 0.75rem !important;
}

.certificate-print-only .certificate-meta [class*="col-"],
#certificate-container.certificate-pdf-export .certificate-meta [class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    text-align: center !important;
}

/* Last odd field spans full row and centers */
.certificate-print-only .certificate-meta.row > [class*="col-"]:last-child:nth-child(odd),
#certificate-container.certificate-pdf-export .certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-inline: auto !important;
}

.certificate-print-only .certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) .certificate-meta-item,
#certificate-container.certificate-pdf-export .certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) .certificate-meta-item {
    max-width: 420px !important;
    margin-inline: auto !important;
}

/* Center all certificate detail fields/values in PDF & print (RTL/LTR-safe) */
.certificate-print-only .certificate-meta,
.certificate-print-only .certificate-meta-item,
.certificate-print-only .certificate-meta-label,
.certificate-print-only .certificate-meta-value,
#certificate-container.certificate-pdf-export .certificate-meta,
#certificate-container.certificate-pdf-export .certificate-meta-item,
#certificate-container.certificate-pdf-export .certificate-meta-label,
#certificate-container.certificate-pdf-export .certificate-meta-value {
    text-align: center !important;
    line-height: 1.4 !important;
}

.certificate-print-only .certificate-meta-item,
#certificate-container.certificate-pdf-export .certificate-meta-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.85rem 1rem !important;
}

.certificate-print-only .certificate-meta-label,
#certificate-container.certificate-pdf-export .certificate-meta-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.15rem !important;
    width: 100% !important;
}

.certificate-print-only .certificate-meta-label-en,
.certificate-print-only .certificate-meta-label-ar,
#certificate-container.certificate-pdf-export .certificate-meta-label-en,
#certificate-container.certificate-pdf-export .certificate-meta-label-ar {
    display: block !important;
    width: 100% !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

.certificate-print-only .certificate-meta-label-en,
#certificate-container.certificate-pdf-export .certificate-meta-label-en {
    font-size: 0.72rem !important;
    letter-spacing: 0.02em !important;
}

.certificate-print-only .certificate-meta-label-ar,
#certificate-container.certificate-pdf-export .certificate-meta-label-ar {
    font-size: 0.82rem !important;
}

.certificate-print-only .certificate-meta-value,
#certificate-container.certificate-pdf-export .certificate-meta-value {
    margin-top: 0.15rem !important;
    padding-top: 0.15rem !important;
}

/* PDF/print only: Verification Code + Issue No. & Date */
.certificate-print-only .certificate-serial,
.certificate-print-only .certificate-note,
.certificate-print-only .certificate-note .certificate-meta-label,
.certificate-print-only .certificate-note-body,
#certificate-container.certificate-pdf-export .certificate-serial,
#certificate-container.certificate-pdf-export .certificate-note,
#certificate-container.certificate-pdf-export .certificate-note .certificate-meta-label,
#certificate-container.certificate-pdf-export .certificate-note-body {
    text-align: center !important;
}

.certificate-print-only .certificate-note,
#certificate-container.certificate-pdf-export .certificate-note {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.certificate-print-only .certificate-footer,
#certificate-container.certificate-pdf-export .certificate-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    direction: ltr !important;
}

.certificate-print-only .certificate-seal,
#certificate-container.certificate-pdf-export .certificate-seal {
    text-align: left !important;
    order: 1 !important;
}

.certificate-print-only .certificate-qr,
#certificate-container.certificate-pdf-export .certificate-qr {
    text-align: center !important;
    order: 2 !important;
    margin-inline-start: auto !important;
}

.certificate-print-only .certificate-qr-img,
#certificate-container.certificate-pdf-export .certificate-qr-img {
    width: 120px !important;
    height: 120px !important;
}

.certificate-actions {
    max-width: 900px;
    margin-inline: auto;
}

/*
 * Watermark + frame are real DOM layers (see IndivisualDetails.razor).
 * Do NOT put rotate/width:200% on the same rule as inset frame — that merge
 * made the diagonal watermark disappear.
 *
 * Layering: watermark (0) < frame (1) < content (2)
 */
.certificate-watermark {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Repeating diagonal tiles live only on this pseudo — not on .certificate-frame */
.certificate-watermark::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('/MainTheme/img/bluelogo.png');
    background-repeat: repeat;
    background-size: 150px;
    background-position: center;
    transform: rotate(-30deg);
    opacity: 0.06;
    pointer-events: none;
}

/* Inner static border frame — separate from the watermark layer */
.certificate-frame {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(0, 84, 165, 0.25);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

/* Disable wrapper pseudos so old merged ::before/::after rules cannot win */
.certificate-wrapper::before,
.certificate-wrapper::after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    transform: none !important;
}

.certificate-wrapper > .certificate-inner,
.certificate-inner {
    position: relative;
    z-index: 2;
    color: #111827 !important;
    -webkit-text-fill-color: #111827;
}

.certificate-wrapper h1,
.certificate-wrapper h2,
.certificate-wrapper h3,
.certificate-wrapper h4,
.certificate-wrapper h5,
.certificate-wrapper h6,
.certificate-wrapper p,
.certificate-wrapper span,
.certificate-wrapper small,
.certificate-wrapper .certificate-name,
.certificate-wrapper .certificate-name-ar,
.certificate-wrapper .certificate-lead,
.certificate-wrapper .certificate-course,
.certificate-wrapper .certificate-course-meta,
.certificate-wrapper .certificate-meta-label,
.certificate-wrapper .certificate-meta-value,
.certificate-wrapper .certificate-note-body,
.certificate-wrapper .certificate-seal,
.landing-shell .certificate-wrapper h1,
.landing-shell .certificate-wrapper h2,
.landing-shell .certificate-wrapper h3,
.landing-shell .certificate-wrapper h4,
.landing-shell .certificate-wrapper p {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
}

.certificate-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.certificate-title,
.certificate-title-ar,
.landing-shell .certificate-wrapper .certificate-title,
.landing-shell .certificate-wrapper .certificate-title-ar {
    color: #0054a5 !important;
    -webkit-text-fill-color: #0054a5 !important;
}

.certificate-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 0.25rem;
}

.certificate-title-ar {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 0.45rem;
    line-height: 1.5;
}

.certificate-lead,
.landing-shell .certificate-wrapper .certificate-lead {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.certificate-name {
    font-size: clamp(1.45rem, 3.2vw, 2rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.35;
}

.certificate-name-ar {
    font-size: clamp(1.2rem, 2.6vw, 1.55rem);
    font-weight: 700;
    margin: 0.2rem 0 0;
    line-height: 1.45;
}

.certificate-course,
.certificate-serial,
.landing-shell .certificate-wrapper .certificate-course,
.landing-shell .certificate-wrapper .certificate-serial {
    color: #0054a5 !important;
    -webkit-text-fill-color: #0054a5 !important;
}

.certificate-course {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    font-weight: 700;
}

.certificate-course-meta {
    font-weight: 600;
}

.certificate-meta-item {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.certificate-meta-label,
.landing-shell .certificate-wrapper .certificate-meta-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    width: 100%;
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    text-align: center;
}

.certificate-meta-label-en,
.certificate-meta-label-ar {
    display: block;
    width: 100%;
    line-height: 1.4;
}

.certificate-meta-label-en {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.certificate-meta-label-ar {
    font-size: 0.82rem;
}

.certificate-meta-value {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

/* Screen + print: center last odd meta field */
.certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

.certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) .certificate-meta-item {
    max-width: 420px;
    margin-inline: auto;
}

.certificate-serial {
    letter-spacing: 0.04em;
}

.certificate-note {
    background: #f8fafc !important;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.certificate-note-body {
    font-size: 0.95rem;
    line-height: 1.6;
}

.certificate-footer {
    border-top: 1px dashed rgba(0, 84, 165, 0.35);
}

.certificate-seal,
.certificate-wrapper .text-muted,
.landing-shell .certificate-wrapper .text-muted {
    color: #6b7280 !important;
    -webkit-text-fill-color: #6b7280 !important;
}

.certificate-qr {
    text-align: center;
    flex-shrink: 0;
}

.certificate-qr-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    display: block;
    margin-inline: auto;
}

.certificate-qr-box {
    width: 88px;
    height: 88px;
    margin-inline: auto;
    border: 2px dashed #0054a5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0054a5 !important;
    -webkit-text-fill-color: #0054a5 !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: #ffffff;
}

.certificate-qr-box span {
    color: #0054a5 !important;
    -webkit-text-fill-color: #0054a5 !important;
}

/* Our Clients page */
.hcqm-clients-logo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

@media (min-width: 600px) {
    .hcqm-clients-logo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .hcqm-clients-logo-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.hcqm-client-logo-card {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 14px !important;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hcqm-client-logo-card:hover {
    transform: translateY(-4px);
    border-color: var(--mud-palette-primary) !important;
    box-shadow: 0 10px 28px rgba(27, 110, 194, 0.18);
}

.hcqm-client-logo-img {
    width: 100%;
    max-width: 140px;
    height: 88px;
    object-fit: contain;
    display: block;
}

.hcqm-clients-testimonials {
    background:
        linear-gradient(145deg, rgba(11, 31, 51, 0.96), rgba(16, 48, 78, 0.92)),
        var(--mud-palette-surface) !important;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 35%, transparent) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    margin-bottom: 2rem;
}

.hcqm-clients-testimonials,
.hcqm-clients-testimonials .mud-typography,
.hcqm-clients-testimonials .mud-typography-h4,
.hcqm-clients-testimonials .mud-typography-h5,
.hcqm-clients-testimonials .mud-typography-h6,
.hcqm-clients-testimonials .mud-typography-body1,
.hcqm-clients-testimonials .mud-typography-body2,
.hcqm-clients-testimonials .mud-typography-subtitle1,
.hcqm-clients-testimonials .mud-typography-subtitle2,
.hcqm-clients-testimonials-title,
.hcqm-clients-testimonial-quote,
.hcqm-clients-testimonial-author {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.hcqm-clients-quote-icon {
    color: #9ec5e8 !important;
}

.hcqm-clients-testimonial-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    max-width: 44rem;
    margin-inline: auto;
    padding: 0.5rem 1rem 1.5rem;
}

.hcqm-clients-testimonial-quote {
    line-height: 1.9 !important;
    font-size: 1.05rem !important;
}

.hcqm-clients-testimonial-author {
    opacity: 0.9;
    font-weight: 600 !important;
}

.hcqm-clients-testimonials-carousel .mud-carousel-bullets .mud-button-root {
    color: rgba(255, 255, 255, 0.45) !important;
}

.hcqm-clients-testimonials-carousel .mud-carousel-bullets .mud-button-root.mud-checked,
.hcqm-clients-testimonials-carousel .mud-carousel-bullets .mud-button-root[aria-pressed="true"] {
    color: #fff !important;
}

@media (max-width: 600px) {
    .hcqm-hero-title {
        font-size: 1.6rem !important;
    }

    .landing-brand-sub {
        max-width: 140px;
    }

    .landing-main-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .courses-category-banner {
        width: 100%;
        max-height: 100px;
    }

    /* PDF/print certificate template must stay desktop — do not shrink here */
}

/* Demand request completion panel */
.hcqm-demand-completion {
    width: 100%;
    margin-top: 1.5rem;
}

.hcqm-demand-completion-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hcqm-demand-completion-news {
    margin-top: 1.75rem;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 6%, var(--mud-palette-surface));
}

.hcqm-demand-completion-links {
    max-width: 28rem;
    margin-inline: auto;
}

.hcqm-demand-completion-link {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--mud-palette-text-primary) !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.hcqm-demand-completion-link:hover {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
    color: var(--mud-palette-primary) !important;
}

.hcqm-demand-completion-social {
    margin-top: 1.5rem;
    text-align: center;
}

.hcqm-demand-completion-social-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

@media (min-width: 600px) {
    .hcqm-demand-completion-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .hcqm-demand-completion-actions .mud-button-root {
        width: 100%;
    }
}

/* Systems & Standards page */
.hcqm-standards-intro-card,
.hcqm-standards-benefits-card,
.hcqm-standards-system-card {
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-lines-default) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.hcqm-standards-system-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hcqm-standards-system-media {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface));
}

.hcqm-standards-system-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hcqm-standards-system-badge {
    position: absolute;
    inset-inline-start: 0.85rem;
    bottom: 0.85rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(11, 31, 51, 0.82);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hcqm-standards-mini-icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent) !important;
}

.hcqm-standards-intro-accent {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent);
}

.hcqm-standards-bullet {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent);
}

.hcqm-standards-bullet .mud-icon-root {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.hcqm-standards-milestone {
    height: 100%;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hcqm-standards-milestone:hover {
    transform: translateY(-3px);
    border-color: var(--mud-palette-primary);
    box-shadow: 0 8px 20px rgba(27, 110, 194, 0.14);
}

.hcqm-standards-milestone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hcqm-standards-milestone-badge {
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    background: var(--mud-palette-primary);
}

.hcqm-standards-milestone-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

.hcqm-standards-system-card:hover {
    transform: translateY(-4px);
    border-color: var(--mud-palette-primary) !important;
    box-shadow: 0 10px 28px rgba(27, 110, 194, 0.18);
}

/* Qualify request wizard */
.qualify-stepper {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 1.35rem;
    width: 100%;
}

.qualify-step {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
}

.qualify-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mud-palette-lines-default);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    z-index: 1;
}

.qualify-step.is-done .qualify-step-dot {
    background: var(--mud-palette-success);
    border-color: var(--mud-palette-success);
    color: #fff;
}

.qualify-step.is-active .qualify-step-dot {
    background: var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
    color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
}

.qualify-step-label {
    font-size: 0.78rem;
    color: var(--mud-palette-text-secondary);
    line-height: 1.35;
}

.qualify-step.is-active .qualify-step-label,
.qualify-step.is-done .qualify-step-label {
    color: var(--mud-palette-text-primary);
    font-weight: 600;
}

.qualify-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 19px;
    inset-inline-start: calc(50% + 22px);
    inset-inline-end: calc(-50% + 22px);
    height: 2px;
    background: var(--mud-palette-lines-default);
}

.qualify-step.is-done:not(:last-child)::after {
    background: var(--mud-palette-success);
}

.qualify-req-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, var(--mud-palette-surface));
}

.qualify-req-item .mud-icon-root {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.qualify-review-summary {
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface)) !important;
}

.qualify-partner-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--mud-palette-lines-default);
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--mud-palette-primary) 10%, transparent), transparent 70%),
        var(--mud-palette-surface);
}

.qualify-partner-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, transparent);
}

@media (max-width: 600px) {
    .qualify-step-label {
        font-size: 0.68rem;
    }

    .qualify-step-dot {
        width: 34px;
        height: 34px;
    }

    .qualify-step:not(:last-child)::after {
        top: 16px;
        inset-inline-start: calc(50% + 18px);
        inset-inline-end: calc(-50% + 18px);
    }

    .qualify-partner-banner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Individual certificate — web details view */
.cert-detail-header {
    text-align: start;
}

.cert-quick-card,
.cert-action-card,
.cert-qr-card,
.cert-helper-bar {
    border-radius: 14px !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 4%, var(--mud-palette-surface)) !important;
    height: 100%;
}

.cert-action-card,
.cert-qr-card {
    min-height: 220px;
}

.cert-qr-img {
    width: 148px;
    height: 148px;
    border-radius: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    padding: 6px;
    background: #fff;
}

.cert-data-card {
    overflow: hidden;
}

.cert-data-table {
    display: flex;
    flex-direction: column;
}

.cert-data-row {
    display: grid;
    grid-template-columns: minmax(140px, 0.9fr) minmax(0, 1.4fr);
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--mud-palette-lines-default);
}

.cert-data-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.9rem;
}

.cert-data-value {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    word-break: break-word;
}

/* Keep the classic certificate template for PDF export / print only */
.certificate-print-only {
    position: absolute;
    left: -10000px;
    top: 0;
    width: 900px;
    pointer-events: none;
    opacity: 1;
}

@media print {
    .certificate-web-view {
        display: none !important;
    }

    .certificate-print-only {
        position: static !important;
        left: auto !important;
        width: 900px !important;
        max-width: 900px !important;
        pointer-events: auto !important;
        margin-inline: auto !important;
    }

    .certificate-print-only .certificate-wrapper,
    .certificate-print-only #certificate-container {
        width: 900px !important;
        max-width: 900px !important;
        min-width: 900px !important;
        margin: 0 auto !important;
        box-shadow: none !important;
        border-width: 4px !important;
    }

    .certificate-print-only .certificate-inner {
        padding: 2.5rem !important;
    }

    .certificate-print-only .certificate-meta [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        text-align: center !important;
    }

    .certificate-print-only .certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .certificate-print-only .certificate-meta.row > [class*="col-"]:last-child:nth-child(odd) .certificate-meta-item {
        max-width: 420px !important;
        margin-inline: auto !important;
    }

    .certificate-print-only .certificate-meta,
    .certificate-print-only .certificate-meta-item,
    .certificate-print-only .certificate-meta-label,
    .certificate-print-only .certificate-meta-value {
        text-align: center !important;
        line-height: 1.4 !important;
    }

    .certificate-print-only .certificate-meta-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.35rem !important;
    }

    .certificate-print-only .certificate-title {
        letter-spacing: 0.08em !important;
        line-height: 1.35 !important;
    }

    .certificate-print-only .certificate-title-ar,
    .certificate-print-only .certificate-name,
    .certificate-print-only .certificate-name-ar,
    .certificate-print-only .certificate-lead {
        line-height: 1.45 !important;
    }

    .certificate-print-only .certificate-serial,
    .certificate-print-only .certificate-note,
    .certificate-print-only .certificate-note .certificate-meta-label,
    .certificate-print-only .certificate-note-body {
        text-align: center !important;
    }

    .certificate-print-only .certificate-note {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .certificate-print-only .certificate-footer {
        flex-direction: row !important;
        direction: ltr !important;
        justify-content: space-between !important;
    }

    .certificate-print-only .certificate-seal {
        text-align: left !important;
        order: 1 !important;
    }

    .certificate-print-only .certificate-qr {
        order: 2 !important;
        margin-inline-start: auto !important;
    }
}

@media (max-width: 600px) {
    .cert-data-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .cert-action-card,
    .cert-qr-card {
        min-height: 0;
    }
}
