/* CSS Custom Variables for Design System */
:root {
  --primary: #0f766e;        /* Medical Teal */
  --primary-dark: #115e59;   /* Darker Teal */
  --primary-light: #ccfbf1;  /* Light Teal background */
  --secondary: #be185d;      /* Maternity Pink / Rose */
  --secondary-light: #fce7f3;/* Light Pink background */
  --dark: #0f172a;           /* Deep Slate for text */
  --light: #f8fafc;          /* Off-white background */
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #64748b;       /* Crisp borders and secondary text (contrast 4.6:1) */
  --gray-600: #334155;       /* High-contrast body copy (contrast 9.8:1) */
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

p {
  color: var(--gray-600);
}

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

/* Reusable Components */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

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

.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background-color: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: #9d114f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

/* Circular Logo Styling Everywhere */
.header-logo-img, .footer-logo-img, .about-logo-img {
  border-radius: 50% !important;
  aspect-ratio: 1/1 !important;
  object-fit: cover !important;
  background-color: var(--white) !important;
  border: 2px solid var(--gray-200) !important;
  box-shadow: var(--shadow-sm) !important;
}

.header-logo-img {
  height: 60px;
  width: 60px;
}

.footer-logo-img {
  height: 70px;
  width: 70px;
  margin-bottom: 1rem;
}

.about-logo-img {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
  padding: 6px;
  box-shadow: var(--shadow-md) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray-600);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0.25rem;
  display: inline-block;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-normal);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, var(--secondary-light) 0%, transparent 40%),
              radial-gradient(circle at 10% 80%, var(--primary-light) 0%, transparent 40%),
              linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
  padding: 8rem 0 6rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.hero-motto {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--dark) 40%, var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.meta-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}

.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.graphic-bg {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--primary-light), var(--secondary-light));
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  position: absolute;
  z-index: 1;
  animation: blob-morph 12s infinite alternate ease-in-out;
}

.graphic-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  z-index: 2;
  box-shadow: var(--shadow-xl);
  max-width: 360px;
  text-align: center;
  position: relative;
  transition: var(--transition-slow);
}

.graphic-card:hover {
  transform: translateY(-8px);
}

.graphic-card-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background-color: var(--secondary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
}

