/* ============================================
   MHD Helpline - mhdhelpline.space
   Style: Mountain Serenity (#9)
   Architecture: Card-Grid Dashboard (#6)
   Generated: 2026-02-10
   ============================================ */

/* ---------- CSS Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4A5568;
  --primary-dark: #2D3748;
  --primary-light: #718096;
  --secondary: #48624D;
  --secondary-light: #6B8F71;
  --accent: #9DC3C1;
  --accent-light: #C5DEDD;
  --text: #1A202C;
  --text-light: #4A5568;
  --text-muted: #718096;
  --bg: #F7F8F9;
  --bg-white: #FFFFFF;
  --bg-alt: #EDF2F7;
  --border: #E2E8F0;
  --shadow: rgba(74, 85, 104, 0.1);
  --shadow-md: rgba(74, 85, 104, 0.15);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.3s ease;
  --font-heading: 'Montserrat', 'Raleway', sans-serif;
  --font-body: 'Source Sans Pro', 'Open Sans', sans-serif;
  --max-width: 1200px;
  --header-height: 80px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Skip Navigation ---------- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary-dark);
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
}
.skip-nav:focus {
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}
.btn-primary:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(72, 98, 77, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg-white);
  box-shadow: 0 1px 4px var(--shadow);
  z-index: 1000;
  transition: all var(--transition);
}

.site-header.scrolled {
  height: 64px;
  box-shadow: 0 2px 10px var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary-dark);
}
.logo:hover { color: var(--secondary); }

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--secondary);
}
.header-phone:hover { color: var(--secondary-light); }
.header-phone svg { width: 18px; height: 18px; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---------- Mobile Menu Toggle ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---------- Mobile Navigation ---------- */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 4px 12px var(--shadow-md);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-nav.open {
  max-height: 100vh;
}

.mobile-nav ul {
  padding: 1rem 1.5rem 1.5rem;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.mobile-nav a:hover {
  color: var(--secondary);
}

body.nav-open {
  overflow: hidden;
}

/* ---------- Desktop Navigation ---------- */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--secondary);
  background: var(--bg-alt);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

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

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,55,72,0.82) 0%, rgba(72,98,77,0.7) 50%, rgba(157,195,193,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 3rem 1.5rem;
  color: #fff;
}

.hero-content h1 {
  color: #fff;
  font-size: 2.75rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.92);
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-phone {
  display: block;
  margin-top: 1.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-light);
}
.hero-phone:hover { color: #fff; }

/* ---------- Inner Page Hero ---------- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  overflow: hidden;
}

.page-hero .hero-bg::after {
  background: linear-gradient(135deg, rgba(45,55,72,0.85) 0%, rgba(72,98,77,0.75) 100%);
}

.page-hero .hero-content h1 {
  font-size: 2.25rem;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 1rem 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs ol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumbs li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--border);
}

.breadcrumbs a {
  color: var(--text-muted);
}
.breadcrumbs a:hover {
  color: var(--secondary);
}

.breadcrumbs .current {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--primary-dark);
  padding: 1.25rem 0;
}

.trust-bar-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
}

.trust-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
  position: relative;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* ---------- Card Grid (Architecture #6 Core) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px var(--shadow-md);
  border-color: var(--accent);
}

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

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

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

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(45,55,72,0.5) 0%, transparent 60%);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
}
.card-link:hover {
  color: var(--accent);
  gap: 0.7rem;
}
.card-link::after {
  content: '→';
}

/* Mini card variant */
.card-mini {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card-mini:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-md);
  border-color: var(--accent);
}

.card-mini-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ---------- About Preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview img {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

.about-preview-text h2 {
  margin-bottom: 1rem;
}

.about-preview-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* ---------- Why Choose Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #fff;
  font-size: 1.5rem;
}

.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* ---------- Amenities Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

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

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,32,44,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: #fff;
  font-weight: 600;
  z-index: 2;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ---------- Testimonials ---------- */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 2px 12px var(--shadow);
  border-left: 4px solid var(--accent);
  display: none;
}

.testimonial-item.active {
  display: block;
}

