/* ==========================================================================
   Dr. Madan Sahu - Ayurveda & Panchakarma Clinic (Luxury Wellness Theme)
   Custom Stylesheet (style.css)
   ========================================================================== */

/* --- Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* --- Root Variable Definitions --- */
:root {
  --color-primary: #4A3525;       /* Deep Warm Leather/Earth Brown */
  --color-secondary: #70533C;     /* Warm Herbal Brown */
  --color-accent: #C5A059;        /* Aged Brass / Antique Gold */
  --color-bg: #F5EFE4;            /* Old Book Parchment / Off-White */
  --color-white: #FCFAF6;         /* Cream White Cards */
  --color-text-dark: #2A1B0E;     /* Aged Ink Dark Brown */
  --color-text-light: #655446;    /* Warm Muted Book Gray */
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.25s ease;
  
  --shadow-subtle: 0 10px 30px rgba(74, 53, 37, 0.04);
  --shadow-medium: 0 15px 40px rgba(74, 53, 37, 0.08);
  --shadow-gold: 0 10px 30px rgba(197, 160, 89, 0.15);
  
  --border-radius-sm: 12px;
  --border-radius-md: 20px;
  --border-radius-lg: 32px;
}

/* --- Base Reset & Lenis Smooth Scroll --- */
html {
  overflow-x: hidden;
  max-width: 100%;
}

html.lenis {
  height: auto;
}
.lenis-smooth-scroll {
  scroll-behavior: auto !important;
}
.lenis-smooth-scroll [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis-smooth-scroll html {
  overflow: hidden;
}

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

/* --- Selection Colors --- */
::selection {
  background-color: var(--color-primary);
  color: var(--color-accent);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.text-gold {
  color: var(--color-accent) !important;
}

.text-primary-color {
  color: var(--color-primary) !important;
}

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

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

.preloader-lotus {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.preloader-lotus path {
  fill: none;
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLotus 3s ease-in-out infinite alternate;
}

@keyframes drawLotus {
  0% { stroke-dashoffset: 600; }
  100% { stroke-dashoffset: 0; }
}

.preloader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  animation: fadeText 1.5s ease-in-out infinite alternate;
}

@keyframes fadeText {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* --- Reading Progress Bar --- */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1050;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  width: 0%;
}

/* --- Custom Cursor --- */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10000;
}

/* --- Header / Navigation --- */
.navbar-custom {
  background-color: rgba(245, 239, 228, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  padding: 10px 24px !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
  box-shadow: 0 4px 20px rgba(74, 53, 37, 0.08);
}

body.home-page .navbar-custom {
  background-color: rgba(245, 239, 228, 0.96) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 24px !important;
  border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
  box-shadow: 0 4px 20px rgba(74, 53, 37, 0.08);
}

body.home-page .navbar-custom.navbar-scrolled {
  background-color: rgba(250, 248, 243, 0.98) !important;
  padding: 10px 24px !important;
  box-shadow: var(--shadow-subtle);
  border-bottom: 1px solid rgba(197, 160, 89, 0.25) !important;
}

.site-logo {
  height: 65px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: var(--transition-fast);
}

.site-logo-footer {
  height: 140px;
  width: auto;
  max-width: 440px;
  object-fit: contain;
}

.navbar-brand-text {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.navbar-brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  display: block;
}

.navbar-custom .nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--color-primary);
  padding: 6px 10px !important;
  white-space: nowrap;
  transition: var(--transition-fast);
  position: relative;
  z-index: 2;
}

.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after {
  width: calc(100% - 32px);
}

.navbar-custom .nav-link:hover {
  color: var(--color-secondary);
}

/* --- Mega Menu Design --- */
.dropdown-mega {
  position: static !important;
}

.dropdown-mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  border: none;
  background-color: var(--color-white);
  box-shadow: var(--shadow-medium);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  padding: 30px;
  display: none;
  animation: slideDropdown 0.3s ease forwards;
}

.dropdown-mega:hover .dropdown-mega-menu {
  display: block;
}

.mega-menu-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(74, 53, 37, 0.1);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

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

.mega-menu-list li {
  margin-bottom: 8px;
}

.mega-menu-list a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
  display: inline-block;
}

