/* ==========================================================================
   Hitaayu Ayurvedic Clinic - Main Stylesheet
   ==========================================================================
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1. Root Variables (Colors, Spacing, etc.)
   2. Base & Global Styles (Reset, Typography)
   3. Reusable Components (Container, Buttons, Section Headers)
   ========================================================================== */

/* ==========================================================================
   1. Root Variables
   ========================================================================== */
:root {
  /* Primary Brand Colors */
  --green: #0c972a;
  --sapphire: #2b50aa;
  --peach: #e87078;
  --white: #ffffff;
  --blue-light: #daf9fb;

  /* Tints & Shades */
  --green-dark: #087522;
  --green-tint: #e6f5e9;
  --peach-tint: #fdedee;
  --peach-dark: #d75c62;

  /* Neutral Colors */
  --black: #000000;
  --text-color: #333333;
  --text-color-light: #666666;
  --border-color: #cccccc;
  --background-light: #f5f5f5;

  /* Typography */
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Playfair Display", serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-h1: 64px;
  --font-size-h2: 42px;
  --font-size-h3: 28px;
  --font-size-h4: 20px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;

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

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  --border-radius-rounded: 50px;
  --border-radius-circle: 50%;
}

/* ==========================================================================
   2. Base & Global Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  color: var(--text-color);
  line-height: 1.7;
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-secondary);
  font-weight: 600;
  line-height: 1.3;
  color: var(--green);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

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

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

ul {
  list-style: none;
}

/* ==========================================================================
   3. Reusable Components
   ========================================================================== */

/* --- Main Content Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-rounded);
  font-weight: 500;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  border: none;
  -webkit-backface-visibility: hidden;
  /* Helps prevent vibration on hover */
  backface-visibility: hidden;
}

.btn-primary {
  background-color: var(--green);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(12, 151, 42, 0.3);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(12, 151, 42, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--font-size-lg);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xxl);
  position: relative;
}

.section-subtitle {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--peach);
  margin-bottom: var(--space-sm);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: var(--space-md);
  position: relative;
  line-height: 1.2;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-lg) 0;
}

.divider-line {
  width: 60px;
  height: 2px;
  background-color: var(--peach);
}

.divider-icon {
  margin: 0 var(--space-md);
  color: var(--peach);
  font-size: 20px;
}

.trademark-logo {
  margin: var(--space-md) auto;
  max-width: 150px;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header.scrolled .main-navigation {
  padding-top: 10px;
  padding-bottom: 10px;
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  transition: var(--transition-medium);
  flex-wrap: wrap;
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 80px;
  height: 80px;
  margin-right: var(--space-md);
}

.logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 40px;
  color: var(--green);
  margin-bottom: 0;
  line-height: 1;
}

/* --- Logo Tagline --- */
.logo-tagline {
  font-size: 12px;
  color: var(--text-color-light);
  font-style: italic;
  display: block;
  white-space: nowrap;
  margin-top: var(--space-xs);
}

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

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  font-weight: 600;
  color: var(--text-color);
  padding: 8px 16px;
  border-radius: var(--border-radius-rounded);
  transition: var(--transition-fast);
  white-space: nowrap;
  /* Prevents links like "Health Tips" from breaking */
}

.nav-link:hover {
  background-color: var(--green-tint);
  color: var(--green);
}

/* --- Mobile Navigation --- */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 36px;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1001;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
}

.menu-bar {
  width: 100%;
  height: 3px;
  background-color: var(--green);
  transition: var(--transition-medium);
  border-radius: 2px;
}

/* Hamburger to "X" animation */
.mobile-menu-btn.active .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
}

#menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   5. Hero Section (REVISED)
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: grid;
  place-items: center;
  padding-top: 80px;
  overflow: hidden;
  color: var(--white);
}

/* ADDED: This rule from the old stylesheet ensures perfect centering of all content. */
.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video video,
.hero-video img {
  /* Fallback image styles */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(12, 151, 42, 0.6) 0%,
      /* Semi-transparent Green */
      rgba(43, 80, 170, 0.7) 100%
      /* Semi-transparent Sapphire */
    );
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  color: var(--white);
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xl);
  font-weight: 400;
  /* A bit more readable than 300 */
  font-style: italic;
  /* Makes the tagline look elegant */
  max-width: 600px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  line-height: 1.6;
  /* Improves spacing for the two lines */
}

