/* ============================================================
   HospiSmart — Blog & EMR vs EHR pages
   File: assets/css/blog-emr-ehr.css
   Used only by: blog.html, emr-vs-ehr.html
   Every class is prefixed "hs-" so nothing here affects
   style.css or any other existing page.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
.hs-page {
    --hs-blue: #1f5fa8;
    --hs-blue-dark: #1b3a6b;
    --hs-blue-soft: #eef4fc;
    --hs-blue-line: #bfd3ee;
    --hs-brand-blue: #2f6db5;
    --hs-orange: #e8562a;
    --hs-orange-dark: #cf4519;
    --hs-orange-soft: #fff4ef;
    --hs-orange-line: #f3b7a0;
    --hs-navy: #0f1a2e;
    --hs-navy-2: #16294a;
    --hs-ink: #111827;
    --hs-heading: #111a2e;
    --hs-text: #4b5563;
    --hs-muted: #64748b;
    --hs-line: #e5e9f0;
    --hs-bg: #f5f7fa;
    --hs-white: #ffffff;
    --hs-green: #10b981;
    --hs-red: #be123c;
    --hs-pink-soft: #fdf3f4;

    --hs-sans: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --hs-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --hs-container: 1240px;
    --hs-header-h: 80px;
    --hs-radius: 16px;
    --hs-shadow: 0 10px 30px rgba(15, 27, 51, 0.08);
}

/* ---------- 2. Base (scoped to these pages) ---------- */
.hs-page,
.hs-page *,
.hs-page *::before,
.hs-page *::after {
    box-sizing: border-box;
}
tbody, td, tfoot, th, thead, tr {
    border-width: 2px;
}
.hs-page {
    margin: 0;
    font-family: var(--hs-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--hs-text);
    background: var(--hs-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* :where() keeps these resets at zero specificity so component rules always win */
:where(.hs-page) :where(h1, h2, h3, h4, p, ul, ol, figure, blockquote) {
    margin: 0;
}

:where(.hs-page) :where(ul, ol) {
    padding: 0;
    list-style: none;
}

:where(.hs-page) a {
    color: inherit;
    text-decoration: none;
}

:where(.hs-page) img {
    max-width: 100%;
    display: block;
}

:where(.hs-page) :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
}

:where(.hs-page) button {
    cursor: pointer;
}

.hs-page :focus-visible {
    outline: 2px solid var(--hs-blue);
    outline-offset: 2px;
}

.hs-page.hs-no-scroll {
    overflow: hidden;
}

.hs-container {
    width: 100%;
    max-width: var(--hs-container);
    margin: 0 auto;
    padding: 0 24px;
}

.hs-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------- 3. Buttons ---------- */
.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.hs-btn i {
    font-size: 0.95em;
}

.hs-btn-blue {
    background: var(--hs-blue);
    color: var(--hs-white) !important;
}

.hs-btn-blue:hover {
    background: var(--hs-blue-dark);
}

.hs-btn-orange {
    background: var(--hs-orange);
    color: var(--hs-white) !important;
    box-shadow: 0 6px 16px rgba(232, 86, 42, 0.25);
}

.hs-btn-orange:hover {
    background: var(--hs-orange-dark);
}

.hs-btn-ghost {
    background: transparent;
    color: var(--hs-text);
}

.hs-btn-ghost:hover {
    color: var(--hs-ink);
}

.hs-btn-lg {
    padding: 14px 26px;
    font-size: 15px;
}

.hs-btn-block {
    width: 100%;
}

/* ---------- 4. Header (shared) ---------- */
.hs-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--hs-line);
}

.hs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--hs-header-h);
}

/* Logo lockup built from the existing icon file */
.hs-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hs-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.hs-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.hs-logo-name {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--hs-brand-blue);
}

.hs-logo-name em {
    font-style: italic;
    color: var(--hs-orange);
    margin-left: 4px;
}

.hs-logo-tag {
    position: relative;
    margin-top: 6px;
    padding-bottom: 5px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--hs-brand-blue);
    white-space: nowrap;
}

.hs-logo-tag::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--hs-brand-blue), var(--hs-orange));
}

.hs-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hs-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.hs-nav a:hover,
.hs-nav a.is-active {
    color: var(--hs-blue);
}

.hs-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hs-nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--hs-line);
    border-radius: 8px;
    background: var(--hs-white);
    font-size: 22px;
    color: var(--hs-ink);
    align-items: center;
    justify-content: center;
}

.hs-nav-panel {
    display: contents;
}

/* EMR page header variant — two-line labels and active pill */
.hs-header--article .hs-nav {
    gap: 2px;
}

.hs-header--article .hs-nav a {
    padding: 7px 12px;
    font-size: 13.5px;
    line-height: 1.25;
    text-align: center;
}