.mega-menu-list a:hover {
  color: var(--color-accent);
  transform: translateX(5px);
}

@keyframes slideDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Premium Buttons --- */
.btn-gold,
.btn-outline-gold {
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold::after,
.btn-outline-gold::after {
  display: none !important;
  content: none !important;
}

.btn-gold {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--color-accent);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-gold);
}

.btn-outline-gold {
  background-color: transparent;
  color: var(--color-primary) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--color-accent);
  transition: var(--transition-fast);
}

.btn-outline-gold:hover {
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-subtle);
}

.navbar-custom .btn-gold,
.navbar-custom .btn-outline-gold {
  padding: 8px 20px !important;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* --- Hero Section & Swiper Slider --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background-color: var(--color-bg);
}

.hero-swiper {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 650px;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 130px 0 90px 0;
}

.hero-slide-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transition: transform 7s ease-out;
}

.swiper-slide-active .hero-slide-bg {
  transform: scale(1.06);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(245, 239, 228, 0.96) 0%, 
    rgba(245, 239, 228, 0.88) 42%, 
    rgba(245, 239, 228, 0.35) 75%, 
    rgba(245, 239, 228, 0.1) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 12px;
  display: inline-block;
  padding: 4px 16px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 50px;
}

.hero-title {
  font-size: 3.6rem;
  line-height: 1.15;
  margin-bottom: 22px;
  font-weight: 700;
  color: var(--color-text-dark);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 35px;
  max-width: 550px;
}

/* Custom Swiper Controls for Hero */
.hero-swiper-pagination {
  bottom: 35px !important;
  left: 50% !important;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  opacity: 0.35;
  transition: all 0.3s ease;
  border-radius: 50%;
  margin: 0 !important;
  cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-accent);
  width: 32px;
  border-radius: 20px;
}

.hero-swiper-button-prev,
.hero-swiper-button-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(252, 250, 246, 0.85);
  border: 1px solid var(--color-accent);
  color: var(--color-primary);
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-swiper-button-prev::after,
.hero-swiper-button-next::after {
  display: none !important;
}

.hero-swiper-button-prev i,
.hero-swiper-button-next i {
  font-size: 1.25rem;
}

.hero-swiper-button-prev:hover,
.hero-swiper-button-next:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: scale(1.08);
}

.hero-swiper-button-prev {
  left: 30px;
}

.hero-swiper-button-next {
  right: 30px;
}

/* Mobile & Responsive Layout for Hero Section (Card Top + Centered Content) */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto !important;
    min-height: auto !important;
    padding: 95px 0 45px 0;
    background-color: var(--color-bg);
  }

  .hero-swiper {
    height: auto !important;
    min-height: auto !important;
  }

  .hero-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: 0 10px;
  }

  .hero-slide-bg {
    position: relative;
    width: 100%;
    height: 270px;
    border-radius: 20px;
    margin-bottom: 24px;
    order: 1;
    z-index: 2;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(74, 53, 37, 0.12);
    border: 1px solid rgba(197, 160, 89, 0.25);
    transform: none !important;
  }

  .swiper-slide-active .hero-slide-bg {
    transform: none !important;
  }

  .hero-slide-overlay {
    display: none !important;
  }

  .hero-content {
    position: relative;
    z-index: 3;
    order: 2;
    width: 100%;
    text-align: center;
    padding: 0 5px;
  }

  .section-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    text-align: center;
  }

  .hero-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
  }

  .hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-light);
    margin: 0 auto 26px auto;
    max-width: 100%;
    text-align: center;
  }

  .hero-content .btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    align-items: center;
  }

  .hero-content .btn-gold {
    width: 100%;
    margin-right: 0 !important;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    border: 1px solid var(--color-accent);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.3);
  }

  .hero-content .btn-outline-gold {
    width: 100%;
    margin-right: 0 !important;
    text-align: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: var(--color-white);
    color: var(--color-primary) !important;
    border: 1px solid var(--color-accent);
  }

  .hero-swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin-top: 24px;
    width: 100%;
    justify-content: center;
  }

  .hero-swiper-button-prev,
  .hero-swiper-button-next {
    display: none !important;
  }

  .scroll-indicator {
    display: none !important;
  }

  /* Decorative Leaf Watermark behind text on Mobile */
  .floating-element.leaf-1 { display: none; }
  .floating-element.leaf-2 {
    top: 55%;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    opacity: 0.12;
    z-index: 1;
  }
  .floating-element.oil-drop { display: none; }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 85px 0 35px 0;
  }

  .hero-slide-bg {
    height: 230px;
    border-radius: 18px;
    margin-bottom: 20px;
  }

  .section-subtitle {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 0.90rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }
}