/* --- Hero Subtitle Styling --- */
.hero-subtitle strong {
  font-family: var(--font-secondary);
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  margin-bottom: 120px;
  /* ADDED: Pushes buttons up to make space for the tip */
}

/* Hero button outline variant */
.hero .btn-outline {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-outline:hover {
  background-color: var(--white);
  color: var(--green);
}



.tip-container {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-color);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-rounded);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  width: 90%;
  animation: float 6s ease-in-out infinite;
}

.tip-icon {
  font-size: 24px;
  color: var(--green);
  margin-right: var(--space-md);
}

.tip-content {
  flex: 1;
}

.tip-text {
  font-weight: 500;
}

/* --- Scroll Down Arrow (FIXED) --- */
.hero-scroll-down {
  /* MODIFIED: Reverted to the old styles for the pill shape and fixed position */
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  margin-inline: auto;
  z-index: 998;
  color: var(--green);
  background-color: rgba(255, 255, 255, 0.7);
  width: 150px;
  padding: 10px;
  border-radius: var(--border-radius-rounded);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  animation: bounce 2s infinite;
}

.hero-scroll-down.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
}

.hero-scroll-down:hover {
  animation-play-state: paused;
}

.scroll-arrow {
  /* MODIFIED: Reverted to the old style for the green arrow */
  width: 20px;
  height: 20px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
  margin-top: var(--space-xs);
}

/* ==========================================================================
   5.5. Daily Tip Section
   ========================================================================== */
.daily-tip-section {
    padding: var(--space-xxl) var(--space-md);
    background-color: var(--peach-tint);
    display: flex;           /* Use flexbox for layout */
    flex-direction: column;  /* Stack children vertically */
    align-items: center;     /* Center children horizontally */
    gap: var(--space-lg);      /* Creates space BETWEEN the title and the tip */
}
/* ADD these new rules for the headline */

.tip-section-title {
    color: var(--green);
    font-size: 24px;
    font-family: var(--font-secondary);
    font-weight: 600;
    /* margin-bottom: var(--space-xl); INCREASED: More space below the title */
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    position: relative; /* Required for the decorative line */
    padding-bottom: var(--space-sm); /* Adds space for the line */
}

/* NEW: This adds the decorative line under the title */
.tip-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; /* Adjust width of the line as you like */
    height: 2px;
    background-color: var(--peach);
}

.tip-section-title i {
    color: var(--peach);
}

/* The .tip-container styles are now for the standalone section */
.tip-container {
  background-color: var(--white); /* Solid white looks cleaner on a solid background */
  color: var(--text-color);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-rounded);
  display: inline-flex; /* Allows the container to size to its content */
  align-items: center;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  text-align: left; /* Keeps the text inside left-aligned */
  animation: float 6s ease-in-out infinite; /* Keeps the cool hover effect */
}


/* ==========================================================================
   6. About Section
   ========================================================================== */
.about {
  padding: var(--space-xxxl) 0;
  background-color: var(--blue-light);
}

/* --- Doctors --- */
.doctors-container {
  display: flex;
  justify-content: center;
  gap: var(--space-xxl);
  margin-bottom: var(--space-xxxl);
  flex-wrap: wrap;
}

.doctor-card {
  max-width: 500px;
  display: flex;
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-medium);
}

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

.doctor-img-container {
  width: 200px;
  position: relative;
  flex-shrink: 0;
}

.doctor-img {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.doctor-img-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 10px solid var(--peach-tint);
  z-index: 1;
  pointer-events: none;
}

.doctor-info {
  padding: var(--space-xl);
  flex: 1;
}

.doctor-name {
  color: var(--green);
  margin-bottom: var(--space-xs);
}

.doctor-degree {
  font-weight: 500;
  color: var(--peach);
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-base);
}

.doctor-bio {
  margin-bottom: var(--space-lg);
  color: var(--text-color-light);
  line-height: 1.8;
}

.doctor-social {
  display: flex;
  gap: var(--space-md);
}

.doctor-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-circle);
  background-color: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.doctor-social a:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

.brand-tagline {
  font-family: var(--font-primary);
  /* Uses the modern 'Montserrat' font */
  font-size: var(--font-size-lg);
  /* Makes it clearly readable (18px) */
  color: var(--sapphire);
  /* Uses a professional brand color */
  font-weight: 500;
  /* Medium weight for emphasis */
  margin-top: calc(-1 * var(--space-md));
  /* Pulls it closer to the title */
  margin-bottom: var(--space-lg);
  /* Adds space before the divider line */
}

