/* =====================================================================
   HOSPITAL INFORMATION SYSTEM (HIS) PAGE
   Page-scoped styles. Every selector is prefixed .his- or nested under
   .his-page, so nothing here can affect index.html, the NABH page, the
   Digital Strategist page or any future page.
   Loaded AFTER style.css; reuses its :root --hbn-* tokens, Bootstrap's
   grid/modal/collapse and the shared navbar/footer styles as-is.
   ===================================================================== */

.his-page {
    /* --- palette taken from the HIS design reference --- */
    --his-primary: #1e5a91;
    --his-primary-dark: #174a79;
    --his-primary-bright: #2f74c0;
    --his-ink: #0f172a;
    --his-ink-soft: #1e293b;
    --his-muted: #475569;
    --his-muted-2: #64748b;
    --his-line: #e2e8f0;
    --his-line-soft: #eef2f7;
    --his-tint: #f8fafc;
    --his-blue-soft: #eff6ff;
    --his-blue-line: #dbeafe;
    --his-rose: #be123c;
    --his-rose-soft: #fff1f2;
    --his-rose-line: #fecdd3;
    --his-rose-bar: #e11d48;
    --his-green: #16a34a;
    --his-shadow-card: 0 10px 30px rgba(15, 23, 42, .05);
    --his-shadow-hover: 0 24px 48px rgba(30, 90, 145, .14);
    --his-radius: 16px;
    --his-display: 'Outfit', 'Poppins', 'Roboto', sans-serif;
    --his-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

    /* tokens expected by the shared navbar markup (.nabh-nav / .nabh-logo-lockup),
       mirroring what the NABH and Digital Strategist pages provide */
    --nabh-navy: #1e2c5f;
    --nabh-navy-2: #263f81;
    --nabh-accent: #264abc;
    --tone-blue-bg: #eaf1ff;

    background: #fff;
}

/* Display face for headings only — body copy stays on the project's Roboto. */
.his-page h1,
.his-page h2,
.his-page h3 {
    font-family: var(--his-display);
    letter-spacing: -0.5px;
    color: var(--his-ink);
}

/* ---------- Shared navbar: same treatment as the other B2B service pages ---------- */
.his-page .hbn-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 14px rgba(20, 31, 59, 0.06);
}

.his-page .hbn-logo-icon {
    height: 46px;
}

/* ---------- Section shell ---------- */
.his-section {
    padding: 88px 0;
    border-top: 1px solid var(--his-line-soft);
    scroll-margin-top: 80px;
}

.his-section.is-tint {
    background: var(--his-tint);
}

.his-section.is-glow {
    background:
        radial-gradient(900px 420px at 50% 0%, rgba(47, 116, 192, .07) 0%, rgba(47, 116, 192, 0) 70%),
        var(--his-tint);
}

.his-section-head {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.his-section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 16px;
}

.his-section-sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--his-muted);
    margin: 0;
}

.his-body-lg {
    font-size: 17px;
    line-height: 1.75;
    color: var(--his-muted);
}

/* ---------- Eyebrow pill ---------- */
.his-eyebrow,
.his-modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--his-primary);
}