/* Floating Herbal Leaves & Oil Drops (GSAP animated) */
.floating-element {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.leaf-1 { top: 20%; left: 5%; width: 50px; }
.leaf-2 { bottom: 15%; left: 45%; width: 70px; }
.leaf-3 { top: 15%; right: 10%; width: 60px; }
.oil-drop { top: 60%; right: 40%; width: 25px; }

/* Sanskrit Pattern Overlay */
.sanskrit-bg {
  position: absolute;
  top: 10%;
  left: 2%;
  width: 300px;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
  animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-primary);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background-color: rgba(74, 53, 37, 0.2);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: var(--color-accent);
  animation: scrollAnim 2s infinite ease-in-out;
}

@keyframes scrollAnim {
  0% { top: -20px; }
  100% { top: 50px; }
}

/* --- Floating widgets --- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.floating-whatsapp:hover {
  transform: translateY(-5px) scale(1.1);
  color: var(--color-white);
}

.floating-call {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0d6efd, #0056b3);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4);
  z-index: 1000;
  transition: var(--transition-smooth);
  animation: callPulse 2.5s infinite ease-in-out;
}

.floating-call:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: var(--color-white);
  border-color: #ffffff;
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.6);
}

@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

.sticky-appointment-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  box-shadow: 0 10px 25px rgba(74, 53, 37, 0.2);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 170px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--color-white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-primary);
  box-shadow: var(--shadow-subtle);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(74, 53, 37, 0.1);
}

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

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

/* --- Section Dividers & Spacing --- */
.section-padding {
  padding: 100px 0;
}

.section-title-wrap {
  margin-bottom: 60px;
}

.section-subtitle {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.8rem;
  position: relative;
  display: inline-block;
}

/* SVG waves and curves */
.svg-divider {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--color-bg);
  margin: 0;
}

.svg-divider-white {
  fill: var(--color-white);
}

/* Column container shadow filter to preserve drop shadow outside clip-path shapes */
.col-lg-3, .col-lg-4, .col-lg-6, .col-md-6, .swiper-slide {
  filter: drop-shadow(0 8px 20px rgba(74, 53, 37, 0.06));
  transition: var(--transition-smooth);
}

.col-lg-3:hover, .col-lg-4:hover, .col-lg-6:hover, .col-md-6:hover, .swiper-slide:hover {
  filter: drop-shadow(0 15px 30px rgba(74, 53, 37, 0.12));
}

.swiper-slide {
  display: flex !important;
  height: auto !important;
}

.swiper-slide > * {
  width: 100%;
}

