/* ================================================================
   P2GH - 24*7 Physiotherapy | Master CSS
   Single file — all colors via CSS variables
   Designer: SkoraSoft
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS — Change these to retheme the entire website
   ---------------------------------------------------------------- */
:root {
  /* Core Brand Colors */
  --primary:       #66a143;   /* Fresh green — main brand color */
  --primary-light: #8cb872;   /* Lighter green for highlights */
  --primary-dark:  #42682b;   /* Darker green for depth */
  --accent:        #03b3bc;   /* Cyan accent — CTAs, highlights */
  --accent-light:  #42c6cc;   /* Lighter cyan */

  /* Background Palette */
  --bg-white:      #ffffff;
  --bg-light:      #f6faf4;   /* Very light green-gray */
  --bg-section:    #eef6ea;   /* Light section background */
  --bg-dark:       #16241a;   /* Deep dark for footer/dark sections */
  --bg-darker:     #0d160f;   /* Deeper dark */

  /* Text */
  --text-dark:     #16241a;
  --text-body:     #44574a;
  --text-muted:    #84a08c;
  --text-white:    #ffffff;

  /* Borders */
  --border-light:  #dcebd5;
  --border-mid:    #b3d2a4;

  /* Effects */
  --shadow-sm:     0 2px 12px rgba(102,161,67,0.10);
  --shadow-md:     0 8px 32px rgba(102,161,67,0.16);
  --shadow-lg:     0 20px 60px rgba(102,161,67,0.20);

  /* Typography */
  --font-display:  'Cormorant Garamond', 'Lora', Georgia, serif;
  --font-body:     'Jost', 'Open Sans', sans-serif;
  --font-ui:       'Montserrat', sans-serif;

  /* Spacing */
  --section-py:    90px;
  --radius-sm:     8px;
  --radius-md:     16px;
  --radius-lg:     28px;
  --radius-xl:     40px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }

/* Rich-text content from admin (TinyMCE/CKEditor) can contain tables,
   iframes, or wide elements with inline widths — force them to respect
   the container on every screen size to prevent horizontal scroll. */
table { max-width: 100%; width: 100% !important; table-layout: fixed; }
iframe { max-width: 100%; }
pre, code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word; }

a { text-decoration: none; color: inherit; }

/* ----------------------------------------------------------------
   TYPOGRAPHY SYSTEM
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

.main-heading {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.main-heading span,
.main-heading .highlight {
  color: var(--primary);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-label.light { color: rgba(255,255,255,0.7); }
.section-label.light::before { background: var(--accent-light); }

/* ----------------------------------------------------------------
   BUTTONS
   ---------------------------------------------------------------- */
.btn-p2gh {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--text-white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-p2gh::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-dark);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 0;
}

.btn-p2gh:hover::after { transform: translateX(0); }
.btn-p2gh > * { position: relative; z-index: 1; }

.btn-p2gh:hover {
  color: #fff;
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-p2gh .btn-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  font-size: 11px;
}

.btn-p2gh-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  background: transparent;
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-p2gh-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-p2gh-accent::after { background: #c44a19; }
.btn-p2gh-accent:hover { border-color: #c44a19; }

.btn-p2gh-white {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
}
.btn-p2gh-white::after { background: #f0f0f0; }
.btn-p2gh-white:hover { color: var(--primary-dark); border-color: #f0f0f0; }

/* ----------------------------------------------------------------
   TOP BAR
   ---------------------------------------------------------------- */
.p2gh-topbar {
  background: var(--bg-dark);
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.p2gh-topbar .topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-family: var(--font-ui);
  transition: color 0.2s;
}

.topbar-item:hover { color: var(--primary-light); }

.topbar-item i {
  color: var(--primary-light);
  font-size: 14px;
}

.topbar-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-social-link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  transition: all 0.3s;
}

.topbar-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   NAVBAR
   ---------------------------------------------------------------- */
.p2gh-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: top 0.3s ease, all 0.4s ease;
}

@media (min-width: 992px) {
  .p2gh-navbar { top: var(--topbar-height, 41px); }
  .p2gh-navbar.scrolled { top: 0; }
}

.p2gh-navbar .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Default - white on non-hero pages */
.p2gh-navbar {
  background: var(--bg-white);
  box-shadow: 0 2px 16px rgba(26,122,138,0.08);
}

/* Transparent - only on hero page top */
.p2gh-navbar.transparent {
  background: transparent;
  box-shadow: none;
}

/* Scrolled-state navbar */
.p2gh-navbar.scrolled {
  background: var(--bg-white);
  box-shadow: 0 4px 24px rgba(26,122,138,0.12);
}

/* Anti-flicker: if the page loads already scrolled (e.g. back/forward
   navigation restoring scroll position), force the solid navbar instantly
   via CSS — before the scroll-listener JS even runs. */
html.nav-prescroll .p2gh-navbar.transparent {
  background: var(--bg-white);
  box-shadow: 0 4px 24px rgba(26,122,138,0.12);
}
html.nav-prescroll .p2gh-navbar.transparent .nav-link { color: var(--bg-dark); }
html.nav-prescroll .p2gh-navbar.transparent .nav-toggle span { background: var(--bg-dark); }

.nav-logo img {
  height: 70px;
  transition: height 0.3s;
}

.p2gh-navbar.scrolled .nav-logo img { height: 70px; }

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-menu .nav-item { position: relative; }

.nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--bg-dark);
  border-radius: 8px;
  transition: all 0.2s;
}

