/* ==========================================================================
   SHRAVANA SPEECH AND HEARING CENTRE - DESIGN SYSTEM & STYLES
   Colors: Primary Green (#008744 / #00A651), Accent Gold (#ECA100 / #F59E0B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #008744;
  --primary-hover: #006e37;
  --primary-light: #f0fdf4;
  --primary-subtle: #f0fdf4;

  --secondary: #eca100;
  --secondary-hover: #d97706;
  --secondary-light: #fffbeb;

  --dark: #18181b;
  --dark-surface: #27272a;
  --text-main: #3f3f46;
  --text-dark: #18181b;
  --text-muted: #71717a;
  --text-light: #a1a1aa;

  --bg-light: #fafafa;
  --white: #ffffff;
  --border-light: #f4f4f5;
  --border-primary: #d1fae5;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 12px -2px rgba(24, 24, 27, 0.04), 0 2px 6px -1px rgba(24, 24, 27, 0.02);
  --shadow-lg: 0 12px 24px -4px rgba(10, 92, 54, 0.04), 0 4px 12px -2px rgba(10, 92, 54, 0.02);
  --shadow-xl: 0 20px 40px -10px rgba(24, 24, 27, 0.06), 0 10px 20px -5px rgba(24, 24, 27, 0.03);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-dark);
  line-height: 1.25;
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
   TOP BAR & NAVIGATION
   ========================================================================== */

.top-bar {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: none;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.top-phone-btn:hover {
  background-color: var(--white);
  color: var(--primary);
}

.top-phone-btn:hover i {
  color: var(--primary) !important;
}

.top-info svg,
.top-info i {
  color: var(--white);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-emergency {
  background: rgba(236, 161, 0, 0.2);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-svg {
  width: 48px;
  height: 48px;
}

.brand-logo-img {
  height: 95px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  padding-bottom: 4px;
  transition: transform var(--transition-fast);
}

@media (max-width: 768px) {
  header .brand-logo-img {
    height: 90px;
    padding-bottom: 4px;
  }

  footer .brand-logo-img {
    height: 65px;
  }
}

.brand-logo-img:hover {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-hover);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px 0 rgba(10, 92, 54, 0.08);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(10, 92, 54, 0.12);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--dark);
  box-shadow: 0 1px 2px 0 rgba(204, 160, 26, 0.08);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(204, 160, 26, 0.12);
}

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

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pill-tag-gold {
  background-color: var(--secondary-light);
  color: #b45309;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

.section-padding {
  padding: 60px 0;
}

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

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

.bg-subtle-green {
  background-color: var(--primary-subtle);
}

.bg-dark {
  background-color: var(--dark);
  color: var(--white);
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 35px auto;
}

.section-title h2 {
  font-size: 2.25rem;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fef3c7 100%);
  padding: 60px 0 80px 0;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--dark);
}

span.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

span.highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(236, 161, 0, 0.3);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 0;
}

/* Full Width Hero Slider Styles */
.hero.full-width-hero {
  padding: 0;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #fef3c7 100%);
  position: relative;
  width: 100%;
}

.hero.full-width-hero .hero-slide {
  position: relative;
  padding: 0;
}

.hero-slider-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 1200px) {
  .hero-slider-img {
    height: 500px;
  }
}

@media (max-width: 992px) {
  .hero-slider-img {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .hero-slider-img {
    height: 450px;
    object-position: right center;
  }
}

@media (max-width: 576px) {
  .hero-slider-img {
    height: 400px;
    object-position: right center;
  }
}

@media (max-width: 400px) {
  .hero-slider-img {
    height: 360px;
    object-position: right center;
  }
}

.hero-slider {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
}

.hero-slide {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-40px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  width: 100%;
  padding: 0 0 115px 0;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-slide-content {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
}

.hero-image-side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Hero Slide Image Wrapper - Clean Inline Flow */
.image-placeholder {
  width: 100%;
  max-width: 480px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Mask to blend edges smoothly into the background */
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);

  /* Blend mode to integrate white background graphic assets seamlessly */
  mix-blend-mode: multiply;
}

.image-placeholder:hover {
  transform: translateY(-4px);
}

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

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--text-light);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-dots .dot:hover {
  background-color: var(--primary);
}

