/* Dr. G. R. Mallikarjuna - Custom Premium CSS Style Sheet */

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

/* CSS Variables for Premium Design System */
:root {
  --primary-color: #0d3b66;      /* Deep Trust Blue */
  --primary-light: #1f578c;     /* Lighter Blue */
  --secondary-color: #00b4d8;    /* Fresh Medical Teal */
  --secondary-hover: #0077b6;    /* Darker Teal */
  --accent-color: #e0a96d;       /* Muted Luxury Gold */
  --text-dark: #222222;          /* Rich Charcoal */
  --text-muted: #555555;         /* Soft Gray for Body */
  --bg-light: #f8f9fa;           /* Off-white */
  --bg-white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #0d3b66 0%, #0077b6 100%);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

h2.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

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

/* SVG Icon Helper */
.icon-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  flex-shrink: 0;
  width: 1.25em;
  height: 1.25em;
}

svg.lucide {
  stroke-width: 2.25px;
}

/* Sticky Header & Navigation */
.top-bar {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-contacts {
  display: flex;
  gap: 1.5rem;
}

.top-contacts a {
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  white-space: nowrap;
}

.top-contacts a:hover {
  color: var(--accent-color);
}

.top-address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 36px; /* below top-bar */
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  padding: 0.75rem 1rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
  line-height: 1.1;
}

.logo-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary-color);
  font-weight: 600;
  margin-top: 0.2rem;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav ul li a {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* Premium Buttons & Call to Actions (CTAs) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  white-space: nowrap; /* CRITICAL: Prevents button text breaking to multiple lines */
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 59, 102, 0.4);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--bg-white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  color: var(--bg-white);
  transform: translateY(-2px);
}

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

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

/* Auto-Scrolling Hero Slider */
.hero-slider-section {
  position: relative;
  width: 100%;
  height: 550px; /* Desktop Height */
  overflow: hidden;
  background-color: var(--primary-color);
}

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

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease-in-out, visibility 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

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

/* Hero Overlay & Text content */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(13, 59, 102, 0.9) 0%, rgba(13, 59, 102, 0.6) 50%, rgba(0, 180, 216, 0.4) 100%);
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  color: var(--bg-white);
}

.hero-badge {
  background-color: var(--accent-color);
  color: var(--primary-color);
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  width: fit-content;
  letter-spacing: 1px;
}

.hero-content h1 {
  color: var(--bg-white);
  margin-bottom: 1rem;
  max-width: 800px;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 650px;
  margin-bottom: 2rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Quick Navigation Links section */
.quick-nav-section {
  background-color: var(--bg-light);
  padding: 3rem 1rem;
  position: relative;
  z-index: 5;
}

.quick-nav-container {
  max-width: 1200px;
  margin: -6rem auto 0 auto; /* Overlap Hero Slider */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 0 1rem;
}

.quick-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border-top: 4px solid var(--secondary-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary-color);
}

.quick-card h3 {
  color: var(--primary-color);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.quick-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.quick-card .card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: auto;
}

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

/* Content Sections Base */
.section {
  padding: 5rem 1rem;
}

.section-alt {
  background-color: var(--bg-light);
  padding: 5rem 1rem;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* About Doctor Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.doctor-img-container {
  background: var(--bg-white);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
}

.doctor-img-container img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  display: block;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--bg-gradient);
  color: var(--bg-white);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  text-align: center;
  min-width: 110px;
}

.experience-badge span {
  display: block;
}

.experience-badge .years {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.doctor-info-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.doctor-title {
  font-family: 'Inter', sans-serif;
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.doctor-details-meta {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.meta-item {
  font-size: 0.9rem;
  color: var(--text-dark);
}

.meta-item strong {
  color: var(--primary-color);
  display: block;
}

.qualifications-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.qualifications-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.qualifications-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Services Grid (Home page & articles) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.2);
}

.service-icon {
  background-color: rgba(0, 180, 216, 0.1);
  color: var(--secondary-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.service-card .read-more-btn {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-card:hover .read-more-btn {
  color: var(--primary-color);
}

/* Video Section styling */
.video-section {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 5rem 1rem;
  position: relative;
}

.video-container-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.video-info h2 {
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.video-info p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.video-info h2::after {
  background: var(--accent-color);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255, 255, 255, 0.1);
}

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

/* Vision and Mission Cards */
.vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.vision-card {
  background: var(--bg-white);
  padding: 2.25rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border-left: 4px solid var(--accent-color);
}

.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-left-color: var(--primary-color);
}

.vision-card-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--accent-color);
}

.vision-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.vision-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Blog Feed / Article Links Section */
.blog-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  height: 200px;
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: var(--secondary-color);
  color: var(--bg-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}

.blog-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.blog-card-content p {
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.blog-card-content .read-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--secondary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Article Page Layout Details */
.article-header {
  background: var(--bg-gradient);
  color: var(--bg-white);
  padding: 5rem 1rem 7rem 1rem;
  text-align: center;
}

.article-header h1 {
  color: var(--bg-white);
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.article-meta-data {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.article-meta-data span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-container {
  max-width: 1200px;
  margin: -4rem auto 4rem auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 2.1fr 0.9fr;
  gap: 3rem;
}

.article-main-content {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Article rich text formatting styles */
.article-rich-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: #333333;
}

.article-rich-text h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
}

.article-rich-text h2::after {
  display: none; /* No underline marker in body flow */
}

.article-rich-text h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.article-rich-text ul, .article-rich-text ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-rich-text li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  color: #333333;
}

.article-rich-text blockquote {
  border-left: 4px solid var(--secondary-color);
  background-color: var(--bg-light);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  font-style: italic;
}

.article-rich-text blockquote p {
  margin-bottom: 0;
  color: var(--primary-color);
}

/* Callout Info box in articles */
.article-callout-box {
  background-color: #eef9fc;
  border: 1px solid #d0f0f7;
  border-left: 5px solid var(--secondary-color);
  border-radius: var(--border-radius-sm);
  padding: 1.75rem;
  margin: 2.5rem 0;
}

.article-callout-box h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.article-callout-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Sidebar styling for blog and contact */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-light);
}

