/* ==========================================================================
   xMed — modern.css
   Layered on top of site.css. 2026 UI refresh:
   - PHC compliance badges
   - Glassmorphism nav
   - Mesh gradient accents
   - Modern card lift / focus states
   - Marquee client logo strip
   - Service strip + section dividers
   - JSON-LD safe (no global resets)
   ========================================================================== */

/* ---------- Design tokens (extend the existing palette) ---------- */
:root {
  --phc: #0f7c5b;
  --phc-bg: #e7f5ef;
  --phc-bg-strong: #d2ebde;
  --ink: #0b1f33;
  --ink-soft: #34495e;
  --line: #e6ecf2;
  --bg: #ffffff;
  --bg-soft: #f7fafc;
  --bg-tint: #eff7fb;
  --shadow-sm: 0 1px 2px rgba(11, 31, 51, 0.06), 0 1px 3px rgba(11, 31, 51, 0.04);
  --shadow-md: 0 6px 16px rgba(11, 31, 51, 0.06), 0 2px 6px rgba(11, 31, 51, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(0, 136, 204, 0.18), 0 8px 16px -8px rgba(0, 136, 204, 0.10);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --gradient-mesh: radial-gradient(at 18% 12%, rgba(0, 136, 204, 0.18) 0px, transparent 50%),
                   radial-gradient(at 82% 0%, rgba(0, 181, 173, 0.16) 0px, transparent 50%),
                   radial-gradient(at 60% 100%, rgba(0, 214, 143, 0.14) 0px, transparent 50%);
}

/* ---------- Page background mesh + soft section dividers ---------- */
body {
  background:
    var(--gradient-mesh),
    var(--bg);
  background-attachment: fixed;
}

section {
  position: relative;
  scroll-margin-top: 90px;
}

/* Section dividers — gentle wave between alternating backgrounds */
.divider-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin: -1px 0;
}

.divider-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Nav: glass + sticky shrink ---------- */
.navbar {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(230, 236, 242, 0.6);
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
  padding: 8px 0 !important;
  box-shadow: 0 4px 18px rgba(11, 31, 51, 0.06);
}

.navbar .nav-link {
  position: relative;
  padding: 8px 14px !important;
  border-radius: 10px;
}

.navbar .nav-link:hover {
  color: var(--primary);
  background: rgba(0, 136, 204, 0.06);
}

.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

/* ---------- PHC compliance badge ---------- */
.phc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--phc-bg);
  color: var(--phc);
  border: 1px solid var(--phc-bg-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.phc-badge .phc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--phc);
  box-shadow: 0 0 0 4px rgba(15, 124, 91, 0.18);
  animation: phcPulse 2.2s ease-in-out infinite;
}

.phc-badge--solid {
  background: linear-gradient(135deg, #0f7c5b 0%, #0fa37a 100%);
  color: #fff;
  border: none;
}

.phc-badge--solid .phc-dot {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.phc-banner {
  background: linear-gradient(135deg, #0f7c5b 0%, #14a37a 50%, #0b8e6a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15, 124, 91, 0.6);
}

.phc-banner::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.phc-banner h3 {
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}

.phc-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.phc-banner a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@keyframes phcPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(15, 124, 91, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(15, 124, 91, 0.06); }
}

/* ---------- Hero upgrade ---------- */
.hero-section {
  position: relative;
  padding: 180px 0 80px;
  background:
    radial-gradient(at 90% 0%, rgba(0, 214, 143, 0.10) 0px, transparent 50%),
    radial-gradient(at 0% 0%, rgba(0, 136, 204, 0.10) 0px, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f3f9fc 100%);
  overflow: hidden;
}

.hero-section .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}

.hero-section .hero-eyebrow i {
  color: var(--primary);
}

.hero-section h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 18px;
}

.hero-section h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-section .lead {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  align-items: center;
}

.hero-trust .trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.hero-trust .trust-pill i {
  color: var(--secondary);
  font-size: 14px;
}