.slider-dots .dot.active {
  width: 28px;
  background-color: var(--primary);
}

/* Responsive Stacking for Slider Content */
@media (max-width: 991px) {
  .hero-slide {
    padding: 0 0 100px 0;
  }

  .hero-slide-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text-side {
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .image-placeholder {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* Trust / Stats Bar Section styling - Floating Pill shape */
.stats-bar-section {
  background: linear-gradient(135deg, var(--primary) 0%, #006b35 100%);
  color: var(--white);
  padding: 14px 28px;
  max-width: 880px;
  margin: -32px auto 30px auto;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(0, 135, 68, 0.15);
  position: relative;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  align-items: center;
}

.stats-bar-item {
  position: relative;
  padding: 4px 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stats-bar-item:hover {
  transform: translateY(-2px);
}

.stats-bar-item::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.15);
}

.stats-bar-item:last-child::after {
  display: none;
}

.stats-bar-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.1;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stats-bar-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .stats-bar-section {
    border-radius: var(--radius-lg);
    margin: -20px 20px 30px 20px;
    width: calc(100% - 40px);
    padding: 20px;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats-bar-item {
    padding: 0;
  }

  .stats-bar-item::after {
    display: none;
  }
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.floating-card-1 {
  bottom: -20px;
  left: -20px;
}

.floating-card-2 {
  top: 30px;
  right: -20px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.floating-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.floating-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */

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

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

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 30px;
}

.services-grid .card {
  grid-column: span 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.services-grid .card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Center the last 2 cards in the second row of a 3-column layout */
.services-grid .card:nth-child(4) {
  grid-column: 2 / span 2;
}

.services-grid .card:nth-child(5) {
  grid-column: 4 / span 2;
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .services-grid .card {
    grid-column: auto !important;
  }
}

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

.card-header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-header-row .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.card-header-row h3 {
  margin-bottom: 0;
  font-size: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.02), 0 1px 2px -1px rgba(15, 23, 42, 0.01);
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px -10px rgba(0, 135, 68, 0.15), 0 4px 12px -5px rgba(0, 135, 68, 0.05);
  background: linear-gradient(180deg, var(--white) 0%, rgba(240, 253, 244, 0.3) 100%);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-img-wrapper {
  position: relative;
  width: calc(100% + 56px);
  margin: -28px -28px 20px -28px;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

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

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

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 135, 68, 0.2);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.card-list {
  margin-bottom: 24px;
}

.card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 8px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-list li {
  transform: translateX(4px);
}

.card-list li svg,
.card-list li i {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-list li svg,
.card:hover .card-list li i {
  transform: scale(1.15);
  color: var(--secondary-hover);
}

.card .btn-outline {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .btn-outline {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.2);
}

/* ==========================================================================
   HEARING TEST SIMULATOR WIDGET
   ========================================================================== */

.test-widget {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f7ec 100%);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 135, 68, 0.12);
}

.test-widget h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.test-widget p {
  color: var(--text-main);
  margin-bottom: 24px;
}

.audio-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.freq-btn {
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.freq-btn:hover,
.freq-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 135, 68, 0.15);
}

.freq-btn:hover .freq-desc,
.freq-btn.active .freq-desc {
  color: rgba(255, 255, 255, 0.85);
}

.freq-label {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
}

.freq-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.volume-slider-box {
  background: rgba(0, 135, 68, 0.04);
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dark);
  border: 1px solid rgba(0, 135, 68, 0.08);
}

.volume-slider-box input[type="range"] {
  flex-grow: 1;
  accent-color: var(--secondary);
}

/* ==========================================================================
   HEARING AID CATALOG & FILTERS
   ========================================================================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--secondary);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-img-box {
  height: 200px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.product-img-box img {
  max-height: 160px;
  object-fit: contain;
}

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

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 20px 0;
}

.feature-tag {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.product-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   PEDIATRIC MILESTONE CHECKER WIDGET
   ========================================================================== */

.milestone-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.milestone-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-light);
}