.hs-header--article .hs-nav a.is-active {
    background: var(--hs-blue-soft);
}

.hs-header--article .hs-nav .hs-nav-contact i {
    font-size: 15px;
    color: var(--hs-muted);
}

.hs-header--article .hs-btn-orange {
    padding: 10px 18px;
    line-height: 1.25;
    white-space: normal;
}

/* Reading progress bar (EMR page) */
.hs-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    height: 3px;
    background: transparent;
    pointer-events: none;
}

.hs-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--hs-blue), #8a4f8f 55%, var(--hs-orange));
    transition: width 0.1s linear;
}

/* ---------- 5. Image placeholders (blank on purpose) ---------- */
.hs-img-ph {
    position: relative;
    width: 100%;
    background: #e9eef5;
}

.hs-img-ph--gradient {
    background: linear-gradient(135deg, #1b3a6b 0%, #1d4b86 55%, #1f5fa8 100%);
}


/* ---------- 6. Blog page ---------- */
.hs-blog-hero {
    padding-top: 72px;
    padding-bottom: 40px;
    text-align: center;
    margin-top: 90px;
}

.hs-blog-hero h1 {
    margin: 0 auto;
    font-family: var(--hs-serif);
    font-size: 58px;
    font-weight: 800;
    line-height: 1.12;
    color: var(--hs-heading);
}

.hs-blog-hero p {
    max-width: 740px;
    margin: 22px auto 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--hs-text);
}

.hs-filter-card {
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: var(--hs-radius);
    padding: 20px 24px 22px;
}

.hs-filter-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hs-muted);
}

.hs-filter-pills {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 10px;
    background: #f1f4f8;
    overflow-x: auto;
    scrollbar-width: thin;
}

.hs-pill {
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    padding: 8px 15px;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hs-pill:hover {
    color: var(--hs-blue);
}

.hs-pill.is-active {
    background: var(--hs-white);
    color: var(--hs-blue);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(15, 27, 51, 0.1);
}

.hs-posts {
    padding-top: 28px;
    padding-bottom: 88px;
}

.hs-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--hs-muted);
}

.hs-meta-cat {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hs-blue);
}

.hs-meta-new {
    font-size: 12px;
    font-weight: 700;
    color: var(--hs-orange);
}

.hs-meta-soon {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--hs-muted);
    background: #f1f4f8;
    padding: 3px 9px;
    border-radius: 999px;
}

/* Featured post */
.hs-featured {
    display: grid;
    grid-template-columns: 40% 1fr;
    overflow: hidden;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: var(--hs-radius);
    box-shadow: var(--hs-shadow);
}

.hs-featured .hs-img-ph {
    height: 100%;
    min-height: 265px;
}

.hs-featured-body {
    display: flex;
    flex-direction: column;
    padding: 22px 44px 20px;
}

.hs-featured-body h2 {
    margin-top: 0;
    font-family: var(--hs-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.22;
    color: var(--hs-heading);
}

.hs-featured-body h2 a:hover {
    color: var(--hs-blue);
}

.hs-featured-body p {
    font-size: 14.5px;
    line-height: 1.7;
    margin-bottom: 0;
}

.hs-featured-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    /* padding-top: 22px; */
    /* border-top: 1px solid var(--hs-line); */
}

/* .hs-featured-body p + .hs-featured-foot {
    margin-top: 24px;
} */

/* Post grid */
.hs-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.hs-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: var(--hs-radius);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hs-card:not(.is-coming-soon):hover {
    box-shadow: var(--hs-shadow);
    transform: translateY(-2px);
}

.hs-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 22px;
}

.hs-card-body h3 {
    margin-top: 10px;
    font-family: var(--hs-serif);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.32;
    color: var(--hs-heading);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-card-body p {
    margin-top: 12px;
    font-size: 14.5px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-card-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 22px;
    font-size: 13.5px;
    font-weight: 700;
}

.hs-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hs-blue);
}

.hs-card-foot a:hover {
    color: var(--hs-blue-dark);
}

.hs-card-foot .hs-soon-text {
    color: var(--hs-muted);
    font-weight: 600;
}

.hs-card.is-coming-soon .hs-img-ph {
    opacity: 0.82;
}

.hs-is-hidden {
    display: none !important;
}

.hs-empty {
    margin-top: 28px;
    padding: 40px 24px;
    text-align: center;
    background: var(--hs-white);
    border: 1px dashed var(--hs-line);
    border-radius: var(--hs-radius);
}

.hs-empty p {
    font-size: 15px;
}

.hs-empty button {
    margin-top: 14px;
}

/* ---------- 7. Blog footer ---------- */
.hs-footer {
    background: var(--hs-navy);
    color: #cbd5e1;
    padding: 64px 0 28px;
}

.hs-footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr 1.25fr;
    gap: 40px;
}