.his-eyebrow {
    background: var(--his-blue-soft);
    border: 1px solid var(--his-blue-line);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.his-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    padding: 15px 26px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.his-btn-primary {
    background: var(--his-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(30, 90, 145, .25);
}

.his-btn-primary:hover,
.his-btn-primary:focus-visible {
    background: var(--his-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(30, 90, 145, .32);
}

.his-btn.is-compact {
    padding: 12px 20px;
    font-size: 14.5px;
}

.his-btn-arrow {
    transition: transform .2s ease;
}

.his-btn:hover .his-btn-arrow {
    transform: translateX(4px);
}

.his-page :is(.his-btn, .his-ctrl, .his-link-btn, .his-ops-tab, .his-ops-arrow, .his-faq-q, .his-matrix-dot):focus-visible {
    outline: 2px solid var(--his-primary-bright);
    outline-offset: 2px;
}

/* ---------- Icon chip + tones ---------- */
/* Tone classes set --tone-*; chips/badges fall back to the brand blue. */
.his-page .tone-teal   { --tone-bg: #f0fdfa; --tone-fg: #0f766e; --tone-line: #ccfbf1; }
.his-page .tone-indigo { --tone-bg: #eef2ff; --tone-fg: #4f46e5; --tone-line: #e0e7ff; }
.his-page .tone-purple { --tone-bg: #faf5ff; --tone-fg: #9333ea; --tone-line: #f3e8ff; }
.his-page .tone-rose   { --tone-bg: #fff1f2; --tone-fg: #be123c; --tone-line: #ffe4e6; }
.his-page .tone-green  { --tone-bg: #f0fdf4; --tone-fg: #15803d; --tone-line: #dcfce7; }
.his-page .tone-amber  { --tone-bg: #fffbeb; --tone-fg: #b45309; --tone-line: #fef3c7; }

.his-chip-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 19px;
    background: var(--tone-bg, var(--his-blue-soft));
    color: var(--tone-fg, var(--his-primary));
    border: 1px solid var(--tone-line, var(--his-blue-line));
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.his-chip-icon.is-solid {
    background: var(--his-primary);
    border-color: var(--his-primary);
    color: #fff;
}

/* ---------- Blank image areas (images to be added later) ---------- */
.his-media {
    width: 100%;
    border-radius: var(--his-radius);
    background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
    border: 1px solid var(--his-line);
}

/* =====================================================================
   HERO
   ===================================================================== */
.his-hero {
    padding: 48px 0 88px;
    background: #fff;
}

.his-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.his-hero h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 26px;
}

.his-hero-copy p {
    font-size: 18px;
    line-height: 1.75;
    color: var(--his-muted);
    margin-bottom: 18px;
}

.his-hero-actions {
    margin-top: 30px;
}

.his-hero-media {
    aspect-ratio: 16 / 10;
    box-shadow: 0 24px 48px rgba(15, 23, 42, .16);
}

/* =====================================================================
   CHALLENGES — rotating case viewer
   ===================================================================== */
.his-matrix {
    position: relative;
    background: #fff;
    border: 1px solid var(--his-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(15, 23, 42, .10);
}

.his-matrix:focus-visible {
    outline: 2px solid var(--his-primary-bright);
    outline-offset: 4px;
}

.his-matrix-progress {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: rgba(255, 255, 255, .08);
    z-index: 2;
}

.his-matrix-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #3b82f6;
}

.his-matrix.is-running .his-matrix-progress span {
    animation: hisProgress var(--his-case-ms, 7000ms) linear forwards;
}

.his-matrix.is-held .his-matrix-progress span {
    animation-play-state: paused;
}

@keyframes hisProgress {
    from { width: 0; }
    to   { width: 100%; }
}

.his-matrix-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
    padding: 20px 28px;
    background: var(--his-ink);
}

.his-matrix-title {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.his-mono-label,
.his-mono-meta,
.his-mono-status {
    font-family: var(--his-mono);
    letter-spacing: .6px;
}

.his-mono-label {
    display: block;
    font-size: 11.5px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.his-mono-label.is-light {
    color: #93c5fd;
}

.his-matrix-current {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.his-matrix-current strong {
    font-family: var(--his-display);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.his-mono-meta {
    font-size: 12.5px;
    color: #94a3b8;
}

.his-paused-pill {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, .1);
    border-radius: 999px;
    padding: 3px 10px;
}

.his-matrix.is-hovered .his-paused-pill {
    display: inline-block;
}

.his-matrix-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.his-ctrl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}

.his-ctrl:hover {
    background: rgba(255, 255, 255, .1);
}

.his-ctrl.is-square {
    width: 36px;
    padding: 0;
}

.his-ctrl.is-primary {
    background: var(--his-primary);
    border-color: var(--his-primary);
    color: #fff;
}

.his-ctrl.is-primary:hover {
    background: var(--his-primary-bright);
}

.his-matrix-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.his-matrix-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #334155;
    transition: width .25s ease, background .25s ease;
}

.his-matrix-dot.is-active {
    width: 26px;
    background: var(--his-primary-bright);
}

.his-matrix-body {
    padding: 32px 32px 36px;
    background: #fcfdfe;
}

/* Without JS every case is listed; once his.js is ready only the active one shows. */
.his-matrix:not(.is-ready) :is(.his-matrix-controls, .his-matrix-current, .his-matrix-progress) {
    display: none;
}

.his-matrix:not(.is-ready) .his-case + .his-case {
    margin-top: 40px;
}

.his-matrix.is-ready .his-case {
    display: none;
}

.his-matrix.is-ready .his-case.is-active {
    display: block;
    animation: hisFadeIn .45s ease;
}

@keyframes hisFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.his-case-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--his-line-soft);
}

.his-case-head .his-mono-label {
    color: var(--his-muted-2);
}

.his-case-head h3 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.his-case-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--his-primary);
    background: var(--his-blue-soft);
    border: 1px solid var(--his-blue-line);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
}

.his-case-grid {
    display: grid;
    grid-template-columns: 1fr 130px 1fr;
    align-items: stretch;
}

.his-case-box {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--his-line);
    border-top: 4px solid var(--his-rose-bar);
    border-radius: 14px;
    overflow: hidden;
}

.his-case-box.is-solution {
    border-top-color: var(--his-primary);
    background: linear-gradient(160deg, #fff 60%, #f6f9fd 100%);
}

.his-case-box-body {
    flex: 1 1 auto;
    padding: 22px 22px 20px;
}

.his-case-box h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--his-ink);
    margin: 18px 0 8px;
}

.his-case-box p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--his-muted);
    margin: 0;
}