.milestone-tab-btn {
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

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

.milestone-list {
  display: grid;
  gap: 14px;
}

.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-light);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.milestone-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin-top: 2px;
  cursor: pointer;
}

/* ==========================================================================
   BOOKING & CONTACT FORM
   ========================================================================== */

.booking-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.form-control {
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(0, 135, 68, 0.15);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 24, 27, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 550px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background-color: #f4f4f5;
  /* Mild, clean light gray */
  color: var(--text-main);
  padding-top: 70px;
  border-top: 1px solid rgba(24, 24, 27, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--secondary);
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  background-color: var(--primary);
  color: var(--white);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
}

.footer-bottom .developer-credit {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--secondary-light);
  text-decoration: underline;
}

/* ==========================================================================
   BRAND GRID, PRICING MATRIX, TIMELINE, AND SPEECH THERAPY CLASSES
   ========================================================================== */

/* Brand Carousel Marquee Banner */
.brand-carousel-section {
  background-color: var(--white);
  padding: 35px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 50px;
  animation: scroll-marquee 24s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
}

.partner-logo {
  max-width: 240px;
  max-height: 90px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.marquee-item:hover .partner-logo {
  transform: scale(1.06);
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 20px));
  }
}

/* Pricing & Tech Matrix */
.tech-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.tech-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

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

.tech-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.tech-popular-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tech-header {
  padding: 24px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.tech-card.popular .tech-header {
  background: var(--primary-light);
}

.tech-name {
  font-size: 1.35rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.tech-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 10px;
}

.tech-price span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.tech-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tech-features-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.tech-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}

.tech-features-list li svg,
.tech-features-list li i {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.tech-btn-box {
  margin-top: auto;
}

/* Home Care Timeline Journey */
.timeline-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
  margin-top: 50px;
}

.timeline-step {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px 24px 24px;
  border: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.timeline-step:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.timeline-badge {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: -48px auto 16px auto;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.timeline-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Speech Therapy Styles */
.speech-intro-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 40px;
}

.speech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.speech-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.speech-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.speech-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.speech-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: var(--secondary-light);
  color: var(--secondary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.speech-card h3 {
  font-size: 1.25rem;
  color: var(--text-dark);
}

.speech-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.speech-list li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.speech-list li::before {
  content: '•';
  color: var(--secondary-hover);
  font-weight: bold;
}

/* ==========================================================================
   SCROLL REVEAL & PAGE LOAD ANIMATIONS
   ========================================================================== */

/* Scroll Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities - Slower, Staggered Steps */
.delay-100 {
  transition-delay: 150ms;
}

.delay-200 {
  transition-delay: 300ms;
}

.delay-300 {
  transition-delay: 450ms;
}

.delay-400 {
  transition-delay: 600ms;
}

.delay-500 {
  transition-delay: 750ms;
}

/* Hero Animation on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

.hero-fade-in {
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-fade-in.delay-100 {
  animation-delay: 150ms;
}

.hero-fade-in.delay-200 {
  animation-delay: 300ms;
}

.hero-fade-in.delay-300 {
  animation-delay: 450ms;
}

.hero-fade-in.delay-400 {
  animation-delay: 600ms;
}

.hero-fade-in.delay-500 {
  animation-delay: 750ms;
}

.hero-fade-in.delay-600 {
  animation-delay: 900ms;
}

/* ==========================================================================
   FAQ SECTION ACCORDION
   ========================================================================== */
.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  background: var(--white);
  user-select: none;
  transition: background 0.25s ease;
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-question h4 {
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--text-dark);
  font-weight: 600;
  transition: color 0.25s ease;
}

.faq-item:hover .faq-question h4 {
  color: var(--primary);
}

.faq-toggle {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--white);
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--border-light);
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   FLOATING WHATSAPP & MOBILE CTA BAR
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08) rotate(8deg);
  background-color: #20ba5a;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  box-shadow: 0 -4px 16px rgba(0, 135, 68, 0.15);
  z-index: 1001;
  grid-template-columns: repeat(3, 1fr);
}

