/*
Theme Name: MEDICRCM Dynamic
Theme URI:   https://medicrcm.com
Author:      Afaq Khalid
Author URI:  https://easytech.com.pk
Description: Custom WordPress theme for MEDICRCM â€“ Medical Revenue Cycle Management. Blog section is dynamic; all other sections are static.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medicrcm
Tags:        medical, healthcare, business, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*  
   GLOBAL DESIGN TOKENS â€” Edit once, applies everywhere
  */
:root {
  /* Brand Colors */
  --color-primary: #1F32AE;
  --color-primary-dark: #15288a;
  --color-primary-light: #3a55d4;
  --color-accent: #01ADB7;
  --color-accent-light: #A3E991;
  --color-tint: #E6F6FF;
  --color-success: #48BB78;


  /* Text Colors */
  --color-text-dark: #1a202c;
  --color-text-body: #4a5568;
  --color-text-muted: #718096;
  --color-text-white: #ffffff;

  /* Backgrounds */
  --color-bg-white: #ffffff;
  --color-bg-light: #f7f9fb;
  --color-bg-tint: #E6F6FF;
  --color-bg-card: #EDFFFF;
  --color-bg-step: #eaf8f6;
  --color-bg-footer: rgba(20, 54, 148, 0.1);

  /* Gradients */
  --gradient-section: linear-gradient(205.5deg, #FFFFFF 34.98%, #E6F6FF 81.26%);
  --gradient-blob: linear-gradient(90deg, #01ADB7 2%, #A3E991 97.99%);
  --gradient-cta: linear-gradient(90deg, #01ADB7 0%, #A3E991 97.99%);

  /* Typography */
  --font-base: 'Poppins', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-size-4xl: 3rem;

  /* Spacing */
  --section-padding-y: 6rem;
  --section-padding-y-sm: 4rem;

  /* Layout */
  --container-width: 90%;
  --container-max: 1440px;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.875rem;
  --radius-xl: 2.5rem;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 30px rgba(29, 53, 179, 0.2);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border */
  --border-light: 1px solid rgba(0, 0, 0, 0.06);
  --border-tint: 1px solid rgba(230, 246, 255, 0.8);
}

/*  
   RESET & BASE
  */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-body);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  /* max-width: 100%; */
  height: auto;
}

a {
  text-decoration: none;
}

/* â”€â”€â”€ WordPress core alignments â”€â”€â”€ */
.wp-block-image {
  margin: 0;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.alignleft {
  float: left;
  margin-right: 1rem;
}

.alignright {
  float: right;
  margin-left: 1rem;
}

/*  
   GLOBAL CONTAINER â€” 90% width on all screens
  */
.container,
.wp-container {
  width: var(--container-width) !important;
  max-width: var(--container-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/*  
   GLOBAL SECTION SPACING
  */
.section {
  padding: var(--section-padding-y) 0;
}

.section--light {
  background-color: var(--color-bg-white);
}

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

.section--gray {
  background-color: var(--color-bg-light);
}

/*  
   GLOBAL HEADINGS
  */
.section-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--color-accent);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 700px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin: 0 auto;
}

/*  
   GLOBAL BUTTONS
  */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-primary);
  color: var(--color-text-white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-primary);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(29, 53, 179, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-dark) !important;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--font-size-base);
  border: 2px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--color-bg-light);
  border-color: var(--color-primary);
  color: var(--color-primary) !important;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-text-white);
  color: var(--color-text-dark) !important;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/*  
   GRADIENT BLOBS
  */
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-blob);
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/*  
   NAVBAR
  */
/* Base styles for mobile */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem 0;
  /* Slightly reduced padding for mobile */
}

.site-nav .container {
  padding-left: var(--spacing-sm);
  /* Using a variable for padding */
  padding-right: var(--spacing-sm);
  /* Using a variable for padding */
}

.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* Slightly reduced gap for mobile */
}

.site-nav .nav-logo img {
  height: 2rem;
  /* Adjusted logo size for mobile */
  width: auto;
  /* Ensure aspect ratio is maintained */
}

/* Hide primary nav links and CTA by default on mobile */
.site-nav .nav-links,
.site-nav .nav-cta {
  display: none;
}

/* Mobile Toggle - always visible on mobile */
.nav-toggle {
  display: flex;
  /* Make it visible */
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
  /* Ensure toggle is above overlay */
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: left center;
  /* For animation */
}

/* Toggle active state for animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  width: 20px;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  width: 20px;
}

/* Mobile Menu Overlay */
.site-nav .nav-links.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-background-body);
  /* Or a slightly darker tint */
  padding: 6rem var(--spacing-md) var(--spacing-md);
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav .nav-links.active li {
  width: 100%;
  text-align: left;
}

.site-nav .nav-links.active a {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--font-size-base);
  /* Larger font for mobile menu */
  border-radius: var(--radius-md);
}

.site-nav .nav-links a:hover,
.site-nav .nav-links .current-menu-item>a {
  color: var(--color-primary);
  /* background removed to match clean UI from image 2 */
}

/* Mobile CTA inside menu (optional, but good for UX) */
.site-nav .nav-cta.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
}

.site-nav .nav-cta.active .btn-primary {
  width: 100%;
  text-align: center;
}

/* Medium screens and up */
@media (min-width: 768px) {
  .site-nav {
    padding: 1rem 0;
    /* Restore padding for larger screens */
  }

  .site-nav .nav-inner {
    gap: 1.5rem;
    /* Restore gap */
  }

  .site-nav .nav-logo img {
    height: 2.25rem;
    /* Restore logo size */
  }

  /* Hide toggle button on larger screens */
  .nav-toggle {
    display: none;
  }

  /* Show primary nav links and CTA */
  .site-nav .nav-links {
    display: flex;
    flex-direction: row;
    /* Back to row */
    align-items: center;
    gap: 0.25rem;
    position: static;
    /* Remove fixed positioning */
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    overflow-y: visible;
  }

  .site-nav .nav-links li {
    width: auto;
  }

  .site-nav .nav-links a {
    font-size: var(--font-size-sm);
    /* Smaller font for desktop menu */
    padding: 0.5rem 0.875rem;
  }

  .site-nav .nav-cta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    border-top: none;
    margin-top: 0;
  }
}

/* Large screens and up */
@media (min-width: 1024px) {
  /* You can add more specific adjustments for very large screens here if needed */
}

/*  
   HERO SECTION
  */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-light);
  padding: 5rem 0 3rem;
}

.hero-section .blob-tl {
  width: 500px;
  height: 500px;
  top: -200px;
  left: -200px;
}

.hero-section .blob-br {
  width: 400px;
  height: 400px;
  bottom: -150px;
  right: -150px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3rem;
}


/* Styles for large screens (900px and above) - from your previous request */
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    /* Ensure it's row on large screens */
  }

  .hero-inner>*:first-child {
    flex-basis: 60%;
    width: 60%;
  }

  .hero-inner>*:nth-child(2) {
    flex-basis: 40%;
    width: 40%;
  }
}

/* Styles for smaller screens (below 900px) */
@media (max-width: 899px) {

  /* Applies to screens smaller than 900px */
  .hero-inner {
    flex-direction: column;
    gap: 3rem;
  }

  .hero-inner>*:first-child {
    order: 1;
    /* Text on Top */
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    text-align: center;
  }

  .hero-inner>*:nth-child(2) {
    order: 2;
    /* Doctor at Bottom */
    width: 100%;
    margin-top: 2rem;
  }
}

/* Modernized Hero Text Content (Left Side) */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 899px) {
  .hero-social-proof {
    justify-content: center;
  }
}

.avatar-group {
  display: flex;
  align-items: center;
}

.avatar-group img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.avatar-group img:first-child {
  margin-left: 0;
}

.hero-social-proof p {
  font-size: 0.9375rem;
  color: #4a5568;
  font-weight: 500;
  margin: 0;
}

.hero-tag-v2 {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  color: #01ADB7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-heading-v2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 800;
  color: #1a202c;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-align: inherit;
}

@media (max-width: 899px) {
  .hero-heading-v2 {
    text-align: center;
  }
}

.hero-heading-v2 .vibrant {
  color: #1F32AE;
}

.hero-desc-v2 {
  font-size: 1.125rem;
  color: #718096;
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

@media (max-width: 899px) {
  .hero-desc-v2 {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions-v2 {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 899px) {
  .hero-actions-v2 {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Custom Buttons (Pill Style) */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  background: #1F32AE;
  color: #fff !important;
  padding: 0.5rem 0.625rem 0.5rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 15px 35px rgba(65, 59, 176, 0.22);
  transition: all 0.3s ease;
}

.btn-pill-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(65, 59, 176, 0.32);
}

.icon-circle {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F32AE;
  margin-left: 1.5rem;
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #1a202c !important;
  padding: 0.875rem 2.5rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.btn-pill-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
}

.hero-image-wrap {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 480px;
}

.hero-image-wrap .doctor-main-image {
  position: relative;
  z-index: 2;
  width: 880px !important;
  height: auto;
  object-fit: contain;
  left: -52px;
}

.hero-image-wrap .doctor-grouped-vectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/*  
   STATS + FORM SECTION
  */
/* ══════════════════════════════════════════
   LEADS — STATS + CONSULTATION (NEW)
══════════════════════════════════════════ */
.leads-section {
  background: #fff;
  padding: 6rem 0;
}

.leads-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.section-header--center {
  text-align: center;
}

.stats-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-card-v2 {
  background: #fff;
  border: 1px solid #f1f4f8;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(1, 173, 183, 0.08);
  border-color: rgba(1, 173, 183, 0.15);
}

.stat-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stat-content h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0 0 0.5rem;
  line-height: 1;
}

.stat-content p {
  font-size: 0.9375rem;
  color: #4a5568;
  font-weight: 500;
  margin: 0;
}

/* Consultation Card v2 */
.consultation-card-v2 {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.04);
}

.consultation-card-v2 h2.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a202c;
  text-align: center;
  margin-bottom: 2rem;
}