.his-case-box.is-solution p {
    color: var(--his-ink-soft);
}

.his-case-box-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    background: var(--his-rose-soft);
    color: var(--his-rose);
}

.his-case-box.is-solution .his-case-box-foot {
    background: var(--his-blue-soft);
    color: var(--his-primary);
}

.his-mono-status {
    font-size: 11.5px;
    font-weight: 500;
}

.his-case-box.is-solution .his-mono-status {
    color: var(--his-green);
}

.his-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 5px 12px;
    border: 1px solid;
}

.his-pill.is-rose {
    color: var(--his-rose);
    background: var(--his-rose-soft);
    border-color: var(--his-rose-line);
}

.his-pill.is-blue {
    color: var(--his-primary);
    background: #e6effa;
    border-color: #c8daf0;
}

/* connector between the two boxes */
.his-case-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 12px;
}

.his-case-link::before,
.his-case-link::after {
    content: "";
    width: 1px;
    flex: 1 1 0;
    max-height: 60px;
    background: var(--his-line);
}

.his-case-link-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--his-primary);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(30, 90, 145, .3);
}

.his-case-link-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    color: var(--his-primary);
}

/* =====================================================================
   MODULE + BENEFIT CARDS (shared card base)
   ===================================================================== */
.his-meta-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
}

.his-meta-pills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #fff;
    border: 1px solid var(--his-line);
    border-radius: 999px;
    padding: 6px 14px;
}

.his-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--his-primary);
}

.his-dot.is-green  { background: #22c55e; }
.his-dot.is-indigo { background: #6366f1; }

.his-module-card,
.his-benefit-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--his-line-soft);
    border-radius: var(--his-radius);
    padding: 26px 24px 22px;
    box-shadow: var(--his-shadow-card);
    overflow: hidden;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.his-module-card::before,
.his-benefit-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--his-primary-bright), #818cf8);
    opacity: 0;
    transition: opacity .28s ease;
}

.his-module-card:hover,
.his-benefit-card:hover {
    transform: translateY(-6px);
    border-color: #c9d8ea;
    box-shadow: var(--his-shadow-hover);
}

.his-module-card:hover::before,
.his-benefit-card:hover::before {
    opacity: 1;
}

.his-module-card:hover .his-chip-icon,
.his-benefit-card:hover .his-chip-icon {
    background: var(--his-primary);
    border-color: var(--his-primary);
    color: #fff;
}

.his-module-card:hover h3,
.his-benefit-card:hover h3 {
    color: var(--his-primary);
}

.his-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.his-card-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    text-align: right;
    color: var(--tone-fg, var(--his-primary));
    background: var(--tone-bg, var(--his-blue-soft));
    border: 1px solid var(--tone-line, var(--his-blue-line));
    border-radius: 999px;
    padding: 5px 12px;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.his-card-badge.is-plain {
    color: #334155;
    background: transparent;
    border-color: transparent;
    padding-right: 0;
}

.his-benefit-card:hover .his-card-badge.is-plain {
    color: var(--his-primary);
    background: var(--his-blue-soft);
    border-color: var(--his-blue-line);
    padding-right: 12px;
}

.his-module-card h3,
.his-benefit-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color .25s ease;
}

.his-module-card p,
.his-benefit-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--his-muted);
    margin: 0;
}

.his-module-card > p {
    margin-bottom: 18px;
}

.his-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 18px;
    padding: 16px 0 0;
    border-top: 1px solid var(--his-line-soft);
}

.his-tags li {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    background: var(--his-tint);
    border: 1px solid var(--his-line);
    border-radius: 6px;
    padding: 4px 9px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.his-module-card:hover .his-tags li {
    color: var(--his-primary);
    background: var(--his-blue-soft);
    border-color: var(--his-blue-line);
}

.his-module-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--his-line-soft);
    text-align: right;
}