/* --- Premium Cards System (Torn Parchment / Old Book Page Effect) --- */
.wellness-card {
  background-color: var(--color-white);
  /* Vintage parchment grid texture */
  background-image: 
    linear-gradient(rgba(197, 160, 89, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 4px;
  padding: 30px 25px 35px 25px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-bottom: none;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  
  /* Jagged torn page look at the bottom */
  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% calc(100% - 15px), 
    98% calc(100% - 10px),
    96% calc(100% - 18px),
    94% calc(100% - 12px),
    92% calc(100% - 16px),
    90% calc(100% - 10px),
    88% calc(100% - 17px),
    86% calc(100% - 11px),
    84% calc(100% - 15px),
    82% calc(100% - 10px),
    80% calc(100% - 18px),
    78% calc(100% - 12px),
    76% calc(100% - 16px),
    74% calc(100% - 10px),
    72% calc(100% - 17px),
    70% calc(100% - 11px),
    68% calc(100% - 15px),
    66% calc(100% - 10px),
    64% calc(100% - 18px),
    62% calc(100% - 12px),
    60% calc(100% - 16px),
    58% calc(100% - 10px),
    56% calc(100% - 17px),
    54% calc(100% - 11px),
    52% calc(100% - 15px),
    50% calc(100% - 10px),
    48% calc(100% - 18px),
    46% calc(100% - 12px),
    44% calc(100% - 16px),
    42% calc(100% - 10px),
    40% calc(100% - 17px),
    38% calc(100% - 11px),
    36% calc(100% - 15px),
    34% calc(100% - 10px),
    32% calc(100% - 18px),
    30% calc(100% - 12px),
    28% calc(100% - 16px),
    26% calc(100% - 10px),
    24% calc(100% - 17px),
    22% calc(100% - 11px),
    20% calc(100% - 15px),
    18% calc(100% - 10px),
    16% calc(100% - 18px),
    14% calc(100% - 12px),
    12% calc(100% - 16px),
    10% calc(100% - 10px),
    8% calc(100% - 17px),
    6% calc(100% - 11px),
    4% calc(100% - 15px),
    2% calc(100% - 10px),
    0% calc(100% - 18px)
  );
}

.wellness-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 53, 37, 0.02) 0%, rgba(197, 160, 89, 0.06) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
}

.wellness-card:hover {
  transform: translateY(-5px) rotate(0.5deg);
  border-color: rgba(197, 160, 89, 0.6);
}

.wellness-card:hover::after {
  opacity: 1;
}

.wellness-card > a:last-child,
.wellness-card > .btn:last-child,
.wellness-card > .btn-outline-gold:last-child,
.wellness-card > .btn-gold:last-child {
  margin-top: auto;
  align-self: flex-start;
}

.card-icon-wrap {
  width: 70px;
  height: 70px;
  background-color: rgba(74, 53, 37, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  color: var(--color-primary);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.wellness-card:hover .card-icon-wrap {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: rotateY(360deg);
}

/* Glassmorphism details */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Image zoom cards */
.image-zoom-card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-bottom: none;
  transition: var(--transition-smooth);
  background-color: var(--color-white);
  height: 100%;
  display: flex;
  flex-direction: column;
  
  /* Jagged torn page look at the bottom */
  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% calc(100% - 15px), 
    98% calc(100% - 10px),
    96% calc(100% - 18px),
    94% calc(100% - 12px),
    92% calc(100% - 16px),
    90% calc(100% - 10px),
    88% calc(100% - 17px),
    86% calc(100% - 11px),
    84% calc(100% - 15px),
    82% calc(100% - 10px),
    80% calc(100% - 18px),
    78% calc(100% - 12px),
    76% calc(100% - 16px),
    74% calc(100% - 10px),
    72% calc(100% - 17px),
    70% calc(100% - 11px),
    68% calc(100% - 15px),
    66% calc(100% - 10px),
    64% calc(100% - 18px),
    62% calc(100% - 12px),
    60% calc(100% - 16px),
    58% calc(100% - 10px),
    56% calc(100% - 17px),
    54% calc(100% - 11px),
    52% calc(100% - 15px),
    50% calc(100% - 10px),
    48% calc(100% - 18px),
    46% calc(100% - 12px),
    44% calc(100% - 16px),
    42% calc(100% - 10px),
    40% calc(100% - 17px),
    38% calc(100% - 11px),
    36% calc(100% - 15px),
    34% calc(100% - 10px),
    32% calc(100% - 18px),
    30% calc(100% - 12px),
    28% calc(100% - 16px),
    26% calc(100% - 10px),
    24% calc(100% - 17px),
    22% calc(100% - 11px),
    20% calc(100% - 15px),
    18% calc(100% - 10px),
    16% calc(100% - 18px),
    14% calc(100% - 12px),
    12% calc(100% - 16px),
    10% calc(100% - 10px),
    8% calc(100% - 17px),
    6% calc(100% - 11px),
    4% calc(100% - 15px),
    2% calc(100% - 10px),
    0% calc(100% - 18px)
  );
}

.image-zoom-card:hover {
  transform: translateY(-5px) rotate(-0.5deg);
  border-color: rgba(197, 160, 89, 0.6);
}

.image-zoom-card .card-img-wrap {
  overflow: hidden;
  height: 250px;
  position: relative;
  flex-shrink: 0;
}