.p2gh-navbar.transparent .nav-link { color: rgba(255,255,255,0.9); }

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
  color: var(--primary);
  background: rgba(26,122,138,0.08);
}

.p2gh-navbar.transparent .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  padding: 8px;
  z-index: 100;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-dropdown a:hover {
  background: var(--bg-section);
  color: var(--primary);
  padding-left: 18px;
}

.nav-dropdown .dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 6px 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--bg-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.p2gh-navbar.transparent .nav-toggle span { background: #fff; }

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.p2gh-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(6,28,34,0.88) 0%,
    rgba(10,45,53,0.70) 50%,
    rgba(13,82,96,0.40) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 40px;
  color: rgba(255,255,255,0.9);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-title .line2 {
  color: var(--primary-light);
  display: block;
}

.hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-num span { color: var(--accent); }

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* Hero floating card */
.hero-float-card {
  position: absolute;
  right: 6%;
  bottom: 15%;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}

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

.hero-float-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.hero-float-text strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.hero-float-text span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------------
   INFO TICKER
   ---------------------------------------------------------------- */
.p2gh-ticker {
  background: var(--primary-dark);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.ticker-wrapper {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-wrapper:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
}

.ticker-item .t-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

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

/* ----------------------------------------------------------------
   SECTION BASE
   ---------------------------------------------------------------- */
.p2gh-section {
  padding: var(--section-py) 0;
  overflow-x: hidden;
}

.p2gh-section.bg-light { background: var(--bg-light); }
.p2gh-section.bg-section { background: var(--bg-section); }
.p2gh-section.bg-dark { background: var(--bg-dark); }
.p2gh-section.bg-darker { background: var(--bg-darker); }

.container-p2gh {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------------------
   SECTION HEADER
   ---------------------------------------------------------------- */
.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-header-left { max-width: 600px; }

.section-desc {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 540px;
}

.section-desc.light { color: rgba(255,255,255,0.7); }

/* ----------------------------------------------------------------
   ABOUT SECTION
   ---------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-images-wrap {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(280px, 55vw, 520px);
}

.about-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-img-main:hover img { transform: scale(1.04); }

.about-img-small {
  position: absolute;
  bottom: -32px;
  right: -32px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 6px solid var(--bg-white);
  box-shadow: var(--shadow-md);
}

.about-img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-exp-badge {
  position: absolute;
  top: 32px;
  left: -24px;
  background: var(--accent);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about-exp-badge .num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
}

.about-exp-badge .label {
  display: block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-section);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.about-feature-item h6 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.about-feature-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.doctor-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  margin-top: 32px;
}

.doctor-signature img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.doctor-signature .doc-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.doctor-signature .doc-deg {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   SERVICES SECTION
   ---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.service-card-img {
  height: 220px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img { transform: scale(1.08); }

.service-card-body {
  padding: 24px;
}

.service-card-body h4 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color 0.2s;
}

.service-card:hover .service-card-body h4 { color: var(--primary); }

.service-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card-arrow {
  width: 38px;
  height: 38px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 15px;
  transition: all 0.3s;
  margin-left: auto;
}

.service-card:hover .service-card-arrow {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

/* ----------------------------------------------------------------
   STATS / COUNTER SECTION
   ---------------------------------------------------------------- */
.stats-section {
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.stats-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 60px 32px;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 24px;
  margin: 0 auto 20px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num span { color: var(--accent-light); }

.stat-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ----------------------------------------------------------------
   WHY CHOOSE US
   ---------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-img-wrap {
  position: relative;
}

.why-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 580px;
}

.why-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-accent-card {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--accent);
  color: #fff;
  padding: 28px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.why-accent-card .big-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.why-accent-card .label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s;
}

.why-item:hover {
  background: var(--bg-white);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
  transform: translateX(8px);
}

.why-item-icon {
  width: 52px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  flex-shrink: 0;
}

.why-item-icon.accent { background: var(--accent); }

.why-item-body h5 {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.why-item-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   PROCESS SECTION
   ---------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  --ps-cols: 3;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(50% / var(--ps-cols) + 32px);
  right: calc(50% / var(--ps-cols) + 32px);
  height: 2px;
  background: var(--border-mid);
  z-index: 0;
}

/* Connecting line only makes visual sense with 2+ steps */
.process-steps[data-steps="1"]::before { display: none; }

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

.step-circle-outer {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px dashed var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: var(--bg-white);
  transition: all 0.3s;
}

.process-step:hover .step-circle-outer {
  border-color: var(--primary);
  background: var(--primary);
}

.step-inner-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  transition: all 0.3s;
}

.process-step:hover .step-inner-circle {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.step-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
}

.process-step h4 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: color 0.2s;
}

