/* ==========================================================================
   SYNMEDCARE - PREMIUM MASTER STYLESHEET (V2)
   Aesthetic: Modern, Expansive, High-End Healthcare
   ========================================================================== */

:root {
  /* Colors */
  --bg-dark-navy: #073902;
  --bg-card-navy: #072410;
  --primary-blue: #24a148;
  --primary-blue-hover: #166702;
  --accent-green: #E2F0C6;
  --text-white: #FFFFFF;
  --text-gray: #9BA5B5;
  --text-dark: #011e0b;
  --bg-light: #F4F7FA;
  
  /* Modern Fluid Typography & Spacing Variables (Upgraded for breathing room) */
  --space-sm: clamp(0.75rem, 1.5vw, 1.5rem);
  --space-md: clamp(1.5rem, 3vw, 3rem);
  --space-lg: clamp(3rem, 6vw, 6rem);
  --space-xl: clamp(5rem, 10vw, 10rem); /* Massive padding for section breaks */
  
  /* Transitions & Shadows */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 20px -3px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --glass-effect: blur(16px);
}

/* --- 1. GLOBAL RESET & ACCESSIBILITY --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 

  scroll-padding-top: 120px; 
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--text-white);
  color: var(--text-dark);
  line-height: 1.7; /* Increased for readability */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

*:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 4px; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 6rem, 1920px);
  margin-inline: auto;
}

/* Universal Layout Utilities */
.section-padding { padding-block:  calc(var(--space-xl) * 0.3); }
.text-white { color: var(--text-white) !important; }
.bg-light-gray { background-color: var(--bg-light); }
.bg-dark-navy { background-color: var(--bg-dark-navy); }
.text-center { text-align: center; }

/* Section Headers */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-block-end: var(--space-lg);
  line-height: 1.2;
}

/* --- 2. BUTTONS & BADGES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.125rem 2.25rem; /* Beefier buttons */
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-primary { background-color: var(--primary-blue); color: var(--text-white); }
.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(26, 107, 254, 0.2);
}

.btn-outline { border-color: rgba(255, 255, 255, 0.3); color: var(--text-white); }
.btn-outline:hover { background: var(--text-white); color: var(--text-dark); }
.btn-outline-dark { border-color: var(--text-dark); color: var(--text-dark); }
.btn-outline-dark:hover { background: var(--text-dark); color: var(--text-white); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: var(--text-white);
  border-radius: 50px;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-block-end: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* --- 3. TOP BAR & NAVBAR (ORIGINAL DESIGN) --- */
.top-bar-wrapper {
  display: flex;
  min-height: 50px;
  background-color: #0b1a2e;
}

.top-bar-left {
  background-color: var(--primary-blue);
  flex: 1 1 55%;
  display: flex;
  align-items: center;
  padding-inline-start: max(1rem, calc((100vw - 1320px) / 2));
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0% 100%);
  color: var(--text-white);
  font-size: 0.8125rem;
  gap: 1.875rem;
  z-index: 2;
}

.top-bar-right {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline-end: max(1rem, calc((100vw - 1320px) / 2));
  color: var(--text-white);
  font-size: 0.8125rem;
}

.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: var(--glass-effect);
  border-radius: 0.75rem;
  margin-block-start: 1.25rem;
  padding: 1rem 1.875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 1rem;
  z-index: 1000; /* Kept at 1000 to ensure it stays above the pulled-up hero card */
}

.nav-brand { 
  font-size: clamp(1.25rem, 2vw, 1.625rem); 
  font-weight: 800; 
  display: flex; 
  align-items: center; 
  gap: 0.625rem; 
}
.nav-brand i { color: var(--primary-blue); }

.nav-links { display: flex; gap: 1.5rem; }
.nav-links li { font-size: 0.8125rem; font-weight: 700; color: #555; cursor: pointer; text-transform: uppercase; }
.nav-links li:hover { color: var(--primary-blue); }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.icon-btn { width: 45px; aspect-ratio: 1; background: #F8F9FA; border: none; border-radius: 0.625rem; cursor: pointer; transition: var(--transition); }
.icon-btn:hover { background: #e2e8f0; }

.btn-nav { background: var(--accent-green); padding: 0.75rem 1.25rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.75rem; color: var(--text-dark); }
.btn-nav:hover { background: #d4e8b0; }

/* --- 4. HERO SECTION (UPDATED FOR VIDEO BACKGROUND) --- */
.hero {
  position: relative; /* Essential for absolute video positioning */
  padding-block: var(--space-xl) clamp(8rem, 15vw, 12rem);
  background-color: var(--bg-dark-navy);
  overflow: hidden;
}

/* 1. The Video Background */
.hero-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0; /* Sits at the very bottom */
  opacity: 0.6; /* Slight transparency to let the dark navy theme bleed through */
}

/* 2. The Dark Overlay (Ensures your white text is readable) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(1, 18, 8, 0.8) 0%, 
    rgba(1, 18, 8, 0.4) 50%, 
    rgba(1, 18, 8, 0.9) 100%
  );
  z-index: 1; /* Sits above video, below content */
}

/* 3. Ensure Hero Content stays on top */
.hero-grid, 
.social-sidebar, 
.hero-bg-line {
  position: relative;
  z-index: 10; /* Higher than video and overlay */
}

.hero-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); 
  gap: var(--space-xl); 
  align-items: center; 
}