.hero-image {
  position: relative;
  min-height: 480px;
}

.floating-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  width: 220px;
  transition: transform 0.4s ease;
}

.floating-card:hover {
  transform: translateY(-6px);
}

.floating-card-1 { top: 0;    left: 0;   animation: float 6s ease-in-out infinite; }
.floating-card-2 { top: 30%;  right: 0;  animation: float 7s ease-in-out infinite -2s; }
.floating-card-3 { bottom: 0; left: 25%; animation: float 8s ease-in-out infinite -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */
.stats-section {
  background:
    radial-gradient(at 0% 50%, rgba(0, 136, 204, 0.10) 0px, transparent 50%),
    radial-gradient(at 100% 50%, rgba(0, 181, 173, 0.10) 0px, transparent 50%),
    #0b1f33;
  color: #fff;
  padding: 80px 0;
}

.stats-section .section-title h2,
.stats-section .section-title p {
  color: #fff;
}

.stats-section .section-title p {
  color: rgba(255, 255, 255, 0.7);
}

.stat-card {
  text-align: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 214, 143, 0.4);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  background: linear-gradient(90deg, #66d9ff, #00d68f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.stat-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* ---------- Feature card lift ---------- */
.feature-card,
.solution-card,
.pricing-card,
.blog-card,
.partner-card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.solution-card:hover,
.pricing-card:hover,
.blog-card:hover,
.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 136, 204, 0.25);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.10), rgba(0, 181, 173, 0.10));
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 18px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.06) rotate(-3deg);
}

/* ---------- Marquee — client logos ---------- */
.marquee {
  overflow: hidden;
  position: relative;
  padding: 24px 0;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__item {
  flex: 0 0 auto;
  height: 64px;
  width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  filter: grayscale(20%);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.marquee__item:hover {
  filter: grayscale(0);
  transform: translateY(-3px);
}

.marquee__item img {
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
}

.marquee__item--text {
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.02em;
  text-align: center;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Service strip ---------- */
.service-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-strip__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-strip__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-strip__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.10), rgba(0, 214, 143, 0.18));
  color: var(--primary);
  font-size: 18px;
}

.service-strip__title {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 16px;
}

.service-strip__desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 991px) {
  .service-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

/* ---------- Section header kicker ---------- */
.section-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0, 136, 204, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
}

.section-title p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* ---------- Testimonial upgrade ---------- */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  height: 100%;
  position: relative;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 8px;
  left: 18px;
  font-size: 70px;
  line-height: 1;
  color: rgba(0, 136, 204, 0.10);
  font-family: Georgia, serif;
}

.testimonial-content {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.author-image {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--line);
}

.author-info h5 {
  font-size: 15px;
  margin: 0 0 2px;
  color: var(--ink);
}

.author-info p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Partner card (used on about.html) ---------- */
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  height: 110px;
  text-align: center;
}

.partner-card img {
  max-height: 70px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(10%);
}