.his-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--his-primary);
    border-radius: 4px;
}

.his-link-btn i {
    transition: transform .2s ease;
}

.his-link-btn:hover i {
    transform: translateX(4px);
}

.his-config-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 48px;
    padding: 22px 26px;
    border-radius: var(--his-radius);
    background: linear-gradient(90deg, #eef4fc 0%, var(--his-tint) 100%);
    border: 1px solid #d6e3f3;
}

.his-config-copy {
    flex: 1 1 auto;
}

.his-config-copy h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 4px;
}

.his-config-copy p {
    font-size: 14.5px;
    color: var(--his-muted);
    margin: 0;
}

/* =====================================================================
   OPERATIONS SLIDER (driven by the shared createCarousel() helper)
   ===================================================================== */
.his-ops-slider {
    position: relative;
    max-width: 1120px;
    margin: 0 auto 64px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--his-ink);
    box-shadow: 0 30px 60px rgba(15, 23, 42, .24);
}

.his-ops-viewport {
    overflow: hidden;
}

.his-ops-viewport:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: -4px;
}

.his-ops-track {
    display: flex;
    transition: transform .6s ease;
}

.his-ops-track.no-transition {
    transition: none;
}

.his-ops-slide-item {
    flex: 0 0 calc(100% / var(--items-per-view, 1));
    max-width: calc(100% / var(--items-per-view, 1));
}

.his-ops-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 480px;
}

/* blank image area + legibility gradient */
.his-ops-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1e293b 0%, #172338 55%, #0f172a 100%);
}

.his-ops-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, .9) 100%);
}

.his-ops-chip {
    position: absolute;
    top: 24px;
    left: 32px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(15, 23, 42, .75);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 6px 13px;
}

.his-ops-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.his-ops-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #bfdbfe;
    background: rgba(37, 99, 235, .22);
    border: 1px solid rgba(147, 197, 253, .35);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 14px;
}

.his-page .his-ops-copy h3 {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.22;
    color: #fff;
    margin-bottom: 12px;
}

.his-ops-copy p {
    font-size: 16px;
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0;
}

.his-ops-count {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, .6);
    border-radius: 999px;
    padding: 4px 11px;
}

.his-ops-arrow {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: var(--his-ink);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
    transform: translateY(-50%);
    transition: background .2s ease, transform .2s ease;
}

.his-ops-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.his-ops-arrow.is-prev { left: 20px; }
.his-ops-arrow.is-next { right: 20px; }

.his-ops-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    background: #0b1222;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.his-ops-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.his-ops-tabs::-webkit-scrollbar {
    display: none;
}

.his-ops-tab {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.his-ops-tab:hover {
    color: #fff;
}

.his-ops-tab.is-active {
    background: var(--his-primary);
    color: #fff;
}

.his-ops-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.his-ops-dots .dot-item {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #334155;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.his-ops-dots .dot-item.active {
    width: 22px;
    background: #3b82f6;
}

/* =====================================================================
   BUILT FOR INDIA
   ===================================================================== */
.his-india-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 56px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--his-tint) 0%, #fff 70%);
    border: 1px solid var(--his-line);
    box-shadow: var(--his-shadow-card);
}

.his-india-media {
    aspect-ratio: 3 / 2;
    box-shadow: 0 18px 36px rgba(15, 23, 42, .12);
}

.his-india-card .his-section-title {
    font-size: 40px;
    margin-bottom: 20px;
}

/* =====================================================================
   FAQ (Bootstrap collapse; open state styled from aria-expanded)
   ===================================================================== */
.his-faq-list {
    max-width: 860px;
    margin: 0 auto;
}

.his-faq-item {
    background: #fff;
    border: 1px solid var(--his-line);
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .03);
    transition: border-color .25s ease, box-shadow .25s ease;
}

.his-faq-item:has(.his-faq-q[aria-expanded="true"]) {
    border-color: #a9c1dd;
    box-shadow: 0 10px 24px rgba(30, 90, 145, .08);
}

.his-faq-heading {
    margin: 0;
}

.his-page .his-faq-heading {
    font-family: inherit;
    letter-spacing: 0;
}

.his-faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 22px;
    background: none;
    border: 0;
    border-radius: 14px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--his-ink);
    transition: color .2s ease;
}

.his-faq-q[aria-expanded="true"] {
    color: var(--his-primary);
}