.doctor-sidebar-profile {
  text-align: center;
}

.doctor-sidebar-profile img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  border: 4px solid var(--bg-light);
}

.doctor-sidebar-profile h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.doctor-sidebar-profile .designation {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.doctor-sidebar-profile .bio-short {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.contact-quick-list {
  list-style: none;
}

.contact-quick-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 0.9rem;
}

.contact-quick-list li:last-child {
  border-bottom: none;
}

.contact-quick-list li span.icon {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.contact-quick-list li a {
  color: var(--text-dark);
  font-weight: 600;
}

.contact-quick-list li a:hover {
  color: var(--secondary-color);
}

/* FAQ Accordion Styling */
.faq-accordion {
  margin-top: 2.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--bg-light);
  padding: 1.25rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  padding-top: 1rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer Section */
footer {
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 5rem 1rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  color: var(--bg-white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-about-logo {
  margin-bottom: 1.25rem;
}

.footer-about-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

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

.footer-contact-details {
  list-style: none;
}

.footer-contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}

.footer-contact-details li span.icon {
  color: var(--accent-color);
  font-size: 1rem;
  margin-top: 0.15rem;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.6);
  margin-left: 1.5rem;
}

.footer-bottom-links a:hover {
  color: var(--accent-color);
}

/* Floating Action Button (Mobile Call / WhatsApp) */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-white);
  box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
  grid-template-columns: 1fr 1fr;
  z-index: 999;
}

.mobile-sticky-cta a {
  padding: 0.9rem 1rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap; /* CRITICAL: Prevents line breaks inside sticky mobile ctas */
}

.mobile-cta-call {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.mobile-cta-whatsapp {
  background-color: #25d366;
  color: var(--bg-white);
}

/* RESPONSIVENESS AND MOBILE LAYOUTS */
@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .doctor-img-container {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .experience-badge {
    bottom: -10px;
    right: -10px;
  }

  .video-container-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .article-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .article-sidebar {
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  header {
    top: 0; /* Align directly to top if top-bar wraps or hides */
  }

  .top-bar {
    display: none; /* Hide desktop top bar on tablet/mobile to save space */
  }

  nav {
    display: none; /* We can use a simplified footer navigation or compact slide menu */
  }

  .hero-slider-section {
    height: 480px !important;
    aspect-ratio: auto !important;
  }

  .hero-content {
    padding: 2rem 1.25rem 1rem 1.25rem;
    align-items: center;
    text-align: center;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-content h1 {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    margin-bottom: 0.5rem;
  }

  .hero-content p {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
  }

  .hero-ctas .btn {
    font-size: 0.8rem;
    padding: 0.55rem 1rem;
  }

  .quick-nav-container {
    margin-top: 1.5rem; /* Remove overlay on mobile and display stack flow */
    grid-template-columns: 1fr;
  }

  .quick-card {
    padding: 1.25rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .article-main-content {
    padding: 2rem 1.25rem;
  }

  .article-header {
    padding: 3rem 1rem 5rem 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Show sticky mobile floating buttons */
  .mobile-sticky-cta {
    display: grid;
  }

  body {
    padding-bottom: 50px; /* offset for sticky mobile bar */
  }
}

@media (max-width: 480px) {
  /* Ultra-small mobile scaling optimizations */
  
  /* CRITICAL: Scale down long headings dynamically to fit nicely in one or two lines without overflow */
  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  .hero-slider-section {
    height: 440px !important;
  }

  .hero-content {
    padding: 2.5rem 1rem 1rem 1rem !important;
  }

  .hero-content h1 {
    font-size: 1.25rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
    white-space: normal;
  }

  .hero-content p {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1rem !important;
  }

  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    width: 100% !important;
    align-items: center !important;
  }

  .hero-ctas .btn {
    width: 90% !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.8rem !important;
  }
  
  .btn, .mobile-sticky-cta a {
    font-size: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
  }
}

/* ==========================================================================
   Responsive Dropdown, Submenu & Hamburger Menu Styles
   ========================================================================== */

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
  outline: none;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: left center;
}

/* Active Hamburger State (X transition) */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(-1.5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(1.5px);
}

/* Overlay background */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(13, 59, 102, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1004;
}

.nav-overlay.active {
  display: block;
}

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

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-sm);
  min-width: 260px;
  padding: 0.75rem 0;
  display: none;
  flex-direction: column;
  z-index: 1002;
  border: 1px solid rgba(0,0,0,0.05);
  margin-top: 0.5rem;
}

.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--bg-white);
  border-left: 1px solid rgba(0,0,0,0.05);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 0.6rem 1.25rem;
  display: block;
  color: var(--text-dark) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  border-bottom: none !important;
  text-align: left;
  transition: var(--transition-fast);
}