.testimonial-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.25rem;
  top: -0.5rem;
  font-size: 3rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-dark);
}

.testimonial-program {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.testimonial-dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 50%, var(--primary) 100%);
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-phone {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}
.cta-phone:hover { color: #fff; }

/* ---------- Programs Cards ---------- */
.program-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border);
}

.program-card:nth-child(even) {
  direction: rtl;
}
.program-card:nth-child(even) > * {
  direction: ltr;
}

.program-card-img {
  height: 100%;
  min-height: 300px;
}

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

.program-card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.program-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.program-card-content ul {
  margin-bottom: 1.5rem;
}

.program-card-content ul li {
  padding: 0.3rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.program-card-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 700;
}

/* ---------- Admissions Steps ---------- */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.step-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
  position: relative;
  border: 1px solid var(--border);
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

.step-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Insurance Grid ---------- */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.insurance-item {
  padding: 1rem;
  text-align: center;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}

.insurance-item:hover {
  border-color: var(--accent);
  color: var(--secondary);
}

/* ---------- FAQ Accordion ---------- */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition);
}

.faq-question:hover {
  color: var(--secondary);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-question::after {
  content: '−';
  color: var(--secondary);
}

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

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ---------- Contact Info ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  color: var(--text-light);
  margin-bottom: 0;
}

.contact-info-text a {
  color: var(--secondary);
  font-weight: 600;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- Blog Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

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

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

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 a {
  color: var(--text);
}
.blog-card-body h3 a:hover {
  color: var(--secondary);
}

.blog-card-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ---------- Privacy Page ---------- */
.privacy-content {
  max-width: 850px;
  margin: 0 auto;
  background: var(--bg-white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content ul li {
  list-style: disc;
  padding: 0.25rem 0;
  color: var(--text-light);
}

/* ---------- Treatment Modalities / Content Lists ---------- */
.modality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.modality-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.modality-item:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--shadow);
}

.modality-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- Team Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px var(--shadow);
  border: 1px solid var(--border);
}

.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card .team-title {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.team-card .team-creds {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Tabs (Inner Page Sections) ---------- */
.content-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: var(--secondary);
}

.tab-btn.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ---------- Schedule Table ---------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px var(--shadow);
}

.schedule-table th {
  background: var(--primary-dark);
  color: #fff;
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
}

.schedule-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-light);
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table tr:hover td {
  background: var(--bg-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1rem;
  display: block;
}

.site-footer p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

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

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.85);
}
.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}

/* ---------- Comparison Table ---------- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px var(--shadow);
}

.comparison-table th {
  background: var(--secondary);
  color: #fff;
  padding: 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-align: center;
}

.comparison-table th:first-child {
  text-align: left;
}

.comparison-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.comparison-table tr:hover td {
  background: var(--bg-alt);
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(72,98,77,0.3);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-light);
  transform: translateY(-3px);
}

/* ---------- Two Column Content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.two-col-reverse {
  direction: rtl;
}
.two-col-reverse > * {
  direction: ltr;
}

.two-col img {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

/* ---------- Homepage-Specific Classes ---------- */

/* Hero overlay (when bg-image is on .hero directly) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,55,72,0.82) 0%, rgba(72,98,77,0.7) 50%, rgba(157,195,193,0.5) 100%);
}

/* Hero CTA group */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-phone-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-right: 0.5rem;
}

.hero-phone-number {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.3rem;
}
.hero-phone-number:hover { color: #fff; }

/* Button variants */
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* Section text classes */
.section-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
}

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

/* About preview inner grid */
.about-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

.about-preview-content .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* Program card in card-grid context (homepage cards) */
.card-grid .program-card {
  display: block;
  grid-template-columns: none;
  margin-bottom: 0;
}

.card-grid .program-card:nth-child(even) {
  direction: ltr;
}

.program-card-image {
  height: 200px;
  overflow: hidden;
}

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

.program-card:hover .program-card-image img {
  transform: scale(1.05);
}

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

.program-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.program-card-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Feature title and desc */
.feature-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-desc {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Amenities gallery */
.amenities-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.amenity-gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
}

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

.amenity-gallery-item:hover img {
  transform: scale(1.08);
}

