/*
 * Diabelife Modern CSS Design System
 * Clean, Responsive, Glassmorphic, and Fast
 */

/* Import Outfit and DM Sans fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --primary: #009ed6;
  --primary-dark: #007bb5;
  --primary-light: #e0f2fe;
  --secondary: #8bc34a;
  --secondary-dark: #7cb342;
  --secondary-light: #f1f8e9;

  --dark: #0f172a;
  --dark-muted: #334155;
  --light: #ffffff;
  --light-muted: #f8fafc;
  --border: #e2e8f0;

  --text: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --font-headings: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.1);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE & Edge */
  overflow-x: hidden;
  max-width: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
  width: 0;
  height: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-muted);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  /* Reduced from 16px to make fonts feel smaller and cleaner */
  overflow-x: hidden;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE & Edge */
  zoom: 1.20;
}

@media (max-width: 991px) {
  body {
    zoom: 1.1;
  }
}

@media (max-width: 576px) {
  body {
    zoom: 1;
  }
  .grid {
    gap: 20px;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-dark) 0%, var(--primary) 50%, #4fc3f7 100%);
  width: 0%;
  z-index: 9999;
  transition: width 0.05s linear;
  box-shadow: 0 0 8px rgba(0, 158, 214, 0.6);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.1rem;
  /* Reduced from 2.5rem */
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.7rem;
  /* Reduced from 2rem */
  font-weight: 700;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.25rem;
  /* Reduced from 1.5rem */
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--primary-dark);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 70px 0;
  opacity: 0;
  transform: translateY(15px);
  animation: sectionSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.section-bg {
  background-color: var(--light);
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.grid-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  /* Slightly more compact padding */
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  /* Reduced from 1rem */
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  gap: 8px;
}

.hero-slider-full .slide-caption .btn-primary {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 158, 214, 0.2);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--light);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 195, 74, 0.2);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.85);
  /* Increased transparency */
  backdrop-filter: blur(12px);
  /* Increased blur */
  border-bottom: 1px solid var(--border);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.92);
}

.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 70px;
  /* Reduced from 80px for a sleeker profile */
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  /* Set height to prevent push */
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 12px;
  /* Reduced gap from 20px for better fit */
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  /* Increased weight for crispness at smaller size */
  padding: 6px 10px;
  font-size: 0.88rem;
  /* Reduced from 0.95rem */
  white-space: nowrap;
  /* Prevents awkward wrapping of menu items */
  position: relative;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover,
.nav-item.active>.nav-link {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Dynamic caret styled with pure CSS */
.caret {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: var(--transition);
  margin-left: 6px;
  vertical-align: middle;
  margin-top: -3px;
}

.dropdown:hover .caret {
  transform: rotate(-135deg);
  margin-top: 2px;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 230px;
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}

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

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.82rem;
  /* Reduced from 0.9rem */
}

.dropdown-menu a:hover {
  background-color: var(--light-muted);
  color: var(--primary);
  padding-left: 20px;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1010;
}

.nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* Ticker */
.ticker-bar {
  background-color: var(--dark);
  color: var(--text-light);
  padding: 8px 0;
  font-size: 0.85rem;
  overflow: hidden;
  position: relative;
  z-index: 999;
  margin-top: 70px;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  /* animation is handled via JS to avoid CSS restarts during other DOM updates */
  animation: none !important;
  will-change: transform;
}

.ticker-content span {
  padding-right: 50px;
}

/* Kept for reference but not used when JS-driven ticker is active */
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Full Width Crop-Friendly Slider */
.hero-slider-full {
  position: relative;
  width: 100%;
  height: 440px;
  /* Fixed visually appealing height on desktop */
  overflow: hidden;
  background-color: var(--dark);
  margin-top: 0;
  /* Align flush with ticker, removing gap! */
  box-shadow: var(--shadow-lg);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

/* Slide Caption and Gradient Overlay */
.slide-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.75) 100%);
  /* Blackish transparent gradient */
  color: var(--light);
  padding: 20px 60px;
  z-index: 5;
}

.slide-caption-content {
  max-width: 800px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.slide.active .slide-caption-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-caption h2 {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  color: var(--light);
  font-family: var(--font-headings);
}

.slide-caption h2 span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.slide-caption p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 25px;
  line-height: 1.6;
  max-width: 620px;
  margin-inline: auto;
}