.hero-badge { color: var(--accent-green); font-weight: 700; letter-spacing: 1px; margin-block-end: 1.5rem; display: flex; align-items: center; gap: 0.5rem;}
.hero-title { font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; color: var(--text-white); line-height: 1.1; margin-block-end: 1.5rem; }
.hero-desc { color: var(--text-gray); font-size: clamp(1.125rem, 1.5vw, 1.25rem); margin-block-end: 2.5rem; max-width: 55ch; line-height: 1.8;}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* Tamed Hero Graphics */
.hero-graphics { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 3rem; z-index: 10;}
.doctor-img { position: relative; z-index: 5; max-height: 600px; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)); }

.floating-card {
  position: absolute;
  background: rgba(27, 42, 65, 0.85);
  backdrop-filter: var(--glass-effect);
  padding: 1.5rem;
  border-radius: 1rem;
  width: min(300px, 90vw);
  z-index: 15; /* Higher than video overlay */
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.05);
}
.card-foreground { bottom: 10%; right: -5%; }
.card-background { top: 10%; left: -5%; opacity: 0.7; scale: 0.9; z-index: 11;}
.floating-card p { font-size: 0.875rem; color: #E2E8F0; font-style: italic; line-height: 1.6;}
.author { color: var(--accent-green); font-weight: 700; font-size: 0.75rem; margin-block-start: 1rem; display: flex; align-items: center; gap: 0.625rem; text-transform: uppercase;}

/* --- 5. ABOUT & SCHEDULE (FIXED LAYOUT) --- */
.about-section {
  position: relative;
  z-index: 20;
  padding-block-end: calc(var(--space-xl) * 0.2);; 
}

.about-grid { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: var(--space-xl); 
  align-items: start; 
}

@media (min-width: 992px) {
  .about-grid { grid-template-columns: 5fr 7fr; }
  .schedule-card { margin-top: -150px; } /* The pull-up overlap effect */
}

.schedule-card { border-radius: 1.25rem; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-dark-navy); position: relative;}
.schedule-top { padding: clamp(2.5rem, 4vw, 3.5rem); color: var(--text-white); }
.schedule-title { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-block-end: 2.5rem; font-weight: 800;}
.schedule-time { margin-block-end: 1.5rem; }
.schedule-time h4 { color: var(--primary-blue); font-size: 1.125rem; margin-block-end: 0.25rem; text-transform: uppercase; letter-spacing: 0.5px;}
.schedule-divider { height: 1px; background: rgba(255, 255, 255, 0.15); margin-block: 2rem; }
.schedule-bottom { background: var(--primary-blue); padding: 2.5rem; text-align: center; color: var(--text-white); }
.schedule-bottom h4 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem;}
.schedule-bottom a { font-size: clamp(1.5rem, 2.5vw, 1.75rem); font-weight: 800; display: block; }

.about-content { padding-top: var(--space-md); }
.about-heading { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-block: 1.5rem; color: var(--text-dark); }
.about-text { font-size: 1.125rem; color: #555; margin-block-end: 1.5rem; max-width: 65ch; }
.about-motto { display: flex; gap: 1.25rem; background: var(--bg-light); padding: 1.5rem 2rem; border-radius: 1rem; border-left: 4px solid var(--primary-blue); margin-block: 2.5rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --- 6. SERVICES GRID --- */
.services-section { padding-block: calc(var(--space-xl) * 0.2); }
.services-card-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); 
  gap: var(--space-md); 
}

.service-card-clean {
  background: var(--text-white);
  padding: 3.5rem 2.5rem;
  border-radius: 1.25rem;
  transition: var(--transition);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column; /* Force equal heights */
  height: 100%;
}
.service-card-clean:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon-box { width: 70px; aspect-ratio: 1; background: #F0F5FF; color: var(--primary-blue); border-radius: 1rem; display: grid; place-items: center; font-size: 1.75rem; margin-block-end: 2rem; }
.card-title { font-size: 1.5rem; font-weight: 800; margin-block-end: 1rem;}
.card-desc { color: #555; margin-block-end: 2rem;}
.read-more-link { color: var(--text-dark); font-weight: 800; font-size: 0.875rem; margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; letter-spacing: 0.5px;} /* Margin-top auto pushes to bottom */
.read-more-link:hover { color: var(--primary-blue); gap: 0.75rem;}

/* --- 7. CTA & LOGOS --- */
.cta-partners-section { padding-block:  calc(var(--space-xl) * 0.3); }
.cta-flex-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 3rem; padding-block-end: 4rem; }
.cta-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; margin-block-start: 1rem;}
.section-divider { height: 1px; background: rgba(255,255,255,0.1); margin-block-end: 4rem; }
.partners-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 3rem; place-items: center; opacity: 0.6; }
.partner-item img { max-height: 50px; filter: grayscale(1) brightness(2); transition: var(--transition);}
.partner-item:hover { filter: grayscale(0) brightness(1); opacity: 1;}