.hs-footer-logo {
    display: inline-flex;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--hs-white);
}

.hs-footer-logo .hs-logo img {
    width: 36px;
    height: 36px;
}

.hs-footer-logo .hs-logo-name {
    font-size: 22px;
}

.hs-footer-desc {
    margin-top: 18px;
    max-width: 340px;
    font-size: 13.5px;
    line-height: 1.7;
    color: #cbd5e1;
}

.hs-footer h3 {
    margin-bottom: 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hs-white);
}

.hs-footer-links li + li {
    margin-top: 9px;
}

.hs-footer-links a {
    font-size: 13.5px;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.hs-footer-links a:hover {
    color: var(--hs-white);
}

.hs-footer-text {
    font-size: 13.5px;
    line-height: 1.65;
    color: #cbd5e1;
}

.hs-footer-text + .hs-btn {
    margin-top: 16px;
}

.hs-footer-contact li {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.6;
}

.hs-footer-contact li + li {
    margin-top: 12px;
}

.hs-footer-contact i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hs-orange);
}

.hs-footer-contact a:hover {
    color: var(--hs-white);
}

.hs-footer-contact + .hs-btn {
    margin-top: 18px;
}

.hs-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12.5px;
    color: #94a3b8;
}

.hs-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
}

.hs-footer-bottom a:hover {
    color: var(--hs-white);
}

/* ---------- 8. Modals (shared) ---------- */
.hs-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hs-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.hs-modal-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: var(--hs-white);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.hs-modal.is-open .hs-modal-dialog {
    transform: none;
}

.hs-modal-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hs-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 16px;
    color: var(--hs-muted);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hs-icon-btn:hover {
    background: #f1f4f8;
    color: var(--hs-ink);
}

/* Article reader modal (blog) */
.hs-reader .hs-modal-dialog {
    max-width: 880px;
}

.hs-reader-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px 14px 28px;
    border-bottom: 1px solid var(--hs-line);
    font-size: 12.5px;
}

.hs-reader-bar-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: var(--hs-muted);
}

.hs-reader-bar-meta strong {
    font-weight: 600;
    color: var(--hs-blue);
}

.hs-reader-bar-actions {
    display: flex;
    gap: 4px;
}

.hs-reader-body {
    padding: 32px 40px 36px;
}

.hs-reader-body h2 {
    margin-top: 14px;
    font-family: var(--hs-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--hs-heading);
}

.hs-reader-body .hs-img-ph {
    aspect-ratio: 16 / 9;
    margin-top: 26px;
    border-radius: 12px;
}

.hs-quote {
    margin: 32px 0 26px;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--hs-blue);
    font-family: var(--hs-serif);
    font-size: 22px;
    font-style: italic;
    line-height: 1.5;
    color: #1f2937;
}

.hs-reader-text p {
    font-size: 16.5px;
    line-height: 1.85;
    color: #374151;
}

.hs-reader-text p + p {
    margin-top: 16px;
}

.hs-reader-text strong {
    color: var(--hs-ink);
}

.hs-dropcap::first-letter {
    float: left;
    margin: 6px 12px 0 0;
    font-family: var(--hs-serif);
    font-size: 58px;
    font-weight: 700;
    line-height: 0.8;
    color: var(--hs-blue-dark);
}

.hs-callout {
    display: flex;
    gap: 12px;
    margin-top: 26px;
    padding: 16px 18px;
    border: 1px solid var(--hs-line);
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13.5px;
    line-height: 1.6;
}

.hs-callout i {
    flex-shrink: 0;
    font-size: 18px;
    color: var(--hs-green);
}

.hs-callout strong {
    color: var(--hs-ink);
}

.hs-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--hs-line);
    font-size: 12.5px;
    color: var(--hs-muted);
}

.hs-tags span {
    padding: 4px 10px;
    border-radius: 6px;
    background: #f1f4f8;
    color: #475569;
}

.hs-reader-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 26px;
    padding: 18px 20px;
    border-radius: 12px;
    background: var(--hs-blue-soft);
    font-size: 14.5px;
    color: var(--hs-ink);
}

.hs-related {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--hs-line);
}

.hs-related h3 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hs-ink);
}

.hs-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.hs-related-card {
    padding: 16px 18px;
    border: 1px solid var(--hs-line);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.hs-related-card:hover {
    border-color: var(--hs-blue-line);
}

.hs-related-card .hs-meta-cat {
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
}

.hs-related-card h4 {
    margin-top: 6px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--hs-ink);
}

.hs-related-card p {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--hs-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-related-card .hs-soon-text {
    display: inline-block;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hs-muted);
}

/* Demo request modal */
.hs-demo-modal .hs-modal-dialog {
    max-width: 660px;
}

.hs-demo-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px 18px 24px;
    background: linear-gradient(120deg, var(--hs-blue-dark), var(--hs-blue));
    color: var(--hs-white);
}