.mobile-cta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.2s ease;
  gap: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-cta-item:last-child {
  border-right: none;
}

.mobile-cta-item svg,
.mobile-cta-item i {
  transition: transform 0.2s ease;
}

.mobile-cta-item:active svg,
.mobile-cta-item:active i {
  transform: scale(0.9);
}

.mobile-cta-item:active {
  background-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 768px) {
  .whatsapp-float {
    display: none;
  }

  .mobile-cta-bar {
    display: grid;
  }

  body {
    padding-bottom: 60px;
    /* Space for sticky bar */
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

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

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

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

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .booking-box {
    padding: 24px 18px;
  }

  .modal-content {
    padding: 24px 18px;
    width: 92%;
    max-height: 88vh;
    overflow-y: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-control {
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  select.form-control {
    max-width: 100%;
    text-overflow: ellipsis;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 30px;
  }

  .footer-desc,
  .footer-nav-col,
  .footer-services-col {
    display: none;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
  }

  .footer-brand .brand-logo {
    justify-content: center;
  }

  .footer-contact-col p {
    text-align: justify;
  }

  .test-widget {
    padding: 24px 16px;
    margin: 24px 0;
  }

  .volume-slider-box {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px 16px;
    padding: 16px;
  }

  .volume-slider-box span:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .volume-slider-box input[type="range"] {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    margin: 0;
  }

  .volume-slider-box #volValue {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .volume-slider-box #stopAudioBtn {
    grid-column: 1 / span 3;
    grid-row: 2;
    width: 100%;
    margin-top: 4px;
  }

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

/* Inner Pages Breadcrumb Banner */
.inner-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0 80px 0;
  color: var(--white);
  overflow: hidden;
}

.inner-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.92) 0%, rgba(17, 24, 39, 0.85) 100%);
  z-index: 1;
}

.inner-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.breadcrumb-trail a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-trail a:hover {
  color: var(--white);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
}

.breadcrumb-current {
  color: #fbbf24;
  /* A premium warm gold to match Shravana theme tags */
  font-weight: 600;
}

.inner-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--white);
}

.inner-banner p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .inner-banner {
    padding: 80px 0 60px 0;
  }

  .inner-banner h1 {
    font-size: 2rem;
  }

  .inner-banner p {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   ABOUT US PAGE SPECIFIC STYLES
   ========================================================================== */

.about-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 992px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.about-intro-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
}

.doctors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 992px) {
  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.profile-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.profile-card:hover {
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.profile-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-row.reverse {
  grid-template-columns: 1fr 320px;
}

@media (max-width: 992px) {

  .profile-row,
  .profile-row.reverse {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 35px;
  }
}

.profile-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.profile-avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-full);
  padding: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--shadow-lg);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--white);
}

.profile-avatar svg {
  width: 65%;
  height: 65%;
  fill: var(--text-muted);
}

.profile-meta {
  margin-top: 10px;
}

.profile-meta h3 {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.profile-role {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.profile-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.credentials-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px 0;
}

.credentials-badge {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

.credentials-badge.primary-badge {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--border-primary);
}

.credentials-badge.gold-badge {
  background-color: var(--secondary-light);
  color: #b45309;
  border-color: #fde68a;
}

.profile-bio-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 24px;
}

.profile-bio-text p {
  margin-bottom: 12px;
}

.profile-bio-text p:last-child {
  margin-bottom: 0;
}

.specialty-list-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.specialty-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.specialty-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--white) 0%, rgba(240, 253, 244, 0.4) 100%);
}

