/***** deterrent only — hurts UX; optional *****/
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
/* Ophthalmology Page Specific Styles */
:root {
  --ophthalmology-primary: #dc3545;
  --ophthalmology-secondary: #ff6b7a;
  --ophthalmology-dark: #a71e2d;
  --ophthalmology-light: #ffe6e9;
  --gradient-ophthalmology: linear-gradient(
    135deg,
    var(--ophthalmology-primary),
    var(--ophthalmology-secondary)
  );
  --gradient-ophthalmology-light: linear-gradient(
    135deg,
    var(--ophthalmology-secondary),
    var(--ophthalmology-light)
  );
  --primary: #0d9488;
  --gradient-teal: linear-gradient(135deg, #0d9488, #14b8a6);
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.2);
  --border-radius: 0.75rem;
  --border-radius-lg: 1rem;
}

/* General Styles */
body {
  font-family: "Inter", sans-serif;
  color: #333;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.min-vh-80 {
  min-height: 80vh;
}

.bg-gradient-teal {
  background: linear-gradient(135deg, #62ffa9 0%, #2fcebb 100%) !important;
}

.btn-gradient-teal {
  background: linear-gradient(135deg, #62ffa9 0%, #2fcebb 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: var(--transition);
}

.btn-gradient-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
  color: white;
}

/* Top Bar */
.top-bar {
  font-size: 0.9rem;
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

/* ===== Fixed Top Bar & Navbar ===== */
.top-bar,
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050; /* higher than carousel, buttons, etc. */
}

.top-bar {
  background: white;
  box-shadow: var(--shadow-sm);
}

.navbar {
  top: 40px; /* height of top bar */
  background: white;
  box-shadow: var(--shadow-md);
}

/* Add body padding to avoid content overlap */
body {
  padding-top: 120px; /* adjust if your navbar+topbar height differs */
}

.navbar.scrolled {
  padding: 0.5rem 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.logo-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  transition: var(--transition);
}

.navbar.scrolled .logo-icon {
  width: 40px;
  height: 40px;
  font-size: 1.1rem;
}

.brand-name {
  font-size: 1.3rem;
  line-height: 1.2;
  transition: var(--transition);
}

.navbar.scrolled .brand-name {
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.75rem;
  line-height: 1;
  transition: var(--transition);
}

.navbar.scrolled .brand-tagline {
  font-size: 0.65rem;
}

.nav-link-modern {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 0.375rem;
  transition: var(--transition);
  color: #333 !important;
  position: relative;
  overflow: hidden;
}

.nav-link-modern::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link-modern:hover::before,
.nav-link-modern.active::before {
  width: 80%;
}

.nav-link-modern:hover,
.nav-link-modern.active {
  color: #0d9488 !important;
  transform: translateY(-2px);
}

.dropdown-menu-modern {
  border: none;
  border-radius: var(--border-radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  opacity: 0.1;
  transition: var(--transition);
}

.dropdown-item:hover::before,
.dropdown-item.active::before {
  left: 0;
}

.dropdown-item:hover,
.dropdown-item.active {
  background-color: rgba(13, 148, 136, 0.1);
  color: #0d9488;
  transform: translateX(5px);
}

.btn-hover-lift {
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-hover-lift::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition);
}

.btn-hover-lift:hover::before {
  left: 100%;
}

.btn-hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Ophthalmology Hero Section */
.ophthalmology-hero {
  background: var(--gradient-ophthalmology);
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.ophthalmology-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><path fill="white" d="M500,250c138.07,0,250,111.93,250,250S638.07,750,500,750S250,638.07,250,500S361.93,250,500,250z M500,200 c-165.69,0-300,134.31-300,300s134.31,300,300,300s300-134.31,300-300S665.69,200,500,200L500,200z"/></svg>');
  background-size: 200px;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.treatment-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
  font-size: 0.9rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
  display: block;
}

/* FIXED BUTTON STYLES */
.hero-actions {
  margin-top: 30px;
}

.hero-actions .btn {
  margin-right: 15px;
  margin-bottom: 15px;
  font-weight: 600;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  cursor: pointer !important;
}

/* View Treatments Button */
.hero-actions .btn-light {
  background: white !important;
  color: var(--ophthalmology-primary) !important;
  border: 2px solid white !important;
}

.hero-actions .btn-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-ophthalmology);
  transition: all 0.5s ease;
  z-index: -1;
}

.hero-actions .btn-light:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  color: white !important;
  border-color: transparent !important;
}

.hero-actions .btn-light:hover::before {
  left: 0 !important;
}