/* Slide navigation arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 15;
  transition: var(--transition);
}

.slider-arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .slider-arrow {
    width: 30px;
    height: 30px;
  }

  .slider-arrow svg {
    width: 12px;
    height: 12px;
  }

  .hero-slider-full .slide-caption .btn-primary {
    padding: 6px 15px;
    font-size: 0.70rem;
  }
}

.slider-arrow:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.05);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .hero-slider-full {
    height: 280px;
    /* Shorter landscape aspect on mobile */
  }

  .slide-caption h2 {
    font-size: 1.45rem;
  }

  .slide-caption p {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .slide-caption {
    padding: 20px 40px;
  }

  .slider-arrow {
    width: 30px;
    height: 30px;
  }

  .slider-arrow svg {
    width: 12px;
    height: 12px;
  }

  .prev-arrow {
    left: 8px;
  }

  .next-arrow {
    right: 8px;
  }

  .doctor-img-box {
    min-height: 320px;
    aspect-ratio: 3 / 4;
    height: auto;
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .hero-slider-full {
    height: 230px;
  }

  .slide-caption h2 {
    font-size: 1.25rem;
  }

  .slide-caption p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .slider-arrow {
    display: none;
    /* Hide arrows on micro screen widths to avoid text overlapping */
  }
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
  width: 20px;
  border-radius: 5px;
}

/* Animations definition */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

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

@keyframes scaleIn {
  from {
    transform: scale(0.96);
    opacity: 0;
  }

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

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

transition: var(--transition);
}

.slider-dot.active {
  background-color: var(--primary);
  transform: scale(1.2);
  width: 16px;
  border-radius: 5px;
}

/* Animations definition */
@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scaleIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sections - Welcome */
.welcome-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.welcome-img-container {
  position: relative;
}

.welcome-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  height: 380px;
}

.welcome-img-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  border-left: 5px solid var(--primary);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius-sm) 0 0 0;
  z-index: -1;
}

.welcome-img-container::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-right: 5px solid var(--secondary);
  border-bottom: 5px solid var(--secondary);
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: -1;
}

/* Title Block */
.title-block {
  text-align: center;
  margin-bottom: 50px;
}

.title-block h1,
.title-block h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.title-block h1::after,
.title-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Diet Chart Section */
.diet-chart-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  border-top: 5px solid var(--secondary);
  border-top-color: var(--secondary);
  text-align: left;
  max-width: 960px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0 auto;
}

.diet-chart-card > div,
.diet-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-width: 0;
}

.diet-chart-card > div > *,
.diet-chart-grid > * {
  min-width: 0;
}

.diet-chart-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 25px;
}

@media (max-width: 1200px) {
  .diet-chart-card {
    padding: 28px;
  }

  .diet-chart-card > div,
  .diet-chart-grid {
    grid-template-columns: 1fr !important;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .diet-chart-card {
    padding: 24px;
  }
}

@media (max-width: 992px) {
  .diet-chart-card {
    padding: 22px;
  }

  .diet-chart-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* Service Cards */
.service-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
}

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

.service-card-img-container {
  position: relative;
  overflow: hidden;
  height: 180px;
}

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

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

.service-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(0, 158, 214, 0.15);
  z-index: 10;
}

.service-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

.service-card:hover .service-card-icon {
  background-color: var(--primary);
  color: var(--light);
  transform: rotate(5deg) scale(1.05);
}

.service-card-title {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.service-card-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.service-card-link:hover {
  color: var(--primary-dark);
}

.service-card-link:hover svg {
  transform: translateX(4px);
}

/* Doctor Portrait Section */
.doctor-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.doctor-img-box {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: var(--primary-light);
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 400px;
  max-height: 450px;
}

.doctor-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 1024px) {
  .doctor-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .doctor-img-box {
    min-width: 0;
    min-height: 360px;
    aspect-ratio: 3 / 4;
    height: auto;
    max-width: 480px;
    margin-inline: auto;
  }
}

.doctor-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 30px;
  text-align: center;
  color: var(--primary-dark);
}

.doctor-placeholder-svg {
  width: 80px;
  height: 80px;
  fill: currentColor;
  margin-bottom: 20px;
  opacity: 0.6;
}