.hs-demo-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 18px;
}

.hs-demo-head h2 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--hs-white);
}

.hs-demo-head p {
    font-size: 12.5px;
    color: #dbe6f5;
}

.hs-demo-head .hs-icon-btn {
    margin-left: auto;
    color: #dbe6f5;
}

.hs-demo-head .hs-icon-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--hs-white);
}

.hs-demo-body {
    padding: 20px 24px 8px;
}

.hs-demo-info {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--hs-blue-soft);
    font-size: 13px;
    line-height: 1.55;
    color: #334155;
}

.hs-demo-info i {
    color: var(--hs-blue);
}

.hs-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.hs-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hs-field--full {
    grid-column: 1 / -1;
}

.hs-field label {
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
}

.hs-input-wrap {
    position: relative;
}

.hs-input-wrap > i {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #94a3b8;
    pointer-events: none;
}

.hs-input {
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d6dde7;
    border-radius: 8px;
    background: var(--hs-white);
    font-size: 14px;
    color: var(--hs-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-input-wrap > i + .hs-input {
    padding-left: 36px;
}

.hs-input::placeholder {
    color: #94a3b8;
}

.hs-input:focus {
    outline: none;
    border-color: var(--hs-blue);
    box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.15);
}

textarea.hs-input {
    min-height: 72px;
    resize: vertical;
}

.hs-input.is-invalid {
    border-color: #dc2626;
}

.hs-field-error {
    min-height: 0;
    margin-top: 4px;
    font-size: 12px;
    color: #dc2626;
}

.hs-field-error:empty {
    display: none;
}

.hs-demo-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 20px;
}

.hs-demo-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    font-size: 12.5px;
    color: var(--hs-muted);
}

.hs-demo-note::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hs-green);
}

.hs-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

/* Toast */
.hs-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 380px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--hs-navy);
    color: var(--hs-white);
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hs-toast.is-visible {
    opacity: 1;
    transform: none;
}

.hs-toast i {
    margin-top: 2px;
    color: var(--hs-green);
}

.hs-toast.is-error i {
    color: #f87171;
}

/* ---------- 9. EMR vs EHR article page ---------- */
.hs-article-head {
    padding-top: 56px;
    padding-bottom: 8px;
    margin-top: 90px;
}

.hs-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 14px;
    color: var(--hs-muted);
}

.hs-article-meta a,
.hs-article-meta .hs-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--hs-blue);
}

.hs-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hs-article-meta .hs-sep {
    width: 1px;
    height: 14px;
    background: var(--hs-line);
}

.hs-article-head h1 {
    max-width: 1000px;
    margin-top: 16px;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--hs-ink);
}

.hs-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: start;
    padding: 32px 24px 88px;
}

.hs-article {
    min-width: 0;
}

.hs-section {
    scroll-margin-top: calc(var(--hs-header-h) + 20px);
}

.hs-section + .hs-section {
    padding-top: 52px;
    border-top: 1px solid var(--hs-line);
}

.hs-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hs-blue);
}

.hs-eyebrow--orange {
    color: var(--hs-orange);
}

.hs-article h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--hs-ink);
}

.hs-article h2 + .hs-lead,
.hs-article h2 + p {
    margin-top: 18px;
}

.hs-prose > p,
.hs-lead {
    font-size: 17.5px;
    line-height: 1.8;
    color: #374151;
}

.hs-prose > * + p {
    margin-top: 18px;
}

.hs-prose strong,
.hs-lead strong {
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-prose a:not(.hs-btn),
.hs-link {
    font-weight: 700;
    color: var(--hs-blue);
    border-bottom: 1px solid var(--hs-blue-line);
    transition: border-color 0.2s ease;
}

.hs-prose a:not(.hs-btn):hover,
.hs-link:hover {
    border-color: var(--hs-blue);
}

.hs-intro {
    font-size: 19px;
    line-height: 1.75;
}

.hs-highlight {
    font-weight: 700;
    color: var(--hs-ink);
    border-bottom: 2px solid var(--hs-blue-line);
}

.hs-article-hero-img {
    aspect-ratio: 16 / 9;
    margin-top: 32px;
    border-radius: var(--hs-radius);
}

.hs-block {
    margin-top: 26px;
}

.hs-prose > .hs-block,
.hs-prose > .hs-block + p {
    margin-top: 26px;
}

/* EMR record list */
.hs-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hs-check-item {
    display: flex;
    gap: 14px;
    padding: 15px 16px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.hs-check-item:hover {
    border-color: var(--hs-blue-line);
}

.hs-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--hs-blue-soft);
    font-size: 15px;
    color: var(--hs-blue);
}

.hs-check-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hs-ink);
}

.hs-check-item span {
    display: flex;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--hs-muted);
}