/* --- Clinic Info 3-Card Grid (NEW) --- */
.clinic-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Default to single column for mobile */
  gap: var(--space-lg);
  margin-bottom: var(--space-xxxl);
  align-items: stretch;
}

.clinic-card {
  padding: var(--space-xl);
  background-color: var(--peach-tint);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition-medium);
  border: 1px solid var(--background-light);
  font-weight: 400;
}

.clinic-card p {
  word-wrap: break-word;
  /* Ensures long words can break and wrap to the next line */
  overflow-wrap: break-word;
  /* Modern property for the same behavior */
}

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

.clinic-card h3 {
  margin-bottom: var(--space-md);
  border-bottom: 2px solid var(--peach-tint);
  padding-bottom: var(--space-sm);
}

.clinic-card-philosophy {
  background-color: var(--peach-tint);
  text-align: center;
}

.clinic-card-philosophy h3 {
  color: var(--sapphire);
}

.clinic-card-philosophy p {
  color: var(--text-color-light);
}

.clinic-card-philosophy strong {
  color: var(--text-color);
}

/* --- New Approach Card Styling --- */
.clinic-card-approach {
  background-color: var(--peach-tint);
  /* A distinct background */
  text-align: center;
}

.clinic-card-approach h3 {
  color: var(--sapphire);
}

.clinic-card-approach p {
  color: var(--text-color-light);
}

/* Stats Card */
.clinic-card-stats {
  justify-content: space-around;
  text-align: center;
  gap: var(--space-lg);
}

.clinic-stat .stat-number {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.clinic-stat .stat-label {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--text-color-light);
  margin-top: var(--space-xs);
}

/* Tagline Card */
.clinic-card-tagline {
  text-align: center;
  font-family: var(--font-secondary);
  font-style: italic;
  font-weight: 500;
  font-size: var(--font-size-lg);
  color: var(--sapphire);
  background-color: var(--peach-tint);
}

/* --- Specializations --- */

/* .specializations-info {
  background-color: var(--peach-tint);
  text-align: center;
  margin: 0 auto;
  padding: var(--space-xl); 
} */
.specializations-info {
  text-align: center;
}


.specializations-info h3 {
  color: var(--sapphire);
  margin-bottom: var(--space-md);
}

.specializations-info p {
  color: var(--text-color-light);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.specializations-info p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   7. Services Section
   ========================================================================== */
.services {
  padding: var(--space-xxxl) 0;
  background-color: var(--peach-tint);
  position: relative;
  overflow: hidden;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

/* --- Flipping Card Effect --- */
.service-card {
  perspective: 1000px;
  height: 500px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
}

/* Card Front Face */
.card-front {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
}

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

.service-title {
  font-size: 24px;
  margin-bottom: var(--space-sm);
  color: var(--green);
}

.service-subtitle {
  color: var(--text-color-light);
}

.interaction-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--green);
  padding: 5px 12px;
  border-radius: var(--border-radius-rounded);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.service-card:hover .interaction-cue {
  opacity: 0;
  /* Hide the cue when hovering */
}

.interaction-cue i {
  animation: spin 4s linear infinite;
}

/* Card Back Face */
.card-back {
  background: linear-gradient(135deg, var(--green) 0%, var(--sapphire) 100%);
  transform: rotateY(180deg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.card-back-content .service-title {
  color: var(--white);
  margin-bottom: var(--space-md);
}

.service-description {
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
}

.service-highlights {
  margin-bottom: var(--space-xl);
}

.service-highlights li {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
}

.service-highlights i {
  margin-right: var(--space-sm);
  color: #7ef197;
  /* Light Green for checkmarks */
  margin-top: 4px;
}

.card-back .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
  /* Pushes button to the bottom */
}

.card-back .btn-outline:hover {
  background-color: var(--white);
  color: var(--green);
  border-color: var(--white);
}

/* --- Services CTA --- */
.services-cta {
  text-align: center;
  margin-top: var(--space-xxl);
}

.services-cta p {
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
}

/* --- Service Modal Styles --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  overflow-y: auto;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1;
  cursor: pointer;
}

.modal-container {
  position: relative;
  z-index: 2;
  /* width: 100%;
  min-height: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.modal-content {
  background-color: var(--white);
  width: 90%;
  max-width: 1000px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.5s ease-out;
  position: relative;
  /* For close button positioning */
}

.close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
  background-color: var(--peach-tint);
  color: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-medium);
  z-index: 10;
  border: none;
}