/* Free Consultation Button */
.hero-actions .btn-outline-light {
  background: transparent !important;
  color: white !important;
  border: 2px solid white !important;
}

.hero-actions .btn-outline-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: white;
  transition: all 0.5s ease;
  z-index: -1;
}

.hero-actions .btn-outline-light:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
  color: var(--ophthalmology-primary) !important;
  border-color: white !important;
}

.hero-actions .btn-outline-light:hover::before {
  left: 0 !important;
}

/* FIXED HERO IMAGE HOVER */
.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  cursor: pointer;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05) !important;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4) !important;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.hero-image:hover img {
  transform: scale(1.1) !important;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ophthalmology-primary);
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-element.element-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element.element-2 {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element.element-3 {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.hero-shapes .shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.hero-shapes .shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: 10%;
}

.hero-shapes .shape-3 {
  width: 150px;
  height: 150px;
  top: 20%;
  left: 5%;
}

/* Fix for text visibility */
.ophthalmology-hero .display-3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white !important;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.ophthalmology-hero .lead {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  margin-bottom: 2rem;
}

/* Treatments Overview */
.treatments-overview {
  position: relative;
  padding: 80px 0;
}

.treatment-type-card {
  background: white;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid rgba(0, 123, 255, 0.1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.treatment-type-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-ophthalmology);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.treatment-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.15);
}

.treatment-type-card:hover::before {
  transform: scaleX(1);
}

.treatment-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient-ophthalmology-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
  transition: var(--transition);
}

.treatment-type-card:hover .treatment-icon {
  transform: scale(1.1) rotate(5deg);
}

.treatment-type-card h5 {
  color: var(--ophthalmology-dark);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.25rem;
}

.treatment-type-card p {
  color: #6c757d !important;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.treatment-price {
  display: inline-block;
  background: var(--ophthalmology-light);
  color: var(--ophthalmology-primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Section Headers */
.display-5 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.text-muted {
  color: #6c757d !important;
}

/* Badge Styles */
.badge.bg-gradient-teal {
  background: linear-gradient(135deg, #0d9488, #14b8a6) !important;
  border: none;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Detailed Treatments */
.detailed-treatments {
  padding: 80px 0;
}

.treatment-detail-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.treatment-header {
  background: var(--gradient-ophthalmology);
  color: white;
  padding: 25px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.treatment-header h3 {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
}

.price-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.treatment-content {
  padding: 30px;
}

.treatment-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.treatment-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.treatment-detail-card:hover .treatment-image img {
  transform: scale(1.05);
}

.treatment-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 25px;
}

.treatment-features h5 {
  color: var(--ophthalmology-dark);
  margin-bottom: 15px;
  font-weight: 600;
}

.treatment-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.treatment-features li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
  color: #555;
}

.treatment-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ophthalmology-primary);
  font-weight: bold;
}

.treatment-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 20px;
}

.treatment-stats .stat {
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.treatment-stats .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ophthalmology-primary);
  line-height: 1;
}

.treatment-stats .stat-label {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}

