/* === Global font lock === */
html {
  font-size: 16px;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
}
/* ===== GLOBAL RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #FFFFFF;
    color: #1A1A1A;
    line-height: 1.5;
}

/* ===== COLOR TOKENS ===== */
:root {
    --navy: #0A2342;
    --blue: #1E88E5;
    --green: #43A047;
    --light-bg: #F7F9FC;
    --border: #E1E4EB;
    --text-muted: #6B7280;
    --shadow-soft: 0 14px 30px rgba(10, 35, 66, 0.12);
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER / NAVBAR ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(225, 228, 235, 0.9);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.brand-logo {
    height: 110px;
    width: 110px;          /* NEW: locks the width so it never shifts */
    object-fit: contain;   /* NEW: keeps the logo nicely inside */
    display: block;        /* NEW: avoids tiny inline-image spacing shifts */
    border-radius: 50%;
    background: #FFFFFF;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--navy);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* NAV */
.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 18px;
}

.main-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--navy);
    padding: 6px 4px;
    position: relative;
}

/* underline on hover/active */
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width .2s ease-out;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Donate button in nav */
.btn-nav {
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green);
    color: #FFFFFF !important;
    box-shadow: 0 6px 16px rgba(67, 160, 71, 0.25);
}

.btn-nav::after {
    display: none;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background-color: #FFFFFF;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--navy);
    border-radius: 10px;
}

/* ===== HERO (HOME PAGE) ===== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 90%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 2.5vw + 1.4rem, 2.5rem);
    color: var(--navy);
    margin-bottom: 14px;
}

.hero-content p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 14px;
    max-width: 34rem;
}

.hero-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* Hero visual */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero-logo {
    width: 170px;
    max-width: 70%;
}

.hero-card {
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 18px 20px;
    max-width: 280px;
    border: 1px solid rgba(225, 228, 235, 0.9);
}

.hero-card h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.hero-card ul {
    list-style: none;
    font-size: 0.95rem;
    color: #374151;
}

.hero-card li + li {
    margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: transform .1s ease-out, box-shadow .1s ease-out, background .1s ease-out, color .1s ease-out;
}

.btn.primary {
    background: var(--blue);
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(30, 136, 229, 0.28);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(30, 136, 229, 0.36);
}

.btn.secondary {
    background: var(--green);
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(67, 160, 71, 0.28);
}

.btn.secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(67, 160, 71, 0.36);
}

.btn.ghost {
    background: #FFFFFF;
    color: var(--navy);
    border-color: var(--border);
}

.btn.ghost:hover {
    background: #F3F4F6;
}

/* ===== GENERIC SECTIONS ===== */
.section {
    padding: 40px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
}

.section-header h2 {
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.98rem;
}

/* Cards grid */
.section-grid {
    background-color: #FFFFFF;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 18px 18px 20px;
    box-shadow: 0 6px 18px rgba(10, 35, 66, 0.03);
}

.card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 10px;
}