.close-modal:hover {
  background-color: var(--peach);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--green) 0%, var(--sapphire) 100%);
  color: var(--white);
  border-top-left-radius: var(--border-radius-xl);
  border-top-right-radius: var(--border-radius-xl);
}

/* .modal-header h2 {
  color: var(--white);
  word-break: break-word; /* NEW: Allows long words to break and wrap */
  /* hyphens: auto;          NEW: Adds hyphens for cleaner breaks */
/* } */ 

.modal-header h2 {
    color: var(--white);
    white-space: nowrap;      /* NEW: Prevents the title from wrapping to a new line */
    overflow: hidden;         /* NEW: Hides any part that might still overflow */
    text-overflow: ellipsis;  /* NEW: Adds "..." if it's still too long (a failsafe) */
    padding: 0 var(--space-lg); /* NEW: Adds some side padding for breathing room */
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  /* Single column for mobile-first */
  /* ADDED: This creates space on all sides of the content area */
  padding: var(--space-xl);
}

.modal-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  /* Forces the container to a 3:2 ratio */
  overflow: hidden;
  border-radius: var(--border-radius-md);
}

/* ADDED BACK: This rule was missing */
.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 0;
}

.phase {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px dashed var(--border-color);
}

.phase:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.phase h4 {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  color: var(--green);
}

.phase h4 i {
  margin-right: var(--space-sm);
  color: var(--peach);
}

.benefits-section {
  margin-top: var(--space-xl);
}

.benefits-section h3 {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.benefit-card {
  background-color: var(--white);
  border: 1px solid var(--background-light);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: var(--transition-medium);
}

.benefit-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  background-color: var(--green-tint);
  color: var(--green);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card p {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.modal-footer {
  padding: var(--space-xl);
  text-align: center;
  border-top: 1px solid var(--background-light);
  background-color: var(--background-light);
  border-bottom-left-radius: var(--border-radius-xl);
  border-bottom-right-radius: var(--border-radius-xl);
}

/* ==========================================================================
   8. Products Section
   ========================================================================== */
.products {
  padding: var(--space-xxxl) 0;
  background-color: #daf9fb;
  position: relative;
  z-index: 0;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
  /* align-items: start; */
  min-height: 600px;
}

.product-card {
  background-color: #ffbfd9;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.product-img-container {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  transition: var(--transition-slow);
}

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

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

.product-info {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: var(--font-size-h4);
  margin-bottom: var(--space-sm);
  color: var(--sapphire);
}

.product-desc {
  color: var(--text-color-light);
  margin-bottom: var(--space-lg);
  flex-grow: 1;
  /* Allows this to take up available space */
  min-height: 90px;
}

/* --- Expandable Details --- */
.product-details-btn {
  width: 100%;
  justify-content: center;
  gap: var(--space-sm);
  background-color: var(--sapphire);
}

.product-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.product-details.active {
  max-height: 500px;
  /* Adjust if content is taller */
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--background-light);
}

.details-section {
  margin-bottom: var(--space-lg);
}

.details-section:last-child {
  margin-bottom: 0;
}

.details-section h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  color: var(--green);
}

.details-section h4 i {
  margin-right: var(--space-sm);
  color: var(--peach);
}

/* --- Products CTA --- */
.products-cta {
  text-align: center;
  margin-top: var(--space-xxl);
}

.products-cta p {
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-lg);
  color: var(--text-color-light);
}

/* ==========================================================================
   8.5. Podcast Section (NEW)
   ========================================================================== */
.podcast {
  padding: var(--space-xxxl) 0;
  background-color: rgb(209, 245, 205);
}

.podcast-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: var(--space-xxl) auto;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  max-width: 700px; /* Limit max width for large screens */
}

.podcast-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.podcast-credit {
  text-align: center;
  margin-top: var(--space-md);
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
}

.podcast-credit a {
  color: var(--sapphire);
  font-weight: 500;
  text-decoration: underline;
}

.podcast-credit a:hover {
  color: var(--green-dark);
}