.image-zoom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.image-zoom-card .card-details {
  padding: 25px 25px 40px 25px;
  background-color: transparent;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Horizontal Stepper (Treatment Journey) --- */
.timeline-container {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* Remove default vertical track */
.timeline-container::before {
  display: none !important;
}

.timeline-item {
  position: relative;
  width: 33.333%; /* 3 columns on desktop */
  padding: 0 15px;
  margin-bottom: 50px;
  filter: drop-shadow(0 6px 15px rgba(74, 53, 37, 0.06));
  transition: var(--transition-smooth);
}

.timeline-item:hover {
  filter: drop-shadow(0 12px 25px rgba(74, 53, 37, 0.12));
}

/* Position reset for horizontal list layout */
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
  left: 0 !important;
  text-align: left;
}

/* Horizontal line connector running through the dots */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    transparent,
    transparent 4px,
    var(--color-accent) 4px,
    var(--color-accent) 12px
  );
  z-index: 1;
  opacity: 0.6;
}

/* Hide line on the last item of each row and the final timeline item */
.timeline-item:nth-child(3n)::before,
.timeline-item:last-child::before {
  display: none !important;
}

/* 4-Column Timeline Layout (for 4 items on desktop) */
@media (min-width: 992px) {
  .timeline-4-col .timeline-item {
    width: 25%;
  }
  .timeline-4-col .timeline-item::before {
    display: block;
  }
  .timeline-4-col .timeline-item:nth-child(3n)::before {
    display: block;
  }
  .timeline-4-col .timeline-item:nth-child(4n)::before,
  .timeline-4-col .timeline-item:last-child::before {
    display: none !important;
  }
}

/* Centered dot at the top of each column */
.timeline-dot {
  position: absolute;
  top: 10px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--color-bg);
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-dot::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-dot,
.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
}

/* Timeline card redesigned as a torn book page */
.timeline-content {
  background-color: var(--color-white);
  /* Old paper texture */
  background-image: 
    linear-gradient(rgba(197, 160, 89, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 25px;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-bottom: none;
  transition: var(--transition-smooth);
  text-align: left;
  margin-top: 50px; /* Leave space for the line and dot */
  height: calc(100% - 50px);
  
  /* Jagged torn page look at the bottom */
  clip-path: polygon(
    0% 0%, 
    100% 0%, 
    100% calc(100% - 15px), 
    98% calc(100% - 10px),
    96% calc(100% - 18px),
    94% calc(100% - 12px),
    92% calc(100% - 16px),
    90% calc(100% - 10px),
    88% calc(100% - 17px),
    86% calc(100% - 11px),
    84% calc(100% - 15px),
    82% calc(100% - 10px),
    80% calc(100% - 18px),
    78% calc(100% - 12px),
    76% calc(100% - 16px),
    74% calc(100% - 10px),
    72% calc(100% - 17px),
    70% calc(100% - 11px),
    68% calc(100% - 15px),
    66% calc(100% - 10px),
    64% calc(100% - 18px),
    62% calc(100% - 12px),
    60% calc(100% - 16px),
    58% calc(100% - 10px),
    56% calc(100% - 17px),
    54% calc(100% - 11px),
    52% calc(100% - 15px),
    50% calc(100% - 10px),
    48% calc(100% - 18px),
    46% calc(100% - 12px),
    44% calc(100% - 16px),
    42% calc(100% - 10px),
    40% calc(100% - 17px),
    38% calc(100% - 11px),
    36% calc(100% - 15px),
    34% calc(100% - 10px),
    32% calc(100% - 18px),
    30% calc(100% - 12px),
    28% calc(100% - 16px),
    26% calc(100% - 10px),
    24% calc(100% - 17px),
    22% calc(100% - 11px),
    20% calc(100% - 15px),
    18% calc(100% - 10px),
    16% calc(100% - 18px),
    14% calc(100% - 12px),
    12% calc(100% - 16px),
    10% calc(100% - 10px),
    8% calc(100% - 17px),
    6% calc(100% - 11px),
    4% calc(100% - 15px),
    2% calc(100% - 10px),
    0% calc(100% - 18px)
  );
}

.timeline-item:hover .timeline-content {
  transform: translateY(-6px) rotate(0.5deg);
  border-color: rgba(197, 160, 89, 0.6);
}

.timeline-step {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.3);
  padding: 4px 12px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 12px;
}

/* --- Search Popup Overlay --- */
.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 53, 37, 0.98);
  backdrop-filter: blur(15px);
  z-index: 1100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.search-popup.active {
  opacity: 1;
  visibility: visible;
}