.process-step:hover h4 { color: var(--primary); }

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   TESTIMONIALS
   ---------------------------------------------------------------- */
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  transition: all 0.3s;
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 800;
  color: var(--bg-section);
  line-height: 1;
}

.testimonial-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: #f4a100;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-client {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-client img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-light);
}

.testimonial-client .client-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-client .client-role {
  font-size: 13px;
  color: var(--primary);
}

/* ----------------------------------------------------------------
   MISSION / VISION CARDS
   ---------------------------------------------------------------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mv-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}

.mv-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: center;
}

.mv-card:hover::after { transform: scaleX(1); }

.mv-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: var(--primary-light);
}

.mv-icon {
  width: 72px;
  height: 72px;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 30px;
  margin: 0 auto 24px;
  transition: all 0.3s;
}

.mv-card:hover .mv-icon {
  background: var(--primary);
  color: #fff;
}

.mv-card h4 {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.mv-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA Banner inside section */
.cta-banner {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.cta-banner p { color: rgba(255,255,255,0.75); font-size: 15px; }

/* ----------------------------------------------------------------
   FAQ SECTION
   ---------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.faq-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 500px;
}

.faq-img img { width: 100%; height: 100%; object-fit: cover; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: var(--primary-light); }

.faq-trigger {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.2s;
}

.faq-item.open .faq-trigger { color: var(--primary); }

.faq-trigger .faq-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.faq-item.open .faq-trigger .faq-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-body {
  max-height: 200px;
  padding: 0 24px 20px;
}

/* ----------------------------------------------------------------
   BLOGS SECTION
   ---------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.35s;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.blog-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-body { padding: 24px; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.blog-meta span i { color: var(--primary); }

.blog-card-body h5 {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
  transition: gap 0.2s;
}

.blog-card:hover .blog-read-more { gap: 10px; }

/* ----------------------------------------------------------------
   POPUP APPOINTMENT FORM
   ---------------------------------------------------------------- */
.p2gh-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,28,34,0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.p2gh-popup.active { display: flex; }

.popup-box {
  background: var(--bg-white);
  border-radius: 5px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: popup-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

@keyframes popup-in {
  from { opacity: 0; transform: scale(0.85) translateY(30px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-header {
  background: var(--primary);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.popup-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.popup-header p {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  margin-top: 4px;
}

.popup-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.popup-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }

.popup-body { padding: 32px; }

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control-p2gh {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-control-p2gh:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,122,138,0.12);
}

.form-control-p2gh::placeholder { color: var(--text-muted); }

textarea.form-control-p2gh { resize: vertical; min-height: 100px; }

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.p2gh-footer {
  background: var(--bg-dark);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .brand-logo { height: 70px; margin-bottom: 20px; }

.footer-brand .brand-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: all 0.3s;
}

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

.footer-col h5 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}

.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }
.footer-links a:hover::before { background: var(--accent); }

.footer-contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-contact-item .fci-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 15px;
  flex-shrink: 0;
}

.footer-contact-item .fci-text h6 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 3px;
}

.footer-contact-item .fci-text a,
.footer-contact-item .fci-text p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-contact-item .fci-text a:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: var(--primary-light); }
.footer-bottom a:hover { color: var(--accent-light); }

/* ----------------------------------------------------------------
   FLOATING BUTTONS
   ---------------------------------------------------------------- */