/* Example callout */
.hs-example {
    padding: 20px 24px;
    border-left: 3px solid var(--hs-blue);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, #edf3fc, #f7f9fc);
}

.hs-example-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--hs-blue);
}

.hs-example p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

/* Dark EHR ecosystem panel */
.hs-dark-panel {
    padding: 24px 28px 28px;
    border-radius: var(--hs-radius);
    background: var(--hs-navy);
    color: #cbd5e1;
}

.hs-dark-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.hs-dark-panel-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fb8a5c;
}

.hs-dark-panel-head span {
    font-size: 13px;
    color: #94a3b8;
}

.hs-dark-panel > p {
    margin-top: 16px;
    font-size: 15px;
    color: #cbd5e1;
}

.hs-dark-panel > p strong {
    color: var(--hs-white);
}

.hs-node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.hs-node {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #e2e8f0;
}

.hs-node::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hs-orange);
}

/* Comparison table */
.hs-table-wrap {
    overflow-x: auto;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    /* border-radius: 14px; */
    box-shadow: 0 4px 14px rgba(15, 27, 51, 0.05);
}

.hs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.55;
}

.hs-table th,
.hs-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--hs-line);
    text-align: left;
    vertical-align: middle;
}

.hs-table th + th,
.hs-table th + td,
.hs-table td + td {
    border-left: 1px solid var(--hs-line);
}

.hs-table thead th {
    background: #d8d8d8;;
    font-size: 15px;
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-table thead th:first-child {
    width: 25%;
}

.hs-table thead th.hs-col-emr {
    color: var(--hs-blue);
}

.hs-table thead th.hs-col-ehr {
    background: #f6c5ad;
    color: var(--hs-orange);
}

.hs-table thead th.hs-col-emr::before,
.hs-table thead th.hs-col-ehr::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: currentColor;
    vertical-align: middle;
}

.hs-table tbody th {
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-table tbody td {
    color: #374151;
}

.hs-table tbody tr:last-child th,
.hs-table tbody tr:last-child td {
    border-bottom: 0;
}

.hs-table tbody tr:hover th,
.hs-table tbody tr:hover td {
    background: #fafcff;
}

/* Info note */
.hs-note {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    font-size: 15.5px;
    line-height: 1.65;
    color: #374151;
}

.hs-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--hs-blue-soft);
    color: var(--hs-blue);
}

/* CTA band */
.hs-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 34px;
    border-radius: var(--hs-radius);
    background: linear-gradient(120deg, var(--hs-blue-dark) 0%, var(--hs-blue) 62%, #2a6fc2 100%);
    color: var(--hs-white);
}

.hs-cta h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--hs-white);
}

.hs-cta p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #dbe6f5;
}

.hs-cta .hs-btn {
    flex-shrink: 0;
}

/* Which is better */
.hs-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.hs-choice {
    display: flex;
    flex-direction: column;
    padding: 26px 24px 22px;
    background: var(--hs-white);
    border: 1.5px solid var(--hs-blue-line);
    border-radius: var(--hs-radius);
}

.hs-choice--ehr {
    border-color: var(--hs-orange-line);
}

.hs-choice-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hs-choice-head .hs-eyebrow {
    margin: 0;
    font-size: 12px;
}

.hs-badge {
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--hs-blue-soft);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hs-blue);
}

.hs-choice--ehr .hs-badge {
    background: var(--hs-orange-soft);
    color: var(--hs-orange);
}

.hs-choice h3 {
    margin-top: 18px;
    font-size: 20px;
    font-weight: 800;
    color: var(--hs-ink);
}

.hs-choice ul {
    margin-top: 16px;
}

.hs-choice li {
    display: flex;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
}

.hs-choice li + li {
    margin-top: 12px;
}

.hs-choice li i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hs-blue);
}

.hs-choice--ehr li i {
    color: var(--hs-orange);
}

.hs-choice-foot {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--hs-line);
    font-size: 13px;
    line-height: 1.55;
    color: var(--hs-muted);
}

.hs-choice ul {
    margin-bottom: 24px;
}

/* Hospital challenges */
.hs-challenge-list {
    display: grid;
    gap: 20px;
}

.hs-challenge {
    padding: 22px 22px 24px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}

.hs-challenge-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hs-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--hs-blue-soft);
    font-size: 14px;
    font-weight: 700;
    color: var(--hs-blue);
}

.hs-challenge h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hs-ink);
}

.hs-challenge-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.hs-challenge-split > div {
    padding: 16px 18px;
    border-radius: 10px;
}

.hs-pain {
    background: var(--hs-pink-soft);
}

.hs-solution {
    background: #f1f6fd;
}