.search-popup-close {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 2.5rem;
  color: var(--color-white);
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-popup-close:hover {
  color: var(--color-accent);
  transform: rotate(90deg);
}

.search-popup-form {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  text-align: center;
}

.search-popup-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 2rem;
  padding: 10px 0;
  outline: none;
  transition: var(--transition-fast);
  text-align: center;
}

.search-popup-input:focus {
  border-color: var(--color-accent);
}

/* --- Interactive Filter Grid --- */
.filter-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 8px 20px;
  margin: 5px;
  border-radius: 30px;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--color-primary);
  border-color: var(--color-accent);
  background-color: rgba(200, 169, 81, 0.05);
}

/* --- Stats Counters --- */
.counter-box {
  text-align: center;
  padding: 30px 20px;
}

.counter-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
  margin-bottom: 10px;
}

.counter-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-light);
}

/* --- Doctor Image & Profile Card (Mobile & Desktop Optimized) --- */
.doctor-profile-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.doctor-profile-card:hover {
  box-shadow: none;
  border-color: transparent;
}

.doctor-img-frame {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
  padding: 0;
}

.doctor-img-frame::before {
  display: none;
}

.doctor-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(74, 53, 37, 0.15);
  border: 4px solid var(--color-white);
  outline: 1px solid rgba(197, 160, 89, 0.4);
}

.doctor-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.doctor-img-wrap:hover img {
  transform: scale(1.04);
}

.doctor-badge-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.4);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.arogyam-motto-box {
  background: rgba(245, 239, 228, 0.6);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  padding: 12px 18px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.98rem;
  margin-bottom: 20px;
}

.doctor-spec-card {
  background-color: var(--color-white);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: 14px;
  padding: 14px 18px;
  height: 100%;
  transition: var(--transition-fast);
}

.doctor-spec-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 53, 37, 0.06);
}

@media (max-width: 767px) {
  .doctor-profile-card {
    padding: 24px 16px;
    border-radius: 20px;
  }
  .doctor-img-frame {
    max-width: 280px;
  }
  .arogyam-motto-box {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  .doctor-action-btns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }
  .doctor-action-btns .btn-gold,
  .doctor-action-btns .btn-outline-gold {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: 0 !important;
  }
}

/* --- Footer styling --- */
.footer-dark {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 30px 0;
  border-top: 5px solid var(--color-accent);
}

.footer-dark h5 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 25px;
}

.footer-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
  display: inline-block;
}

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

.footer-social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  margin-right: 10px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.footer-social-links a:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-5px);
}

.newsletter-form .form-control {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-radius: 30px 0 0 30px;
  padding: 12px 20px;
  font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  box-shadow: none;
  color: var(--color-white);
}

.newsletter-form .btn {
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: var(--color-primary);
  border-radius: 0 30px 30px 0;
  padding: 0 25px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.newsletter-form .btn:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.8rem;
}