/* Responsive adjustments for podcast section */
@media (max-width: 768px) {
  .podcast-video-container {
    margin: var(--space-xl) auto;
  }
}

/* ==========================================================================
   9. Health Tips Section
   ========================================================================== */
.health-tips {
  padding: var(--space-xxxl) 0;
  background-color: var(--peach-tint);
}

/* --- Tab Navigation --- */
.tabs-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--background-light);
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
}

.tabs-nav::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

.tab-btn {
  flex: 1 1 0;
  /* Allows buttons to grow and shrink equally */
  min-width: 150px;
  padding: var(--space-lg);
  background-color: transparent;
  border: 1px solid var(--border-color);
  margin-right: -1px;
  /* border: none; */
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color-light);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
}
.tab-btn:last-child {
  border-right: 1px solid var(--border-color);
}

.tab-btn i {
  font-size: 20px;
  margin-bottom: var(--space-xs);
  color: var(--border-color);
  transition: var(--transition-medium);
}

.tab-btn.active {
  color: var(--green);
  background-color: var(--green-tint);
}

.tab-btn.active i {
  color: var(--green);
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--green);
  transform: scaleX(0);
  transition: var(--transition-medium);
}

.tab-btn.active::after {
  transform: scaleX(1);
}

/* --- Tab Content --- */
.tabs-content {
  padding: var(--space-xl);
}

.tab-content {
  display: none;
}

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

.tip-card-header {
  padding: var(--space-lg);
  background-color: var(--green);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
}

.tip-card-header h3 {
  color: var(--white);
  margin-bottom: 0;
}

.tip-category {
  background-color: rgba(255, 255, 255, 0.2);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-rounded);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
}

.tip-category i {
  margin-right: var(--space-xs);
}

.tip-card-body {
  background-color: var(--white);
  padding: var(--space-xl);
  border: 1px solid var(--background-light);
  border-top: none;
  border-bottom-left-radius: var(--border-radius-lg);
  border-bottom-right-radius: var(--border-radius-lg);
}

/* Find and replace this rule */
.tip-main {
  /* MODIFIED: Use Flexbox for a side-by-side layout on desktop */
  display: flex;
  flex-direction: row;
  /* This makes it side-by-side */
  gap: var(--space-xl);
  align-items: center;
  /* This vertically aligns the text with the image's center */
}

/* Find and replace this rule */
.tip-image {
  /* MODIFIED: Set a width and remove the height constraint */
  width: 40%;
  /* The image will take up 40% of the card's width */
  flex-shrink: 0;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  /* The max-height property is removed to allow the 3:2 image to display fully */
}

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

.tip-content h4 {
  margin-bottom: var(--space-md);
  color: var(--green);
}

.tip-list {
  list-style-type: none;
}

.tip-list li {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
}

.tip-list i {
  color: var(--green);
  margin-right: var(--space-md);
  margin-top: 4px;
}

.tip-list li div {
  display: flex;
  flex-direction: column;
}

.tip-list li strong {
  margin-right: var(--space-sm);
}

/* ==========================================================================
   10. Daily Routines Section
   ========================================================================== */
.daily-routines {
  padding: var(--space-xxxl) 0;
  background-color: var(--blue-light);
}

/* Reusing tab styles for consistency */
.routine-tabs-container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.routine-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--background-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.routine-tabs-nav::-webkit-scrollbar {
  display: none;
}

.routine-tab-btn {
  flex: 1 1 0;
  min-width: 180px;
  padding: var(--space-lg);
  background-color: transparent;
  border: 1px solid var(--border-color); 
  /* border: none; */
  cursor: pointer;
  font-weight: 500;
  color: var(--text-color-light);
  transition: var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  white-space: nowrap;
}
.routine-tab-btn:last-child {
  border-right: 1px solid var(--border-color);
}

.routine-tab-btn i {
  font-size: 20px;
  margin-bottom: var(--space-xs);
  color: var(--border-color);
  transition: var(--transition-medium);
}

.routine-tab-btn.active {
  color: var(--green);
  background-color: var(--green-tint);
}

.routine-tab-btn.active i {
  color: var(--green);
}

.routine-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--green);
  transform: scaleX(0);
  transition: var(--transition-medium);
}

.routine-tab-btn.active::after {
  transform: scaleX(1);
}

/* --- Routine Content --- */
.routine-tabs-content {
  padding: var(--space-xl);
}