.graphic-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.graphic-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Quick Stats Section */
.stats {
  background-color: var(--white);
  padding: 3rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-card {
  padding: 1rem;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-desc {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* About Section */
.about {
  background-color: var(--white);
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: flex-start;
}

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

.about-image-card {
  background: linear-gradient(135deg, #0e7490, #164e63);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem 6.5rem 2rem; /* Increased bottom padding to 6.5rem to avoid text-badge overlap */
  position: relative;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  z-index: 2;
  text-align: center;
}

/* About Card Text Visibility Fix */
.about-image-card p {
  color: var(--white) !important;
}

.about-memorial {
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
  color: var(--white) !important;
}

.about-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background-color: var(--secondary);
  color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 220px;
  z-index: 3;
  text-align: center;
}

.badge-motto {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-content h2 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Procedures Section (What We Do) */
.procedures {
  background-color: var(--light);
  padding: 6rem 0; /* Reset to normal vertical padding */
}

.procedures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.proc-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.proc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.proc-icon-box {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-light);
  color: var(--secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.proc-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.proc-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.proc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.proc-tag {
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Core Visiting Specialists Section with Spacing Gap Above It */
.doctors {
  background-color: var(--white);
  padding-top: 8rem; /* Place the vertical spacing gap above this section */
  padding-bottom: 6rem;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.doc-card {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition-normal);
}

.doc-card:hover {
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.doc-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: var(--radius-full);
  margin: 0 auto 1.5rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 3px solid var(--white);
}

.doc-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.doc-specialty {
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.doc-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

/* Special Clinics Section */
.special-clinics {
  background: linear-gradient(180deg, var(--light) 0%, #e0f2fe 100%);
  padding: 6rem 0;
}

.camp-block {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.camp-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.camp-block-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.camp-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.camp-tag-cancer {
  background-color: #fef08a;
  color: #854d0e;
}

.camp-tag-ent {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.camp-block-meta h3 {
  font-size: 1.85rem;
  color: var(--dark);
}

.camp-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* Interactive Grid for Oncology Cards */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1500px;
}

.camp-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.camp-slogan {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.camp-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.camp-brand-logo .brand-text {
  display: flex;
  flex-direction: column;
  font-size: 0.55rem;
  font-weight: 800;
  color: #64748b;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Panel Card Flipping Architecture */
.panel-card {
    height: 240px;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.panel-card .flashcard {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    -webkit-transition: -webkit-transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Hover flip applies only on devices with fine pointer (mouse/trackpad) */
@media (hover: hover) and (pointer: fine) {
  .panel-card:hover .flashcard {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
  }
}

/* Flipped class toggle (works on both mobile touch and desktop click) */
.panel-card.flipped .flashcard {
  transform: rotateY(180deg) !important;
  -webkit-transform: rotateY(180deg) !important;
}

.panel-card .card-face {
  position: absolute;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

.panel-card .card-front {
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
}

.panel-card .card-front > * {
  position: relative;
  z-index: 2;
}

.panel-card .card-front::after {
  content: '';
  position: absolute;
  right: -25px;
  bottom: -25px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.panel-card .card-svg-bg {
  position: absolute;
  right: 5px;
  bottom: 0px;
  width: 130px;
  height: 130px;
  pointer-events: none;
  z-index: 1;
}

.panel-card .card-back {
  transform: rotateY(180deg) translateZ(1px);
  -webkit-transform: rotateY(180deg) translateZ(1px);
  background-color: var(--white);
  color: var(--dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

/* Updated Pastel Flash Card Schemes (Matching Reference Image 2) */

/* Card 1: Surgical Oncology (Yellow) */
.card-yellow .card-front {
  background: linear-gradient(135deg, #FFFDF0 0%, #FFF3D6 100%);
  border: 1px solid rgba(202, 138, 4, 0.2);
}
.card-yellow .card-front::after {
  background: radial-gradient(circle, #FDE68A 0%, rgba(254, 240, 138, 0.5) 70%, transparent 100%);
}
.card-yellow .card-front h4 { color: #1e293b; }
.card-yellow .card-qual { color: #64748b; }
.card-yellow .card-org { color: #A16207; font-weight: 600; }
.card-yellow .card-badge { background-color: #B8860B; color: #ffffff; }
.card-yellow .card-flip-action { color: #B8860B; }
.card-yellow .card-back { border: 2px solid #B8860B; background-color: #FFFDF7; }

/* Card 2: Head & Neck Surgery (Ice Blue) */
.card-gray .card-front {
  background: linear-gradient(135deg, #F0F7FF 0%, #E0F2FE 100%);
  border: 1px solid rgba(44, 82, 130, 0.2);
}
.card-gray .card-front::after {
  background: radial-gradient(circle, #BAE6FD 0%, rgba(186, 230, 253, 0.5) 70%, transparent 100%);
}
.card-gray .card-front h4 { color: #1e293b; }
.card-gray .card-qual { color: #64748b; }
.card-gray .card-org { color: #2C5282; font-weight: 600; }
.card-gray .card-badge { background-color: #355C7D; color: #ffffff; }
.card-gray .card-flip-action { color: #2B6CB0; }
.card-gray .card-back { border: 2px solid #355C7D; background-color: #F8FAFC; }

/* Card 3: Cancer Surgeon (Pink) */
.card-pink .card-front {
  background: linear-gradient(135deg, #FFF5F8 0%, #FCE4EC 100%);
  border: 1px solid rgba(216, 27, 96, 0.2);
}
.card-pink .card-front::after {
  background: radial-gradient(circle, #FBCFE8 0%, rgba(251, 207, 232, 0.5) 70%, transparent 100%);
}
.card-pink .card-front h4 { color: #1e293b; }
.card-pink .card-qual { color: #64748b; }
.card-pink .card-org { color: #C2185B; font-weight: 600; }
.card-pink .card-badge { background-color: #D81B60; color: #ffffff; }
.card-pink .card-flip-action { color: #D81B60; }
.card-pink .card-back { border: 2px solid #D81B60; background-color: #FFF5F8; }

/* Card 4: ENT Oncology (Mint Cyan / Teal) */
.card-blue .card-front {
  background: linear-gradient(135deg, #F0FDF9 0%, #E0F2F1 100%);
  border: 1px solid rgba(0, 121, 107, 0.2);
}
.card-blue .card-front::after {
  background: radial-gradient(circle, #99F6E4 0%, rgba(153, 246, 228, 0.5) 70%, transparent 100%);
}
.card-blue .card-front h4 { color: #1e293b; }
.card-blue .card-qual { color: #64748b; }
.card-blue .card-org { color: #00695C; font-weight: 600; }
.card-blue .card-badge { background-color: #00796B; color: #ffffff; }
.card-blue .card-flip-action { color: #00796B; }
.card-blue .card-back { border: 2px solid #00796B; background-color: #F0FDF9; }

/* Card 5: Medical Oncology (Sage Green) */
.card-green .card-front {
  background: linear-gradient(135deg, #F0FDF4 0%, #E8F5E9 100%);
  border: 1px solid rgba(46, 125, 50, 0.2);
}
.card-green .card-front::after {
  background: radial-gradient(circle, #BBF7D0 0%, rgba(187, 247, 208, 0.5) 70%, transparent 100%);
}
.card-green .card-front h4 { color: #1e293b; }
.card-green .card-qual { color: #64748b; }
.card-green .card-org { color: #1E5622; font-weight: 600; }
.card-green .card-badge { background-color: #2E7D32; color: #ffffff; }
.card-green .card-flip-action { color: #2E7D32; }
.card-green .card-back { border: 2px solid #2E7D32; background-color: #F0FDF4; }

/* Card 6: OPD Schedule (Blush Red / White) */
.card-white-red .card-front {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEBEE 100%);
  border: 1px solid rgba(198, 40, 40, 0.2);
}
.card-white-red .card-front::after {
  background: radial-gradient(circle, #FECACA 0%, rgba(254, 202, 202, 0.5) 70%, transparent 100%);
}
.card-white-red .card-front h4 { color: #1e293b; }
.card-white-red .card-qual { color: #64748b; }
.card-white-red .card-org { color: #C62828; font-weight: 600; }
.card-white-red .card-badge { background-color: #C62828; color: #ffffff; }
.card-white-red .card-flip-action { color: #C62828; }
.card-white-red .card-back { border: 2px solid #C62828; background-color: #FFF5F5; }

/* Card Purple: Gynaecology & Obstetrics (Royal Lavender) */
.card-purple .card-front {
  background: linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  border: 1px solid rgba(147, 51, 234, 0.2);
}
.card-purple .card-front::after {
  background: radial-gradient(circle, #E9D5FF 0%, rgba(233, 213, 255, 0.5) 70%, transparent 100%);
}
.card-purple .card-front h4 { color: #1e293b; }
.card-purple .card-qual { color: #64748b; }
.card-purple .card-org { color: #7E22CE; font-weight: 600; }
.card-purple .card-badge { background-color: #9333EA; color: #ffffff; }
.card-purple .card-flip-action { color: #9333EA; }
.card-purple .card-back { border: 2px solid #9333EA; background-color: #FAF5FF; }

/* General OPD Wide Static Card (Non-flipping) */
.general-opd-static-card {
  background: linear-gradient(135deg, #F0FDF9 0%, #E0F2FE 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.general-opd-static-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.4);
}

.general-opd-static-card .card-badge {
  display: inline-block;
  background-color: #0284c7;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.general-opd-static-card h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.general-opd-static-card .card-qual {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0284c7;
  margin-bottom: 1rem;
}

.general-opd-static-card .card-desc-body {
  border-top: 1px solid rgba(2, 132, 199, 0.15);
  padding-top: 1.25rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.65;
}

/* ENT Section Redesign Styles (Matching Reference Image 3) */
.ent-section-container {
  background-color: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--gray-200);
}

.ent-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 520px;
}

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

/* Left Navy Panel */
.ent-info-panel {
  background: linear-gradient(145deg, #0b2d5c 0%, #071c3b 100%);
  color: #ffffff;
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.ent-panel-bg-shapes {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ent-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #f59e0b;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.ent-doc-name {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.ent-doc-qual {
  font-size: 1.05rem;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ent-doc-spec {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.ent-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}

.ent-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ent-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ent-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.ent-detail-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ent-detail-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ent-detail-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

/* Right Showcase Panel */
.ent-showcase-panel {
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.ent-doctor-portrait-box {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.ent-doctor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.02) brightness(1.02);
}

.ent-quote-box {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 1.1rem 1.5rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 220px;
}

.ent-quote-mark {
  font-size: 2.8rem;
  font-family: Georgia, serif;
  color: #60a5fa;
  line-height: 0.7;
  display: block;
  margin-bottom: 0.2rem;
}

.ent-quote-text {
  font-size: 1.1rem;
  font-style: italic;
  font-family: Georgia, serif;
  color: #1e3a8a;
  line-height: 1.3;
  font-weight: 600;
}

.ent-quote-accent {
  width: 35px;
  height: 3px;
  background-color: #3b82f6;
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* Bottom Care Grid */
.ent-care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 1rem;
  gap: 0.75rem;
}

.ent-care-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.25rem;
}

.ent-care-icon {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ent-care-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0d9488;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.ent-care-desc {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Card Element Styles */
.panel-card .card-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.panel-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.panel-card .card-qual {
  font-size: 0.85rem;
  opacity: 0.95;
  margin-bottom: 1rem;
  font-weight: 600;
}

.panel-card .card-org {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
}

.panel-card .card-flip-action {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.panel-card .card-face.card-back h5 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.panel-card .card-face.card-back .card-back-text {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Single Static Doctor Card (ENT Section) styling */
.single-card-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  width: 100%;
}

.ent-doctor-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.ent-doctor-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.2);
}

.ent-doctor-card .card-badge {
  display: inline-block;
  background-color: #fbbf24;
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.ent-doctor-card h4 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
}

.ent-doctor-card .card-qual {
  font-size: 1.125rem;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ent-doctor-card .card-org {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 1rem;
}

.doctor-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.doc-detail-item .detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #93c5fd;
  letter-spacing: 0.05em;
}

.doc-detail-item .detail-val {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.4;
}

/* Contact & Appointment Section */
.contact {
  background-color: var(--white);
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-info-card, .appointment-form-container, .appointment-form {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Material Design Date Picker Modal Dialog styling */
.material-datepicker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}
.material-datepicker-modal.active {
    display: flex;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}
.material-datepicker-content {
  width: 328px;
  max-width: 92vw;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.responsive-email-link {
  word-break: keep-all;
  white-space: nowrap;
  font-size: 0.85rem;
}

.material-datepicker-header {
  background-color: var(--primary);
  padding: 20px 24px;
  color: var(--white);
}

.datepicker-header-subtitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  opacity: 0.8;
  text-transform: uppercase;
}

.datepicker-header-title {
  font-size: 30px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.25;
  font-family: 'Outfit', sans-serif;
}

.material-datepicker-body {
  padding: 16px;
}

.datepicker-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  margin-bottom: 12px;
}

.datepicker-current-month {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

.datepicker-nav-btns {
  display: flex;
  gap: 8px;
}

.datepicker-nav-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.datepicker-nav-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
}

.datepicker-nav-btn:disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}

.datepicker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  height: 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
  column-gap: 2px;
}

.datepicker-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-800);
  position: relative;
}

.datepicker-day-cell:hover:not(.disabled):not(.selected) {
  background-color: var(--primary-light);
  color: var(--primary);
}

.datepicker-day-cell.selected {
  background-color: var(--primary) !important;
  color: var(--white) !important;
  font-weight: 700;
}

.datepicker-day-cell.today:not(.selected) {
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.datepicker-day-cell.disabled {
  color: var(--gray-300);
  cursor: not-allowed;
  background: none !important;
}

.material-datepicker-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px 16px 16px;
  gap: 12px;
}

.datepicker-action-btn {
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.datepicker-action-btn:hover:not(:disabled) {
  background-color: var(--primary-light);
}

.datepicker-action-btn:disabled {
  color: var(--gray-300);
  cursor: not-allowed;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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



.contact-info-card {
  background-color: var(--light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--gray-200);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

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

.contact-item-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-item-text p {
  font-size: 0.95rem;
}

.contact-item-text a:hover {
  color: var(--primary);
}

.appointment-form, .general-contact-form {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-400);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  background-color: var(--light);
}

.form-group select {
  text-overflow: ellipsis;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
  background-color: var(--white);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-brand-motto {
  color: var(--secondary-light);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
}

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

.footer-phone-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--gray-400);
}

.footer-phone-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-phone-list a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Floating Contact Widget (BOTTOM LEFT) */
.floating-contact {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 12px;
  pointer-events: none;
}

/* Pulse trigger button */
.floating-trigger {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary), #9d114f);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(190, 24, 93, 0.4);
  cursor: pointer;
  border: none;
  position: relative;
  transition: var(--transition-normal);
  pointer-events: auto;
}

.floating-trigger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--secondary);
  border-radius: var(--radius-full);
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

.floating-trigger:hover {
  transform: scale(1.05) rotate(5deg);
}

/* Toggle rotation on active */
.floating-contact.active .floating-trigger {
  transform: rotate(135deg);
  background: var(--dark);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
}

.floating-contact.active .floating-trigger::after {
  animation: none;
}

/* Card content that pops up */
.floating-menu {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  padding: 1.5rem;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: var(--transition-slow);
  transform-origin: bottom left;
}

.floating-contact.active .floating-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-menu-header {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 0.5rem;
}

.floating-menu-header h4 {
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.floating-menu-header p {
  font-size: 0.75rem;
  color: var(--gray-600);
}

.floating-number-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.floating-number-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--light);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.floating-number-item:hover {
  background-color: var(--primary-light);
}

.number-val {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  font-size: 0.95rem;
}

.number-action {
  display: flex;
  gap: 0.5rem;
}

.num-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.num-btn-call {
  background-color: var(--primary);
  color: var(--white);
}

.num-btn-call:hover {
  background-color: var(--primary-dark);
}

.num-btn-copy {
  background-color: var(--gray-200);
  color: var(--gray-600);
}

.num-btn-copy:hover {
  background-color: var(--gray-400);
  color: var(--white);
}

/* GPU-Composited Animations */
@keyframes blob-morph {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.2; }
  50% { transform: scale(1.08) rotate(180deg); opacity: 0.35; }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-graphic {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image-card {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .procedures-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .interactive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .header-container {
    height: 70px;
  }
  
  .nav-links, .nav-cta {
    display: none; /* Can add slideout menu later if needed */
  }
  
  .mobile-menu-btn {
    display: block;
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-meta {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .procedures-grid {
    grid-template-columns: 1fr;
  }
  
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
  
  .contact-info-card,
  .appointment-form,
  .general-contact-form {
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .responsive-email-link {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.8rem;
  }
  
  .camp-block {
    padding: 1.25rem 1rem;
  }
  
  .interactive-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .panel-card {
    height: 225px;
  }
  
  .panel-card .flashcard {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    -webkit-transition: -webkit-transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .panel-card .card-front::after {
    display: none !important;
  }
  
  .panel-card .card-face {
    padding: 1.15rem 1.25rem;
  }

  .panel-card h4 {
    font-size: 1.15rem;
  }

  .panel-card .card-qual {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .panel-card .card-org {
    font-size: 0.8rem;
  }

  .panel-card .card-face.card-back h5 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }

  .panel-card .card-face.card-back .card-back-text {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .general-opd-static-card {
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
  }

  .general-opd-static-card h4 {
    font-size: 1.35rem;
  }

  .general-opd-static-card .card-qual {
    font-size: 0.875rem;
  }

  .general-opd-static-card .card-desc-body {
    font-size: 0.875rem;
    padding-top: 1rem;
    line-height: 1.55;
  }
  
  .ent-doctor-card {
    padding: 1.5rem 1.25rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .floating-contact {
    bottom: 20px;
    left: 20px;
  }
}

/* Mobile Small Devices (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .panel-card {
    height: 235px;
  }
  
  .panel-card .card-face {
    padding: 1rem 1rem;
  }

  .general-opd-static-card {
    padding: 1.25rem 1rem;
  }

  .contact {
    padding: 3rem 0;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .contact-info-card,
  .appointment-form,
  .general-contact-form {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .contact-info-card h3,
  .appointment-form h3 {
    text-align: center;
    font-size: 1.35rem !important;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-item-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .contact-item-text p,
  .contact-item-text a {
    font-size: 0.875rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .responsive-email-link {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 0.8rem;
  }

  #ptDateInput {
    padding: 0.75rem 0.75rem;
    font-size: 0.875rem;
  }

  .appointment-form button[type="submit"] {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .floating-contact {
    bottom: 15px;
    left: 15px;
  }

  .floating-trigger {
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }

  .floating-menu {
    min-width: unset;
    width: calc(100vw - 30px);
    max-width: 310px;
  }
}

/* Appointment Success Modal Styles */
.appointment-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.appointment-success-card {
  background: var(--white);
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 2.25rem 2rem;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.success-icon-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.appointment-success-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.appointment-success-card .success-sub {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.success-details-box {
  background: #f8fafc;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.success-details-box .detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  color: var(--gray-600);
  border-bottom: 1px dashed #e2e8f0;
}

.success-details-box .detail-row:last-child {
  border-bottom: none;
}

.success-details-box .detail-row strong {
  color: var(--dark);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
}

.success-note {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  margin-bottom: 1.5rem;
}