.float-actions {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9000;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.float-btn:hover { transform: scale(1.12); }

.float-btn.whatsapp { background: #25d366; color: #fff; }
.float-btn.phone { background: var(--primary); color: #fff; }


/* ----------------------------------------------------------------
   AOS ANIMATION OVERRIDE (keep our design consistent)
   ---------------------------------------------------------------- */
[data-aos] { transition-duration: 700ms !important; }

/* ----------------------------------------------------------------
   SCROLLBAR
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }

/* ----------------------------------------------------------------
   ABOUT PAGE SPECIFICS (about.blade.php)
   ---------------------------------------------------------------- */
.page-hero {
  background: var(--bg-dark);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/front_assets/images/doctor.jpeg') center/cover no-repeat;
  opacity: 0.08;
}

.page-hero .breadcrumb-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}

.page-hero .breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
}

.page-hero .breadcrumb-nav span {
  font-family: var(--font-ui);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.page-hero .breadcrumb-nav a { color: var(--primary-light); }
.page-hero .breadcrumb-nav .sep { color: rgba(255,255,255,0.3); }

/* ----------------------------------------------------------------
   CONTACT PAGE
   ---------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  height: 100%;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 12px;
}

.contact-info-card p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 36px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item h6 {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.contact-info-item p, .contact-info-item a {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  margin: 0;
}

.contact-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.contact-map-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
}

.contact-map-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ----------------------------------------------------------------
   GALLERY PAGE
   ---------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 260px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,45,53,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
  font-size: 32px;
}

.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ----------------------------------------------------------------
   SERVICES LIST PAGE
   ---------------------------------------------------------------- */
.services-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.service-category-block { margin-bottom: 64px; }

.service-category-title {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

/* ----------------------------------------------------------------
   BLOG DETAIL
   ---------------------------------------------------------------- */
.blog-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.blog-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: clamp(220px, 45vw, 420px);
  margin-bottom: 32px;
}

.blog-detail-img img { width: 100%; height: 100%; object-fit: cover; }

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.sidebar-card h5 {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}

/* Sidebar nav list (e.g. "All Services") — CSS-driven states instead of
   inline onmouseover/onmouseout, which get stuck "highlighted" on touch
   devices since mobile browsers don't reliably fire mouseout on tap. */
.sidebar-card-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-card-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-body);
  background: transparent;
  font-weight: 400;
  transition: background 0.2s, color 0.2s;
}

.sidebar-card-list a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: hover) {
  .sidebar-card-list a:hover {
    background: var(--bg-section);
    color: var(--primary);
  }
}

.sidebar-card-list a:active {
  background: var(--bg-section);
  color: var(--primary);
}

.sidebar-card-list a.active-link {
  background: var(--bg-section);
  color: var(--primary);
  font-weight: 700;
}