/* --- Breadcrumbs (Interior Hero Sections) --- */
.breadcrumb-wrap {
  padding: 280px 0 150px 0;
  background-image: linear-gradient(rgba(74, 53, 37, 0.75), rgba(74, 53, 37, 0.75)), url('../images/Hero1.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.breadcrumb-wrap h1, 
.breadcrumb-wrap .font-heading {
  color: var(--color-white) !important;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.breadcrumb-custom {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  font-size: 0.85rem;
}

.breadcrumb-custom li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7) !important;
}

.breadcrumb-custom li a {
  color: var(--color-accent) !important;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.breadcrumb-custom li a:hover {
  color: var(--color-white) !important;
}

.breadcrumb-custom li::after {
  content: '/';
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.3) !important;
}

.breadcrumb-custom li:last-child::after {
  content: none;
}

.breadcrumb-custom li.active {
  color: var(--color-white) !important;
  font-weight: 500;
}

/* --- Image Gallery (Masonry + Lightbox) --- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}

.gallery-item {
  padding: 10px;
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.gallery-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-subtle);
  cursor: pointer;
}

.gallery-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(74, 53, 37, 0.85);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  padding: 20px;
  text-align: center;
}

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

.gallery-inner:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h5 {
  color: var(--color-white);
  margin-bottom: 5px;
}

.gallery-overlay span {
  font-size: 0.8rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Skeleton Loading (for mock content loading) --- */
.skeleton {
  background: linear-gradient(90deg, #F0EDE6 25%, #E5E1D7 50%, #F0EDE6 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite;
  border-radius: 4px;
}

@keyframes loadingSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- Responsive Adaptations --- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (max-width: 991px) {
  .navbar-custom {
    background-color: var(--color-bg) !important;
    padding: 12px 16px !important;  /* Comfortable spacing on mobile */
    border-bottom: 1px solid rgba(74, 53, 37, 0.05);
  }
  
  .navbar-custom .nav-link::after {
    display: none;
  }
  
  /* Hide search trigger and book appointment button in collapsible menu on mobile/tablet */
  .navbar-nav .nav-item:nth-last-child(1),
  .navbar-nav .nav-item:nth-last-child(2) {
    display: none !important;
  }
  
  .navbar-collapse {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-medium);
    margin-top: 10px;
  }
  
  .dropdown-mega-menu {
    position: relative !important;
    box-shadow: none;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
    background-color: rgba(74, 53, 37, 0.02);
  }
  
  .hero-section {
    flex-direction: column !important; /* Stack background image and text container vertically */
    align-items: stretch !important;
    padding-top: 85px !important; /* Reduced padding-top to eliminate large top space */
    padding-bottom: 50px;
    text-align: center;
    min-height: auto;
  }
  
  .hero-background-img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.15 / 1; /* Aspect ratio lock for responsive scaling to show full image */
    mask-image: none;
    -webkit-mask-image: none;
    margin-bottom: 25px;
    border-radius: var(--border-radius-md);
    background-size: cover;
    background-position: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
  }
  
  .scroll-indicator {
    display: none !important; /* Hide floating scrolls that overlap buttons on mobile */
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .timeline-container {
    padding: 20px 0;
  }
  
  .timeline-item {
    width: 50%; /* 2 columns on tablet */
    padding: 0 10px;
  }
  
  .timeline-item:nth-child(3n)::before {
    display: block; /* Restore line on 3rd items */
  }
  
  .timeline-item:nth-child(2n)::before,
  .timeline-item:last-child::before {
    display: none !important; /* Hide line on every second item in 2-column layout and on the last item */
  }
  
  .timeline-dot {
    top: 10px;
    left: 50% !important;
    transform: translateX(-50%);
  }
  
  .gallery-item {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .timeline-container::before {
    display: block !important; /* Restore vertical line track */
    left: 20px;
    background: repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 4px,
      var(--color-accent) 4px,
      var(--color-accent) 12px
    );
  }
  
  .timeline-item {
    width: 100% !important;
    padding-left: 50px !important;
    padding-right: 0 !important;
    margin-bottom: 40px;
  }
  
  .timeline-item::before {
    display: none !important; /* Hide horizontal line connector */
  }
  
  .timeline-dot {
    left: 8px !important;
    transform: none !important;
    top: 15px !important;
  }
  
  .timeline-content {
    margin-top: 0 !important;
    height: auto !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .gallery-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .sticky-appointment-btn {
    display: none !important;
  }
  
  .floating-whatsapp {
    bottom: 25px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
  
  .floating-call {
    bottom: 85px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
  }
  
  .back-to-top {
    bottom: 145px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 576px) {
  .site-logo {
    height: 75px;
    max-width: 300px;
  }

  .site-logo-footer {
    height: 120px;
    max-width: 380px;
  }

  .navbar-brand-text {
    font-size: 1.05rem;
  }
  
  .navbar-brand-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }
  
  .btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .btn-wrap .btn-gold,
  .btn-wrap .btn-outline-gold {
    width: 100%;
    max-width: 280px;
    margin-right: 0 !important;
    text-align: center;
  }
  
  .hero-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 0.75rem;
  }
  
  .counter-value {
    font-size: 2.5rem;
  }
  
  .counter-label {
    font-size: 0.75rem;
  }
}

/* --- Arogyam Ayurveda Poster Elements & Price Badges --- */
.arogyam-banner-box {
  background: linear-gradient(135deg, rgba(46, 77, 50, 0.95), rgba(28, 48, 31, 0.98));
  color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-medium);
}

.arogyam-badge {
  background: #1e4d2b;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  display: inline-block;
  border: 1px solid #99c2a2;
  font-size: 0.95rem;
}

.arogyam-motto {
  color: #d4af37;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.price-badge-green {
  background: linear-gradient(135deg, #1b4d2e, #0f331d);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #7cb387;
  text-transform: none;
}

.btn-contact-card {
  background: linear-gradient(135deg, #1b4d2e, #0f331d);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 30px;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid #7cb387;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-contact-card:hover {
  background: linear-gradient(135deg, #c5a059, #a37f3a);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border-color: #c5a059;
}

.therapy-card-arogyam {
  background: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(74, 53, 37, 0.12);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.therapy-card-arogyam:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}

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

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

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

.therapy-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.therapy-card-title {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.therapy-card-hindi {
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.therapy-card-benefit {
  color: #555555;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 15px;
  flex-grow: 1;
}

.feature-box-arogyam {
  background: #fcf9f2;
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--border-radius-md);
  padding: 25px;
  height: 100%;
}

.feature-box-arogyam h5 {
  color: #1b4d2e;
  font-weight: 700;
  border-bottom: 2px solid #d4af37;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.feature-box-arogyam ul {
  padding-left: 0;
  list-style: none;
}

.feature-box-arogyam ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #333333;
  font-size: 0.95rem;
  font-weight: 500;
}

.feature-box-arogyam ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #1b4d2e;
  font-weight: bold;
}

.conditions-box-arogyam ul li::before {
  content: '•';
  color: #d4af37;
  font-size: 1.3rem;
  line-height: 1;
}

/* --- Why Choose Us Custom Card --- */
.why-choose-card {
  background-color: var(--color-white);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--border-radius-md);
  padding: 32px 24px;
  height: 100%;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-accent);
  transition: var(--transition-fast);
}

.why-choose-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent);
}

