/*
Theme Name:  MEDICRCM
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: 100%;
    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;
}

.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(4, 1fr);
  gap: 1rem;
}

.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);
}

.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;
}



/* Specific rule for the last two market cards (21st and 22nd) */
/* This applies to the 21st and 22nd div within .markets-grid */
.markets-grid>div:nth-child(21),
.markets-grid>div:nth-child(22) {
  grid-column: span 2;
  /* Make them span 2 columns (50% width in a 4-column grid) */
  /* To visually center these two if they form the last row alone */
  justify-self: center;
  /* Center the item within its potentially wider grid cell */
  width: calc(100% - 1rem);
  /* Adjust width to account for grid gap */
  /* max-width: 350px; */
  /* Optional: give a max-width to the 50% cards so they don't get too wide */
}



/*  
   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(3, 1fr);
  }

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

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

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

/*  
   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: repeat(2, 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;
}