/* ---------- CTA section ---------- */
.cta-section {
  background:
    radial-gradient(at 0% 100%, rgba(0, 181, 173, 0.30) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 136, 204, 0.30) 0px, transparent 50%),
    linear-gradient(135deg, #0088cc 0%, #00b5ad 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  color: #fff;
  letter-spacing: -0.01em;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-section .btn-white {
  background: #fff;
  color: var(--primary);
  border: 1px solid #fff;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease;
}

.cta-section .btn-white:hover {
  transform: translateY(-2px);
}

/* ---------- Footer polish ---------- */
footer {
  background: #0b1f33;
  color: rgba(255, 255, 255, 0.78);
}

footer h5 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

footer a:hover { color: #fff; }

footer .social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

footer .social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  margin-top: 32px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  padding: 160px 0 70px;
  background:
    radial-gradient(at 50% 0%, rgba(0, 136, 204, 0.10) 0px, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f3f9fc 100%);
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 auto;
}

.page-header .breadcrumb-modern {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.page-header .breadcrumb-modern a {
  color: var(--primary);
  text-decoration: none;
}

.page-header .breadcrumb-modern i {
  font-size: 10px;
  color: var(--ink-soft);
}

/* ---------- Feature pill / chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 136, 204, 0.08);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(0, 136, 204, 0.12);
}

.chip--green {
  background: rgba(15, 124, 91, 0.10);
  color: var(--phc);
  border-color: rgba(15, 124, 91, 0.18);
}

.chip i { font-size: 11px; }

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.compare-table thead th {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.06), rgba(0, 181, 173, 0.06));
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(0, 136, 204, 0.03); }

.compare-table .check { color: var(--secondary); font-weight: 700; }
.compare-table .dash  { color: #c5cdd6; }

/* ---------- Portal grid ---------- */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 991px) { .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .portal-grid { grid-template-columns: 1fr; } }

.portal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 136, 204, 0.30);
  color: inherit;
  text-decoration: none;
}

.portal-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
}