/* --- 8. QUALIFICATIONS --- */
.qualifications-section { padding-block:  calc(var(--space-xl) * 0.2); }
.qualifications-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr)); gap: 2.5rem; margin-block-start: 3rem; }
.qual-card { background: var(--bg-light); display: flex; flex-wrap: wrap; border-radius: 1rem; overflow: hidden; align-items: stretch; border: 1px solid #e2e8f0;}
.qual-left { background: #EEF2F6; padding: 2.5rem; flex: 1 1 200px; display: flex; flex-direction: column; justify-content: center;}
.qual-left h4 { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.25rem;}
.qual-right { padding: 2.5rem; flex: 2 1 250px; font-size: 1rem; color: #555; display: flex; align-items: center;}

.awards-bar { background: var(--text-white); box-shadow: var(--shadow-md); border-radius: 1rem; display: flex; flex-wrap: wrap; margin-block-start: 4rem; overflow: hidden; border: 1px solid #e2e8f0;}
.awards-logos { flex: 1 1 300px; display: flex; flex-wrap: wrap; justify-content: space-evenly; align-items: center; padding: 2rem; gap: 2rem;}
.award-seal img { max-height: 70px; }
.view-all-awards { background: var(--primary-blue); color: var(--text-white); padding: 2rem 3rem; font-weight: 800; text-align: center; display: grid; place-items: center; font-size: 1.125rem;}
.view-all-awards:hover { background: var(--bg-dark-navy);}

/* --- 9. TESTIMONIAL SLIDER --- */
.testimonials-section { padding-block:  calc(var(--space-xl) * 0.2); overflow: hidden;}
.testimonials-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-block-end: 4rem; }
.slider-controls { display: flex; gap: 1rem; }
.control-btn { width: 60px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #cbd5e1; background: var(--text-white); cursor: pointer; transition: var(--transition); display: grid; place-items: center; font-size: 1.25rem;}
.control-btn:hover { background: var(--primary-blue); color: var(--text-white); border-color: var(--primary-blue); }

.testimonials-slider { display: flex; gap: 2.5rem; overflow-x: auto; padding-block-start: 3rem; padding-block-end: 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonial-card { background: var(--text-white); padding: 3.5rem 3rem; border-radius: 1.25rem; min-width: min(100%, 450px); scroll-snap-align: start; position: relative; box-shadow: var(--shadow-md); border: 1px solid #e2e8f0;}
.client-info-badge { position: absolute; top: -2rem; left: 3rem; background: var(--text-white); padding: 0.75rem 1.75rem; border-radius: 50px; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-sm); border: 1px solid #f1f5f9;}
.testimonial-card.active { border-color: var(--primary-blue); box-shadow: var(--shadow-lg);}
.testimonial-card.active .client-info-badge { background: var(--primary-blue); color: var(--text-white); border-color: var(--primary-blue);}
.client-avatar img { width: 50px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.testimonial-body { font-size: 1.125rem; color: #444; font-style: italic; line-height: 1.8;}

/* --- 10. TELEHEALTH --- */
.telehealth-section { padding-block:  calc(var(--space-xl) * 0.2); overflow: hidden;}
.telehealth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: var(--space-xl); align-items: center; }
.telehealth-heading { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; margin-block: 1.5rem;}
.telehealth-desc { color: var(--text-gray); font-size: 1.125rem; margin-block-end: 2rem;}
.telehealth-list { margin-block: 2.5rem; }
.telehealth-list li { display: flex; align-items: center; gap: 1.25rem; margin-block-end: 1.25rem; color: var(--text-white); font-size: 1.125rem;}
.list-icon { width: 35px; aspect-ratio: 1; background: rgba(26, 107, 254, 0.2); color: var(--primary-blue); border-radius: 50%; display: grid; place-items: center; font-size: 0.875rem; }

.telehealth-graphics { position: relative; min-height: 600px; display: flex; justify-content: center;}
.phone-frame-wrapper { position: absolute; border-radius: 2.5rem; overflow: hidden; border: 10px solid #ebeef3; box-shadow: var(--shadow-lg); background: #000;}
.primary-phone { width: min(550px, 70%); height: 550px; z-index: 2; left: -25%; top: 0;}
.secondary-phone { width: min(400px, 60%); height: 480px; z-index: 1; right: 0%; top: 60px; opacity: 0.8; }
.phone-content { width: 113%; height: 100%; object-fit: cover; opacity: 0.9;}

/* --- 11. BLOG --- */
.blog-section { padding-block:  calc(var(--space-xl) * 0.2); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: var(--space-md); margin-block-start: 3rem;}
.blog-card { background: var(--text-white); border-radius: 1.25rem; overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); box-shadow: var(--shadow-md); border: 1px solid #e2e8f0; height: 100%;}
.blog-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.blog-image { height: 260px; overflow: hidden;}
.blog-image img { height: 100%; width: 100%; object-fit: cover; transition: var(--transition);}
.blog-card:hover .blog-image img { transform: scale(1.05);}
.blog-content { padding: 2.5rem; flex: 1; display: flex; flex-direction: column;}
.blog-title { font-size: 1.25rem; font-weight: 800; margin-block-end: 1.5rem; line-height: 1.4;}
.blog-meta { font-size: 0.875rem; color: #64748b; display: flex; gap: 1.5rem; margin-block-end: 2rem;}
.blog-btn { padding: 1.5rem; text-align: center; font-weight: 800; color: var(--text-white); margin-top: auto; letter-spacing: 1px;}
.btn-dark { background: var(--bg-card-navy); }
.btn-dark:hover { background: var(--bg-dark-navy);}

/* --- 12. APPOINTMENT FORM --- */
.appointment-section { padding-block:  calc(var(--space-xl) * 0.2); }
.appointment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: var(--space-xl); align-items: stretch;}
.map-wrapper { margin-block-start: 2rem; border-radius: 1.25rem; overflow: hidden; position: relative; height: 100%; min-height: 400px; box-shadow: var(--shadow-md);}
.map-overlay { position: absolute; top: 1.5rem; left: 1.5rem; z-index: 5; }
.btn-map { background: var(--text-white); padding: 0.875rem 1.5rem; border-radius: 0.5rem; font-weight: 700; box-shadow: var(--shadow-sm); color: var(--text-dark);}

.appointment-form { background: var(--text-white); padding: clamp(2rem, 5vw, 4rem); border-radius: 1.25rem; box-shadow: var(--shadow-lg); border: 1px solid #e2e8f0; height: 100%; display: flex; flex-direction: column; justify-content: center;}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; margin-block-end: 1.5rem; }
.appointment-form input, .appointment-form select {
  width: 100%; padding: 1.25rem 1.5rem; border: 1px solid #cbd5e1; border-radius: 0.75rem; background: #f8fafc; outline: none; transition: var(--transition); font-family: inherit; font-size: 1rem;
}
.appointment-form input:focus, .appointment-form select:focus { border-color: var(--primary-blue); background: var(--text-white); box-shadow: 0 0 0 4px rgba(26, 107, 254, 0.1);}
.btn-block { width: 100%; margin-block-start: 1.5rem; padding: 1.5rem; font-size: 1.125rem;}

/* --- 13. FOOTER (ORIGINAL DESIGN) --- */
.main-footer { padding-block:  calc(var(--space-xl) * 0.3); color: rgba(255,255,255,0.7); }
.footer-top-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-lg); padding-block-end:  calc(var(--space-xl) * 0.1); }

/* Make the first column take up more space on large screens */
@media (min-width: 1024px) {
    .footer-top-grid > :first-child { grid-column: span 2; }
}

.footer-logo { font-size: 1.875rem; color: var(--text-white); font-weight: 800; margin-block-end: 1.5rem; }
.newsletter-form { display: flex; background: var(--text-white); border-radius: 50px; padding: 0.3125rem; margin-block: 2rem; max-width: 400px; }
.newsletter-form input { flex: 1; border: none; padding-inline: 1.25rem; outline: none; background: transparent;}
.newsletter-form button { background: var(--primary-blue); color: var(--text-white); border: none; padding: 0.875rem 1.5rem; border-radius: 50px; font-weight: 700; cursor: pointer; transition: var(--transition);}
.newsletter-form button:hover { background: var(--primary-blue-hover); }

.footer-heading { color: var(--text-white); font-size: 1.125rem; margin-block-end: 1.875rem; }
.footer-links li { margin-block-end: 1rem; }
.footer-links a:hover { color: var(--primary-blue); padding-inline-start: 0.3125rem; }

.contact-label { color: var(--text-white); margin-block-start: 1.25rem; font-size: 0.875rem; }
.footer-bottom-bar { border-top: 1px solid rgba(255,255,255,0.1); padding-block-start: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.payment-icons { display: flex; gap: 1rem; flex-wrap: wrap; }
.payment-icons img { height: 25px; }

/* --- 14. ANIMATIONS --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.floating-plus { 
  animation: float 5s ease-in-out infinite, pulse-glow 2s infinite alternate; 
  font-size: 4rem; /* Made it bigger and more pronounced */
  color: var(--primary-blue); 
  position: absolute; 
  top: 10%; 
  left: 10%; 
  z-index: 2;
}

/* --- 15. RESPONSIVE FALLBACKS --- */
@media (max-width: 1024px) {
  .top-bar-wrapper { display: none; }
  .nav-links { display: none; } 
  .hero-graphics { margin-top: 3rem; }
}

@media (max-width: 768px) {
  .floating-card { position: static; margin-block-end: 1rem; width: 100%; }
  .telehealth-graphics { min-height: 400px; padding-top: 2rem;}
  .primary-phone { width: 80%; position: static; height: auto;}
  .secondary-phone { display: none; }
  .view-all-awards { width: 100%; padding: 1.5rem;}
}
/* ==========================================================================
   16. MOVEMENT, LIFE & PRELOADER (THE $10K POLISH)
   ========================================================================== */

/* --- The Preloader --- */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark-navy);
  z-index: 99999;
  display: grid;
  place-items: center;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.medical-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
}

.ring-outer, .ring-inner {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
}

.ring-outer {
  width: 100%;
  height: 100%;
  border-top-color: var(--primary-blue);
  border-bottom-color: var(--accent-green);
  animation: spin 2s linear infinite;
}

.ring-inner {
  width: 70%;
  height: 70%;
  border-left-color: var(--text-white);
  border-right-color: var(--primary-blue);
  animation: spin-reverse 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.pulsing-icon {
  font-size: 1.75rem;
  color: var(--text-white);
  animation: pulse-glow 1.5s ease-in-out infinite alternate;
}

.loader-text {
  color: var(--text-white);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: pulse-opacity 1.5s ease-in-out infinite alternate;
}

/* --- Scroll Reveal Classes (Add to HTML elements) --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); /* Buttery smooth easing */
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grids (e.g., Services, Blog cards) */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Ambient Floating Shapes --- */
@keyframes ambient-float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}


/* ==========================================================================
   17. PREMIUM MOBILE EXPERIENCE & NAVIGATION
   ========================================================================== */

/* The Glassmorphism Backdrop */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 39, 0.6);
  backdrop-filter: blur(8px); /* Expensive glass look */
  z-index: 10000;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* The Sliding Drawer */
.mobile-menu-content {
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: var(--text-white);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%); /* Start hidden off-screen */
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.mobile-menu-overlay.open .mobile-menu-content {
  transform: translateX(0); /* Slide in */
}

/* Close Button Animation */
.close-menu-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  color: var(--text-dark);
  cursor: pointer;
  margin-bottom: 3rem;
  transition: transform 0.4s ease, color 0.4s ease;
}

.close-menu-btn:hover {
  transform: rotate(90deg) scale(1.1);
  color: var(--primary-blue);
}

/* Staggered Link Animations */
.mobile-brand { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: 2.5rem; display: flex; align-items: center; gap: 0.5rem; }
.mobile-brand i { color: var(--primary-blue); }

.mobile-nav-links { display: flex; flex-direction: column; gap: 1.75rem; margin-bottom: auto; padding-bottom: 3rem;}
.mobile-nav-links li, .mobile-btn-wrapper { opacity: 0; transform: translateY(20px); }

.mobile-menu-overlay.open .mobile-nav-links li,
.mobile-menu-overlay.open .mobile-btn-wrapper {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay); /* Uses the inline style to stagger */
}

.mobile-nav-links a { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 1px; display: block;}
.mobile-nav-links a:hover { color: var(--primary-blue); padding-left: 10px; }

@keyframes slideUpFade {
  to { opacity: 1; transform: translateY(0); }
}

/* Final Mobile Layout Polish */
@media (max-width: 480px) {
  .hero-title { font-size: 2.5rem; } /* Scale down massive text */
  .section-title { font-size: 2.25rem; }
  .btn { width: 100%; } /* Full width buttons look better on small phones */
  
  /* Clean up the hero graphics on tiny screens */
  .floating-card { width: 100%; position: static; margin-top: 1.5rem; transform: none !important;}
  .card-background { display: none; } /* Hide the duplicate faded card for a cleaner mobile layout */
  .hero-graphics { padding-top: 2rem; flex-direction: column; }
}
/* ==========================================================================
   18. MOBILE LAYOUT & OVERFLOW FIXES
   ========================================================================== */

/* 1. Strictly prevent horizontal scrolling/shifting */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* 2. Position the Social Sidebar for Desktop */
.social-sidebar {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 50;
}

.social-sidebar a {
  color: var(--text-white);
  font-size: 1.25rem;
  opacity: 0.6;
  transition: var(--transition);
}

.social-sidebar a:hover {
  opacity: 1;
  color: var(--primary-blue);
  transform: scale(1.1);
}

/* 3. Strict Mobile Overrides */
@media (max-width: 768px) {
  /* Enforce safe breathing room on the sides */
  .container {
    width: 100%;
    padding-inline: 1.5rem !important; 
  }

  /* Hide the sidebar on mobile (saves screen space) */
  .social-sidebar {
    display: none;
  }

  /* Clean up the Navbar */
  .navbar {
    padding: 0.75rem 1rem; /* Tighter padding for mobile */
  }
  
  .nav-brand {
    font-size: 1.25rem; /* Slightly smaller logo text */
  }

  /* Hide the big header button (it's in the mobile menu now) */
  .btn-nav {
    display: none; 
  }

  /* Tighten the icon spacing */
  .nav-actions {
    gap: 0.5rem;
  }
  
  .icon-btn {
    width: 40px; /* Slightly smaller touch targets */
  }

  /* Fix button widths in the Hero section */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}
/* ==========================================================================
   19. PREMIUM MEDICAL SKETCH WATERMARKS (GLOBAL)
   ========================================================================== */

/* Ensure all sections can hold watermarks without breaking layout */
section {
  position: relative;
  /* overflow: hidden; removed so it doesn't clip your sticky navbar, 
     the global body overflow-x handles the horizontal scrolling */
}

/* Push actual content above the watermarks */
section .container {
  position: relative;
  z-index: 10;
}

.section-watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none; /* Stops them from blocking clicks */
  z-index: 0;
}

/* Base Icon Style - For Light Backgrounds */
.watermark-icon {
  position: absolute;
  color: rgba(10, 25, 48, 0.025); /* Ultra-faint dark blue/grey */
  line-height: 1;
}

/* Modifier - For Dark Backgrounds */
.watermark-light .watermark-icon {
  color: rgba(255, 255, 255, 0.02); /* Ultra-faint white */
}

/* Placement Utilities (To create organic, non-repetitive layouts) */
.wm-top-left { top: -10%; left: -5%; font-size: clamp(250px, 35vw, 600px); transform: rotate(-15deg); }
.wm-bottom-right { bottom: -10%; right: -5%; font-size: clamp(200px, 30vw, 550px); transform: rotate(20deg); }
.wm-center-right { top: 20%; right: -10%; font-size: clamp(250px, 35vw, 600px); transform: rotate(-25deg); }
.wm-bottom-left { bottom: -5%; left: -10%; font-size: clamp(200px, 30vw, 500px); transform: rotate(15deg); }
.wm-top-right { top: -5%; right: -5%; font-size: clamp(200px, 25vw, 450px); transform: rotate(10deg); }
.wm-center-left { top: 30%; left: -10%; font-size: clamp(200px, 30vw, 450px); transform: rotate(-20deg); }

/* ==========================================================================
   20. INNER PAGES: ARCHITECTURE & ABOUT US LAYOUTS
   ========================================================================== */

/* --- Inner Page Hero --- */
.inner-hero {
  background-color: var(--bg-dark-navy);
  padding-block: calc(var(--space-xl) * 1.5) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breadcrumb {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-block-end: 1rem;
}

.breadcrumb span { color: var(--text-gray); }
.inner-hero-title { font-size: clamp(3rem, 5vw, 4rem); font-weight: 800; color: var(--text-white); }

/* --- Asymmetric Collage (Premium About Layout) --- */
.about-collage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 992px) {
  .about-collage-grid { grid-template-columns: 1fr 1fr; }
}

.image-collage {
  position: relative;
 
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-bottom: 3rem;
  padding-right: 3rem;
}

.collage-img-1 { border-radius: 1.5rem; overflow: hidden; transform: translateY(3rem); box-shadow: var(--shadow-lg); }
.collage-img-2 { border-radius: 1.5rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.collage-img-1 img, .collage-img-2 img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }

.experience-glass-card {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.5);
  text-align: center;
  z-index: 5;
  min-width: 200px;
}
.exp-number { font-size: 3.5rem; font-weight: 800; color: var(--primary-blue); line-height: 1; margin-bottom: 0.5rem;}
.exp-text { font-size: 0.875rem; font-weight: 700; color: var(--text-dark); text-transform: uppercase; letter-spacing: 1px;}