/* Testimonial sub-elements */
.testimonial-name {
  display: block;
  font-weight: 700;
  color: var(--primary-dark);
}

.testimonial-detail {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA section with background image */
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,55,72,0.88) 0%, rgba(72,98,77,0.85) 50%, rgba(74,85,104,0.88) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-phone-label {
  display: block;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.25rem;
}

.cta-phone-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
}
.cta-phone-number:hover { color: #fff; }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Footer additional classes */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-logo:hover { color: var(--accent); }

.footer-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-license {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.footer-address {
  font-style: normal;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
}
.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ---------- Blog Page ---------- */
.blog-featured {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.blog-featured-img {
  height: 100%;
  min-height: 350px;
  overflow: hidden;
}

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

.blog-featured-body {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-body .blog-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--secondary);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.blog-featured-body h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.blog-featured-body h2::after {
  display: none;
}

.blog-featured-body .blog-excerpt {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.blog-featured-body .blog-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-card .blog-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
}

.blog-read-more:hover {
  color: var(--accent);
  gap: 0.7rem;
}

.blog-article-full {
  display: none;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 3rem;
  border: 1px solid var(--border);
}

.blog-article-full.active {
  display: block;
}

.blog-article-full .article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.blog-article-full .article-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.blog-article-full .article-header h2::after {
  display: none;
}

.blog-article-full .article-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.blog-article-full .article-body {
  line-height: 1.8;
  color: var(--text-light);
}

.blog-article-full .article-body h3 {
  color: var(--text);
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.blog-article-full .article-body p {
  margin-bottom: 1.25rem;
}

.blog-article-full .article-body ul,
.blog-article-full .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-article-full .article-body ul li,
.blog-article-full .article-body ol li {
  list-style: disc;
  padding: 0.3rem 0;
  color: var(--text-light);
}

.blog-article-full .article-body ol li {
  list-style: decimal;
}

.blog-article-full .article-body strong {
  color: var(--text);
}

.blog-article-full .article-img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  box-shadow: 0 2px 12px var(--shadow);
}

.blog-article-full .article-cta {
  background: var(--bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  border-left: 4px solid var(--secondary);
}

.blog-article-full .article-cta h4 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.blog-article-full .article-cta p {
  margin-bottom: 0.5rem;
}

.blog-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.95rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.blog-back-btn:hover {
  color: var(--accent);
}

.blog-categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

.category-tag {
  padding: 0.5rem 1.25rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: default;
  transition: all var(--transition);
}

.category-tag:hover {
  border-color: var(--accent);
  color: var(--secondary);
}

/* ---------- Mountain Divider ---------- */
.mountain-divider {
  height: 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.mountain-divider::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
  background:
    linear-gradient(135deg, var(--primary-light) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, var(--primary-light) 33.33%, transparent 33.33%) 0 0;
  background-size: 80px 100%;
  opacity: 0.07;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-preview,
  .about-preview-inner,
  .contact-grid,
  .two-col,
  .program-card {
    grid-template-columns: 1fr;
  }

  .program-card:nth-child(even) {
    direction: ltr;
  }

  .program-card-img {
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta .btn {
    display: none;
  }

  .hero {
    min-height: 450px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 0;
  }

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

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

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

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

  .trust-bar-inner {
    gap: 1.5rem;
    font-size: 0.85rem;
  }

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

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

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

  .content-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .comparison-table {
    font-size: 0.85rem;
  }

  .privacy-content {
    padding: 1.5rem;
  }

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

  .blog-featured-img {
    min-height: 220px;
  }

  .blog-featured-body {
    padding: 1.5rem;
  }

  .blog-article-full {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-btns,
  .hero-cta-group,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

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

  .gallery-grid,
  .amenities-gallery {
    grid-template-columns: 1fr;
  }
}

/* ---------- Print Styles ---------- */
@media print {
  .site-header,
  .back-to-top,
  .menu-toggle,
  .cta-section {
    display: none;
  }

  .hero {
    min-height: auto;
    margin-top: 0;
  }

  body {
    font-size: 12pt;
    color: #000;
  }
}