.specialty-card i {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.specialty-card:hover i {
  background: var(--primary);
  color: var(--white);
  transform: rotate(360deg);
}

.specialty-card span {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}

/* Academic Tabs styling */
.about-tabs {
  margin-top: 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.about-tabs-nav {
  display: flex;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.about-tabs-btn {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
}

.about-tabs-btn:hover {
  color: var(--primary);
  background: rgba(0, 135, 68, 0.02);
}

.about-tabs-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--white);
}

.about-tab-panel {
  display: none;
  padding: 24px;
}

.about-tab-panel.active {
  display: block;
}

/* Academic lists */
.academic-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.academic-item {
  border-left: 3px solid var(--secondary);
  padding-left: 16px;
  position: relative;
}

.academic-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   HERO OVERLAY TEXT & TRANSITIONS
   ========================================================================== */

.hero-overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero-text-card {
  max-width: 620px;
  color: #ffffff;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transform: translateY(30px);
  opacity: 0;
  text-align: left;
}

.hero-slide.active .hero-text-card {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.hero-text-card h2 {
  font-size: 3.2rem;
  color: #ffffff;
  margin-top: 15px;
  margin-bottom: 20px;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-text-card p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  font-size: 1.15rem;
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .hero-overlay-content {
    background: rgba(0, 0, 0, 0.55);
  }

  .hero-text-card {
    padding: 0 20px;
    margin: 0;
    max-width: 100%;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-text-card h2 {
    font-size: 1.8rem;
    margin-top: 10px;
    margin-bottom: 12px;
  }

  .hero-text-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
}

.academic-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.academic-item-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.quote-block {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: 30px;
  font-style: italic;
  font-weight: 500;
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.quote-block p {
  margin: 0;
  line-height: 1.6;
  font-size: 1.02rem;
}

/* ==========================================================================
   AUDIOLOGIST PROFILE — MOBILE RESPONSIVE FIXES
   ========================================================================== */

@media (max-width: 768px) {

  /* --- Profile Card --- */
  .profile-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  /* --- Profile Card Header: stack vertically, smaller avatar --- */
  .profile-card-header {
    gap: 12px;
    margin-bottom: 16px;
  }

  .profile-avatar-wrapper {
    width: 130px;
    height: 130px;
    padding: 6px;
  }

  .profile-meta h3 {
    font-size: 1.25rem;
  }

  .profile-role {
    font-size: 0.85rem;
    letter-spacing: 0.3px;
  }

  /* --- Credentials badges: center and allow wrap --- */
  .credentials-badges {
    justify-content: center;
    gap: 6px;
    margin: 8px 0 16px 0;
  }

  .credentials-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  /* --- Bio text --- */
  .profile-bio-text {
    font-size: 0.93rem;
    margin-bottom: 16px;
  }

  /* --- Specialty grid: single column on mobile --- */
  .specialty-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .specialty-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .specialty-card i {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }

  .specialty-card span {
    font-size: 0.88rem;
  }

  /* --- Specialty list title --- */
  .specialty-list-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  /* --- Academic tabs: wrap buttons into 2 per row --- */
  .about-tabs-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .about-tabs-btn {
    flex: 1 1 50%;
    min-width: 0;
    padding: 10px 8px;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
  }

  .about-tab-panel {
    padding: 16px;
  }

  /* --- Academic list items --- */
  .academic-item-title {
    font-size: 0.9rem;
  }

  .academic-item-meta {
    font-size: 0.8rem;
  }

  .academic-item-desc {
    font-size: 0.83rem;
  }

  /* --- Quote block --- */
  .quote-block {
    padding: 16px;
    margin-top: 20px;
    font-size: 0.95rem;
  }

  .quote-block p {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {

  .profile-card {
    padding: 18px 12px;
  }

  .profile-avatar-wrapper {
    width: 110px;
    height: 110px;
  }

  .profile-meta h3 {
    font-size: 1.1rem;
  }

  /* Stack tab buttons 1 per row on very small screens */
  .about-tabs-btn {
    flex: 1 1 100%;
    border-bottom: 1px solid var(--border-light);
    border-left: 3px solid transparent;
    text-align: left;
    padding: 10px 14px;
  }

  .about-tabs-btn.active {
    border-left-color: var(--primary);
    border-bottom-color: var(--border-light);
  }
}