.hs-challenge-split small {
    display: block;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hs-pain small {
    color: var(--hs-red);
}

.hs-solution small {
    color: var(--hs-blue);
}

.hs-challenge-split p {
    font-size: 14.5px;
    line-height: 1.65;
    color: #374151;
}

.hs-challenge-split p + p {
    margin-top: 10px;
}

.hs-challenge-split a {
    font-weight: 700;
    color: var(--hs-blue);
}

.hs-challenge-split strong {
    color: var(--hs-ink);
}

/* Evaluation criteria */
.hs-criteria-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.hs-criteria {
    padding: 22px 20px 24px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}

.hs-criteria small {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--hs-blue);
}

.hs-criteria h3 {
    margin-top: 12px;
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hs-ink);
}

.hs-criteria p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--hs-text);
}

.hs-criteria p + p {
    margin-top: 8px;
}

.hs-criteria strong {
    color: var(--hs-ink);
}

/* HospiSmart platform */
.hs-platform-img {
    aspect-ratio: 16 / 7;
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}

.hs-caption {
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    background: var(--hs-white);
    font-size: 13.5px;
    text-align: center;
    color: var(--hs-text);
}

.hs-module-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.hs-module {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--hs-line);
    border-radius: 12px;
    background: var(--hs-white);
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hs-module:hover {
    border-color: var(--hs-blue-line);
}

.hs-module.is-active {
    border-color: var(--hs-blue);
    background: #f1f6fd;
}

.hs-module-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--hs-blue);
}

.hs-module-top::after {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hs-green);
}

.hs-module strong {
    margin-top: 8px;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hs-ink);
}

.hs-module-desc {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--hs-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-module-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--hs-line);
    border-radius: 14px;
    background: var(--hs-white);
}

.hs-module-panel-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    font-size: 12.5px;
    color: var(--hs-muted);
}

.hs-module-panel-meta .hs-eyebrow {
    margin: 0;
    font-size: 12px;
}

.hs-module-panel h3 {
    margin-top: 8px;
    font-size: 21px;
    font-weight: 700;
    color: var(--hs-ink);
}

.hs-module-panel p {
    margin-top: 6px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--hs-text);
}

.hs-module-panel .hs-btn {
    flex-shrink: 0;
}

.hs-bullets {
    display: grid;
    gap: 8px;
}

.hs-bullets li {
    display: flex;
    gap: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
}

.hs-bullets li i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--hs-blue);
}

/* ---------- 10. Sidebar ---------- */
.hs-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-self: stretch;
}

.hs-side-card {
    padding: 20px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}

.hs-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1f2937;
}

.hs-side-title i {
    font-size: 15px;
    color: var(--hs-orange);
}

.hs-side-title--blue i {
    color: var(--hs-blue);
}

.hs-recent {
    margin-top: 16px;
}

.hs-recent-item + .hs-recent-item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--hs-line);
}

.hs-recent-item h3 {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--hs-ink);
}

.hs-recent-item h3 a:hover {
    color: var(--hs-blue);
}

.hs-recent-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    font-size: 12.5px;
    color: #94a3b8;
}

.hs-recent-foot a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--hs-blue);
}

.hs-recent-empty {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--hs-text);
}

.hs-recent-empty a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-weight: 700;
    color: var(--hs-blue);
}

.hs-cat-list {
    margin-top: 16px;
}

.hs-cat-list li + li {
    margin-top: 4px;
}

.hs-cat-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-left: 2px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hs-cat-list a:hover {
    background: #f6f8fb;
    color: var(--hs-blue);
}

.hs-cat-list a.is-active {
    border-left-color: var(--hs-blue);
    background: var(--hs-blue-soft);
    font-weight: 600;
    color: var(--hs-blue);
}

.hs-count {
    min-width: 26px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    color: var(--hs-muted);
}

.hs-cat-list a.is-active .hs-count {
    background: var(--hs-blue);
    color: var(--hs-white);
}

/* Sticky "Book A Demo" form */
.hs-side-sticky {
    position: sticky;
    top: calc(var(--hs-header-h) + 16px);
}

.hs-side-demo {
    padding: 22px;
    border-radius: var(--hs-radius);
    background: linear-gradient(165deg, var(--hs-navy-2) 0%, var(--hs-navy) 100%);
    box-shadow: 0 16px 40px rgba(15, 26, 46, 0.25);
}

.hs-side-demo h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--hs-white);
}

.hs-side-demo h2 i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(232, 86, 42, 0.18);
    font-size: 15px;
    color: #fb8a5c;
}

.hs-side-demo .hs-form-grid {
    gap: 12px 10px;
    margin-top: 18px;
}

.hs-side-demo label {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #cbd5e1;
}

.hs-side-demo .hs-input {
    min-height: 38px;
    padding: 8px 12px;
    border-color: transparent;
    background: #eef2f7;
    font-size: 13px;
}

.hs-side-demo .hs-input:focus {
    background: var(--hs-white);
    border-color: var(--hs-orange);
    box-shadow: 0 0 0 3px rgba(232, 86, 42, 0.25);
}