.dropdown-menu li a:hover {
  background-color: var(--bg-light);
  color: var(--secondary-color) !important;
  padding-left: 1.5rem;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: flex;
  }
}

/* Mobile Adjustments (Header & Hamburger Drawer) */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  header nav {
    display: block !important; /* Override original display: none */
    position: fixed;
    top: 0;
    right: -280px; /* Hidden state */
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.12);
    padding: 6rem 2rem 2rem 2rem;
    transition: var(--transition-smooth);
    z-index: 1005;
    overflow-y: auto;
  }

  header nav.active {
    right: 0; /* Slide in drawer */
  }

  header nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  header nav ul li {
    width: 100%;
  }

  header nav ul li a {
    font-size: 1.05rem;
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-light);
  }

  header nav ul li a.btn {
    border-bottom: none;
    margin-top: 1rem;
    text-align: center;
  }

  /* Mobile Dropdown styles */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: #fcfcfc;
    border-left: 3px solid var(--secondary-color);
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0 0.5rem 0.5rem;
    display: none; /* Controlled via JS */
    width: 95%;
    min-width: 0;
  }

  .dropdown-menu::before {
    display: none; /* Hide desktop arrow on mobile */
  }

  .dropdown-menu.open {
    display: flex;
  }

  .dropdown-menu li a {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.75rem !important;
    border-bottom: none !important;
  }

  /* Sticky footer overflow fix */
  .mobile-sticky-cta {
    display: flex !important;
    width: 100% !important;
    grid-template-columns: none !important;
  }
  
  .mobile-sticky-cta a {
    flex: 1 1 50%;
    width: 50% !important;
    text-align: center;
    padding: 0.65rem 0.25rem !important;
    font-size: 0.8rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  .mobile-sticky-cta a img.icon-inline {
    width: 1.15em !important;
    height: 1.15em !important;
  }
  
  /* Disable body scroll when menu is active */
  body.menu-open {
    overflow: hidden;
  }
  
  /* Fix stacking context blurring of mobile menu drawer */
  body.menu-open header {
    z-index: 1010 !important;
  }

  header nav {
    background: #ffffff !important;
  }
  
  /* Article header meta responsive stacking */
  .article-meta-data {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  /* Contact info grid mobile override */
  .contact-info-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    text-align: center !important;
  }
}

/* Contact info grid base styles */
.contact-info-grid {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 2rem;
  text-align: left;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

/* Tag Cloud Base Styles */
.tag-cloud-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1000px;
  margin: 2.5rem auto 0 auto;
}

.tag-item {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: default;
  box-shadow: var(--shadow-sm);
  background: var(--bg-white);
}

.tag-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Curated Tag Colors */
.tag-blue {
  background: rgba(56, 189, 248, 0.08);
  color: #0ea5e9;
  border-color: rgba(56, 189, 248, 0.25);
}
.tag-blue:hover {
  background: #0ea5e9;
  color: white;
}

.tag-green {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.25);
}
.tag-green:hover {
  background: #10b981;
  color: white;
}

.tag-orange {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
}
.tag-orange:hover {
  background: #f59e0b;
  color: white;
}

.tag-purple {
  background: rgba(139, 92, 246, 0.08);
  color: #8b5cf6;
  border-color: rgba(139, 92, 246, 0.25);
}
.tag-purple:hover {
  background: #8b5cf6;
  color: white;
}

.tag-red {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
}
.tag-red:hover {
  background: #ef4444;
  color: white;
}

/* Mobile Tag Cloud 3-Column Grid Override */
@media (max-width: 480px) {
  .tag-cloud-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5rem !important;
    padding: 0 0.5rem !important;
    margin-top: 1.5rem !important;
  }
  
  .tag-item {
    font-size: 0.72rem !important;
    padding: 0.45rem 0.25rem !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    white-space: normal !important;
    border-radius: 6px !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
}