.routine-content {
  display: none;
}

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

.routine-header {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.routine-header h3 {
  margin-bottom: var(--space-sm);
}

.routine-header p {
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto;
}

.routine-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.time-slot {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  border: 1px solid var(--background-light);
}

.time-slot:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-tint);
}

.time-badge {
  background-color: var(--green);
  color: var(--white);
  padding: var(--space-sm);
  text-align: center;
  font-weight: 600;
}

.time-content {
  padding: var(--space-lg);
}

.time-content h4 {
  margin-bottom: var(--space-md);
  color: var(--green);
}

.time-content ul {
  list-style-type: none;
}

.time-content ul li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  position: relative;
  font-size: var(--font-size-sm);
}

.time-content ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--peach);
}

/* ==========================================================================
   11. Contact & Location Section
   ========================================================================== */
.contact {
  padding: var(--space-xxxl) 0;
  background-color: var(--blue-light);
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.info-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

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

.info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--green-tint);
  color: var(--green);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: var(--space-lg);
  flex-shrink: 0;
}

.info-content h4 {
  margin-bottom: var(--space-sm);
  color: var(--green);
}

.info-content p {
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xs);
}

/* --- New Disclaimer Card (in Contact section) --- */
.disclaimer-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  grid-column: 1 / -1;
  /* Make it span full width */
  text-align: center;
  border: 1px solid var(--peach-tint);
  font-weight: 600;
}

.disclaimer-card h4 {
  margin-bottom: var(--space-md);
  color: var(--sapphire);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-card h4 i {
  margin-right: var(--space-sm);
  color: var(--sapphire);
}

.disclaimer-card p {
  color: var(--text-color-light);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

/* --- Inline WhatsApp Icon --- */
.whatsapp-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #25d366;
  color: var(--white);
  border-radius: var(--border-radius-circle);
  font-size: 14px;
  margin-left: var(--space-sm);
  transition: var(--transition-fast);
  vertical-align: middle;
}

.whatsapp-inline-icon:hover {
  transform: scale(1.1);
  background-color: #128c7e;
}

/* --- New Contact Action Icons --- */
/* In styles.css, replace the existing .contact-item rule */
.contact-item {
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md); /* NEW: Adds spacing if items wrap */
}

/* In styles.css, REPLACE the existing .contact-item p rule */
.contact-item p {
    margin-bottom: 0;
    flex-grow: 1; /* NEW: This is the key change that pushes the buttons away */
    margin-right: var(--space-md); /* NEW: Ensures a minimum space */
}

/* ADD this new rule for the button container */
.contact-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0; /* NEW: Prevents the buttons from getting squished */
}

.contact-item:last-child {
  margin-bottom: 0;
}



.contact-actions {
  display: flex;
  gap: var(--space-sm);
}

.contact-action-icon {
  position: relative;
  /* Needed for tooltip positioning */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--green-tint);
  color: var(--green);
  border-radius: var(--border-radius-circle);
  font-size: 14px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
  cursor: pointer;
  /* Ensures the copy button has a pointer cursor */
}

.contact-action-icon:hover {
  transform: scale(1.1);
  background-color: var(--green);
  color: var(--white);
  border-color: var(--green-dark);
}

/* Tooltip for Copy Button */
.copy-btn::after {
  content: "Copied!";
  position: absolute;
  bottom: 120%;
  /* Position above the icon */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--sapphire);
  color: var(--white);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  white-space: nowrap;
}

.copy-btn.copied::after {
  opacity: 1;
  visibility: visible;
}

.map-link {
  display: inline-flex;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--green);
  font-weight: 500;
  margin-top: var(--space-sm);
}

.map-link i {
  margin-left: var(--space-xs);
  transition: var(--transition-fast);
}

.map-link:hover i {
  transform: translateX(3px);
}

/* --- Social Links Card (in Contact section) --- */
.social-links {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  grid-column: 1 / -1;
  /* Make it span full width */
  text-align: center;
}