.doctor-badge {
  background-color: var(--secondary-light);
  color: var(--secondary-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 12px;
}

/* Testimonial Section */
.testimonial-section {
  background: linear-gradient(135deg, rgba(0, 158, 214, 0.04) 0%, rgba(139, 195, 74, 0.04) 100%);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
}

.testimonial-quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-author::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

/* Banner Small (for Inner Pages) */
.page-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-muted) 100%);
  color: var(--light);
  padding: 120px 0 60px 0;
  text-align: center;
}

.page-banner h1 {
  color: var(--light);
  font-size: 3rem;
  margin-bottom: 10px;
}

.page-banner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* Facilities Alternating List */
.facility-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.facility-row:nth-child(even) {
  direction: rtl;
}

.facility-row:nth-child(even) .facility-content {
  direction: ltr;
}

.facility-row:last-child {
  margin-bottom: 0;
}

.facility-img-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 320px;
}

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

.facility-row:hover .facility-img {
  transform: scale(1.03);
}

.facility-content h2 {
  margin-bottom: 15px;
  font-size: 1.75rem;
}

/* FAQ Accordion */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background-color: var(--light);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header:hover {
  background-color: var(--light-muted);
  color: var(--primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 24px;
}

.accordion-item.active .accordion-header {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  max-height: 1000px;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Forms (Contact, Enquiry) */
.form-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

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

.form-label {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--light-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--light);
  box-shadow: 0 0 0 3px var(--brand-blue-glow);
}

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

/* Contact Grid */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-info-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.contact-info-icon svg {
  width: 24px;
  height: 24px;
}

.contact-map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  height: 400px;
}

/* Footer styling */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 0 0;
  font-size: 0.95rem;
}

.footer h3 {
  color: var(--light);
  margin-bottom: 24px;
  font-size: 1.25rem;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.footer h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-btn {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light);
  transition: var(--transition);
}

.social-btn:hover {
  background-color: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  background-color: var(--primary);
  color: var(--light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  border: none;
}

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

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

/* Mobile responsive menu styles */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 70px);
    background-color: var(--light);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    gap: 15px;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
    margin-top: 5px;
    min-width: 100%;
    background-color: var(--light-muted);
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .hero-split {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 110px;
    padding-bottom: 50px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-stats {
    justify-content: center;
    gap: 20px;
  }

  .hero-slider-card {
    height: 380px;
    max-width: 500px;
    margin-inline: auto;
    width: 100%;
  }

  .welcome-section,
  .doctor-section,
  .facility-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .welcome-img {
    height: auto;
    max-height: 300px;
  }

  .welcome-img-container::before,
  .welcome-img-container::after {
    display: none;
    /* Hide accent frames on mobile to prevent overflow */
  }

  .doctor-img-box {
    width: min(100%, 480px);
    aspect-ratio: 3 / 4;
    min-height: 320px;
    max-height: 520px;
    height: auto;
    margin-inline: auto;
  }

  .diet-chart-grid {
    grid-template-columns: 1fr;
  }

  .diet-chart-grid > * {
    min-width: 0;
  }

  .facility-row:nth-child(even) {
    direction: ltr;
  }
}

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

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-slider-card {
    height: 320px;
  }

  .section {
    padding: 50px 0;
  }
}

/* App Callout Section */
.app-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
  color: var(--light);
  border-radius: var(--radius-md);
  padding: 50px;
  margin-top: 40px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.app-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
}

.app-img-container {
  text-align: center;
  position: relative;
}

.app-img {
  max-width: 100%;
  height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
  transition: var(--transition);
}

.app-img:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--light);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.store-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--light);
  color: var(--text-dark);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
}

.store-btn-icon {
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.store-btn-text {
  text-align: left;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
}

.store-btn-subtitle {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.store-btn:hover {
  background-color: var(--primary);
  color: var(--light);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn:hover .store-btn-icon {
  color: var(--light);
}

.store-btn:hover .store-btn-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Facilities Grid Layout & Filters */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background-color: var(--light);
  border: 1px solid var(--border);
  color: var(--text-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary);
  color: var(--light);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(0, 158, 214, 0.15);
}

.facility-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: scale(1);
}

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

.facility-card-img-box {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: var(--light-muted);
}

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

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

.facility-card-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 158, 214, 0.1);
}

.facility-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.facility-card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.facility-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.facility-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  display: none;
}

/* Responsive Overrides */
@media (max-width: 991px) {
  .app-section {
    padding: 30px 20px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .app-img {
    height: 280px;
  }

  .store-buttons {
    justify-content: center;
  }
}