.hs-side-demo .hs-field-error {
    color: #fca5a5;
}

.hs-side-demo .hs-btn {
    margin-top: 16px;
    min-height: 42px;
}

/* EMR footer variant */
.hs-footer--article .hs-footer-grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.15fr;
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1240px) {
    .hs-header--article .hs-nav a {
        padding: 7px 9px;
        font-size: 13px;
    }

    .hs-article-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 32px;
    }

    .hs-module-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Article header collapses earlier because it has more links */
@media (max-width: 1140px) {
    .hs-header--article .hs-nav-toggle {
        display: inline-flex;
    }

    .hs-header--article .hs-nav-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 24px 20px;
        background: var(--hs-white);
        border-bottom: 1px solid var(--hs-line);
        box-shadow: 0 16px 30px rgba(15, 27, 51, 0.08);
    }

    .hs-header--article.is-open .hs-nav-panel {
        display: block;
    }

    .hs-header--article .hs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .hs-header--article .hs-nav a {
        justify-content: flex-start;
        padding: 11px 12px;
        font-size: 15px;
        text-align: left;
    }

    .hs-header--article .hs-br {
        display: none;
    }
}

@media (max-width: 991px) {
    /* Blog header collapses */
    .hs-header--blog .hs-nav-toggle {
        display: inline-flex;
    }

    .hs-header--blog .hs-nav-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 12px 24px 20px;
        background: var(--hs-white);
        border-bottom: 1px solid var(--hs-line);
        box-shadow: 0 16px 30px rgba(15, 27, 51, 0.08);
    }

    .hs-header--blog.is-open .hs-nav-panel {
        display: block;
    }

    .hs-header--blog .hs-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .hs-header--blog .hs-nav a {
        padding: 11px 12px;
    }

    .hs-blog-hero h1 {
        font-size: 44px;
    }

    .hs-featured {
        grid-template-columns: 1fr;
    }

    .hs-featured .hs-img-ph {
        min-height: 0;
        aspect-ratio: 16 / 8;
    }

    .hs-featured-body {
        padding: 30px 30px 26px;
    }

    .hs-featured-body h2 {
        font-size: 30px;
    }

    .hs-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .hs-footer-grid,
    .hs-footer--article .hs-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Article: sidebar drops below content */
    .hs-article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hs-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .hs-side-sticky {
        position: static;
        grid-column: 1 / -1;
        order: -1;
    }

    .hs-article-head h1 {
        font-size: 38px;
    }

    .hs-criteria-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hs-page {
        --hs-header-h: 70px;
    }

    .hs-container,
    .hs-article-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hs-logo img {
        width: 38px;
        height: 38px;
    }

    .hs-logo-name {
        font-size: 21px;
    }

    .hs-logo-tag {
        font-size: 10px;
    }

    .hs-header-actions > .hs-btn {
        padding: 9px 12px;
        font-size: 12.5px;
    }

    .hs-blog-hero {
        padding-top: 48px;
        padding-bottom: 30px;
    }

    .hs-blog-hero h1 {
        font-size: 34px;
    }

    .hs-blog-hero p {
        font-size: 16px;
    }

    .hs-filter-card {
        padding: 16px;
    }

    .hs-featured-body h2,
    .hs-reader-body h2 {
        font-size: 26px;
    }

    .hs-reader-body {
        padding: 24px 22px 28px;
    }

    .hs-reader-bar {
        padding: 12px 14px 12px 20px;
    }

    .hs-quote {
        font-size: 19px;
    }

    .hs-related-grid {
        grid-template-columns: 1fr;
    }

    .hs-article-head {
        padding-top: 36px;
    }

    .hs-article-head h1 {
        font-size: 31px;
    }

    .hs-article h2 {
        font-size: 26px;
    }

    .hs-intro {
        font-size: 17px;
    }

    .hs-prose > p,
    .hs-lead {
        font-size: 16px;
    }

    .hs-section + .hs-section {
         margin-top: 40px; 
        padding-top: 40px;
    }

    .hs-node-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hs-cta,
    .hs-module-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px 22px;
    }

    .hs-cta h3 {
        font-size: 21px;
    }

    .hs-choice-grid,
    .hs-challenge-split {
        grid-template-columns: 1fr;
    }

    .hs-sidebar {
        grid-template-columns: 1fr;
    }

    .hs-form-grid {
        grid-template-columns: 1fr;
    }

    .hs-demo-body {
        padding: 18px 18px 6px;
    }

    .hs-demo-foot {
        padding: 14px 18px 18px;
    }

    .hs-demo-note {
        width: 100%;
    }

    .hs-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .hs-modal-dialog {
        max-height: calc(100vh - 24px);
    }
}