.modern-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modern-form .form-group {
  margin-bottom: 1.25rem;
}

.modern-form .form-group.full-width {
  width: 100%;
}

.modern-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a5568;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.modern-form input {
  width: 100%;
  height: 3.25rem;
  background: #f8fafc;
  border: 1px solid #f1f4f8;
  border-radius: 0.75rem;
  padding: 0 1rem;
  font-family: var(--font-base);
  font-size: 0.875rem;
  color: #1a202c;
  transition: all 0.3s ease;
  outline: none;
}

.modern-form input::placeholder {
  color: #a0aec0;
}

.modern-form input:focus {
  border-color: #01ADB7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(1, 173, 183, 0.08);
}

/* Premium Dropdown Styling */
.premium-dropdown {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.dropdown-selected {
  width: 100%;
  height: 3.25rem;
  background: #f8fafc;
  border: 1px solid #f1f4f8;
  border-radius: 0.75rem;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #1a202c;
  transition: all 0.3s ease;
}

.premium-dropdown:hover .dropdown-selected {
  border-color: #01ADB7;
}

.premium-dropdown.active .dropdown-selected {
  background: #fff;
  border-color: #01ADB7;
  box-shadow: 0 0 0 4px rgba(1, 173, 183, 0.08);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-selected svg {
  transition: transform 0.3s ease;
  color: #4a5568;
}

.premium-dropdown.active .dropdown-selected svg {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid #01ADB7;
  border-top: none;
  border-bottom-left-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.premium-dropdown.active .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #4a5568;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #f0fbff;
  color: #01ADB7;
  padding-left: 1.25rem;
}

.dropdown-item.selected {
  background: #01ADB7;
  color: #fff;
}

.modern-form .submit-btn {
  width: 100%;
  height: 3.5rem;
  background: #14B4B3;
  color: #fff;
  border: none;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 181, 196, 0.2);
}

.modern-form .submit-btn:hover {
  background: #009aa3;
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(1, 173, 183, 0.40);
}

.modern-form #form-response {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
}

/*  
   PROCESS SECTION
  */