/* Swiper customization */
.swiper-pagination-bullet { background: var(--primary-light); opacity: 0.4; }
.swiper-pagination-bullet-active { opacity: 1; background: var(--primary); }

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --section-py: 70px; }

  .about-grid, .why-grid, .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-bottom: 1px solid rgba(255,255,255,0.1); }

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

  .about-img-small { right: 16px; bottom: -24px; width: 140px; height: 140px; }
  .about-exp-badge { left: 0; padding: 16px 18px; }
  .about-exp-badge .num { font-size: 2.2rem; }
  .why-accent-card { right: 16px; }

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

  .hero-float-card { display: none; }

  /* Process steps inline column count can be 3+ from admin data — cap at 2 on tablet */
  .process-steps { grid-template-columns: repeat(2, 1fr) !important; gap: 40px 24px; }
  .process-steps::before { display: none; }

  /* Inner pages that had no responsive rules at all */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-detail-wrap { grid-template-columns: 1fr; gap: 32px; }
  .blog-sidebar { position: static; top: auto; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .p2gh-navbar .nav-menu, .p2gh-navbar .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .p2gh-navbar.mobile-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 9998;
  }

  .p2gh-navbar.mobile-open .nav-link { font-size: 20px; padding: 12px 24px; }

  /* In the centered mobile menu, dropdowns must align to the center of
     their trigger link rather than its left edge (default desktop behavior).
     Must stay position:absolute — position:static would reserve empty
     space in the menu even while the dropdown is closed. */
  .p2gh-navbar.mobile-open .nav-item { position: relative; }

  .p2gh-navbar.mobile-open .nav-dropdown {
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    transform: translateX(-50%) translateY(8px);
    width: 90vw;
    max-width: 320px;
    max-height: 0;
  }

  .p2gh-navbar.mobile-open .nav-item:hover .nav-dropdown,
  .p2gh-navbar.mobile-open .nav-item.dropdown-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    max-height: 70vh;
    overflow-y: auto;
  }

  /* Mobile menu always opens on a white panel — force dark text even when
     the navbar itself is in transparent (hero) mode, otherwise white text
     becomes invisible on the white mobile menu background. */
  .p2gh-navbar.transparent.mobile-open .nav-link { color: var(--bg-dark); }
  .p2gh-navbar.mobile-open .nav-toggle span { background: var(--bg-dark); }

  .hero-title { font-size: 2.4rem; }
  .hero-stats { gap: 24px; }

  .process-steps { grid-template-columns: 1fr !important; }
  .process-steps::before { display: none; }

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

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

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }

  .section-header-flex { flex-direction: column; align-items: flex-start; }

  .p2gh-topbar { display: none; }

  .about-img-small { display: none; }
  .why-accent-card { position: static; margin-top: 16px; }

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

  /* Gallery / Contact / Services-list / Blog detail — tighten up for tablet & mobile */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .gallery-item { height: 200px; }

  .services-list-grid { grid-template-columns: 1fr; }

  .service-category-block { margin-bottom: 40px; }

  .about-features { grid-template-columns: 1fr; }

  .contact-info-card,
  .contact-form-card { padding: 32px 24px; }

  .sidebar-card { padding: 22px 18px; }

  .page-hero { padding: 110px 0 56px; }

  .doctor-signature { flex-wrap: wrap; }
  .doctor-signature .btn-p2gh { margin-left: 0 !important; width: 100%; justify-content: center; margin-top: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr; }
  .main-heading { font-size: 1.8rem; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item { height: 150px; }

  .contact-info-item { flex-direction: column; }
  .contact-info-icon { margin-bottom: 4px; }

  .contact-map-wrap { height: 260px; margin-top: 40px; }

  .page-hero { padding: 100px 0 44px; }
  .page-hero .breadcrumb-title { font-size: 1.7rem; }

  /* Blog & Service cards — tighten for small phones */
  .blog-card-img,
  .service-card-img { height: 180px; }

  .blog-card-body,
  .service-card-body { padding: 18px; }

  .blog-grid,
  .services-grid,
  .services-list-grid { gap: 18px; }

  .cta-banner .btn-p2gh { width: 100%; justify-content: center; }

  .container-p2gh { padding: 0 16px; }

  /* About page — shrink overlapping image/badge so they don't crowd the small viewport */
  .about-img-small { width: 96px; height: 96px; right: 8px; bottom: -16px; border-width: 3px; }
  .about-exp-badge { padding: 12px 14px; top: 16px; }
  .about-exp-badge .num { font-size: 1.6rem; }
  .about-exp-badge .label { font-size: 9px; }

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

  .doctor-signature { padding: 16px 18px; }
  .doctor-signature img { width: 44px; height: 44px; }
}
 .content-editor{
    font-size:16px;
    line-height:1.9;
    color:var(--text-body);
}

.content-editor p{
    margin:0 0 16px;
}

.content-editor h1,
.content-editor h2,
.content-editor h3,
.content-editor h4,
.content-editor h5,
.content-editor h6{
    margin:24px 0 12px;
    color:var(--text-dark);
    font-weight:700;
    line-height:1.3;
}

.content-editor ul,
.content-editor ol{
    margin:16px 0;
    padding-left:28px;
    list-style-position:outside;
}

.content-editor ul{
    list-style:disc !important;
}

.content-editor ol{
    list-style:decimal !important;
}

.content-editor li{
    display:list-item !important;
    margin-bottom:8px;
    line-height:1.8;
}

.content-editor strong{
    font-weight:700;
}

.content-editor em{
    font-style:italic;
}

.content-editor a{
    color:var(--primary);
    text-decoration:none;
}

.content-editor a:hover{
    text-decoration:underline;
}

.content-editor img{
    max-width:100%;
    height:auto;
    border-radius:12px;
    margin:20px 0;
}

.content-editor blockquote{
    margin:20px 0;
    padding:16px 20px;
    border-left:4px solid var(--primary);
    background:#f8f9fa;
    font-style:italic;
}

.content-editor table{
    width:100%;
    border-collapse:collapse;
    margin:20px 0;
}

.content-editor table th,
.content-editor table td{
    border:1px solid #ddd;
    padding:10px;
}

.content-editor table th{
    background:#f5f5f5;
    font-weight:600;
}