.social-links h4 {
  margin-bottom: var(--space-md);
  color: var(--green);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
  background-color: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.social-icon:hover {
  background-color: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

/* --- Map --- */
.map-container {
  height: 450px;
  width: 100%;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

/* --- New Jotform CTA in Contact Section --- */
.form-cta-description {
  margin-top: var(--space-lg);
  font-style: italic;
  color: var(--text-color-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-cta-btn {
  margin-top: var(--space-md);
  background-color: var(--sapphire);
  /* A distinct, professional color */
  color: var(--white);
  box-shadow: 0 4px 12px rgba(43, 80, 170, 0.3);
  padding: 14px 28px;
  font-weight: 500;
}

.form-cta-btn:hover {
  background-color: #22408a;
  /* A darker sapphire for hover */
  box-shadow: 0 6px 16px rgba(43, 80, 170, 0.4);
  transform: translateY(-2px);
}

.form-cta-btn i {
  margin-right: var(--space-sm);
}

/* ==========================================================================
   11.5. FAQ Section
   ========================================================================== */
.faq {
  padding: var(--space-xxxl) 0;
  background-color: var(--peach-tint);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  border: 4px solid var(--black);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--black);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background-color: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  padding: var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--green-tint);
  color: var(--green);
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--green);
}

.faq-answer {
  max-height: 0;
  font-weight: 1000;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background-color: var(--white);
  margin-top: 5px;
  margin-bottom: 5px;
  color: #000000;
}

.faq-answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-color-light);
  line-height: 1.8;
}

/* Active State */
.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  /* Adjust if answers are very long */
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.footer {
  background-color: var(--sapphire);
  color: var(--white);
  padding-top: var(--space-xxxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  width: 50px;
  height: 50px;
  margin-right: var(--space-md);
}

.footer-logo h3 {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 0;
}

.footer-about {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-circle);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.footer-social a:hover {
  background-color: var(--white);
  color: var(--green);
  transform: translateY(-3px);
}

.footer-title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
  color: var(--white);
  font-weight: 600;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--peach);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--peach);
  transform: translateX(5px);
}

.footer-contact li {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: flex-start;
}

.footer-contact i {
  margin-right: var(--space-sm);
  color: var(--peach);
  font-size: 16px;
  margin-top: 4px;
  width: 16px;
  text-align: center;
}

.footer-contact span {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  flex: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-lg) 0;
  text-align: center;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  opacity: 0.7;
  margin-bottom: var(--space-sm);
}

.footer-developer {
  font-size: var(--font-size-sm);
  opacity: 0.7;
}

.footer-developer i {
  color: var(--peach);
}

.footer-developer a {
    color: inherit; 
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.footer-developer a:hover {
    color: var(--peach); 
    border-color: var(--peach); 
    transform: none; 
}

/* ==========================================================================
   13. Utility & Helper Classes
   ========================================================================== */

/* --- Preloader --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.loader-leaf {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid transparent;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.loader-leaf:nth-child(2) {
  animation-delay: 0.15s;
  border-top-color: var(--peach);
}

.loader-leaf:nth-child(3) {
  animation-delay: 0.3s;
  border-top-color: var(--sapphire);
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: var(--white);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition-medium);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  animation: none;
}

/* --- Back to Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background-color: var(--green);
  color: var(--white);
  border-radius: var(--border-radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-medium);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--green-dark);
  transform: translateY(-5px);
}

/* ==========================================================================
   14. Animations & Keyframes
   ========================================================================== */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-20px);
  }

  60% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   15. Responsive Media Queries
   ========================================================================== */

/* --- Laptops and Smaller Desktops (Up to 1200px) --- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 56px;
  }

  .section-title {
    font-size: 36px;
  }
}

@media (min-width: 1024px) {
  .clinic-info-grid {
    grid-template-columns: repeat(2, 1fr);
    /* This creates a 2x2 grid */
  }

  .clinic-card-tagline {
    grid-column: auto;
  }

  /* --- MODAL STYLES FOR TEXT WRAP --- */
  .modal-body {
    /* Switching back to flex for better control over image/text alignment */
    display: flex;
    flex-wrap: wrap;
    /* Allows text to wrap below the image if needed */
    justify-content: center;
    /* This centers the image horizontally */
    align-items: flex-start;
    /* Aligns content at the top */
    gap: var(--space-xl);
    /* Add spacing between image and text */
  }

  .modal-image {
    width: 40%;
    /* Image takes 40% of the available width */
    flex-shrink: 0;
    /* Prevents image from shrinking */
    /* REMOVED: float: left; margin-right: var(--space-xl); margin-bottom: var(--space-md); */
    /* These float properties are no longer needed with flexbox */
  }
}