.his-faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #94a3b8;
    background: #f1f5f9;
    transition: color .2s ease, background .2s ease;
}

.his-faq-q[aria-expanded="true"] .his-faq-icon {
    color: var(--his-primary);
    background: var(--his-blue-soft);
}

.his-faq-toggle {
    flex-shrink: 0;
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--his-muted-2);
    background: #f1f5f9;
    transition: transform .3s ease;
}

.his-faq-q[aria-expanded="true"] .his-faq-toggle {
    transform: rotate(180deg);
}

.his-faq-a {
    font-size: 15px;
    line-height: 1.7;
    color: var(--his-muted);
    margin: 0;
    padding: 0 22px 22px 64px;
}

/* =====================================================================
   CTA
   ===================================================================== */
.his-cta-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 56px 48px;
    text-align: center;
    border-radius: 22px;
    background: linear-gradient(180deg, var(--his-tint) 0%, #fff 100%);
    border: 1px solid var(--his-line);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .06);
}

.his-cta-card .his-section-sub {
    margin: 0 auto 30px;
    max-width: 680px;
}

/* =====================================================================
   HIS DEMO MODAL
   ===================================================================== */
.his-demo-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.his-demo-modal .modal-header {
    align-items: flex-start;
    padding: 20px 24px;
    background: linear-gradient(135deg, #eaf2fc 0%, var(--his-tint) 100%);
    border-bottom: 1px solid var(--his-line);
}

.his-modal-eyebrow {
    margin-bottom: 4px;
}

.his-demo-modal .modal-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.his-demo-modal .modal-body {
    padding: 22px 24px 26px;
}

.his-field {
    margin-bottom: 16px;
}

.his-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--his-ink);
    margin-bottom: 6px;
}

.his-input {
    position: relative;
}

.his-input i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: #94a3b8;
    pointer-events: none;
}

.his-input input,
.his-demo-modal .form-select {
    width: 100%;
    font-size: 14.5px;
    font-weight: 400;
    color: var(--his-ink);
    background-color: var(--his-tint);
    border: 1px solid var(--his-line);
    border-radius: 9px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.his-input input {
    padding: 11px 12px 11px 38px;
}

.his-demo-modal .form-select {
    padding-top: 11px;
    padding-bottom: 11px;
}

.his-input input:focus,
.his-demo-modal .form-select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--his-primary);
    box-shadow: 0 0 0 3px rgba(30, 90, 145, .15);
}

.his-input input.is-invalid {
    border-color: var(--his-rose-bar);
}

.his-field-error,
.his-form-error {
    display: block;
    font-size: 12.5px;
    color: var(--his-rose-bar);
}

.his-field-error:not(:empty) {
    margin-top: 5px;
}

.his-form-error {
    margin: 0 0 10px;
}

.his-form-error:empty {
    display: none;
}

#hisDemoSubmit[disabled] {
    opacity: .7;
    cursor: progress;
}

/* Shared success toast (#successMsg) — positioned for this page only. */
.his-page .success-msg {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    width: min(360px, calc(100% - 40px));
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--his-primary);
    color: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .25);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}

.his-page .success-msg.show { opacity: 1; transform: none; }
.his-page .success-msg .row { align-items: center; flex-wrap: nowrap; }
.his-page .success-msg .col-md-3 { flex: 0 0 56px; max-width: 56px; }
.his-page .success-msg .col-md-9 { flex: 1 1 auto; }
.his-page .success-msg h4 { font-size: 1rem; font-weight: 700; margin: 0 !important; color: #fff; }
.his-page .success-msg p { margin: 2px 0 0; font-size: .85rem; }

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .his-page *,
    .his-page *::before,
    .his-page *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .his-module-card:hover,
    .his-benefit-card:hover,
    .his-btn-primary:hover {
        transform: none;
    }
}

/* =====================================================================
   RESPONSIVE (same breakpoints as the other service pages)
   ===================================================================== */