/* --- Sticky Core Values Layout --- */
.sticky-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 992px) {
  .sticky-grid { grid-template-columns: 4fr 8fr; align-items: start; }
  .sticky-sidebar { position: sticky; top: 120px; }
}

.value-card {
  background: var(--text-white);
  padding: 3rem;
  border-radius: 1.25rem;
  border-left: 4px solid var(--primary-blue);
  box-shadow: var(--shadow-md);
  margin-block-end: 2rem;
  transition: var(--transition);
}
.value-card:hover { transform: translateX(10px); box-shadow: var(--shadow-lg); }
.value-card h3 { font-size: 1.5rem; font-weight: 800; margin-block-end: 1rem; display: flex; align-items: center; gap: 1rem;}
.value-card h3 i { color: var(--primary-blue); font-size: 1.75rem;}
/* ==========================================================================
   21. SERVICE DETAIL PAGES (DNA, Blood Work, etc.)
   ========================================================================== */

.service-detail-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 1024px) {
  .service-detail-wrapper { grid-template-columns: 8fr 4fr; }
}

/* --- Premium Service Tier Cards --- */
.service-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-block: 3rem;
}

.tier-card {
  background: var(--text-white);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tier-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue);
}

.tier-popular {
  position: absolute;
  top: 1.5rem; right: -2.5rem;
  background: var(--primary-blue);
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.5rem 3rem;
  transform: rotate(45deg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-icon { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 1.5rem; }
.tier-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; color: var(--text-dark); }
.tier-desc { color: #64748b; margin-bottom: 1.5rem; font-size: 0.9375rem; line-height: 1.6; }

.tier-features { list-style: none; margin-bottom: 2.5rem; flex-grow: 1; }
.tier-features li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; font-size: 0.9375rem; color: #444; font-weight: 500;}
.tier-features i { color: var(--text-white); background: var(--accent-green); border-radius: 50%; padding: 0.25rem; font-size: 0.6rem; margin-top: 0.25rem; color: var(--text-dark); }

/* --- Process Timeline --- */
.process-timeline {
  margin-block: 3rem;
  position: relative;
  padding-left: 1rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 2.25rem;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(26, 107, 254, 0.2);
}

.process-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.step-number {
  width: 2.5rem; height: 2.5rem;
  background: var(--primary-blue);
  color: var(--text-white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.125rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 0 8px var(--text-white);
}

.step-content h4 { font-size: 1.375rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text-dark); }
.step-content p { color: #555; line-height: 1.7; }

/* --- Sticky Service Sidebar --- */
.service-sidebar {
  position: sticky;
  top: 120px;
}

.sidebar-widget {
  background: #f8fafc;
  border-radius: 1.25rem;
  padding: 2.5rem;
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.widget-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid #e2e8f0; }

.service-list li { margin-bottom: 1rem; }
.service-list a { display: flex; justify-content: space-between; align-items: center; color: #555; font-weight: 700; padding: 1.125rem; background: var(--text-white); border-radius: 0.75rem; transition: var(--transition); border: 1px solid #e2e8f0; font-size: 0.875rem; text-transform: uppercase; }
.service-list a:hover, .service-list a.active { background: var(--primary-blue); color: var(--text-white); border-color: var(--primary-blue); transform: translateX(5px); }

.contact-widget-box { background: var(--bg-dark-navy); color: var(--text-white); padding: 3rem 2rem; border-radius: 1.25rem; text-align: center; position: relative; overflow: hidden; }
.contact-widget-box i { font-size: 3rem; color: var(--accent-green); margin-bottom: 1.5rem; position: relative; z-index: 2;}
.contact-widget-box h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; position: relative; z-index: 2;}
.contact-widget-box p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; font-size: 0.9375rem; position: relative; z-index: 2;}
.contact-widget-box .btn { width: 100%; position: relative; z-index: 2;}
/* ==========================================================================
   COMMUNITY PAGE SPECIFIC STYLES
   ========================================================================== */

/* Language Dropdown Custom UI */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  background: #F8F9FA;
  border: 1px solid #EAEAEA;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: #E2E8F0;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 0;
  margin-top: 10px;
  z-index: 1000;
  list-style: none;
  border: 1px solid #eee;
}

.lang-menu li {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: background 0.2s;
}

.lang-menu li:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

/* Hide Default Google Translate Top Bar */
.skiptranslate iframe {
  display: none !important;
}
body {
  top: 0px !important; 
}

/* Expandable Service Cards UI */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #EAEAEA;
  padding-top: 15px;
}

.read-more-btn {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.apply-btn {
  background: var(--bg-dark-navy);
  color: white;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.apply-btn:hover {
  background: var(--primary-blue);
  color: white;
}

.card-details {
  margin-top: 15px;
  padding: 15px;
  background: #F8F9FA;
  border-radius: 8px;
  border-left: 3px solid var(--primary-blue);
  font-size: 14px;
  color: #555;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
  .health-week-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 768px) {
  .health-week-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ==========================================
   DROPDOWN MENU STYLES
   ========================================== */

/* 1. Establish positioning context for the parent */
.nav-links .dropdown {
  position: relative;
  padding-bottom: 10px; /* Creates an invisible hover bridge so the menu doesn't close too easily */
}

/* 2. The hidden dropdown box */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  min-width: 250px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 10px 0;
  
  /* Hidden by default with smooth animation setup */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* 3. Show the menu when hovering over the parent <li> */
.nav-links .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 4. Style the individual dropdown links */
.dropdown-menu li {
  display: block;
}

.dropdown-menu a {
  display: block !important;
  padding: 10px 20px;
  color: #333 !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: capitalize !important; /* Overrides the uppercase nav style */
  transition: all 0.2s ease !important;
}

/* 5. Hover effect for the dropdown items (adds a subtle indent) */
.dropdown-menu a:hover {
  background-color: #f8fafc;
  color: var(--primary-blue) !important;
  padding-left: 25px; 
}
.nav-logo {
  max-height: 60px; /* Adjust this number up or down until it fits perfectly */
  width: auto;
  display: block;
}
/* ==========================================================================
   CMS BLOG FEED LAYOUT (FIXED VIDEO & BUTTON ALIGNMENT)
   ========================================================================== */

#cms-blog-container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.cms-post-card {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Exact 50/50 split */
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #EAEAEA;
  transition: transform 0.3s ease;
}

.cms-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* --- 1. VIDEO SIDE (Cinematic Framing) --- */
.cms-video-side {
  background: #0A1120; /* Deep dark background */
  display: flex;
  align-items: center; /* Centers the video vertically so it never stretches */
  justify-content: center;
  position: relative;
  width: 100%;
}

.video-responsive-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9; /* Locks the video to a perfect HD rectangle */
  position: relative;
}

.video-responsive-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video fills its 16:9 box perfectly */
}

/* --- 2. CONTENT SIDE --- */
.cms-content-side {
  padding: 50px;
  display: flex;
  flex-direction: column; /* Allows us to push the button to the bottom */
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.post-meta .category {
  color: var(--primary-blue);
  background: rgba(26, 107, 254, 0.1);
  padding: 6px 14px;
  border-radius: 50px;
}

.post-meta .date {
  color: #888;
}

.cms-content-side .post-title {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* The flex-grow pushes the button wrapper to the bottom */
.cms-content-side .post-body {
  flex-grow: 1; 
}

.cms-content-side .post-body h3 {
  font-size: 18px;
  color: var(--text-dark);
  margin: 25px 0 10px;
}

.cms-content-side .post-body p {
  font-size: 15px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.7;
}

.cms-content-side .post-body ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #555;
}

.cms-content-side .post-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- 3. BUTTON ALIGNMENT --- */
.post-actions {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #EAEAEA;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.post-actions .btn {
  display: inline-flex;
  padding: 14px 28px;
}

/* --- 4. RESPONSIVE MOBILE STACKING --- */
@media (max-width: 991px) {
  .cms-post-card {
    grid-template-columns: 1fr; /* Stacks to a single column */
  }
  
  .cms-content-side {
    padding: 35px 25px;
  }
  
  /* Forces the video to ALWAYS be on top on mobile, even for reversed layouts */
  .cms-post-card.layout-standard .cms-video-side,
  .cms-post-card.layout-reversed .cms-video-side {
    order: -1; 
  }
  
  .cms-content-side {
    order: 2;
  }
}
/* ==========================================================================
   COMMUNITY HERO SECTION - EXACT IMAGE MATCH
   ========================================================================== */

.hero-community {
  position: relative;
  padding-block: clamp(6rem, 12vw, 10rem) clamp(4rem, 8vw, 6rem);
  background-color: var(--bg-dark-navy);
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Static Background Image (No Slider) */
.hero-bg-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.85;
}

/* Overlay for Text Readability */
.hero-overlay {
  background: linear-gradient(
    to right,
    rgba(1, 18, 8, 0.92) 0%,
    rgba(1, 18, 8, 0.75) 50%,
    rgba(1, 18, 8, 0.4) 100%
  );
}

/* Hero Grid - Side by Side Layout */
.hero-grid-community {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr; /* Changed from 1.2fr 1fr */
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Left Content Styling */
.hero-content-community {
  max-width: 650px;
}

.hero-title-community {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 1.75rem;
  letter-spacing: -0.5px;
}

.hero-desc-community {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #4CAF50;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  letter-spacing: 0.3px;
}

.hero-location-badge i {
  font-size: 1.25rem;
}

/* Right Frosted Glass Panel */
.hero-glass-panel {
  background: rgba(255, 255, 255, 0.08); /* Slightly more transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 1.75rem 2rem; /* Significantly reduced padding */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow effect */
.hero-glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4) 50%,
    transparent
  );
}

.glass-panel-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem); 
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}