.card-link {
    font-size: 0.9rem;
    color: var(--blue);
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

/* Highlight section */
.section-highlight {
    background: var(--light-bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlight-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.highlight-inner h2 {
    color: var(--navy);
    margin-bottom: 8px;
}

.highlight-inner p {
    color: #4B5563;
}

.highlight-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
    border-top: 1px solid var(--border);
    background-color: #FFFFFF;
    padding: 18px 0 22px;
    margin-top: 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    font-size: 0.9rem;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.footer-right {
    display: flex;
    gap: 14px;
}

.footer-right a {
    text-decoration: none;
    color: var(--blue);
    font-size: 0.9rem;
}
/* Mobile nav layout */
/* === MOBILE NAV FIX (no hamburger, just compact) === */
@media (max-width: 768px) {

  /* Remove mobile dropdown behavior */
  .main-nav {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
  }

  /* Make header more compact */
  .site-header {
    padding: 6px 12px !important;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
  }

  /* Reduce logo size */
  .brand-logo {
    height: 36px !important;
  }

  /* Make nav items smaller */
  .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px !important;
    justify-content: center;
  }

  .main-nav a {
    font-size: 14px !important;
    padding: 6px 4px !important;
  }

  /* Make donate + language smaller */
  .donate-btn,
  .lang-switch {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }

  /* Hide hamburger completely */
  .nav-toggle {
    display: none !important;
  }
}

/* Modern Form Styling */
.contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form-inner label {
    font-weight: 600;
    color: #0A2342;
    margin-bottom: 3px;
    font-size: 0.95rem;
}

.contact-form-inner input,
.contact-form-inner textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D6DFEC;
    border-radius: 10px;
    font-size: 1rem;
    background: #F9FBFF;
    font-family: "Inter", sans-serif;
    transition: 0.2s ease;
}

.contact-form-inner input:focus,
.contact-form-inner textarea:focus {
    border-color: #1E88E5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.15);
    outline: none;
    background: #ffffff;
}

.contact-form-inner textarea {
    resize: vertical;
    min-height: 130px;
}

.btn-primary {
    background: #1E88E5;
    border: none;
    padding: 13px 18px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: not-allowed;
    opacity: 0.75;
}

.form-note {
    font-size: 0.9rem;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

/* ===== ABOUT & MISSION – NEW LAYOUT (SAFE) ===== */

/* Clean sub-hero with no background image */
.sub-hero.no-image {
    background: linear-gradient(180deg, #FFFFFF 0%, #F7F9FC 100%);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.sub-hero.no-image h1 {
    color: var(--navy);
    font-weight: 700;
    font-size: 2.2rem;
}

/* Two-column layout for About / Mission */
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.split-section.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.split-section img {
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
}

.split-section h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.split-section p {
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Highlight sections with soft Guinea/medical tones */
.about-highlight,
.mission-highlight {
    background: #F9C44022;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.about-highlight h2,
.mission-highlight h2 {
    text-align: center;
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 18px;
}

.about-highlight p,
.mission-highlight p {
    max-width: 900px;
    margin: 0 auto 12px;
    color: #333;
    line-height: 1.6;
}

/* Info cards (values/pillars) */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    background: #1E88E522;
    border-radius: 14px;
    padding: 18px 18px 20px;
    box-shadow: 0 6px 18px rgba(10, 35, 66, 0.06);
}

.info-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

/* Responsive for About / Mission */
@media (max-width: 900px) {
    .split-section,
    .split-section.reverse {
        grid-template-columns: 1fr;
    }
}

/* ================================
   SOFT COLOR UPDATE FOR EHR PORTAL
================================ */

/* Soft medical rose header */
.ehr-header {
    background: #F2D7D5; /* soft light rose */
    color: #4A4A4A;
    padding: 18px 24px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

/* Soft cream sidebar */
.ehr-sidebar {
    background: #FFF4CC; /* light cream yellow */
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    color: #0A2342;
}

/* Sidebar links soft hover */
.ehr-sidebar a:hover {
    color: #1E88E5;
}

/* Soft green vitals card */
.ehr-vital-card {
    background: #E3F3E8; /* pastel green */
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Section titles (keep blue, very professional) */
.ehr-section-title {
    color: #1E88E5;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 14px;
}

/* EHR preview image size (kept final version) */
.ehr-preview-image img {
    width: 300px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ======================================================
   EHR PORTAL LOGIN UI — Clean Medical Style (A)
====================================================== */

.ehr-login-section {
    background: #F4F8FF;
    padding: 60px 20px;
    border-bottom: 1px solid #E1E4EB;
}

.ehr-login-container {
    max-width: 420px;
    margin: auto;
    background: white;
    padding: 32px 28px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 45, 110, 0.12);
    text-align: center;
}

.ehr-login-logo {
    width: 100px;
    margin-bottom: 15px;
    opacity: .95;
}

.ehr-login-container h2 {
    color: #0A2342;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.ehr-login-subtext {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.ehr-login-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;
}

.ehr-login-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0A2342;
}

.ehr-login-form input,
.ehr-login-form select {
    padding: 12px 14px;
    border: 1px solid #D0D7E5;
    border-radius: 10px;
    background: #F9FBFF;
    font-size: 0.95rem;
}

.ehr-login-btn {
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #1E88E5;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.ehr-login-note {
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #6B7280;
}

/* ============================
   EHR PORTAL – TWO COLUMN TOP
============================ */

.ehr-top-wrapper {
    padding-top: 50px;
}

.ehr-top-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.ehr-intro-side {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.ehr-logo7-wrapper {
    flex-shrink: 0;
}

.ehr-logo7-img {
    width: 160px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.ehr-intro-text h2 {
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.ehr-intro-text p {
    color: #444;
    margin-bottom: 10px;
}

.ehr-preview-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media(max-width: 900px) {
    .ehr-top-grid {
        grid-template-columns: 1fr;
    }

    .ehr-intro-side {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================
   EHR PORTAL – TWO COLUMN LAYOUT
============================ */

.ehr-two-col {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.ehr-side-image {
    width: 260px;   /* slightly larger */
    margin-bottom: 20px;
    border-radius: 12px;
}

.ehr-info-block {
    flex: 1;
    padding-top: 10px;
}

.ehr-info-block h3 {
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 10px;
}

.ehr-info-block p {
    color: #444;
    line-height: 1.6;
    max-width: 420px;
}

/* Responsive */
@media (max-width: 900px) {
    .ehr-two-col {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ehr-info-block p {
        margin: 0 auto;
    }
}

/* ========================== EHR PORTAL – LOGIN UI ========================== */
.ehr-bg { background: #F7F9FC; background-image: url('data:image/svg+xml;utf8,\ <svg width="400" height="400" viewBox=\"0 0 400 400\" xmlns=\"http://www.w3.org/2000/svg\" opacity=\"0.06\">\ <circle cx=\"50\" cy=\"50\" r=\"4\" fill=\"#1E88E5\"/>\ <circle cx=\"150\" cy=\"250\" r=\"4\" fill=\"#43A047\"/>\ <rect x=\"250\" y=\"80\" width=\"6\" height=\"6\" fill=\"#F9C440\"/>\ <circle cx=\"340\" cy=\"340\" r=\"4\" fill=\"#C62828\"/>\ </svg>'); background-size: 420px; }
.ehr-main { padding: 60px 0; }
.ehr-login-container { display: flex; justify-content: center; padding: 20px; }
.ehr-card { background: white; padding: 32px 34px; border-radius: 18px; width: 100%; max-width: 420px; box-shadow: 0 14px 30px rgba(10, 35, 66, 0.12); border: 1px solid #E1E4EB; }
.ehr-login-logo { width: 140px; display: block; margin: 0 auto 10px; }
.ehr-title { text-align: center; color: var(--navy); font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.ehr-subtitle { text-align: center; color: #6B7280; font-size: 0.9rem; margin-bottom: 20px; }
.ehr-form { display: flex; flex-direction: column; gap: 14px; }
.ehr-input { padding: 12px 14px; border: 1px solid #D6DFEC; border-radius: 10px; font-size: 1rem; background: #F9FBFF; }
.ehr-password-wrapper { position: relative; }
.toggle-password { position: absolute; right: 12px; top: 10px; cursor: pointer; font-size: 1.1rem; opacity: 0.6; }
.ehr-forgot { font-size: 0.85rem; color: var(--blue); text-align: right; display: block; text-decoration: none; }
.ehr-forgot:hover { text-decoration: underline; }
.ehr-btn { background: #1E88E5; color: white; padding: 12px; border-radius: 10px; font-size: 1rem; border: none; opacity: 0.75; cursor: not-allowed; margin-top: 10px; }
.ehr-note { font-size: 0.85rem; color: #555; margin-top: 14px; text-align: center; }

/* ==========================
   EHR Portal Layout (SAFE)
========================== */

.ehr-header {
    background: #F7F9FC;
    border-bottom: 1px solid #E1E4EB;
}

/* LEFT = login, RIGHT = logo + text */
.ehr-layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 70px; /* <- bigger space between columns */
    align-items: center;
}

/* Right side text spacing */
.ehr-right {
    text-align: left;
    padding-right: 40px; /* <- push slightly to the right */
}

/* Hero logo size (Option A = small increase) */
.ehr-portal-logo {
    width: 210px;
    display: block;
    margin-bottom: 18px;
}

/* Typography */
.ehr-portal-title {
    font-size: 1.9rem;
    color: #0A2342;
    font-weight: 700;
    margin-bottom: 8px;
}

.ehr-portal-text {
    font-size: 1rem;
    color: #374151;
    max-width: 480px;
    margin-bottom: 14px;
    line-height: 1.55;
}

/* Mobile */
@media (max-width: 900px) {
    .ehr-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ehr-right {
        text-align: center;
        padding: 0;
    }

    .ehr-portal-logo {
        margin: 0 auto 18px;
    }
}

/* ===== LOGIN BUTTON ACTIVE STATE ===== */
.ehr-btn {
    background: #1E88E5;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    border: none;
    opacity: 0.75;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s ease;
}

.ehr-btn.enabled:hover {
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.25);
    transform: translateY(-1px);
}

/* ==============================
   LOGIN MODAL OVERLAY
   ============================== */
.login-modal.hidden {
    display: none;
}

.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 35, 66, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-modal-content {
    background: white;
    padding: 40px 50px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 14px 30px rgba(10, 35, 66, 0.18);
    border: 1px solid #E1E4EB;
    animation: modalPop 0.25s ease-out;
}

.login-modal-content h3 {
    font-size: 1.6rem;
    color: var(--navy);
    margin-bottom: 8px;
}

.login-modal-content p {
    font-size: 1rem;
    color: #555;
}

/* Spinner */
.login-spinner {
    width: 32px;
    height: 32px;
    border: 4px solid #E1E4EB;
    border-top-color: var(--blue);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =====================================
   EHR WORKSPACE PREVIEW (SIDEBAR + MAIN)
   Soft medical + Guinea accent colors
===================================== */

.ehr-workspace-section {
    background: #F9FAFF;
    border-top: 1px solid #E1E4EB;
    margin-top: 10px;
}

.ehr-shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 18px;
    align-items: flex-start;
}

/* Mobile toggle button */
.ehr-shell-toggle {
    display: none;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #D0D7E5;
    background: #FFFFFF;
    font-size: 0.9rem;
    color: #0A2342;
    cursor: pointer;
}

/* Sidebar */
.ehr-shell-sidebar {
    background: #FFF7D6; /* soft Guinea-inspired cream */
    border-radius: 14px;
    padding: 18px 18px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.ehr-shell-title {
    font-size: 1rem;
    color: #0A2342;
    font-weight: 700;
    margin-bottom: 12px;
}

.ehr-shell-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ehr-shell-menu li {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    color: #0A2342;
    cursor: pointer;
    margin-bottom: 6px;
    transition: background 0.15s ease, color 0.15s ease;
}

.ehr-shell-menu li.active {
    background: #1E88E5;
    color: #FFFFFF;
    font-weight: 600;
}

.ehr-shell-menu li:hover:not(.active) {
    background: #FBE6E4; /* soft rose hover */
}

.ehr-shell-logout {
    margin-top: 10px;
    color: #C62828;
    font-weight: 600;
}

/* Main content area */
.ehr-shell-main {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 20px 22px 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    border: 1px solid #E1E4EB;
}

.ehr-shell-main-title {
    font-size: 1.4rem;
    color: #0A2342;
    margin-bottom: 8px;
}

.ehr-shell-main-text {
    font-size: 0.96rem;
    color: #444;
    margin-bottom: 16px;
}

.ehr-shell-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.ehr-shell-card {
    background: #F4F8FF;
    border-radius: 12px;
    padding: 14px 12px;
    border: 1px solid #E1E4EB;
}

.ehr-shell-card h4 {
    font-size: 0.98rem;
    color: #1E88E5;
    margin-bottom: 4px;
}

.ehr-shell-card p {
    font-size: 0.9rem;
    color: #444;
}

.ehr-shell-note {
    font-size: 0.88rem;
    color: #6B7280;
}

/* ====== Responsive (Sidebar hide on mobile) ====== */
@media (max-width: 900px) {
    .ehr-shell {
        grid-template-columns: 1fr;
    }

    .ehr-shell-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .ehr-shell-sidebar {
        position: fixed;
        top: 64px;  /* just under main header */
        left: 0;
        bottom: 0;
        width: 260px;
        max-width: 80%;
        transform: translateX(-100%);
        transition: transform 0.2s ease-out;
        z-index: 50;
    }

    .ehr-shell.sidebar-open .ehr-shell-sidebar {
        transform: translateX(0);
    }

    .ehr-shell-main {
        position: relative;
        z-index: 1;
    }
}

/* ==============================
   EHR DETAIL PANEL (COMPACT - REPLACEMENT)
============================== */

.ehr-detail-panel {
    max-width: 520px;
    margin: 24px auto 0;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #E1E4EB;
    box-shadow: 0 12px 28px rgba(10, 35, 66, 0.12);
}

.ehr-detail-panel.hidden {
    display: none;
}

.ehr-detail-content{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.ehr-detail-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}

.ehr-detail-label{
  color: var(--navy);
  font-weight:600;
  font-size:0.95rem;
}

/* Status badges (kept original colored version) */
.ehr-status {
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
}

.status-pending { background: #FFF3CD; color: #8A6D1D; }
.status-complete { background: #E3F3E8; color: #2E7D32; }
.status-critical { background: #FDECEA; color: #C62828; }
.status-stable   { background: #E9F3FF; color: #1E88E5; }
.status-available{ background: #E3F3E8; color: #2E7D32; }
.status-full     { background: #FDECEA; color: #C62828; }

/* Close header + button (kept single copy) */
.ehr-detail-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.ehr-detail-close{
  border:1px solid var(--border);
  background:#fff;
  width:34px;
  height:34px;
  border-radius:10px;
  cursor:pointer;
  line-height:1;
  font-size:16px;
  color:var(--navy);
}

.ehr-detail-close:hover{
  background:#F3F4F6;
}

/* Hidden state */
.hidden {
    display: none;
}

.ehr-vital-card.active {
    outline: 2px solid #1E88E5;
    background: #E9F3FF;
}

.ehr-vital-card {
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ehr-vital-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 35, 66, 0.18);
}

/* ===========================
   ACCESSIBILITY + PHONE POLISH
   (safe additions)
=========================== */

/* Visible keyboard focus (important for accessibility) */
a:focus-visible,
button:focus-visible,
.ehr-vital-card:focus-visible,
.ehr-shell-menu li:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 3px;
}

/* Minimum tap size for phones */
.main-nav a,
.btn,
.btn-nav,
.nav-toggle,
.ehr-shell-toggle,
.ehr-detail-close {
  min-height: 44px;
}

/* Mobile nav links: full width tap */
@media (max-width: 768px) {
  .main-nav a {
    padding: 10px 8px;
    width: 100%;
  }
}

/* Sidebar menu items easier to tap */
.ehr-shell-menu li {
  padding: 10px 12px;
}
/* =========================================================
   EHR – Pilot / Technical / Designed section (RESPONSIVE FIX)
   Paste at the VERY BOTTOM of style.css
========================================================= */

/* Top intro area */
.ehr-pilot-section {
  background: #F7F9FC;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.ehr-pilot-section .container {
  max-width: 1050px;
}

.ehr-pilot-title {
  text-align: center;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.ehr-pilot-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.ehr-pilot-text {
  max-width: 980px;
  margin: 0 auto;
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.75;
}

.ehr-pilot-text p + p {
  margin-top: 14px;
}

/* Two cards row */
.ehr-dual-section {
  background: #F7F9FC;
  padding: 36px 0 56px;
}

.ehr-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.ehr-dual-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px;
  box-shadow: 0 10px 26px rgba(10, 35, 66, 0.06);
  min-height: 320px; /* keeps them visually balanced */
}

.ehr-dual-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #1E88E5;
}

.ehr-dual-card p {
  margin: 0 0 12px;
  color: #111827;
  line-height: 1.7;
}

/* Dark card */
.ehr-dual-card.highlight {
  background: #0A2342;
  border-color: rgba(255,255,255,0.12);
}

.ehr-dual-card.highlight h2 {
  color: #ffffff;
}

.ehr-dual-card.highlight p {
  color: rgba(255,255,255,0.92);
}

/* ✅ PHONE / TABLET FIX */
@media (max-width: 900px) {
  .ehr-pilot-section {
    padding: 44px 0;
  }

  .ehr-pilot-title {
    font-size: 1.6rem;
  }

  .ehr-dual-grid {
    grid-template-columns: 1fr; /* stack on phone */
    gap: 16px;
  }

  .ehr-dual-card {
    padding: 22px 20px;
    min-height: auto;
  }
}

/* =========================================================
   PHONE POLISH PACK (SAFE ADD-ON)
   Paste at END of style.css
========================================================= */

/* Prevent horizontal scrolling caused by wide elements */
html, body {
  overflow-x: hidden;
}

/* Images behave on small screens */
img {
  max-width: 100%;
  height: auto;
}

/* Better spacing on small screens */
@media (max-width: 600px) {
  .section {
    padding: 28px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero-content h1,
  .sub-hero.no-image h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .section-header h2,
  .split-section h2 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .hero-inner {
    gap: 22px;
  }

  .split-section,
  .split-section.reverse {
    gap: 18px;
  }

  .split-section img {
    max-width: 100%;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  /* Do NOT force full-width links */
  .main-nav a { width: auto; }
}

/* ==========================
   EHR: Sections & layout
========================== */
@media (max-width: 900px) {
  /* Any 2-column EHR grid should stack */
  .ehr-dual-grid,
  .ehr-info-grid,
  .ehr-shell {
    grid-template-columns: 1fr !important;
  }

  /* Reduce padding inside large cards on phone */
  .ehr-dual-card,
  .ehr-shell-main,
  .ehr-shell-sidebar,
  .ehr-card-block,
  .ehr-info-right {
    padding: 18px !important;
  }

  /* EHR dashboard cards: better on phone */
  .ehr-dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  /* Make vital cards feel tighter */
  .ehr-vital-card,
  .ehr-vital-card.compact {
    padding: 14px !important;
  }
}

/* ==========================
   EHR Detail panel (Preview)
   Make it compact & not huge
========================== */
.ehr-detail-panel{
  width: calc(100% - 40px);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* On phone: reduce the “big open” feeling */
@media (max-width: 600px) {
  .ehr-detail-panel {
    padding: 16px 16px 18px !important;
    margin-top: 16px !important;
    border-radius: 14px;
  }

  .ehr-detail-panel h3 {
    font-size: 1.1rem !important;
    margin-bottom: 10px !important;
  }

  .ehr-detail-row {
    padding: 10px !important;
  }

  .ehr-status {
    font-size: 0.8rem !important;
    padding: 5px 10px !important;
  }
}

/* ==========================
   EHR Sidebar (mobile)
   Better overlay + tap UX
========================== */
@media (max-width: 900px) {
  /* Make sidebar feel like a real slide-out */
  .ehr-shell-sidebar {
    box-shadow: 0 16px 40px rgba(10, 35, 66, 0.18) !important;
  }
}

/* Make the close button always look correct */
.ehr-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Improve tap targets across the board */
.main-nav a,
.btn,
.btn-nav,
.nav-toggle,
.ehr-shell-toggle,
.ehr-detail-close,
.ehr-shell-menu li {
  min-height: 44px;
}

/* Keyboard focus visibility (accessibility) */
a:focus-visible,
button:focus-visible,
.ehr-vital-card:focus-visible,
.ehr-shell-menu li:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 3px;
}
/* ===========================
   LANGUAGE SWITCH (SAFE)
   Paste at END of style.css
=========================== */
.lang-switch{
  display:flex;
  gap:8px;
  align-items:center;
}

.lang-btn{
  border:1px solid var(--border);
  background:#fff;
  color:var(--navy);
  padding:8px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:600;
  font-size:0.9rem;
  min-height:44px; /* phone tap target */
}

.lang-btn[aria-pressed="true"]{
  background: rgba(30,136,229,0.12);
  border-color: rgba(30,136,229,0.35);
}

@media (max-width:768px){
  .lang-switch{ margin-left:auto; }
}
/* Remove browser invalid red styling */
input:invalid,
textarea:invalid {
  box-shadow: none;
  outline: none;
}
/* Contact form button behavior */
#contact-form button[type="submit"]{
  cursor: allowed;
  opacity: 0.6;
  transform: translateY(0);
  transition: transform 150ms ease, opacity 150ms ease, filter 150ms ease;
  pointer-events: none; /* prevents click until ready */
}

#contact-form button[type="submit"].is-ready{
  cursor: pointer;
  opacity: 1;
  filter: brightness(1.03);
  pointer-events: auto; /* clickable */
}

#contact-form button[type="submit"].is-ready:hover{
  transform: translateY(-2px);
}
/* FORCE the submit button to be clickable */
#contact-form button[type="submit"]{
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 9999 !important;
}
.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.form-status.info { opacity: 0.9; }
.form-status.success { font-weight: 600; }
.form-status.error { font-weight: 600; }
.form-status { margin-top: 12px; font-size: 0.95rem; }
/* =========================
   GHL Home Page Polish Pack
   (safe: no layout changes)
   ========================= */

/* Buttons feel clickable */
.btn-primary,
.btn-nav,
.card-link {
  cursor: pointer;
}

/* Button micro-interactions */
.btn-primary {
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  will-change: transform;
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0px);
}

/* Card hover polish (no layout shift) */
.card,
.hero-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}
.card:hover,
.hero-card:hover {
  transform: translateY(-4px);
}

/* Links feel smoother */
a {
  transition: opacity 140ms ease, transform 140ms ease;
}
a:hover {
  opacity: 0.95;
}

/* Keyboard focus (nice + accessible) */
.btn-primary:focus-visible,
.btn-nav:focus-visible,
a:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid rgba(10, 35, 66, 0.35);
  outline-offset: 3px;
  border-radius: 10px;
}
/* ========= FIX: HEADER LOGO/TEXT SIZE SHIFT ========= */
.brand-logo{
  width: 110px;     /* locks width so it won't change */
  height: 110px;    /* locks height so it won't change */
  object-fit: cover;
  flex-shrink: 0;
}
/* ===== OVERRIDE: keep nav horizontal on phones (no hamburger) ===== */
@media (max-width: 768px) {
  /* If earlier rules set links to full width, undo that */
  .main-nav a {
    width: auto !important;
  }

  /* If earlier rules were for dropdown positioning, neutralize it */
  .main-nav {
    inset: auto !important;
  }

  /* Ensure the ul stays one row and can scroll */
  .main-nav ul {
    width: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}
/* =========================================================
   NAV FIX (EHR + CONTACT) + LOGO SIZE STABILITY
   Paste at the VERY BOTTOM of style.css
========================================================= */

/* Stop header/logo from resizing slightly between pages */
.brand-logo { flex: 0 0 auto; }
.brand-text { flex: 0 0 auto; }
.brand-title, .brand-subtitle { line-height: 1.15; }

/* Force nav to always be visible and NOT collapsed */
.main-nav {
  position: static !important;
  max-height: none !important;
  overflow: visible !important;
}

/* Desktop/tablet: normal nav */
@media (min-width: 769px) {
  .main-nav ul {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 18px !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }
}

/* Mobile: NO hamburger, keep horizontal scroll like Mission/About */
@media (max-width: 768px) {
  .nav-toggle { display: none !important; }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-nav ul {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
    white-space: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 6px 0 !important;
  }

  /* IMPORTANT: prevent “full width links” (that breaks horizontal nav) */
  .main-nav a { width: auto !important; }
}

/* Optional: hide the scrollbar line on WebKit */
.main-nav ul::-webkit-scrollbar { height: 0px; }
/* Make EHR preview panel narrower */
.ehr-detail-panel {
    width: 70%;
    max-width: 600px;   /* change to 650px if you want even smaller */
    margin: 30px auto;
}
/* === Lock header brand permanently === */
.site-header .brand h1,
.site-header .brand h2,
.site-header .brand h3 {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

.site-header .brand p {
  font-size: 15px !important;
  font-weight: 500 !important;
  margin: 0 !important;
}
/* Contact form: permanently hide the old status line */
#form-status {
  display: none !important;
}
.contact-toast{
  margin: 0 0 12px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.contact-spinner{
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
/* === MOBILE NAV PATCH (keep same layout, just make it fit) === */
@media (max-width: 768px) {

  /* 1) Prevent logo/header from getting clipped */
  .site-header,
  .header-inner {
    overflow: visible !important;
  }

  .brand,
  .brand-logo {
    flex: 0 0 auto !important;   /* don't shrink */
  }

  /* 2) Keep everything on-screen by allowing wrap */
  .header-inner {
    flex-wrap: wrap !important;
    row-gap: 10px;
  }

  /* 3) Make nav row compact + wrap instead of cutting off */
  .main-nav {
    width: 100% !important;
  }

  .main-nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 6px 0 !important;
  }

  .main-nav a {
    font-size: 13px !important;
    padding: 6px 6px !important;
    white-space: nowrap;
  }

  /* 4) FORCE Donate + Language to show (they’re being hidden) */
  .nav-actions,
  .nav-right,
  .header-actions,
  .donate-btn,
  .lang-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .donate-btn,
  .lang-switch {
    font-size: 13px !important;
    padding: 6px 10px !important;
    white-space: nowrap;
  }
}
/* ===== EHR two-column layout (desktop centered + mobile stacked) ===== */
.ehr-two-col{
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;

  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
}

/* Keep both panels balanced */
.ehr-two-col .ehr-card,
.ehr-two-col .ehr-info-block{
  flex: 0 1 520px;   /* stable column width */
  min-width: 320px;
}

/* Button under paragraph (inside right panel) */
.ehr-info-block .ehr-portal-access{
  margin-top: 16px;
}

/* Mobile: stack cleanly (no breaking phone layout) */
@media (max-width: 768px){
  .ehr-two-col{
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .ehr-two-col .ehr-card,
  .ehr-two-col .ehr-info-block{
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }
}
.ehr-info-block .ehr-portal-access { text-align: center; }
/* EHR Access Portal button: clean multiline text + mobile friendly */
.ehr-info-block .ehr-portal-access{
  text-align: center;
}

.ehr-info-block .ehr-portal-access .btn-primary{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;

  height: auto;            /* prevents clipping */
  line-height: 1.2;        /* prevents overlap */
  padding: 14px 18px;      /* consistent spacing */
  text-decoration: none;
}

.ehr-info-block .ehr-portal-access .btn-en{
  font-size: 14px;
  opacity: 0.9;
}
/* ===== Mobile header: show full logo (no cropping) ===== */
@media (max-width: 768px) {
  .site-header,
  .header-inner {
    height: auto !important;
    overflow: visible !important;
    align-items: center !important;
  }

  .brand {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
  }

  .brand-logo {
    height: 52px !important;   /* adjust if you want bigger/smaller */
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  /* if your logo is inside a link, prevent shrinking */
  .brand,
  .brand * {
    flex-shrink: 0;
  }
}
/* ===== Mobile: prevent text overflow in cards/sections ===== */
@media (max-width: 768px) {

  /* Allow long words/URLs to wrap instead of overflowing */
  p, h1, h2, h3, h4, h5, h6, li, a, span, label, small, strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Images/iframes never overflow their containers */
  img, svg, video, iframe {
    max-width: 100%;
    height: auto;
  }

  /* Cards/boxes: keep content inside */
  .card, .info-card, .ehr-card, .ehr-info-block, .contact-card, .feature-card {
    overflow: hidden;
  }

  /* Inputs/selects/buttons: never exceed container */
  input, select, textarea, button {
    max-width: 100%;
  }
}
.epic-style-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background-color: #2f6fb2; /* GHL professional blue */
  color: #ffffff;

  padding: 12px 22px;
  border-radius: 6px;

  font-weight: 600;
  font-size: 15px;
  text-decoration: none;

  transition: background-color 0.2s ease;
}

.epic-style-btn:hover {
  background-color: #255c94;
}

.epic-style-btn .btn-sub {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  margin-top: 2px;
}