/* ---------- Laptop ---------- */
@media (max-width: 1199.98px) {
    .his-hero h1 { font-size: 48px; }
    .his-hero-grid { gap: 44px; }
    .his-section-title { font-size: 36px; }
    .his-india-card .his-section-title { font-size: 34px; }
    .his-page .his-ops-copy h3 { font-size: 30px; }
    .his-case-grid { grid-template-columns: 1fr 104px 1fr; }
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .his-section { padding: 68px 0; }
    .his-hero { padding: 40px 0 68px; }

    .his-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .his-hero h1 { font-size: 42px; }
    .his-hero-media { max-width: 720px; }
    .his-section-title { font-size: 32px; }
    .his-section-head { margin-bottom: 38px; }

    .his-matrix-bar { padding: 18px 20px; }
    .his-matrix-controls { width: 100%; justify-content: space-between; }
    .his-matrix-body { padding: 26px 22px 28px; }

    .his-case-grid { grid-template-columns: 1fr; }

    .his-case-link {
        flex-direction: row;
        padding: 14px 0;
    }

    .his-case-link::before,
    .his-case-link::after {
        width: auto;
        height: 1px;
        max-height: none;
        max-width: 80px;
    }

    .his-case-link-dot i { transform: rotate(90deg); }

    .his-ops-slide { min-height: 420px; padding: 32px 72px 30px 32px; }

    .his-config-banner { flex-wrap: wrap; }
    .his-config-copy { flex-basis: calc(100% - 62px); }

    .his-india-card { padding: 40px 28px; }
    .his-india-card .his-section-title { font-size: 30px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
    .his-section { padding: 56px 0; }
    .his-hero { padding: 32px 0 56px; }
    .his-hero h1 { font-size: 35px; }
    .his-hero-copy p { font-size: 16px; }
    .his-section-title { font-size: 28px; }
    .his-section-sub,
    .his-body-lg { font-size: 16px; }

    .his-case-head {
        grid-template-columns: auto 1fr;
        gap: 12px 14px;
    }

    .his-case-head h3 { font-size: 21px; }
    .his-case-tag { grid-column: 1 / -1; justify-self: start; }

    .his-ops-slide {
        min-height: 320px;
        padding: 72px 20px 24px;
    }

    .his-ops-chip { top: 16px; left: 16px; }
    .his-ops-count { top: 16px; right: 16px; }

    .his-ops-arrow {
        top: auto;
        bottom: 66px;
        width: 38px;
        height: 38px;
        transform: none;
    }

    .his-ops-arrow:hover { transform: none; }
    .his-ops-arrow.is-prev { left: auto; right: 64px; }
    .his-ops-arrow.is-next { right: 16px; }
    .his-ops-copy { padding-bottom: 52px; }
    .his-page .his-ops-copy h3 { font-size: 24px; }
    .his-ops-copy p { font-size: 15px; }
    .his-ops-dots { display: none; }

    .his-module-card,
    .his-benefit-card { padding: 22px 20px 20px; }

    .his-faq-q { padding: 18px; font-size: 15px; }
    .his-faq-a { padding: 0 18px 20px; }

    .his-cta-card { padding: 40px 22px; border-radius: 18px; }
}

/* ---------- Small mobile ---------- */
@media (max-width: 575.98px) {
    /* The shared navbar lockup is sized for wide screens; scale it down
       here (scoped to .his-page) so it cannot push the page sideways. */
    .his-page .hbn-logo-icon { height: 38px; }
    .his-page .nabh-logo-lockup .brand-name {
        font-size: 15px;
        letter-spacing: 0.2px;
    }

    .his-section { padding: 48px 0; }
    .his-hero h1 { font-size: 31px; }
    .his-section-title { font-size: 25px; }
    .his-india-card .his-section-title { font-size: 25px; }

    .his-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }

    .his-eyebrow { font-size: 11px; letter-spacing: .4px; }

    .his-matrix-bar { padding: 16px; }
    .his-matrix-controls { gap: 6px; }
    .his-ctrl { padding: 0 11px; }
    .his-ctrl-text { display: none; }
    .his-matrix-dots { gap: 4px; padding: 0; }
    .his-matrix-dot { width: 6px; height: 6px; }
    .his-matrix-dot.is-active { width: 18px; }
    .his-matrix-body { padding: 22px 16px 24px; }
    .his-case-box-body { padding: 18px 16px 16px; }
    .his-case-box-foot { padding: 11px 16px; }

    .his-config-banner { padding: 20px 18px; }

    .his-india-card { padding: 28px 18px; }
    .his-faq-icon { display: none; }
}

/* ---------- Very small mobile ---------- */
@media (max-width: 389.98px) {
    .his-page .hbn-logo-icon { height: 34px; }
    .his-page .nabh-logo-lockup .brand-name { font-size: 12.5px; }

    .his-hero h1 { font-size: 28px; }
    .his-section-title { font-size: 23px; }
    .his-btn { padding: 13px 16px; font-size: 14px; }
}