.glass-panel-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 400;
}

/* Bottom Feature Badges (Checkmarks) */
.hero-feature-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0 0;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-white);
  font-weight: 700;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.badge-checkmark {
  width: 42px;
  height: 42px;
  background: #4CAF50;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.badge-checkmark i {
  color: white;
  font-size: 1.125rem;
  font-weight: 900;
}

/* Hover Effect for Glass Panel */
.hero-glass-panel:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid-community {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-glass-panel {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-community {
    min-height: auto;
    padding-block: 5rem 3rem;
  }
  
  .hero-feature-badges {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-badge {
    justify-content: flex-start;
  }
  
  .hero-bg-static {
    opacity: 0.6;
  }
  
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(1, 18, 8, 0.95) 0%,
      rgba(1, 18, 8, 0.88) 100%
    );
  }
}

@media (max-width: 480px) {
  .hero-title-community {
    font-size: 2rem;
  }
  
  .hero-glass-panel {
    padding: 2rem 1.5rem;
  }
  
  .badge-checkmark {
    width: 36px;
    height: 36px;
  }
  
  .badge-checkmark i {
    font-size: 1rem;
  }
}
/* Premium Mega Menu Styling */
  .navbar .dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: flex; /* Forces the columns to sit side-by-side */
  }

  .mega-menu {
    position: absolute;
    top: 100%;
    left: -100px; /* Adjusts the center alignment */
    width: max-content;
    min-width: 600px; /* Gives enough room for both columns */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0.75rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    padding: 2rem;
    gap: 3rem; /* Space between the two columns */
    z-index: 1000;
    
    /* Animation states */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mega-column {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .mega-heading {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark, #1e293b);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.75rem;
  }

  .mega-subheading {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-top: -0.25rem;
    margin-bottom: 1rem;
    font-style: italic;
  }

  .mega-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .mega-list li {
    margin-bottom: 0.25rem;
  }

  .mega-list li a {
    display: block;
    padding: 0.5rem 0;
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  /* Premium Hover Effect */
  .mega-list li a:hover {
    color: #3b8252; /* Maryland Green */
    padding-left: 0.5rem; /* Slight nudge to the right on hover */
  }
 /* ==========================================================================
   HEADER RESPONSIVENESS FIX (ALL SCREEN SIZES)
   ========================================================================== */

/* 1. Hide the hamburger menu on large desktop screens */
@media (min-width: 1151px) {
  #openMenu {
    display: none !important;
  }
}

/* 2. Squeeze the Desktop Menu slightly for medium laptops (1151px - 1350px) */
@media (min-width: 1151px) and (max-width: 1350px) {
   .nav-links { gap: 1rem; } /* Reduce gap between links */
   .nav-links li a { font-size: 0.75rem; } /* Slightly smaller text */
   .nav-actions { gap: 0.75rem; }
   .btn-nav { padding: 0.75rem 1rem; }
   .container { width: 100%; padding-inline: 2rem; }
}

/* 3. Small Laptops & Tablets (Max Width: 1150px) */
@media (max-width: 1150px) {
  /* Show the mobile hamburger menu button */
  #openMenu {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  
  /* Hide the desktop navigation links to prevent squashing */
  .nav-links {
    display: none !important;
  }
  
  /* Hide the top bar to save space */
  .top-bar-wrapper {
    display: none !important;
  }

  /* Adjust the navbar padding for medium screens */
  .navbar {
    padding: 0.75rem 1.5rem;
    margin-block-start: 1rem;
  }
}

/* 4. Mobile Phones (Max Width: 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
  }
  
  .nav-brand {
    font-size: 1.25rem;
  }

  .nav-logo {
    max-height: 45px; /* Scale logo down for mobile */
  }
  
  /* Hide the desktop CTA button to save space for the hamburger menu */
  .btn-nav {
    display: none !important;
  }
}

/* 5. Extra Small Screens (Max Width: 480px) */
@media (max-width: 480px) {
  .container {
    width: 100%;
    padding-inline: 1rem !important;
  }

  .navbar {
    padding: 0.5rem 1rem;
  }
  
  /* Compact language dropdown button for tiny screens */
  .lang-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}