.process-section {
  background: linear-gradient(58deg, #e6f6ff96 40.48% 40.48%, #E6F6FF 44.63%);
  padding: var(--section-padding-y) 0;
  overflow: hidden;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.rcm-img-wrap {
  display: flex;
  justify-content: center;
}

.rcm-img-wrap img {
  width: min(100%, 520px);
  height: auto;
}

/* RCM process interaction: each authored wedge/label group projects radially. */
.rcm-img-wrap .rcm-interactive {
  display: block;
  width: min(100%, 520px);
  height: auto;
  overflow: visible;
}

.rcm-interactive .rcm-segment {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), filter 280ms ease;
}

.rcm-interactive .rcm-segment-1:hover,
.rcm-interactive .rcm-segment-1:focus { transform: translate(8px, -9px); }
.rcm-interactive .rcm-segment-2:hover,
.rcm-interactive .rcm-segment-2:focus { transform: translate(-8px, -9px); }
.rcm-interactive .rcm-segment-3:hover,
.rcm-interactive .rcm-segment-3:focus { transform: translate(-9px, 7px); }
.rcm-interactive .rcm-segment-4:hover,
.rcm-interactive .rcm-segment-4:focus { transform: translate(9px, 7px); }
.rcm-interactive .rcm-segment-5:hover,
.rcm-interactive .rcm-segment-5:focus { transform: translate(10px, 0); }
.rcm-interactive .rcm-segment-6:hover,
.rcm-interactive .rcm-segment-6:focus { transform: translate(-10px, 0); }

.rcm-interactive .rcm-segment:hover,
.rcm-interactive .rcm-segment:focus {
  filter: drop-shadow(0 7px 6px rgba(30, 53, 175, 0.3));
}

.rcm-interactive .rcm-segment:hover > path:first-child,
.rcm-interactive .rcm-segment:focus > path:first-child {
  fill: #1d5fd1;
}

@media (prefers-reduced-motion: reduce) {
  .rcm-interactive .rcm-segment { transition: none; }
  .testimonials-section .marquee-track { animation: none; }
}

.process-right h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.process-right h2 span {
  color: var(--color-accent);
}

.process-intro {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.step-card {
  background: var(--color-bg-step);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.step-card h4 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0 0 0.25rem;
}

.step-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/*  
   BILLING SECTION
  */
.billing-section {
  background: var(--gradient-section);
  padding: var(--section-padding-y) 0;
}

.billing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.billing-left {
  position: sticky;
  top: 7rem;
}

.billing-left h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.billing-left p {
  font-size: var(--font-size-base);
  color: var(--color-text-body);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.billing-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.billing-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card-item {
  padding: 1.5rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card-item img {
  width: 100%;
  /* height: 220px; */
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.service-card-body p {
  font-size: var(--font-size-sm);
  color: var(--color-text-body);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more-link {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--transition-fast);
}

.read-more-link:hover {
  gap: 0.625rem;
}

/* 
   WHY CHOOSE US
*/

.why-section {
  background: linear-gradient(243deg, #FFFFFF 40.48%, #E6F6FF 104.63%);
  padding: var(--section-padding-y) 0;
  overflow: hidden;
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 991px) {
  .why-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-reasons h2 {
    text-align: center !important;
  }
}

.reason-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.reason-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-tint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.reason-item h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.reason-item p {
  font-size: var(--font-size-sm);
  color: var(--color-text-body);
  line-height: 1.75;
  margin: 0;
}

.why-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.why-image .doctor-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

.why-image .bg-arrow {
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: none;
  z-index: 1;
  object-fit: contain;
}

/*  
   MARKETS SECTION
  */
.markets-section {
  background: var(--gradient-section);
  padding: var(--section-padding-y) 0;
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.market-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: var(--border-light);
  transition: all var(--transition-base);
}

/* Keep the six Figma specialties together as the leading 3x2 grid group. */
.markets-grid .market-card--featured {
  order: -1;
}

.market-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(29, 53, 179, 0.12);
  transform: translateY(-2px);
}

.market-icon {
  width: 1.375rem;
  height: 1.375rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.market-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-dark);
}

/*  
   TESTIMONIAL MARQUEE
  */
.testimonials-section {
  background: var(--gradient-section);
  padding: var(--section-padding-y) 0;
  overflow: hidden;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.marquee-row {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
}

.marquee-row.rtl .marquee-track {
  animation: scrollRTL 42s linear infinite;
}

.marquee-row.ltr .marquee-track {
  animation: scrollLTR 42s linear infinite;
}

@keyframes scrollRTL {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollLTR {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

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

.t-card {
  background: var(--color-bg-white);
  width: 380px;
  padding: 2rem 2rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: var(--border-tint);
  position: relative;
  flex-shrink: 0;
}

.t-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.t-name {
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
}

.t-stars {
  color: #FFB800;
  font-size: var(--font-size-sm);
}

.t-text {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-body);
  line-height: 1.7;
  margin: 0;
}

.t-quote {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  opacity: 0.4;
}

/*  
   CTA BANNER
  */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  background: var(--gradient-cta);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: 420px;
  position: relative;
  flex-direction: column-reverse;
  padding: 4rem 6rem;
}

.cta-content {
  flex: 1;
  padding: 3rem 0 0 0;
  color: var(--color-text-white);
  text-align: center;
  position: relative;
}

.cta-label {
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
  display: block;
}

.cta-title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.cta-desc {
  font-size: var(--font-size-base);
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-image-wrap {
  flex: 0 0 45%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cta-image-wrap img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}



/*  
   FAQ SECTION
  */
.faq-section {
  background: var(--color-bg-white);
  padding: var(--section-padding-y) 0;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.faq-accordion {
  border-top: 1px solid #e2e8f0;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-question {
  width: 100%;
  padding: 1.375rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-question-text {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.4;
  padding-right: 1rem;
}

.faq-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: #718096;
  transition: all var(--transition-base);
}

.faq-icon::before {
  width: 12px;
  height: 2px;
  top: 11px;
  left: 6px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
  top: 6px;
  left: 11px;
}

.faq-item.active .faq-icon {
  border-color: var(--color-primary);
}

.faq-item.active .faq-icon::before {
  background-color: var(--color-primary);
}

.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.25rem;
}

.faq-answer p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  margin: 0;
}

.faq-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.faq-image .faq-doc {
  width: 85%;
  height: auto;
  position: relative;
  z-index: 2;
}

.faq-image .faq-arrow-bg {
  position: absolute;
  width: 70%;
  bottom: 0;
  right: -5%;
  z-index: 1;
  opacity: 0.4;
}

/*  
   BLOG SECTION (Dynamic â€” WordPress loop)
  */
.blog-section {
  background: var(--color-bg-white);
  padding: var(--section-padding-y) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.blog-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: var(--border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.blog-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-body h3 {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.blog-body p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.blog-link {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--transition-fast);
  margin-top: auto;
}

.blog-link:hover {
  gap: 0.625rem;
}

/* WP pagination override */
.blog-pagination,
.wp-pagenavi {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span,
.wp-pagenavi a,
.wp-pagenavi span {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  background: #e5e7eb;
  color: var(--color-text-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.blog-pagination a:hover,
.blog-pagination .active,
.blog-pagination .current,
.wp-pagenavi a:hover,
.wp-pagenavi .current {
  background: var(--color-primary);
  color: var(--color-text-white);
}

/*  
   FOOTER
  */
.site-footer {
  background: var(--color-bg-footer);
  padding: 4rem 0 2rem;
}

.footer-logos-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-logos-bar h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0;
}

.assoc-logos {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.assoc-logo img {
  width: 5.25rem;
  height: 6.25rem;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  height: 2.25rem;
  margin-bottom: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.875rem;
  margin-top: 1.25rem;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-link:hover {
  background: var(--color-primary);
  color: var(--color-text-white);
  border-color: var(--color-primary);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-col h4 {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.contact-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.875rem;
}

.contact-item svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

/*  
   RESPONSIVE â€” Tablet (â‰¤1024px)
  */
@media (max-width: 1024px) {
  :root {
    --section-padding-y: 4.5rem;
  }

  .leads-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid-v2 {
    grid-template-columns: repeat(3, 1fr);
  }

  .billing-inner {
    grid-template-columns: 1fr;
  }

  .billing-left {
    position: static;
  }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .why-image {
    display: none;
  }

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

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-image-wrap {
    display: none;
  }
}

/* Home retains its original EMR/EHR CTA; inner pages use the denial CTA. */
@media (min-width: 1025px) {
  .medic-home-page .cta-section > .container { width: 100%; max-width: none; }
  .medic-home-page .cta-section .cta-card { flex-direction: column-reverse; min-height: 500px; height: 500px; width: min(91.11%, 1312px); max-width: 1312px; padding: 3rem 4rem 2.75rem; }
  .medic-home-page .cta-section .cta-image-wrap { order: 0; flex: 0 0 150px; width: 100%; height: 150px; min-height: 0; padding: 0; justify-content: center; }
  .medic-home-page .cta-section .cta-image-wrap img { width: min(100%, 900px); height: auto; max-height: 150px; object-fit: contain; }
  .medic-home-page .cta-section .cta-content { order: 1; width: 100%; flex: 1 1 auto; max-width: none; padding: 1.5rem 0 0; text-align: center; align-items: center; }
  .medic-home-page .cta-section .cta-title { font-size: 40px; line-height: 46px; }
  .medic-home-page .cta-section .cta-desc { max-width: 820px; font-size: 16px; line-height: 25px; margin-bottom: 1.5rem; }
  .medic-home-page .cta-section .btn-white { min-height: 52px; padding: 0 36px; }
  .medic-home-page .cta-section .cta-desc { max-width: 700px; }
}
.medic-home-page .cta-section .btn-white { color: transparent; position: relative; font-size: 0; }
.medic-home-page .cta-section .btn-white::before { content: 'Learn About Integration →'; color: #16358f; font-size: 1rem; }

@media (min-width: 1025px) {
  .medic-home-page .cta-section { padding: 4.5rem 0 5rem; }
  .medic-home-page .cta-section .cta-card { width: min(91.11%, 1312px); max-width: 1312px; min-height: 610px; height: 610px; padding: 4.5rem 4rem 4rem; border-radius: 32px; flex-direction: column-reverse; justify-content: flex-start; }
  .medic-home-page .cta-section .cta-image-wrap { order: 0; width: 100%; height: 197px; min-height: 0; flex: 0 0 197px; justify-content: center; }
  .medic-home-page .cta-section .cta-image-wrap img { width: min(100%, 960px); height: auto; max-height: 197px; object-fit: contain; }
  .medic-home-page .cta-section .cta-content { order: 1; width: 100%; flex: 1 1 auto; max-width: none; padding: 2.75rem 0 0; text-align: center; align-items: center; justify-content: flex-start; }
  .medic-home-page .cta-section .cta-title { max-width: 960px; margin-bottom: 1.15rem; font-size: 48px; line-height: 56px; }
  .medic-home-page .cta-section .cta-desc { max-width: 860px; margin-bottom: 2rem; font-size: 18px; line-height: 28px; }
  .medic-home-page .cta-section .btn-white { min-height: 56px; padding: 0 48px; }
}

/* Standardized denial CTA used across public templates. */
.cta-section .cta-card,
.ss-cta-section .ss-cta-banner {
  width: min(90%, 1296px);
  max-width: 1296px;
  min-height: 430px;
  margin-inline: auto;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  background: linear-gradient(105deg, #0aaeb8 0%, #8fe38d 100%);
}
.cta-section .cta-content,
.ss-cta-section .ss-cta-content {
  flex: 0 0 53%;
  max-width: 680px;
  padding: 4rem 3.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  position: relative;
  z-index: 2;
}
.cta-section .cta-label { margin-bottom: .8rem; }
.cta-section .cta-title,
.ss-cta-section .ss-cta-content h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.25rem, 3.35vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
}
.cta-section .cta-desc,
.ss-cta-section .ss-cta-content p {
  max-width: 590px;
  margin: 0 0 2rem;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.55;
  opacity: .95;
}
.cta-section .btn-white,
.ss-cta-section .ss-cta-btn {
  min-height: 56px;
  padding: .85rem 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #16358f;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cta-section .cta-image-wrap,
.ss-cta-section .ss-cta-image {
  flex: 1 1 47%;
  min-height: 430px;
  padding: 0 1rem 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}
.cta-section .cta-image-wrap img,
.ss-cta-section .ss-cta-image img {
  width: 100%;
  height: 100%;
  max-width: 640px;
  max-height: 430px;
  object-fit: contain;
  object-position: bottom right;
  margin: 0;
}
/* Override legacy Home-only CTA rules with the shared two-column treatment. */
@media (min-width: 1025px) {
  .medic-home-page .cta-section .cta-card { flex-direction: row; padding: 0; min-height: 430px; }
  .medic-home-page .cta-section .cta-content { flex: 0 0 53%; max-width: 680px; padding: 4rem 3.75rem; align-items: flex-start; text-align: left; }
  .medic-home-page .cta-section .cta-image-wrap { flex: 1 1 47%; height: auto; min-height: 430px; padding: 0 1rem 0 0; justify-content: flex-end; }
  .medic-home-page .cta-section .cta-image-wrap img { width: 100%; height: 100%; max-width: 640px; max-height: 430px; object-fit: contain; object-position: bottom right; }
}
@media (max-width: 1024px) {
  .cta-section .cta-card,
  .ss-cta-section .ss-cta-banner { width: calc(100% - 2rem); flex-direction: column; min-height: 0; border-radius: 24px; }
  .cta-section .cta-content,
  .ss-cta-section .ss-cta-content { flex: none; max-width: none; padding: 2.5rem 1.5rem 1.75rem; text-align: left; }
  .cta-section .cta-title,
  .ss-cta-section .ss-cta-content h2 { font-size: 2rem; }
  .cta-section .cta-image-wrap,
  .ss-cta-section .ss-cta-image { width: 100%; min-height: 230px; padding: 0; justify-content: center; }
  .cta-section .cta-image-wrap img,
  .ss-cta-section .ss-cta-image img { width: 100%; height: 230px; max-height: 230px; object-position: bottom center; }
  .medic-home-page .cta-section .cta-card { flex-direction: column; padding: 0; }
  .medic-home-page .cta-section .cta-content { padding: 2.5rem 1.5rem 1.75rem; text-align: left; align-items: flex-start; }
  .medic-home-page .cta-section .cta-image-wrap { height: auto; min-height: 230px; padding: 0; justify-content: center; }
}

/*  
   RESPONSIVE â€” Mobile (â‰¤768px)
  */
@media (max-width: 768px) {
  :root {
    --section-padding-y: 3.5rem;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg-white);
    z-index: 999;
    padding: 5rem 2rem 2rem;
    gap: 0;
  }

  .nav-links.open li a {
    font-size: var(--font-size-base);
    padding: 1rem 0;
    display: block;
    border-bottom: 1px solid #f0f0f0;
  }

  .hero-inner {
    flex-direction: column;
  }

  .hero-text {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-desc {
    max-width: 100%;
    margin: 0 auto 2rem;
  }

  .hero-image-wrap {
    min-height: 280px;
  }

  .stats-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .markets-grid {
    grid-template-columns: 1fr;
  }

  .faq-inner {
    grid-template-columns: 1fr;
  }

  .faq-image {
    display: none;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-logos-bar {
    flex-direction: column;
    text-align: center;
  }

  .assoc-logos {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-content {
    padding: 2.5rem 1.75rem;
  }
}

/*  
   RESPONSIVE â€” Small mobile (â‰¤480px)
  */
/* ────────────────────────────────────────────────────────────────────────── 
   RESPONSIVE — Small mobile (≤480px)
──────────────────────────────────────────────────────────────────────────  */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid-v2 {
    grid-template-columns: 1fr;
  }

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

/* 
   UTILITY
 */
.text-accent {
  color: var(--color-accent);
}

.text-primary {
  color: var(--color-primary) !important;
}

.fw-700 {
  font-weight: 700;
}

.mt-auto {
  margin-top: auto;
}

/* ================================================================
   MEDICRCM HOME PAGE - FIGMA LIGHT MODE
   All rules below are scoped to the front-page content wrapper.
================================================================ */
.medic-home-page {
  --home-blue: #2468e8;
  --home-blue-dark: #1d3fb7;
  --home-teal: #13b7b5;
  --home-green: #9be58e;
  --home-ink: #111827;
  --home-copy: #52627a;
  --home-line: #e8edf3;
  --home-pale: #effaff;
  color: var(--home-ink);
  overflow: hidden;
}

.medic-home-page .section,
.medic-home-page .leads-section,
.medic-home-page .process-section,
.medic-home-page .billing-section,
.medic-home-page .why-section,
.medic-home-page .markets-section,
.medic-home-page .testimonials-section,
.medic-home-page .faq-section,
.medic-home-page .blog-section {
  padding-top: 5.75rem;
  padding-bottom: 5.75rem;
}

.medic-home-page .hero-section {
  min-height: 674px;
  padding: 6.5rem 0 0;
  background:
    radial-gradient(circle at 98% 45%, rgba(180, 244, 232, 0.55), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(211, 249, 235, 0.72), transparent 24%),
    #f9fafc;
}

.medic-home-page .hero-section .blob {
  display: none;
}

.medic-home-page .hero-inner {
  min-height: 580px;
  gap: 1rem;
  align-items: center;
}

.medic-home-page .hero-inner > *:first-child {
  flex: 0 0 52%;
  width: 52%;
}

.medic-home-page .hero-inner > *:nth-child(2) {
  flex: 0 0 48%;
  width: 48%;
}

.medic-home-page .hero-text {
  padding-bottom: 3rem;
}

.medic-home-page .hero-social-proof {
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.medic-home-page .avatar-group img {
  width: 42px;
  height: 42px;
  border-color: #f9fafc;
}

.medic-home-page .hero-social-proof p {
  max-width: 240px;
  color: #364152;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.medic-home-page .hero-tag-v2 {
  margin-bottom: 1.4rem;
  color: var(--home-blue-dark);
  font-size: 0.78rem;
  letter-spacing: 0.055em;
}

.medic-home-page .hero-heading-v2 {
  max-width: 650px;
  margin-bottom: 1.25rem;
  color: var(--home-ink);
  font-size: clamp(3.25rem, 5vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.medic-home-page .hero-heading-v2 .vibrant {
  color: var(--home-blue);
}

.medic-home-page .hero-desc-v2 {
  max-width: 570px;
  margin-bottom: 2rem;
  color: var(--home-copy);
  font-size: 1.08rem;
  line-height: 1.62;
}

.medic-home-page .hero-actions-v2 {
  gap: 0.85rem;
}

.medic-home-page .btn-pill-primary,
.medic-home-page .btn-pill-secondary {
  min-height: 52px;
  font-size: 0.9rem;
}

.medic-home-page .btn-pill-primary {
  padding-left: 1.5rem;
  background: var(--home-blue-dark);
  box-shadow: 0 12px 25px rgba(36, 104, 232, 0.2);
}

.medic-home-page .btn-pill-primary:hover {
  background: var(--home-blue);
}

.medic-home-page .icon-circle {
  width: 38px;
  height: 38px;
  margin-left: 1rem;
}

.medic-home-page .btn-pill-secondary {
  padding: 0.875rem 1.5rem;
  border-color: #d8dde5;
  color: #182131 !important;
}

.medic-home-page .btn-pill-secondary:hover,
.medic-home-page .btn-pill-secondary:focus-visible {
  background: #24382f;
  border-color: #24382f;
  color: #fff !important;
}

.medic-home-page .hero-image-wrap {
  min-height: 600px;
  align-items: flex-end;
}

.medic-home-page .hero-image-wrap .doctor-main-image {
  z-index: 2;
  width: min(680px, 125%) !important;
  margin-right: -2rem;
  left: 0;
}

.medic-home-page .hero-image-wrap .doctor-grouped-vectors {
  width: 115%;
  height: 82%;
  top: 8%;
  left: 3%;
}

/* Front page desktop header + hero proportions from the 1440px reference. */
@media (min-width: 1025px) {
  .medic-home-page {
    /* `hidden` on one axis forces the other axis to become an
       auto-scroller, which breaks position: sticky descendants. `clip`
       prevents horizontal spill without creating a scrolling ancestor. */
    overflow-x: clip;
    overflow-y: visible;
  }

  .billing-section .billing-left {
    position: sticky;
    top: 114px;
    align-self: start;
  }

  .medic-home-page .section,
  .medic-home-page .leads-section,
  .medic-home-page .process-section,
  .medic-home-page .billing-section,
  .medic-home-page .why-section,
  .medic-home-page .markets-section,
  .medic-home-page .testimonials-section,
  .medic-home-page .faq-section,
  .medic-home-page .blog-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .medic-home-page .markets-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Keep the authored specialty order so the two wide cards remain last. */
  .medic-home-page .markets-grid .market-card--featured {
    order: initial;
  }

  /* The export uses two wide cards on the final Markets row. */
  .medic-home-page .markets-grid .market-card:nth-last-child(-n + 2) {
    grid-column: span 2;
  }

  .medic-home-page .cta-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  body.home .site-nav .nav-inner {
    width: calc(100% - 3rem);
    max-width: 1170px;
    height: 76px;
    gap: 1.25rem;
  }

  body.home .site-nav .nav-logo img,
  body.home .site-nav .nav-logo .custom-logo {
    height: 2.25rem;
  }

  body.home .site-nav .nav-link {
    gap: 0.25rem;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
    font-size: 0.8rem;
  }

  body.home .site-nav .nav-cta .btn-outline-primary {
    padding: 0.5rem 1.25rem !important;
    font-size: 0.8rem !important;
  }

  .medic-home-page .hero-section {
    height: auto;
    min-height: 0;
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .medic-home-page .hero-section > .container {
    width: calc(100% - 3rem) !important;
    max-width: 1170px !important;
  }

  .medic-home-page .hero-inner {
    height: auto;
    min-height: 610px;
    gap: 1.5rem;
    align-items: flex-start;
    padding-top: 0;
  }

  .medic-home-page .billing-left {
    top: 114px;
  }

  .medic-home-page .hero-inner > *:first-child {
    flex-basis: 55%;
    width: 55%;
  }

  .medic-home-page .hero-inner > *:nth-child(2) {
    flex-basis: 45%;
    width: 45%;
  }

  .medic-home-page .hero-text {
    padding-top: 4rem;
    padding-bottom: 0;
  }

  .medic-home-page .hero-social-proof {
    margin-bottom: 1.25rem;
  }

  .medic-home-page .avatar-group img {
    width: 42px;
    height: 42px;
  }

  .medic-home-page .hero-social-proof p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .medic-home-page .hero-tag-v2 {
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
  }

  .medic-home-page .hero-heading-v2 {
    max-width: 640px;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    font-size: clamp(3.25rem, 4vw, 4.35rem);
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
  }

  .medic-home-page .hero-desc-v2 {
    max-width: 540px;
    margin-bottom: 2.6rem;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  .medic-home-page .btn-pill-primary,
  .medic-home-page .btn-pill-secondary {
    min-height: 52px;
    font-size: 1rem;
  }

  .medic-home-page .btn-pill-primary {
    padding-left: 1.2rem;
  }

  .medic-home-page .btn-pill-secondary {
    padding: 0.65rem 1.2rem;
  }

  .medic-home-page .icon-circle {
    width: 32px;
    height: 32px;
    margin-left: 0.75rem;
  }

  .medic-home-page .hero-image-wrap {
    min-height: 610px;
    height: 610px;
    align-items: center;
  }

  .medic-home-page .hero-visual-composition {
    position: relative;
    width: 620px;
    height: 610px;
    flex: 0 0 620px;
    max-width: none;
    left: 25px;
    top: 0;
  }

  .medic-home-page .hero-visual-composition .doctor-main-image {
    position: absolute;
    z-index: 2;
    width: 145% !important;
    max-width: none;
    left: 33%;
    bottom: -20px;
    transform: translateX(-50%);
    margin: 0;
  }

  .medic-home-page .hero-visual-composition .doctor-grouped-vectors {
    top: -3%;
    left: 50%;
    width: 165%;
    height: 82%;
    transform: translateX(-50%);
  }

  .medic-home-page .hero-visual-composition .doctor-grouped-vectors {
    display: none;
  }

  .medic-home-page .hero-visual-composition .hero-vector-top,
  .medic-home-page .hero-visual-composition .hero-vector-arrow,
  .medic-home-page .hero-visual-composition .hero-vector-bottom {
    position: absolute;
    display: block;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
  }

  .medic-home-page .hero-visual-composition .hero-vector-top {
    width: 60.2%;
    left: -1.2%;
    top: 5%;
  }

  .medic-home-page .hero-visual-composition .hero-vector-arrow {
    width: 87%;
    left: 0.3%;
    top: 21%;
  }

  .medic-home-page .hero-visual-composition .hero-vector-bottom {
    /* Keep the authored lower swoosh tucked behind the foreground doctor;
       the Figma composition exposes only its curved edge, not the source
       SVG's rounded rectangular canvas. */
    width: 45%;
    left: 18%;
    top: 55%;
    clip-path: inset(0 0 42% 0);
  }
}

.medic-home-page .leads-section {
  background: #fff;
}

.medic-home-page .leads-section > .container > .section-header--center {
  margin-bottom: 2.75rem !important;
}

.medic-home-page .leads-section .section-title {
  margin-bottom: 0;
  font-size: 2rem;
}

.medic-home-page .leads-grid {
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.medic-home-page .stats-grid-v2 {
  gap: 1rem;
}

.medic-home-page .stat-card-v2,
.medic-home-page .consultation-card-v2 {
  border: 1px solid var(--home-line);
  border-radius: 1rem;
  box-shadow: 0 12px 28px rgba(39, 71, 112, 0.035);
}

.medic-home-page .stat-card-v2 {
  min-height: 164px;
  padding: 1.5rem 1.5rem 1.25rem;
}

.medic-home-page .stat-card-v2:hover {
  transform: translateY(-3px);
  border-color: #cfe2ff;
  box-shadow: 0 14px 28px rgba(39, 71, 112, 0.08);
}

.medic-home-page .stat-icon-wrap {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.15rem;
}

.medic-home-page .stat-content h3 {
  margin-bottom: 0.4rem;
  font-size: 1.45rem;
}

.medic-home-page .stat-content p {
  color: #2d3748;
  font-size: 0.86rem;
}

.medic-home-page .consultation-card-v2 {
  height: 100%;
  padding: 1.5rem 1.5rem 1.35rem;
}

.medic-home-page .consultation-card-v2 h2.form-title {
  margin-bottom: 1.35rem;
  font-size: 1.5rem;
}

.medic-home-page .modern-form .form-group {
  margin-bottom: 0.9rem;
}

.medic-home-page .modern-form label {
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
}

.medic-home-page .modern-form input,
.medic-home-page .dropdown-selected {
  height: 2.75rem;
  border-color: #f0f2f5;
  border-radius: 0.65rem;
  font-size: 0.75rem;
}

.medic-home-page .modern-form .submit-btn {
  height: 2.75rem;
  margin-top: 0.2rem;
  background: var(--home-teal);
  font-size: 0.9rem;
}

.medic-home-page .process-section {
  background: linear-gradient(115deg, #fff 8%, #effaff 100%);
}

.medic-home-page .process-grid {
  gap: 3.75rem;
}

.medic-home-page .rcm-img-wrap img {
  width: min(100%, 560px);
}

.medic-home-page .process-right h2,
.medic-home-page .billing-left h2 {
  color: var(--home-ink);
  font-size: clamp(2rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.medic-home-page .process-right h2 span {
  color: var(--home-blue);
}

.medic-home-page .process-intro,
.medic-home-page .billing-left p {
  color: #293241;
}

.medic-home-page .steps-grid {
  gap: 1rem;
}

.medic-home-page .step-card {
  min-height: 116px;
  padding: 1.25rem 1.3rem;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(37, 76, 125, 0.04);
}

.medic-home-page .step-num {
  color: var(--home-blue-dark);
}

.medic-home-page .billing-section {
  background: #fff;
}

.medic-home-page .billing-inner {
  gap: 4rem;
}

.medic-home-page .billing-left {
  top: 114px;
}

.medic-home-page .billing-left p {
  line-height: 1.7;
}

.medic-home-page .billing-actions {
  gap: 0.8rem;
}

.medic-home-page .billing-right {
  gap: 1.5rem;
}

.medic-home-page .service-card-item {
  padding: 0.85rem;
  border: 1px solid #e1f4f3;
  border-radius: 1.35rem;
  background: #edffff;
  box-shadow: none;
}

.medic-home-page .service-card-item img {
  border-radius: 1.05rem;
}

.medic-home-page .service-card-body {
  padding: 1.2rem 0.35rem 0.5rem;
}

.medic-home-page .service-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.25rem;
}

.medic-home-page .service-card-body p {
  margin-bottom: 0.75rem;
}

.medic-home-page .read-more-link,
.medic-home-page .reason-item h3 {
  color: var(--home-blue-dark);
}

.medic-home-page .why-section {
  background: linear-gradient(116deg, #effaff 0%, #fff 70%);
}

.medic-home-page .why-inner {
  gap: 3rem;
}

.medic-home-page .why-reasons h2 {
  margin-bottom: 2.5rem !important;
}

.medic-home-page .reason-item {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1.8rem;
  transition: color 240ms ease, border-radius 240ms ease, box-shadow 240ms ease;
}

.medic-home-page .reason-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0.9rem;
  background: transparent;
  pointer-events: none;
  transition: background-color 240ms ease;
}

.medic-home-page .reason-item::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  bottom: 0.65rem;
  z-index: 1;
  width: 12rem;
  height: 5rem;
  background-image: url('assets/images/header-logo.svg');
  background-position: right bottom;
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.medic-home-page .reason-item > * {
  position: relative;
  z-index: 2;
  transition: color 240ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .medic-home-page .reason-item:hover {
    color: #fff;
    border-radius: 0.9rem;
    box-shadow: 0 10px 24px rgba(36, 104, 232, 0.16);
  }

  .medic-home-page .reason-item:hover::before {
    background: #2468e8;
  }

  .medic-home-page .reason-item:hover::after {
    opacity: 0.2;
  }

  .medic-home-page .reason-item:hover .reason-icon,
  .medic-home-page .reason-item:hover h3,
  .medic-home-page .reason-item:hover p {
    color: #fff !important;
  }
}

.medic-home-page .reason-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0;
  background: transparent;
  color: var(--home-blue);
}

.medic-home-page .reason-item p {
  color: #1f2937;
  line-height: 1.6;
}

.medic-home-page .why-image .doctor-img {
  width: 88%;
}

.medic-home-page .markets-section {
  background: #fff;
}

.medic-home-page .markets-section .section-header {
  margin-bottom: 2.75rem;
}

.medic-home-page .markets-section .section-title {
  margin-bottom: 0.7rem;
}

.medic-home-page .markets-grid {
  gap: 1rem;
}

.medic-home-page .market-card {
  min-height: 76px;
  padding: 1.1rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: #e7f7ff;
  box-shadow: none;
}

.medic-home-page .market-card:hover {
  border-color: transparent;
  background: #d8f1ff;
  box-shadow: none;
  transform: translateY(-2px);
}

.medic-home-page .market-icon,
.medic-home-page .market-text {
  color: var(--home-blue);
}

.medic-home-page .market-text {
  font-size: 1rem;
  font-weight: 500;
}

.medic-home-page .testimonials-section {
  background: linear-gradient(115deg, #effaff 0%, #fff 100%);
  overflow-x: hidden;
  overflow-y: visible;
}

/* Keep the marquee layers visually transparent; only each testimonial card
   carries a surface, border and shadow. This prevents the moving rows from
   reading as a connected strip while retaining the existing motion. */
.medic-home-page .testimonials-section .marquee-container,
.medic-home-page .testimonials-section .marquee-row,
.medic-home-page .testimonials-section .marquee-track {
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* The template part is rendered outside the home-page main wrapper, so use
   the section root as the scope for the visual surface rules. */
.testimonials-section .marquee-container,
.testimonials-section .marquee-row,
.testimonials-section .marquee-track {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.testimonials-section .marquee-row {
  mask-image: none;
  -webkit-mask-image: none;
}

.medic-home-page .testimonials-section .marquee-container {
  gap: 1.5rem;
}

.medic-home-page .testimonials-section .marquee-row {
  overflow: hidden;
  padding: 0.15rem 0 0.35rem;
}

.medic-home-page .testimonials-section .marquee-track {
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.medic-home-page .t-card {
  flex: 0 0 490px;
  width: 490px;
  min-height: 174px;
  padding: 1.75rem 2rem 2.5rem;
  background: #fff;
  border: 1px solid #edf1f4;
  border-radius: 0.85rem;
  box-shadow: 0 12px 24px rgba(39, 71, 112, 0.08);
  isolation: isolate;
}

.testimonials-section .t-card {
  flex: 0 0 490px;
  width: 490px;
  background: #fff;
  border: 1px solid #edf1f4;
  border-radius: 0.85rem;
  box-shadow: 0 4px 8px rgba(39, 71, 112, 0.08);
}

.medic-home-page .t-stars {
  color: #ffb718;
}

.medic-home-page .cta-section {
  padding: 5.5rem 0;
}

.medic-home-page .cta-card {
  min-height: 420px;
  padding: 2.75rem 5rem 3.25rem;
  border-radius: 3rem;
  background: linear-gradient(105deg, #10b5b7 0%, #9ce68d 100%);
  flex-direction: column;
}

.medic-home-page .cta-image-wrap {
  order: 0;
  flex: 0 0 auto;
  width: 100%;
  height: 128px;
}

.medic-home-page .cta-image-wrap img {
  width: min(100%, 780px);
  max-height: 128px;
}

.medic-home-page .cta-content {
  order: 1;
  flex: 0 0 auto;
  width: 100%;
  padding: 1.3rem 0 0;
  text-align: center;
}

.medic-home-page .cta-title {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.medic-home-page .cta-desc {
  max-width: 920px;
  margin: 0 auto 1.4rem;
}

/* Home EMR/EHR CTA: match the exported Figma proportions. */
@media (min-width: 1025px) {
  .medic-home-page .cta-section { padding: 4.5rem 0 5rem; }
  .medic-home-page .cta-section .cta-card {
    width: min(91.11%, 1312px);
    max-width: 1312px;
    min-height: 610px;
    height: 610px;
    padding: 4.5rem 4rem 4rem;
    border-radius: 32px;
    flex-direction: column-reverse;
    justify-content: flex-start;
  }
  .medic-home-page .cta-section .cta-image-wrap {
    order: 0;
    width: 100%;
    height: 197px;
    min-height: 0;
    flex: 0 0 197px;
    justify-content: center;
  }
  .medic-home-page .cta-section .cta-image-wrap img {
    width: min(100%, 960px);
    height: auto;
    max-height: 197px;
    object-fit: contain;
  }
  .medic-home-page .cta-section .cta-content {
    order: 1;
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
    padding: 2.75rem 0 0;
    text-align: center;
    align-items: center;
    justify-content: flex-start;
  }
  .medic-home-page .cta-section .cta-label { margin-bottom: .9rem; }
  .medic-home-page .cta-section .cta-title {
    max-width: 960px;
    margin-bottom: 1.15rem;
    font-size: 48px;
    line-height: 56px;
  }
  .medic-home-page .cta-section .cta-desc {
    max-width: 860px;
    margin-bottom: 2rem;
    font-size: 18px;
    line-height: 28px;
  }
  .medic-home-page .cta-section .btn-white { min-height: 56px; padding: 0 48px; }
}

.medic-home-page .faq-section {
  background: #fff;
}

@media (min-width: 1025px) {
  .medic-home-page .faq-section {
    padding-bottom: 32px;
  }
}

.medic-home-page .faq-inner {
  gap: 3rem;
}

.medic-home-page .faq-question {
  padding: 1.1rem 0;
}

.medic-home-page .faq-question-text {
  font-size: 0.96rem;
}

.medic-home-page .faq-image .faq-doc {
  width: 88%;
}

.medic-home-page .faq-image .faq-arrow-bg {
  width: 125%;
  right: -10%;
  bottom: 100px;
  opacity: 0.95;
}

@media (min-width: 1025px) {
  .medic-home-page .faq-image {
    transform: scale(0.88);
    transform-origin: center bottom;
  }
}

.medic-home-page .blog-section {
  background: linear-gradient(115deg, #effaff 0%, #fff 100%);
}

.medic-home-page .blog-grid {
  gap: 1.25rem;
}

.medic-home-page .blog-card {
  border: 1px solid #dce4ef;
  border-radius: 1.35rem;
  background: #f4f7ff;
  box-shadow: none;
}

.medic-home-page .blog-card:hover {
  box-shadow: 0 12px 24px rgba(39, 71, 112, 0.08);
}

.medic-home-page .blog-img {
  height: 200px;
  margin: 0.85rem;
  width: calc(100% - 1.7rem);
  border-radius: 1.05rem;
}

.medic-home-page .blog-body {
  padding: 0.7rem 1.7rem 1.5rem;
}

.medic-home-page .blog-date {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #edf0f4;
}

.medic-home-page .blog-body h3 {
  font-size: 1.05rem;
}

@media (max-width: 1024px) {
  .medic-home-page .hero-section {
    min-height: auto;
    padding-top: 3rem;
  }

  .medic-home-page .hero-inner {
    min-height: 520px;
  }

  .medic-home-page .hero-heading-v2 {
    font-size: clamp(2.7rem, 5vw, 3.7rem);
  }

  .medic-home-page .leads-grid,
  .medic-home-page .billing-inner {
    grid-template-columns: 1fr;
  }

  .medic-home-page .billing-left {
    position: static;
  }

  .medic-home-page .cta-image-wrap {
    display: flex;
  }
}

@media (max-width: 768px) {
  .medic-home-page .section,
  .medic-home-page .leads-section,
  .medic-home-page .process-section,
  .medic-home-page .billing-section,
  .medic-home-page .why-section,
  .medic-home-page .markets-section,
  .medic-home-page .testimonials-section,
  .medic-home-page .faq-section,
  .medic-home-page .blog-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .medic-home-page .hero-inner > *:first-child,
  .medic-home-page .hero-inner > *:nth-child(2) {
    width: 100%;
  }

  .medic-home-page .hero-text {
    padding-bottom: 0;
  }

  /* Match the supplied 393px mobile reference: compact two-column result
     cards rather than six full-width rows. */
  .medic-home-page .stats-grid-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .medic-home-page .stat-card-v2 {
    min-height: 112px;
    padding: 1rem 0.8rem;
  }

  .medic-home-page .markets-section .market-card {
    min-height: 42px;
    padding: 0.55rem 0.8rem;
  }

  .medic-home-page .markets-section .market-icon {
    width: 1rem;
    height: 1rem;
  }

  .medic-home-page .markets-section .market-text {
    font-size: 0.78rem;
  }

  .medic-home-page .billing-section .service-card-item img {
    height: 140px;
    object-fit: cover;
  }

  .medic-home-page .billing-section .service-card-body {
    padding: 0.85rem 0.25rem 0.35rem;
  }

  .medic-home-page .billing-section .service-card-body p {
    margin-bottom: 0.45rem;
    line-height: 1.45;
  }

  .site-footer {
    padding: 2rem 0 1rem;
  }

  .site-footer .footer-logos-bar {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    gap: 0.75rem;
  }

  .site-footer .assoc-logos {
    gap: 0.45rem;
  }

  .site-footer .assoc-logo img {
    width: 3.25rem;
    height: 3.5rem;
  }

  .site-footer .footer-grid {
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .site-footer .footer-col h4 {
    margin-bottom: 0.55rem;
  }

  .site-footer .footer-links li,
  .site-footer .contact-item {
    margin-bottom: 0.35rem;
  }

  /* The supplied mobile reference ends after FAQ/final doctor, associations
     and footer; the desktop Blog section remains unchanged. */
  .medic-home-page .blog-section {
    display: none;
  }

  .medic-home-page .hero-image-wrap {
    min-height: 420px;
  }

  /* Keep the doctor and its vector artwork in one responsive coordinate
     system.  The doctor SVG has a deliberately generous canvas, so the
     composition is sized from the rendered visual rather than the image box. */
  .medic-home-page .hero-visual-composition {
    position: relative;
    width: 100%;
    height: clamp(560px, 98vw, 620px);
    flex: 0 0 auto;
    margin: 0 auto;
  }

  .medic-home-page .hero-visual-composition .doctor-grouped-vectors {
    position: absolute;
    z-index: 1;
    top: -5%;
    left: 50%;
    width: min(132%, 720px);
    height: 100%;
    transform: translateX(-50%);
    object-fit: contain;
  }

  .medic-home-page .hero-visual-composition .hero-vector-top,
  .medic-home-page .hero-visual-composition .hero-vector-arrow,
  .medic-home-page .hero-visual-composition .hero-vector-bottom {
    display: none;
  }

  .medic-home-page .hero-visual-composition .doctor-main-image {
    position: absolute;
    z-index: 2;
    width: min(160%, 878px) !important;
    max-width: none;
    /* Keep the doctor on the artwork's center axis at mobile widths. */
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    margin: 0;
    object-fit: contain;
  }

  .medic-home-page .cta-card {
    padding: 2rem 1.5rem 2.5rem;
    border-radius: 2rem;
  }

  .medic-home-page .cta-image-wrap {
    height: 90px;
  }

  .medic-home-page .cta-image-wrap img {
    max-height: 90px;
  }
}

/* The supplied 610px recording uses the compact mobile reading flow: the
   copy and actions finish before the enlarged visual composition begins. */
@media (min-width: 520px) and (max-width: 768px) {
  .medic-home-page .hero-inner {
    gap: 1.25rem;
  }

  .medic-home-page .hero-heading-v2 {
    max-width: 540px;
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .medic-home-page .hero-desc-v2 {
    max-width: 540px;
    font-size: 1.05rem;
    line-height: 1.45;
    text-align: left;
    margin-bottom: 1.25rem;
  }

  .medic-home-page .hero-actions-v2 {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.8rem;
  }

  .medic-home-page .hero-actions-v2 .btn-pill-primary,
  .medic-home-page .hero-actions-v2 .btn-pill-secondary {
    min-height: 52px;
    font-size: 1rem;
  }

  .medic-home-page .hero-actions-v2 .btn-pill-primary {
    min-width: 360px;
  }

  .medic-home-page .hero-actions-v2 .btn-pill-secondary {
    min-width: 220px;
  }

  .medic-home-page .hero-visual-composition {
    height: clamp(470px, 78vw, 520px);
  }

  .medic-home-page .cta-section,
  .medic-home-page .testimonials-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .medic-home-page .t-card {
    width: min(84vw, 360px);
    min-height: 150px;
    padding: 1.25rem 1.35rem 1.75rem;
  }

  .testimonials-section .t-card {
    flex-basis: min(84vw, 360px);
    width: min(84vw, 360px);
    min-height: 150px;
    padding: 1.25rem 1.35rem 1.75rem;
  }

  .medic-home-page .market-card {
    min-height: 68px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
}

/* Final CTA geometry (after legacy Home overrides). */
@media (min-width: 1025px) {
  .medic-home-page .cta-section .cta-card { flex-direction: row; min-height: 430px; height: 430px; padding: 0; }
  .medic-home-page .cta-section .cta-content { order: 0; width: auto; flex: 0 0 53%; padding: 4rem 3.75rem; text-align: left; align-items: flex-start; }
  .medic-home-page .cta-section .cta-image-wrap { order: 0; flex: 1 1 47%; width: auto; height: auto; min-height: 430px; padding: 0 1rem 0 0; }
  .medic-home-page .cta-section .cta-image-wrap img { width: 100%; height: 100%; max-width: 640px; max-height: 430px; }
}
@media (max-width: 1024px) {
  .medic-home-page .cta-section .cta-card { flex-direction: column; height: auto; min-height: 0; padding: 0; }
  .medic-home-page .cta-section .cta-content { order: 0; width: auto; padding: 2.5rem 1.5rem 1.75rem; text-align: left; align-items: flex-start; }
  .medic-home-page .cta-section .cta-image-wrap { order: 1; width: 100%; height: auto; min-height: 230px; padding: 0; }
  .medic-home-page .cta-section .cta-image-wrap img { width: 100%; height: 230px; max-height: 230px; }
}

@media (max-width: 519px) {
  .medic-home-page .hero-section > .container {
    width: calc(100% - 2rem) !important;
    max-width: none !important;
  }

  .medic-home-page .hero-inner {
    width: 100%;
    max-width: 100%;
  }

  .medic-home-page .hero-text,
  .medic-home-page .hero-image-wrap {
    min-width: 0;
    width: calc(100vw - 2rem) !important;
    max-width: calc(100vw - 2rem) !important;
    flex: 0 0 100%;
  }

  .medic-home-page .hero-heading-v2 {
    max-width: calc(100vw - 2rem) !important;
    font-size: clamp(1.6rem, 6vw, 1.85rem);
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
    width: calc(100vw - 2rem) !important;
  }

  .medic-home-page .hero-social-proof {
    width: 100%;
  }

  .medic-home-page .hero-social-proof p {
    min-width: 0;
    width: 150px;
    max-width: 150px;
    overflow-wrap: anywhere;
  }

  .medic-home-page .hero-desc-v2 {
    max-width: 100%;
    width: calc(100vw - 2rem) !important;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .medic-home-page .hero-actions-v2 {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .medic-home-page .hero-actions-v2 .btn-pill-primary,
  .medic-home-page .hero-actions-v2 .btn-pill-secondary {
    max-width: 100%;
    min-width: 0;
    width: calc(100vw - 2rem);
    align-self: flex-start;
    margin-left: 0;
  }

  .medic-home-page .hero-visual-composition {
    height: clamp(470px, 120vw, 520px);
  }

  .medic-home-page .hero-visual-composition .doctor-grouped-vectors {
    width: 100%;
    top: 8%;
  }

  .medic-home-page .hero-visual-composition .doctor-main-image {
    width: min(145%, 580px) !important;
    left: calc(50% - 32px);
    bottom: 0;
  }
}

/* Mobile Home compositions shown in the supplied reference video. */
@media (max-width: 1024px) {
  .medic-home-page .why-image,
  .medic-home-page .faq-image {
    display: flex;
    width: 100%;
    min-height: 420px;
    overflow: visible;
  }

  .medic-home-page .why-image .doctor-img {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    z-index: 2;
  }

  .medic-home-page .why-image .bg-arrow {
    width: 120%;
    top: 8%;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 1;
  }

  .medic-home-page .faq-image .faq-doc {
    position: relative;
    width: 88%;
    max-width: 520px;
    margin-inline: auto;
    z-index: 2;
  }

  .medic-home-page .faq-image .faq-arrow-bg {
    width: 110%;
    right: -5%;
    bottom: 0;
    opacity: 0.95;
    z-index: 1;
  }
}

/* Inner/service denial CTA: compact Figma reference proportions. */
@media (min-width: 1025px) {
  .ss-cta-section .ss-cta-banner { width: min(91.11%, 1312px); max-width: 1312px; height: 350px; min-height: 350px; border-radius: 32px; }
  .ss-cta-section .ss-cta-content { flex: 0 0 53%; max-width: 680px; padding: 2.75rem 4rem; }
  .ss-cta-section .ss-cta-content h2 { max-width: 560px; font-size: 40px; line-height: 46px; margin-bottom: .8rem; }
  .ss-cta-section .ss-cta-content p { max-width: 540px; font-size: 16px; line-height: 25px; margin-bottom: 1.35rem; }
  .ss-cta-section .ss-cta-btn { min-height: 52px; padding: .75rem 1.5rem; font-size: 15px; }
  .ss-cta-section .ss-cta-image { flex: 1 1 47%; min-height: 350px; height: 350px; padding: 0; align-items: flex-end; justify-content: flex-end; }
  .ss-cta-section .ss-cta-image img { width: 540px; height: 340px; max-width: 540px; max-height: 340px; margin: 0; object-fit: contain; object-position: bottom right; }
}

/* Automatic system dark theme for the Home page. */
@media (prefers-color-scheme: dark) {
  body.home { background:#0c0d0d; color:#d9dee7; }
  body.home header, body.home .site-header, body.home .main-header { background:#0b0d0d; border-color:#202728; }
  body.home .site-nav { background:#0b0d0d; border-bottom-color:#202728; box-shadow:none; }
  body.home .site-nav .nav-links a,
  body.home .site-nav .nav-link { color:#d9dee7; }
  body.home .site-nav .nav-links a:hover,
  body.home .site-nav .nav-links .current-menu-item>a { color:#ffffff; }
  body.home .site-nav .nav-toggle span { background:#f5f7fb; }
  body.home .site-nav .nav-cta .btn-outline-primary { color:#f5f7fb !important; border-color:#536172 !important; background:#18202a !important; }
  body.home .site-nav .nav-cta .btn-outline-primary:hover { color:#0b0d0d !important; background:#f5f7fb; border-color:#f5f7fb !important; }
  body.home .medic-home-page section { background:#0c0d0d; color:#d9dee7; }
  body.home .medic-home-page .leads-section,
  body.home .medic-home-page .testimonials-section,
  body.home .medic-home-page .blog-section { background:#171818; }
  body.home .medic-home-page .process-section,
  body.home .medic-home-page .billing-section,
  body.home .medic-home-page .why-section,
  body.home .medic-home-page .markets-section,
  body.home .medic-home-page .faq-section { background:#0c0d0d; }
  body.home .medic-home-page h1, body.home .medic-home-page h2, body.home .medic-home-page h3, body.home .medic-home-page h4 { color:#f7f8fa; }
  body.home .medic-home-page p, body.home .medic-home-page li { color:#b9c1cd; }
  body.home .medic-home-page .stat-card, body.home .medic-home-page .service-card-item, body.home .medic-home-page .reason-item, body.home .medic-home-page .market-card, body.home .medic-home-page .faq-item, body.home .medic-home-page .blog-card, body.home .medic-home-page .testimonial-card, body.home .medic-home-page .review-card { background-color:#1d222b; border-color:#323946; box-shadow:0 8px 24px rgba(0,0,0,.32); }
  body.home .medic-home-page input, body.home .medic-home-page textarea, body.home .medic-home-page select { background:#1a1f27; color:#f7f8fa; border-color:#3a4350; }
  body.home .medic-home-page input::placeholder, body.home .medic-home-page textarea::placeholder { color:#929cab; }
  body.home .medic-home-page .testimonial-marquee, body.home .medic-home-page .marquee-row, body.home .medic-home-page .marquee-track { background:transparent; }
  body.home footer, body.home .site-footer { background:#111b31; color:#b9c1cd; border-color:#26334b; }
  body.home footer a, body.home .site-footer a { color:#d4dbe5; }
  body.home .medic-home-page .cta-section .cta-card { background:linear-gradient(105deg,#078b94 0%,#6db879 100%); }
  /* Proven Results / consultation dark surfaces (color-only). */
  body.home .medic-home-page .leads-section { background:#151719; }
  body.home .medic-home-page .stat-card-v2 { background:#1b1e22; border-color:#2b3037; box-shadow:0 8px 24px rgba(0,0,0,.28); }
  body.home .medic-home-page .stat-content h3 { color:#f2f5f8; }
  body.home .medic-home-page .stat-content p { color:#aeb7c2; }
  body.home .medic-home-page .consultation-card-v2 { background:#1b1e22; border-color:#2b3037; box-shadow:0 18px 45px rgba(0,0,0,.3); }
  body.home .medic-home-page .consultation-card-v2 h2.form-title { color:#f2f5f8; }
  body.home .medic-home-page .modern-form label { color:#b9c2cd; }
  body.home .medic-home-page .modern-form input,
  body.home .medic-home-page .dropdown-selected { background:#14171b; border-color:#343b45; color:#edf1f5; }
  body.home .medic-home-page .modern-form input::placeholder { color:#8994a1; }
  body.home .medic-home-page .modern-form input:focus,
  body.home .medic-home-page .premium-dropdown.active .dropdown-selected { background:#171b20; border-color:#13b7bc; }
  body.home .medic-home-page .dropdown-selected svg { color:#aeb7c2; }
  body.home .medic-home-page .dropdown-list { background:#1b1e22; border-color:#13b7bc; }
  /* Complete Revenue Cycle Management dark treatment. */
  body.home .medic-home-page .process-section { background:#0f1114; }
  body.home .medic-home-page .process-right h2 { color:#f4f6f8; }
  body.home .medic-home-page .process-right h2 span { color:#2f63d8; }
  body.home .medic-home-page .process-right > p { color:#aeb7c2; }
  body.home .medic-home-page .step-card { background:#1a1e24; border:1px solid #2c3440; box-shadow:0 8px 20px rgba(0,0,0,.24); }
  body.home .medic-home-page .step-num { color:#3c73e6 !important; }
  body.home .medic-home-page .step-card h4 { color:#f1f4f8; }
  body.home .medic-home-page .step-card p { color:#aeb7c2; }
  body.home .medic-home-page .why-section { background:#0c0d0d; }
  body.home .medic-home-page .why-brand-accent { color:#2f63d8; }
  body.home .medic-home-page .reason-item { background:#15191f; border-color:#2b3440; }
  body.home .medic-home-page .reason-item h3 { color:#2f63d8; }
  body.home .medic-home-page .reason-item p { color:#aeb7c2; }
  body.home .medic-home-page .reason-icon { color:#2f63d8; }
  /* Testimonials dark card hierarchy; marquee animation untouched. */
  body.home .medic-home-page .testimonials-section { background:#151617; }
  body.home .medic-home-page .testimonials-section .t-card { background:#0d0f10; border-color:#202528; box-shadow:0 6px 16px rgba(0,0,0,.3); }
  body.home .medic-home-page .testimonials-section .t-name { color:#f2f4f5; }
  body.home .medic-home-page .testimonials-section .t-text { color:#aeb7bd; }
  body.home .medic-home-page .testimonials-section .t-stars { color:#f2c14e; }
  body.home .medic-home-page .testimonials-section .t-quote svg path { stroke:#2a6876 !important; }
  body.home .medic-home-page .rcm-interactive .rcm-segment > path:first-child { fill:#172954 !important; }
  body.home .medic-home-page .rcm-interactive .rcm-segment:hover > path:first-child,
  body.home .medic-home-page .rcm-interactive .rcm-segment:focus > path:first-child { fill:#2854aa !important; }
  /* Markets dark palette (geometry/order unchanged). */
  body.home .medic-home-page .markets-section { background:#0c0d0d; }
  body.home .medic-home-page .markets-section .market-card { background:#171918; border-color:#262b29; box-shadow:0 5px 14px rgba(0,0,0,.22); }
  body.home .medic-home-page .markets-section .market-card:hover { background:#202521; border-color:#3c8b58; box-shadow:0 5px 16px rgba(0,0,0,.28); }
  body.home .medic-home-page .markets-section .market-icon { color:#55d889; }
  body.home .medic-home-page .markets-section .market-text { color:#f1f4f1; }
}

/* Services mega-menu dark palette; geometry and interaction remain unchanged. */
@media (prefers-color-scheme: dark) and (min-width: 1025px) {
  body.home .site-nav .mega-panel {
    background: #0f141d;
    border-color: #26364d;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .42);
  }
  body.home .site-nav .mega-link {
    color: #b9c3cf;
    background: transparent;
  }
  body.home .site-nav .mega-link:hover,
  body.home .site-nav .mega-link:focus,
  body.home .site-nav .mega-link[aria-current="page"] {
    color: #f5f7fb;
    background: #1a2a40;
  }
  body.home .site-nav .mega-link::before { background: #58d5c4; }
  body.home .site-nav .nav-item:hover > .nav-link,
  body.home .site-nav .nav-item.mega-open > .nav-link { color: #4f79e8; }
  body.home .site-nav .nav-item:hover > .nav-link .nav-chevron,
  body.home .site-nav .nav-item.mega-open > .nav-link .nav-chevron { color: #4f79e8; }
}

/* Final Home CTA restoration (must follow shared CTA rules). */
@media (min-width: 1025px) {
  .medic-home-page .cta-section > .container { width: 100%; max-width: none; }
  .medic-home-page .cta-section .cta-card { flex-direction: column-reverse; min-height: 500px; height: 500px; width: min(91.11%, 1312px); max-width: 1312px; padding: 3rem 4rem 2.75rem; }
  .medic-home-page .cta-section .cta-image-wrap { order: 0; flex: 0 0 150px; width: 100%; height: 150px; min-height: 0; padding: 0; justify-content: center; }
  .medic-home-page .cta-section .cta-image-wrap img { width: min(100%, 900px); height: auto; max-height: 150px; object-fit: contain; }
  .medic-home-page .cta-section .cta-content { order: 1; width: 100%; flex: 1 1 auto; max-width: none; padding: 1.5rem 0 0; text-align: center; align-items: center; }
  .medic-home-page .cta-section .cta-title { font-size: 40px; line-height: 46px; }
  .medic-home-page .cta-section .cta-desc { max-width: 820px; font-size: 16px; line-height: 25px; margin-bottom: 1.5rem; }
  .medic-home-page .cta-section .btn-white { min-height: 52px; padding: 0 36px; }
}
.medic-home-page .cta-section .btn-white { color: transparent; position: relative; }
.medic-home-page .cta-section .btn-white::before { content: 'Learn About Integration →'; color: #16358f; }
/* Home CTA + FAQ dark-mode color refinement (geometry intentionally unchanged). */
@media (prefers-color-scheme: dark) {
  body.home .medic-home-page .cta-section .cta-card { background: linear-gradient(105deg, #00aeb7 0%, #a5e88f 100%); }
  body.home .medic-home-page .cta-section .cta-label,
  body.home .medic-home-page .cta-section .cta-title,
  body.home .medic-home-page .cta-section .cta-desc { color: #10213a; }
  body.home .medic-home-page .cta-section .btn-white { background: #0d1117 !important; color: #f5f7fb !important; border-color: #0d1117 !important; }
  body.home .medic-home-page .cta-section .btn-white::before { color: #f5f7fb !important; }
  /* The authored logo collage contains white tile fills; tone the collage down
     in dark mode while preserving the existing logos/order and geometry. */
  body.home .medic-home-page .cta-section .cta-image-wrap img { filter: brightness(.42) saturate(1.08); }
  body.home .medic-home-page .faq-section { background: #0c0d0d; color: #d9dee7; }
  body.home .medic-home-page .faq-section .section-title { color: #f5f7fb; }
  body.home .medic-home-page .faq-accordion { border-top-color: #2a3038; }
  body.home .medic-home-page .faq-item { background: transparent; border-color: #2a3038; box-shadow: none; }
  body.home .medic-home-page .faq-question-text { color: #f1f4f7; }
  body.home .medic-home-page .faq-answer p { color: #aeb7c2; }
  body.home .medic-home-page .faq-icon { border-color: #8d98a5; }
  body.home .medic-home-page .faq-icon::before,
  body.home .medic-home-page .faq-icon::after { background-color: #cbd3dc; }
  body.home .medic-home-page .faq-item.active .faq-icon { border-color: #cbd3dc; }
  body.home .medic-home-page .faq-item.active .faq-icon::before { background-color: #cbd3dc; }
}
#consultation {
    scroll-margin-top: 120px;
}
#process-heading {
    scroll-margin-top: 140px;
}
/* =========================================================
   HOME EMR / EHR CTA — MOBILE IMAGE FIX
   Desktop is intentionally untouched
========================================================= */
@media only screen and (max-width: 768px) {

    body.home .medic-home-page .cta-section .cta-card {
        position: relative !important;
        overflow: hidden !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap {
        position: absolute !important;

        /* Equal gap on BOTH sides */
        left: 18px !important;
        right: 18px !important;

        /* Image ko aur upar */
      bottom: 20px !important;
        width: auto !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        display: block !important;
        overflow: hidden !important;
        z-index: 2 !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap img {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform: none !important;
    }
}
/* Extra-small phones */
@media only screen and (max-width: 480px) {

    body.home .medic-home-page .cta-section .cta-card {
        padding-bottom: 145px !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap {
        width: 125% !important;
        bottom: 16px !important;
    }
}
/* HOME CTA — MOBILE FINAL POSITION */
@media only screen and (max-width: 768px) {

    body.home .medic-home-page .cta-section .cta-card {
        position: relative !important;
        overflow: hidden !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap {
        position: absolute !important;

        /* Equal side spacing */
        left: 18px !important;
        right: 18px !important;

        /* Reset old positioning */
        top: auto !important;
        bottom: 28px !important;

        width: auto !important;
        height: 105px !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        overflow: hidden !important;
        z-index: 2 !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap img {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        max-height: 90px !important;

        display: block !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center !important;

        transform: none !important;
    }
}
/* =========================================================
   HOME CTA MOBILE - FINAL OVERRIDE
   Paste at the VERY END of style.css
========================================================= */

@media only screen and (max-width: 768px) {

    body.home .medic-home-page .cta-section .cta-card {
        position: relative !important;
        overflow: hidden !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap {
        position: absolute !important;

        /* Equal gap from left and right */
        left: 18px !important;
        right: 18px !important;

        /* Move logos down away from button */
        top: auto !important;
        bottom: 8px !important;

        width: auto !important;
        max-width: none !important;

        height: auto !important;
        max-height: none !important;

        margin: 0 !important;
        padding: 0 !important;

        transform: none !important;

        display: flex !important;
        justify-content: center !important;
        align-items: center !important;

        overflow: visible !important;
        z-index: 2 !important;
    }

    body.home .medic-home-page .cta-section .cta-image-wrap img {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;

        height: auto !important;
        max-height: 90px !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform: none !important;
    }
}
/* HOME CTA - LOGOS SLIGHTLY LOWER */
@media only screen and (max-width: 768px) {

    body.home .medic-home-page .cta-section .cta-image-wrap {
        bottom: -8px !important;
    }

}
/* HOME CTA - LOGOS LITTLE MORE DOWN */
@media only screen and (max-width: 768px) {
    body.home .medic-home-page .cta-section .cta-image-wrap {
        bottom: -20px !important;
    }
}
/* HOME - DOCTOR BOTTOM GAP FIX */
@media only screen and (max-width: 768px) {

    body.home .why-section .why-image {
        margin-bottom: -2px !important;
    }

    body.home .why-section .why-image .doctor-img {
        display: block !important;
        margin-bottom: -3px !important;
    }
}
/* =========================================================
   HOME MOBILE - WHY DOCTOR BOTTOM GAP FIX
   Paste at very end of style.css
========================================================= */

@media only screen and (max-width: 768px) {

    body.home .medic-home-page .why-section .why-inner {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    body.home .medic-home-page .why-section .why-image {
        position: relative !important;
        padding-bottom: 0 !important;
        margin-bottom: -10px !important;
        overflow: hidden !important;
        line-height: 0 !important;
    }

    body.home .medic-home-page .why-section .why-image .doctor-img {
        display: block !important;
        position: relative !important;
        bottom: -10px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        vertical-align: bottom !important;
    }
}
/* HOME MOBILE - REMOVE GAP BETWEEN HERO AND PROVEN RESULTS */
@media only screen and (max-width: 768px) {

    body.home .medic-home-page .leads-section {
        padding-top: 0 !important;
    }

}
/* =========================================================
   REMOVE GAP BEFORE OUR INSIGHTS & ARTICLES
========================================================= */

body.home .blog-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .faq-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .faq-section + .blog-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove possible empty space from last elements */
body.home .faq-section .container,
body.home .faq-inner,
body.home .faq-image {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.home .faq-section img {
    margin-bottom: 0 !important;
    display: block !important;
}
/* FAQ DOCTOR — MOVE IMAGE UP WITHOUT ADDING BOTTOM GAP */
body.home .faq-section .faq-image .faq-doc {
    transform: translateY(-55px) !important;
}

/* Arrow ko bhi doctor ke saath upar rakho */
body.home .faq-section .faq-image .faq-arrow-bg {
    transform: translateY(-55px) !important;
}
/* FAQ — REMOVE EMPTY SPACE BELOW DOCTOR, DO NOT MOVE IMAGE DOWN */
body.home .faq-section {
    padding-bottom: 0 !important;
}

body.home .faq-section .faq-inner {
    margin-bottom: -75px !important;
}

body.home .faq-section .faq-image {
    margin-bottom: 0 !important;
}

/* Next section starts immediately after FAQ */
body.home .faq-section + .blog-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* ===== FIX FAQ / BLOG OVERLAP ===== */

body.home .faq-section .faq-inner {
    margin-bottom: 0 !important;
}

/* Doctor upar hi rahe */
body.home .faq-section .faq-image .faq-doc {
    transform: translateY(-55px) !important;
}

body.home .faq-section .faq-image .faq-arrow-bg {
    transform: translateY(-55px) !important;
}

/* No extra bottom spacing */
body.home .faq-section {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

body.home .blog-section {
    margin-top: 0 !important;
}