.portal-card__icon--blue   { background: linear-gradient(135deg, #0088cc, #00b5ad); }
.portal-card__icon--green  { background: linear-gradient(135deg, #0f7c5b, #14a37a); }
.portal-card__icon--violet { background: linear-gradient(135deg, #6f42c1, #d63384); }
.portal-card__icon--amber  { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.portal-card h4 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}

.portal-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.55;
}

.portal-card__more {
  margin-top: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.portal-card__more i { transition: transform 0.2s ease; }
.portal-card:hover .portal-card__more i { transform: translateX(3px); }

/* ---------- FAQ (modern accordion) ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.is-open {
  border-color: rgba(0, 136, 204, 0.30);
  box-shadow: var(--shadow-md);
}

.faq-item__q {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-item__q i { color: var(--primary); transition: transform 0.25s ease; }
.faq-item.is-open .faq-item__q i { transform: rotate(45deg); }

.faq-item__a {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.65;
  display: none;
}

.faq-item.is-open .faq-item__a { display: block; }

/* ---------- Pricing card variant ---------- */
.pricing-card.is-featured {
  border: 2px solid var(--primary);
  position: relative;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.is-featured::before {
  content: "Most Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* ---------- Blog card ---------- */
.blog-card .blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
}

.blog-card .blog-card__body {
  padding: 22px;
}

.blog-card .blog-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.blog-card .blog-card__meta .tag {
  background: rgba(0, 136, 204, 0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  line-height: 1.35;
}

.blog-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card h3 a:hover { color: var(--primary); }

.blog-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ---------- Article (blog post) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #243447;
}

.article h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
}

.article .article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 24px;
}

.article .article-meta .tag {
  background: rgba(0, 136, 204, 0.08);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
}

.article h2 {
  font-size: 1.5rem;
  margin: 36px 0 14px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.18rem;
  margin: 28px 0 10px;
  color: var(--ink);
}

.article p { margin-bottom: 16px; }

.article ul, .article ol {
  margin: 0 0 18px 22px;
}

.article li { margin-bottom: 6px; }

.article blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg-tint);
  padding: 16px 22px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  color: var(--ink);
  font-style: italic;
}

.article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article .callout {
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.06), rgba(0, 181, 173, 0.06));
  border: 1px solid rgba(0, 136, 204, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
}

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

.article img {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: 18px 0;
}

/* ---------- "Verified by xMed" inline badge ---------- */
.verified-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.verified-strip i { color: var(--phc); font-size: 16px; }

/* ---------- Buttons (override/extend) ---------- */
.btn-primary-custom,
.btn-outline-custom {
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 1px solid transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(0, 136, 204, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(0, 136, 204, 0.5);
  background: linear-gradient(135deg, #007ab8, #00a39c);
}

.btn-outline-custom {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: #fff;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Skeleton helper (subtle hover target) ---------- */
a, button { transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }

/* ---------- Mobile polish ---------- */
@media (max-width: 768px) {
  .hero-section { padding: 130px 0 60px; }
  .floating-card { width: 180px; padding: 10px; }
  .floating-card h5 { font-size: 14px; }
  .floating-card p { font-size: 12px; }
  .stat-number { font-size: 36px; }
  .page-header { padding: 130px 0 50px; }
}

/* ---------- Accessibility: focus visible ---------- */
:focus-visible {
  outline: 3px solid rgba(0, 136, 204, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn-primary-custom:focus-visible,
.btn-outline-custom:focus-visible,
.btn-white:focus-visible {
  outline-offset: 4px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee__track { animation: none; }
}

/* ==========================================================================
   Mobile navbar — force vertical stack and prevent horizontal overflow
   Bootstrap's .navbar-expand-lg collapses at <992px. Below that, the
   .navbar-collapse becomes a panel that should stack vertically. Earlier
   global rules were too generous with padding/margins and let items run
   off-screen on narrow phones. This block wins over both site.css and the
   desktop rules above.
   ========================================================================== */
html, body { overflow-x: hidden; }

@media (max-width: 991.98px) {
  /* Lock the navbar container so it can't grow wider than the viewport. */
  .navbar > .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    flex-wrap: wrap;
  }

  .navbar .navbar-brand img {
    width: 64px !important;
  }

  /* The toggler button is always visible on mobile. */
  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 8px 10px;
    margin-left: auto;
    color: var(--ink);
  }
  .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.25); }
  .navbar-toggler-icon {
    width: 24px;
    height: 2px;
    background: var(--ink);
    position: relative;
  }
  .navbar-toggler-icon,
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    display: block;
    background-image: none;
  }
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--ink);
  }
  .navbar-toggler-icon::before { top: -7px; }
  .navbar-toggler-icon::after  { top:  7px; }

  /* The collapsed panel — full-width dropdown under the bar. */
  .navbar-collapse {
    flex-basis: 100%;
    max-width: 100%;
    width: 100%;
    background: #fff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 16px 32px -16px rgba(11, 31, 51, 0.18);
    margin-top: 8px;
    padding: 8px 12px 16px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Force vertical layout for the nav list — no horizontal overflow. */
  .navbar-nav {
    width: 100%;
    flex-direction: column !important;
    align-items: stretch !important;
    margin: 0 !important;
  }
  .navbar-nav > .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  .navbar-nav > .nav-item:last-child { border-bottom: 0; }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 14px 12px !important;
    margin: 0 !important;
    border-radius: 8px;
    text-align: left;
  }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link.active { background: rgba(0, 136, 204, 0.08); }

  /* The dropdown (Portals) — render inline, no absolute positioning. */
  .navbar-nav .dropdown {
    position: static !important;
  }
  .navbar-nav .dropdown-menu {
    position: static !important;
    float: none !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 0 8px 12px !important;
    background: transparent !important;
    transform: none !important;
  }
  .navbar-nav .dropdown-item {
    padding: 10px 12px !important;
    color: var(--ink-soft) !important;
    border-radius: 8px;
  }
  .navbar-nav .dropdown-item:hover { background: rgba(0, 136, 204, 0.06); }

  /* The "Request Demo" button — full-width on mobile. */
  .navbar-nav .nav-item.ms-lg-3 {
    margin: 12px 0 0 !important;
  }
  .navbar-nav .nav-item.ms-lg-3 .btn {
    width: 100%;
    border-radius: 12px;
  }
}

/* Small phones — slightly tighter nav padding. */
@media (max-width: 575.98px) {
  .navbar { padding: 10px 0 !important; }
  .navbar > .container { padding-left: 12px; padding-right: 12px; }
  .navbar .navbar-brand img { width: 56px !important; }
  .navbar-nav .nav-link { padding: 12px 10px !important; font-size: 15px; }
  .navbar-collapse { padding: 6px 10px 14px; }
}