/* Comparison table becomes stacked cards on phones */
@media (max-width: 640px) {
    .hs-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hs-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .hs-table,
    .hs-table tbody,
    .hs-table tr,
    .hs-table th,
    .hs-table td {
        display: block;
        width: 100%;
    }

    .hs-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        background: var(--hs-white);
        border: 1px solid var(--hs-line);
        border-radius: 12px;
    }

    .hs-table tbody th {
        padding: 12px 16px;
        background: #f8fafc;
        border-bottom: 1px solid var(--hs-line);
    }

    .hs-table tbody td {
        padding: 12px 16px;
        border-left: 0 !important;
    }

    .hs-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        font-size: 11.5px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hs-table tbody td:nth-of-type(1)::before {
        color: var(--hs-blue);
    }

    .hs-table tbody td:nth-of-type(2)::before {
        color: var(--hs-orange);
    }

    .hs-table tbody tr:last-child td:last-child,
    .hs-table tbody td:last-child {
        border-bottom: 0;
    }

    .hs-table tbody tr:last-child th {
        border-bottom: 1px solid var(--hs-line);
    }
}

@media (max-width: 575px) {
    .hs-logo-tag {
        display: none;
    }

    .hs-header-actions > .hs-btn span {
        display: none;
    }

    .hs-header-actions > .hs-btn {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .hs-blog-hero h1 {
        font-size: 30px;
    }

    .hs-post-grid {
        grid-template-columns: 1fr;
    }

    .hs-featured-body {
        padding: 24px 20px 22px;
    }

    .hs-featured-foot .hs-btn {
        width: 100%;
    }

    .hs-footer-grid,
    .hs-footer--article .hs-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hs-check-grid,
    .hs-criteria-grid {
        grid-template-columns: 1fr;
        padding-left: 0;
    }

    .hs-node-grid {
        grid-template-columns: 1fr;
    }

    .hs-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hs-article-head h1 {
        font-size: 27px;
    }

    .hs-cta .hs-btn,
    .hs-module-panel .hs-btn {
        width: 100%;
        white-space: normal;
    }

    .hs-toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hs-page *,
    .hs-page *::before,
    .hs-page *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}



/* ============================================================
   HospiSmart — blog post add-ons
   File: assets/css/blog-posts.css
   Loaded AFTER blog-emr-ehr.css by the two new blog posts only:
     blog/how-emr-software-helps-hospitals-achieve-nabh-compliance.html
     blog/how-medscribe-ai-reduces-documentation-burden-for-multispecialty-doctors.html
   Everything else on those pages reuses the existing blog styles.
   ============================================================ */

/* Sub-heading inside an article section */
.bp-h3 {
    margin: 30px 0 0;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--hs-ink);
}

.hs-prose > .bp-h3 + p {
    margin-top: 12px;
}

/* Numbered point cards (e.g. "How EMR Software Supports NABH Compliance") */
.bp-points {
    display: grid;
    gap: 16px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.bp-point {
    padding: 22px 22px 20px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-radius: 14px;
}

.bp-point-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bp-point-head h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hs-ink);
}

.bp-point p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.75;
    color: #374151;
}

.bp-point p strong {
    color: var(--hs-ink);
}

/* Step cards (e.g. "How MedScribe AI Works in 4 Simple Steps") */
.bp-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.bp-step {
    position: relative;
    padding: 22px 20px 20px;
    background: var(--hs-white);
    border: 1px solid var(--hs-line);
    border-top: 3px solid var(--hs-blue);
    border-radius: 14px;
}

.bp-step:nth-child(even) {
    border-top-color: var(--hs-orange);
}

.bp-step small {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--hs-blue);
}

.bp-step:nth-child(even) small {
    color: var(--hs-orange);
}

.bp-step h3 {
    margin: 8px 0 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--hs-ink);
}

.bp-step p {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
}

/* Three-column comparison tables need a wider first column on phones */
.bp-table-note {
    margin-top: 14px !important;
    font-size: 14.5px !important;
    color: var(--hs-muted) !important;
}

@media (max-width: 575px) {
    .bp-steps {
        grid-template-columns: 1fr;
    }

    .bp-point {
        padding: 18px 16px;
    }
}

/* Two-column variant of the existing criteria grid */
.hs-criteria-grid.hs-criteria-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Links inside the blue CTA band stay readable */
.hs-cta a:not(.hs-btn) {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.55);
}

.hs-cta a:not(.hs-btn):hover {
    border-bottom-color: #ffffff;
}

@media (max-width: 767px) {
    .hs-criteria-grid.hs-criteria-grid--2 {
        grid-template-columns: 1fr;
    }
}

/* Existing footer — the email address is one unbroken word and makes
   the page wider than a 768px tablet. Lets it wrap (these posts only). */
.footer-section span {
    overflow-wrap: anywhere;
}