.why-choose-card:hover::before {
  width: 8px;
}

.why-choose-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(197, 160, 89, 0.12);
  color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.why-choose-card:hover .why-choose-icon {
  background-color: var(--color-primary);
  color: var(--color-accent);
  transform: scale(1.1) rotate(5deg);
}

.why-choose-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.why-choose-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- 5.5 Glossy Gallery Showcase Ticker Slider --- */
.gallery-ticker-section {
  background-color: rgba(245, 239, 228, 0.6);
  border-top: 1px solid rgba(197, 160, 89, 0.2);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  position: relative;
  overflow: hidden;
}

.ticker-badge {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: 50px;
  padding: 4px 14px;
  display: inline-block;
  margin-bottom: 8px;
}

.ticker-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 700;
}

.link-gold {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.link-gold:hover {
  color: var(--color-primary);
}

/* Glossy Cards */
.glossy-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(74, 53, 37, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  height: 100%;
}

.glossy-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(197, 160, 89, 0.2), inset 0 1px 0 rgba(255, 255, 255, 1);
  border-color: var(--color-accent);
}

.glossy-card-img-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(245, 239, 228, 0.75) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.glossy-card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

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

/* Glass Shine Overlay Effect */
.glossy-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  transition: all 0.75s ease;
  pointer-events: none;
  z-index: 2;
}

.glossy-card:hover .glossy-shine {
  left: 140%;
}

.glossy-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(74, 53, 37, 0.75);
  backdrop-filter: blur(8px);
  color: var(--color-accent);
  border: 1px solid rgba(197, 160, 89, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 30px;
  z-index: 3;
}

.glossy-card-body {
  padding: 16px 18px;
}

.glossy-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.glossy-card-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .glossy-card-img-wrap {
    height: 210px;
    padding: 6px;
  }
}