/* Sidebar Styles */
.consultation-sidebar,
.specialists-sidebar {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-header {
  background: var(--gradient-ophthalmology);
  color: white;
  padding: 20px 25px;
}

.sidebar-header h4 {
  margin: 0 0 5px;
  font-weight: 600;
  font-size: 1.25rem;
}

.sidebar-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.sidebar-content {
  padding: 25px;
}

.consultation-feature {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.consultation-feature:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.consultation-feature i {
  width: 50px;
  height: 50px;
  background: var(--ophthalmology-light);
  color: var(--ophthalmology-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.consultation-feature h6 {
  margin: 0 0 5px;
  color: var(--ophthalmology-dark);
  font-weight: 600;
}

.consultation-feature p {
  margin: 0;
  color: #777;
  font-size: 0.9rem;
}

.specialists-list {
  padding: 0 25px 25px;
}

.specialist-card {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.specialist-card:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.specialist-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  border: 3px solid var(--ophthalmology-light);
}

.specialist-info h6 {
  margin: 0 0 5px;
  color: var(--ophthalmology-dark);
  font-weight: 600;
}

.specialist-info p {
  margin: 0 0 5px;
  color: #777;
  font-size: 0.9rem;
}

.experience {
  display: inline-block;
  background: var(--ophthalmology-light);
  color: var(--ophthalmology-primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Ophthalmology CTA Section */
.cta-section-modern {
  background: var(--gradient-ophthalmology);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.1"><path fill="white" d="M500,250c138.07,0,250,111.93,250,250S638.07,750,500,750S250,638.07,250,500S361.93,250,500,250z M500,200 c-165.69,0-300,134.31-300,300s134.31,300,300,300s300-134.31,300-300S665.69,200,500,200L500,200z"/></svg>');
  background-size: 200px;
  opacity: 0.1;
}

.btn-cta-modern {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition);
  font-weight: 600;
  padding: 12px 30px;
}

.btn-cta-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-ophthalmology);
  transition: left 0.5s ease;
  z-index: -1;
  border-radius: 50px;
}

.btn-cta-modern:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta-modern:hover::before {
  left: 0;
}

.cta-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.cta-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-shape.shape-1 {
  width: 200px;
  height: 200px;
  top: -100px;
  right: -50px;
}

.cta-shape.shape-2 {
  width: 150px;
  height: 150px;
  bottom: -75px;
  left: 10%;
}

.cta-shape.shape-3 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 5%;
}

/* Footer Styles */
.footer-modern {
  background: #1a1a1a !important;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #0d9488;
}

.footer-contact li {
  margin-bottom: 1rem;
  color: #adb5bd;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #adb5bd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #0d9488;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: #0d9488;
  color: white;
  transform: translateY(-3px);
}

/* ======================================================
   FIXED FLOATING BUTTONS (no horizontal overflow)
   ====================================================== */
.whatsapp-float-modern,
.call-float-modern,
.back-to-top-modern {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 9999;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

/* WhatsApp Button */
.whatsapp-float-modern {
  bottom: 20px;
  right: 15px;
  width: 55px;
  height: 55px;
  background: #25d366;
  font-size: 1.4rem;
}

.whatsapp-float-modern:hover {
  transform: scale(1.1);
}

/* Call Button */
.call-float-modern {
  bottom: 85px;
  right: 15px;
  width: 50px;
  height: 50px;
  background: #007bff;
  font-size: 1.2rem;
}

.call-float-modern:hover {
  transform: scale(1.1);
}

/* Back to Top Button */
.back-to-top-modern {
  bottom: 150px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: var(--ophthalmology-primary);
  font-size: 1.1rem;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
}

.back-to-top-modern:hover {
  background: var(--ophthalmology-dark);
  transform: translateY(-3px);
}

/* Pulse effects (safe inside element) */
.whatsapp-pulse,
.call-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: -1;
  animation: pulse-ring 1.6s infinite;
  transform-origin: center center;
}

.whatsapp-pulse {
  background: rgba(37, 211, 102, 0.3);
}

.call-pulse {
  background: rgba(0, 123, 255, 0.3);
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Responsive: tighter positioning for small screens */
@media (max-width: 767.98px) {
  .whatsapp-float-modern,
  .call-float-modern,
  .back-to-top-modern {
    right: 10px;
  }

  .whatsapp-float-modern {
    width: 50px;
    height: 50px;
    bottom: 15px;
  }

  .call-float-modern {
    width: 45px;
    height: 45px;
    bottom: 75px;
  }

  .back-to-top-modern {
    width: 40px;
    height: 40px;
    bottom: 135px;
  }
}

/* Prevent page-wide overflow */
html,
body {
  overflow-x: hidden !important;
}

/* Ophthalmology-specific animations */
@keyframes ophthalmology-animation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.ophthalmology-animation {
  animation: ophthalmology-animation 2s ease-in-out infinite;
}

/* Custom icons for ophthalmology */
.fa-eye:before {
  content: "👁️";
  font-family: Arial, sans-serif;
}
.fa-low-vision:before {
  content: "🔍";
  font-family: Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 991.98px) {
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }

  .hero-actions {
    text-align: center;
  }

  .hero-actions .btn {
    margin-bottom: 10px;
    display: inline-block;
  }

  .treatment-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .treatment-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .treatment-stats .stat {
    flex: 0 0 calc(50% - 20px);
  }

  .ophthalmology-hero .display-3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 767.98px) {
  .ophthalmology-hero {
    padding: 100px 0 60px;
  }

  .hero-stats {
    gap: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .floating-element {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .treatment-stats .stat {
    flex: 0 0 100%;
  }

  .specialist-card {
    flex-direction: column;
    text-align: center;
  }

  .specialist-card img {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .ophthalmology-hero .display-3 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .treatment-type-card {
    padding: 20px 15px;
  }

  .treatment-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    margin-right: 0;
  }

  .ophthalmology-hero .display-3 {
    font-size: 1.8rem;
  }
}