/* --- Small Tablets & Large Phones (Up to 992px) --- */
@media (max-width: 992px) {

  /* Header & Mobile Nav */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    transition: var(--transition-medium);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-top: 80px;
    overflow-y: auto;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-item {
    margin: 0;
    width: 100%;
  }

  .nav-list .nav-link {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--background-light);
    border-radius: 0;
  }

  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo-text h1 {
    font-size: 24px;
  }

  .doctor-card {
    flex-direction: column;
    max-width: 350px;
    /* Adjust max-width for better fit */
    margin: 0 auto;
    /* Center the card */
  }

  .doctor-img-container {
    width: 100%;
    height: auto;
    /* Allow height to be automatic */
    aspect-ratio: 1 / 1;
    /* Creates a perfect square for the image */
  }

  .logo-tagline {
    font-size: 10px;
    white-space: normal;
    /* Allows the text to wrap */
    max-width: 150px;
    /* Constrains its width */
  }
}

/* --- Mobile Devices (Up to 768px) --- */
@media (max-width: 768px) {

  /* Base & Typography */
  .section-title {
    font-size: 28px;
  }

  .container {
    padding: 0 var(--space-md);
    /* reduce container padding */
  }

  /* Hero Section */
  .hero {
    min-height: 600px;
    padding-top: 70px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin-bottom: var(--space-xxxl);
  }

  /* In styles.css, ADD this inside your @media (max-width: 768px) block */

.daily-tip-section {
    /* Reduces the vertical padding slightly on smaller screens */
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.tip-section-title {
    font-size: 22px; /* A touch smaller for better mobile scaling */
    margin-bottom: var(--space-lg); /* Adjusts the spacing for mobile */
}

.tip-container {
    /* Ensures the tip fits well, even on very narrow screens */
    width: 100%;
    max-width: 450px;
    box-sizing: border-box; /* Prevents padding from causing overflow */
}
.contact-item {
    flex-direction: column; /* Stacks the text and buttons vertically */
    align-items: center;    /* Centers them horizontally */
}
}


/* About Section */
.clinic-card {
  padding: var(--space-md);
  /* reduce padding */
  margin: 0 auto;
  /* center and prevent overflow */
  max-width: 100%;
  /* prevent going wider than screen */
  box-sizing: border-box;
}

.clinic-info-grid {
  grid-template-columns: 1fr;
  /* Back to single column */
}

.clinic-card-philosophy,
.clinic-card-tagline {
  grid-column: auto;
  /* Reset column span */
}

.clinic-card-stats {
  flex-direction: column;
  /* THE FIX: Stacks the stats vertically */
  gap: var(--space-xl);
  /* Adds nice spacing between the stacked items */
  padding: var(--space-xl);
}

/* Modal */
.modal-body {
  grid-template-columns: 1fr;
  /* Stack image and text in modal */
}

/* Other Sections */
.tip-main {
  flex-direction: column;
  /* Stacks the image on top of the text */
  align-items: stretch;
}

.tip-image {
  width: 100%;
  /* Makes the image full-width on mobile */
}

.contact-info {
  grid-template-columns: 1fr;
  /* Stack contact cards */
}

.info-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-icon {
  margin-right: 0;
  margin-bottom: var(--space-md);
}

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

.footer-logo,
.footer-social,
.footer-contact li {
  justify-content: center;
}

.footer-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.hero-content {
  margin-bottom: 20px;
  /* Adds space above the buttons */
}

.hero .hero-buttons {
  /* margin-bottom: 150px; Pushes buttons up to make space for the tip */
  margin-bottom: var(--space-xxl);
}

.hero-video {
  /* This rule ensures the fallback image is visible on mobile */
  background-image: url("assets/hero-fallback2.png");
  background-size: cover;
  background-position: center;
}

.hero-video video {
  /* This rule hides the video element on mobile to save data */
  display: none;
}

.form-cta-description {
  font-size: var(--font-size-sm);
  /* Adjusts text size for mobile */
}

.form-cta-btn {
  padding: 12px 20px;
  font-size: var(--font-size-sm);
  /* Makes the button a bit smaller and neater on mobile */
}

/* --- Small Mobile Phones (Up to 480px) --- */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  /* Slightly increase base font for readability */

  .container {
    padding: 0 var(--space-md);
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 16px;
    bottom: 90px;
  }
}