/* =========================
   SPINEVERSE – FRESH TEAL + SAND (LIGHT THEME)
   ========================= */
/***** 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;
}

/* Theme tokens */
:root {
  --bg: #f6fbfc;
  /* page background (very light aqua) */
  --surface: #ffffff;
  /* cards/panels */
  --elev: #f1f5f9;
  /* subtle raised bg */
  --line: #e2e8f0;
  /* borders / dividers */

  --text: #0f172a;
  /* slate-900 (main text) */
  --muted: #475569;
  /* slate-600 (secondary text) */

  --primary: #0ea5a8;
  /* teal-500 */
  --primary-600: #0b8e90;
  /* deeper teal for gradients */
  --success: #10b981;
  /* emerald-500 */
  --accent: #f59e0b;
  /* amber-500 */
  --danger: #ef4444;

  --chip-bg: #eef6f6;
  /* pill background */
  --chip-br: #cde5e7;
  /* pill border */

  --radius: 16px;
  --shadow: 0 12px 34px rgba(2, 6, 23, .08);

  /* Bootstrap variable overrides */
  --bs-primary: var(--primary);
  --bs-primary-rgb: 14, 165, 168;
  --bs-success: var(--success);
  --bs-success-rgb: 16, 185, 129;
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--line);
  --bs-link-color: var(--primary);
  --bs-link-hover-color: #0c7e80;
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(14, 165, 168, .12), transparent 55%),
    radial-gradient(1200px 700px at -10% 110%, rgba(245, 158, 11, .08), transparent 55%),
    linear-gradient(180deg, #f8fdfe 0%, var(--bg) 60%);
  line-height: 1.65;
}

/* Prevent any accidental horizontal scroll due to transforms */
html,
body {
  overflow-x: hidden;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none
}

a:hover {
  color: #0c7e80
}

/* Quiet links */
.link-quiet {
  color: var(--muted);
}

.link-quiet:hover {
  color: var(--text)
}

/* Skip link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.skip-to-content:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  background: #111827;
  color: #fff;
  z-index: 9999;
  border-radius: 8px
}

/* Topbar */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line)
}

/* Navbar (glass on light) */
.glass-nav .navbar {
  backdrop-filter: saturate(160%) blur(10px);
  background: rgba(255, 255, 255, .85);
  border-bottom: 1px solid rgba(2, 6, 23, .06);
}

.navbar .navbar-brand {
  color: #0b1324
}

.navbar .nav-link {
  color: var(--muted);
  font-weight: 600
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #0b1324
}

.dropdown-menu {
  --bs-dropdown-bg: #ffffff;
  --bs-dropdown-link-color: var(--text);
  --bs-dropdown-link-hover-bg: #f2f6fb;
  border: 1px solid var(--line);
}

/* Buttons */
.btn {
  font-weight: 600
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border: none;
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.03)
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #0a9369);
  border: none;
  color: #fff;
}

.btn-success:hover {
  filter: brightness(1.04)
}

/* Hero (banner images kept) */
.hero {
  height: clamp(520px, 70vh, 760px);
  position: relative
}

.hero .carousel-item {
  height: clamp(520px, 75vh, 760px);
  position: relative;
}

/* Banner container for background images */
.banner-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Mobile-specific banner images */
.mobile-banner {
  display: none;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
    mix-blend-mode: overlay; /* Ya multiply, screen - experiment karein */
  opacity: 0.8; /* Image opacity adjust karein */
}

.desktop-banner {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
    mix-blend-mode: overlay; /* Ya multiply, screen - experiment karein */
  opacity: 0.8; /* Image opacity adjust karein */
}

/* Content box should be above the background images */
.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  margin-top: 9%;
  margin-left: 5%;
}

/* Mobile banner images */
@media (max-width: 767.98px) {
  .mobile-banner {
    display: block;
  }
  .desktop-banner {
    display: none;
  }
  .hero .container{
    margin-top: 30%;
  }

   .hero .content-box {
    padding: 12px; /* Reduced from 14px */
    max-width: 96%; /* Slightly wider */
  }
  
  .hero .content-box .h2,
  .hero .content-box .h3 {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    margin-bottom: 0.2rem;
  }
  
  .hero .content-box .lead {
    font-size: 0.9rem; /* Reduced from 0.95rem */
    margin-bottom: 0.4rem;
  }
  
  .hero .content-box p {
    font-size: 0.85rem; /* Reduced from 0.9rem */
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }
  
  .hero .content-box .btn {
    padding: 0.4rem 0.8rem; /* Smaller buttons */
    font-size: 0.9rem;
  }
  
  .hero .content-box .d-flex.gap-2 {
    gap: 0.5rem !important; /* Reduced button spacing */
  }
  
}

/* Extra small devices optimization */
@media (max-width: 400px) {
  .hero .content-box .h2,
  .hero .content-box .h3 {
    font-size: 1rem;
  }
  
  .hero .content-box .lead {
    font-size: 0.85rem;
  }
  
  .hero .content-box p {
    font-size: 0.8rem;
  }
  
  .hero .content-box .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }
  
  .hero .content-box .d-flex.gap-2 {
    flex-direction: column; /* Stack buttons vertically on very small screens */
    gap: 0.3rem !important;
  }
}

.hero .content-box {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.shadow-raise {
  box-shadow: var(--shadow)
}

/* Sections */
.section {
  padding: 70px 0
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text),
}

.section-title::after {
  content: "";
  display: block;
  width: 68px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* Surfaces / Cards */
.surface {
  background: linear-gradient(180deg, #ffffff, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card .card-title {
  color: #0b1324
}

/* Stats */
.stat-card {
  background: linear-gradient(180deg, rgba(14, 165, 168, .10), #fff);
  border: 1px solid rgba(14, 165, 168, .25);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.stat-card i {
  font-size: 28px;
  color: var(--primary)
}

.stat-card h3 {
  margin: 10px 0 4px;
  color: #0b1324;
  font-weight: 700
}

.stat-card p {
  color: var(--muted);
  margin: 0
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow)
}

/* Services */
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  height: 300px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow)
}

.service-media {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.03) contrast(1.02);
  transition: transform .6s ease, filter .3s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.06);
  filter: saturate(1.1) contrast(1.05);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  transform: translateY(100%);
  transition: transform .3s ease;
  z-index: 1;
}

.service-card:hover .service-content {
  transform: translateY(0);
}

.service-content h3 {
  color: #0b1324;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.service-content p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

.service-content .stretched-link::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
}

/* educational resources */
        #educational-resources .video-card {
          transition: transform .3s ease, box-shadow .3s ease;
        }
        #educational-resources .video-card:hover {
          transform: translateY(-5px);
          box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        .video-thumb img {
          transition: transform .4s ease;
        }
        .video-card:hover .video-thumb img {
          transform: scale(1.05);
        }
        .overlay {
          position:absolute;
          top:0;left:0;width:100%;height:100%;
          background:rgba(0,0,0,0.45);
          opacity:0;transition:.4s ease;
        }
        .video-card:hover .overlay {opacity:1;}
        .play-btn {
          background:rgba(255,255,255,0.9);
          border:none;
          width:60px;height:60px;
          border-radius:50%;
          color:#e11d48;
          transition:background .3s;
        }
        .play-btn:hover {
          background:#e11d48;
          color:#fff;
        }
        .fade-in {
          animation: fadeInUp 1s ease both;
        }
        @keyframes fadeInUp {
          from {opacity:0;transform:translateY(30px);}
          to {opacity:1;transform:translateY(0);}
        }
        /* New CSS for Video Description on Hover */
        .video-desc-container {
            position: absolute;
            bottom: 100%; /* Just above the button and title section */
            left: 0;
            width: 100%;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 10px;
            text-align: center;
            opacity: 0;
            transition: opacity .4s ease;
            transform: translateY(100%);
            z-index: 10;
        }
        .video-card:hover .video-desc-container {
            opacity: 1;
            transform: translateY(0);
        }
        .video-desc {
            margin: 0;
            font-size: 0.9rem;
            line-height: 1.4;
            max-height: 100px;
            overflow: hidden;
        }

        /* New CSS for Explore Button */
        .explore-btn {
            font-size: 1.2rem;
            padding: 10px 20px;
            transition: transform .3s ease, box-shadow .3s ease;
        }
        .explore-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }

/* Testimonials Section */
#testimonials {
  padding: 60px 0;
  background: linear-gradient(135deg, #f0f4f8, #e0e8f0);
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: #3498db;
  border-radius: 2px;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-fade .carousel-item.active {
  opacity: 1;
}

.testimonial-card {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease-out backwards;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.2) 0%, transparent 70%);
  animation: rotateGradient 6s linear infinite;
  z-index: 0;
}

.testimonial-header {
  position: relative;
  z-index: 1;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #3498db;
  animation: fadeIn 1s ease-in;
}

.rating i {
  font-size: 1.2rem;
  margin: 0 2px;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #ecf0f1;
  position: relative;
  z-index: 1;
}

.testimonial-text::before {
  content: '“';
  font-size: 2.5rem;
  color: #3498db;
  position: absolute;
  left: -20px;
  top: -20px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* New Styles for Google Icon and Month */
.google-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.google-icon:hover {
  opacity: 1;
}

.testimonial-footer {
  margin-top: 15px;
  position: relative;
  z-index: 1;
}

.testimonial-month {
  font-size: 0.9rem;
  color: #bdc3c7;
  font-style: italic;
}

/* New CSS for Patient Name Link */
.patient-name-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}

.patient-name-link:hover h5 {
  color: #3498db; /* Blue color on hover to indicate it's clickable */
  text-decoration: underline;
}

/* Animations */
@keyframes slideUp {
  0% { transform: translateY(50px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px;
  }
  .testimonial-text {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .google-icon {
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
  }
}

/* Happy Patients Gallery Section */
#happy-patients {
  padding: 60px 0;
  background: linear-gradient(180deg, #f8f9fa, #e9ecef);
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 5px;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  margin-bottom: 20px;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }
.gallery-item:nth-child(10) { animation-delay: 1.0s; }
.gallery-item:nth-child(11) { animation-delay: 1.1s; }
.gallery-item:nth-child(12) { animation-delay: 1.2s; }
.gallery-item:nth-child(13) { animation-delay: 1.3s; }

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Gallery Image Container with Fixed Title */
.gallery-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  /* Remove transform and transition to keep title always visible */
  transform: translateY(0);
}

/* Modal Styles */
#imageModal .modal-content {
  background: transparent;
  box-shadow: none;
}

#imageModal img {
  max-height: 80vh;
  object-fit: contain;
  animation: zoomIn 0.5s ease;
}

.btn-close {
  filter: invert(1);
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-item {
    margin-bottom: 15px;
  }
  .section-title {
    font-size: 2rem;
  }
  .gallery-title {
    font-size: 0.9rem;
    padding: 8px 10px;
  }
}

@media (max-width: 576px) {
  .gallery-item {
    margin-bottom: 10px;
  }
  .gallery-title {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}

/* Appointment */
.form-control {
  background: #ffffff;
  border-color: #d0d5dd;
  color: var(--text)
}

.form-control:focus {
  background: #ffffff;
  color: #111827;
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(14, 165, 168, .20)
}

.invalid-feedback {
  color: #b91c1c
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: var(--radius);
  height: 100%;
  min-height: 360px
}

.map-card iframe {
  border: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px
}

/* Social Media Icons Styling */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  color: #6c757d; /* Default gray color */
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #3498db; /* Blue color on hover */
  transform: scale(1.2); /* Slight zoom on hover */
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  gap: .65rem
}

.floating-cta .cta-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  background: #ffffff;
  border: 1px solid var(--line)
}

.floating-cta .cta-btn i {
  font-size: 22px;
  color: var(--primary)
}

.floating-cta .cta-btn:hover {
  transform: translateY(-2px);
  transition: transform .2s ease
}

/* Reveal system */
.reveal {
  opacity: 1;
  transform: none
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s ease, transform .6s ease
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: none
}

/* Utility */
.object-cover {
  object-fit: cover
}

.small {
  font-size: .95rem
}

/* Carousel controls (white icons look good over photos) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35))
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .topbar .container {
    gap: 10px;
    flex-direction: column;
    text-align: center
  }

  .floating-cta {
    right: 12px;
    bottom: 12px
  }

  .service-card {
    height: 250px;
  }
}

/* Year in footer */
#year {
  color: #0b1324
}

/* Memberships */
.memberships {
  position: relative;
  padding: 40px 0;
  background: url('/image/membershipBanner.jpg') no-repeat center center/cover;
}

/* Make the Memberships title look like the Services title */
.memberships .section-title {
  margin-left: 20px !important;
  text-shadow: none;
  /* remove special shadow */
}

/* Add a soft overlay for readability on photo background (keeps your image) */
.memberships::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.568), rgba(0, 0, 0, 0.548));
  pointer-events: none;
}

/* Membership heading on dark bg */
.membership-heading {
  background: #f8fafc;
  width: 23%;
  padding: 20px 0 10px;
  /* top/bottom spacing */
  margin-bottom: 20px;
  /* gap before logos */
  border-radius: 6px;
  /* optional, matches cards */
}

.membership-heading .section-title {
  margin: 0;
  color: #0b1324;
  /* dark text like services */
}


/* Scroller shell stays as your container */
.logo-scroller {
  position: relative;
  overflow: hidden;
  /* ensure no horizontal scroll */
  white-space: nowrap;
}

/* New inner track that actually moves (created in JS without changing your HTML) */
.logo-scroller .logo-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  /* consistent gap between logos */
  will-change: transform;
}

/* Items keep your look */
.logo-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  /* spacing handled by gap above */
  text-align: center;
  vertical-align: middle;
}

.logo-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-item p {
  color: #ffffff;
  /* readable on light overlay */
  font-size: 0.9rem;
  margin-top: 10px;
}

/* =========================
   ABOUT – decor/components (recolored for light)
   ========================= */

/* Decorative wave */
.about-surface::before {
  content: "";
  position: absolute;
  inset: -20% -40% auto auto;
  height: 260px;
  width: 520px;
  background:
    radial-gradient(120px 60px at 30% 40%, rgba(14, 165, 168, .20), rgba(14, 165, 168, 0) 70%),
    radial-gradient(160px 70px at 70% 60%, rgba(245, 158, 11, .18), rgba(245, 158, 11, 0) 70%),
    conic-gradient(from 220deg at 50% 50%, rgba(2, 6, 23, .06), rgba(2, 6, 23, 0) 70%);
  filter: blur(14px);
  transform: rotate(10deg);
  pointer-events: none;
}

/* Chips */
.chip {
  border: 1px solid var(--chip-br);
  color: #0b1324;
  background: var(--chip-bg);
  padding: .45rem .75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.chip:hover {
  transform: translateY(-2px);
  background: #e8f3f3;
  border-color: #b7dbde
}

.float-in {
  opacity: 0;
  transform: translateY(10px);
  animation: chipIn .6s ease forwards;
  animation-delay: calc(0.06s * var(--i, 0))
}

@keyframes chipIn {
  to {
    opacity: 1;
    transform: none
  }
}

/* Tabs */
.about-tabs .nav-link {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted)
}

.about-tabs .nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border-color: transparent
}

/* About list */
.about-list {
  margin: 0;
  padding-left: 0
}

.about-list-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 0;
  color: #0b1324
}

.about-list-item i {
  color: #0ea5a8
}

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding-left: 0
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--primary));
  opacity: .35;
  transform: scaleY(0);
  transform-origin: top;
  animation: lineDraw .9s ease forwards .2s;
}

@keyframes lineDraw {
  to {
    transform: scaleY(1)
  }
}

.timeline li {
  position: relative;
  padding-left: 36px;
  margin: 14px 0
}

.tl-dot {
  position: absolute;
  left: 3px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #fde68a 60%, #0000 61%);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .25);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.08)
  }
}

.tl-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px
}

/* Signature row */
.sig-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb
}

.about-signature {
  animation: fadeSlide .7s ease both;
  animation-delay: .2s
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ===== Publications (glass cards + timeline glow) ===== */
.publications {
  position: relative;
  background:
    radial-gradient(1000px 600px at 110% -10%, rgba(14, 165, 168, 0.308), transparent 60%),
    radial-gradient(1000px 700px at -10% 110%, rgba(2, 6, 23, 0.363), transparent 60%);
  overflow: hidden;
  margin-top: 100px;
}

/* Soft vignette behind */
.publications::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 50% -20%, rgba(14, 165, 168, .08), transparent 60%);
  pointer-events: none;
}

.pub-card {
  position: relative;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(2, 6, 23, .06);
  border-radius: 14px;
  padding: 16px 16px 14px 48px;
  min-height: 120px;
  box-shadow: 0 10px 28px rgba(2, 6, 23, .06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* left glow "pin" like a classy timeline */
.pub-pin {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #0ea5a8 65%, #067a7c 66%);
  box-shadow: 0 0 0 4px rgba(14, 165, 168, .18), 0 10px 24px rgba(14, 165, 168, .25);
}

.pub-card::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 36px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(14, 165, 168, .35), rgba(14, 165, 168, 0));
  border-radius: 2px;
  opacity: .7;
}

.pub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(2, 6, 23, .10);
  border-color: rgba(14, 165, 168, .35);
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  margin-bottom: .35rem;
}

.pub-title {
  font-weight: 700;
  color: #ffffff;
  margin: 2px 0 6px;
  line-height: 1.35;
}

.pub-authors {
  color: #cfcfcf;
}

/* Reveal animation: slide + fade */
.js-ready .publications .pub-card {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .publications .pub-card.visible {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s ease;
}

/* Optional: 3 columns on very wide screens */
@media (min-width: 1200px) {
  #publications .row>[class^="col-"] {
    /* keep gutters pleasant */
    scroll-margin-top: 80px;
  }
}

.publications {
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.377), rgba(2, 6, 23, .80)),
    url('/image/publicationBanner.webp') center/cover no-repeat;
}

.pub-card {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .12);
}

/* ---------- RESPONSIVE FIXES & MOBILE POLISH (APPEND ONLY) ---------- */

/* Fix a stray comma that can break color on some browsers */
.section-title{ color: var(--text); }

/* ===== NAVBARS & MOBILE POLISH (APPEND ONLY) ===== */

/* default fallback for topbar height */
:root { --topbar-h: 40px; }

/* Make the contact topbar sticky and above the main navbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 1060; /* above navbar */
}

/* Make the main navbar sticky *below* the topbar */
header.glass-nav.sticky-top{
  top: var(--topbar-h) !important;  /* offset equals measured topbar height */
  z-index: 1055;
}

/* Mobile brand sizing/spacing */
@media (max-width: 575.98px){
  .navbar .navbar-brand{ gap: .4rem; }
  .navbar .navbar-brand img{ height: 22px; }
  .navbar .navbar-brand span{ font-size: 1.05rem; font-weight: 700; line-height: 1; }
  .navbar .navbar-toggler{ padding: .25rem .5rem; font-size: 1.05rem; }
  .navbar .btn.btn-primary{ padding: .4rem .65rem; font-size: .95rem; }
}

/* Ensure no overlap with page content on tiny screens */
@media (max-width: 575.98px){
  body{ scroll-padding-top: calc(var(--topbar-h) + 56px); } /* 56≈ navbar height */
}

/* (keeps earlier fixes you already added) */


/* HERO / BANNER: scale content like desktop on small screens */
.hero{ height: clamp(520px, 70vh, 720px); }
.hero .content-box{ max-width: 580px; }
@media (max-width: 991.98px){
  .hero{ height: clamp(480px, 64vh, 660px); }
  .hero .content-box{ max-width: 520px; padding: 18px 18px; }
  .hero .content-box .h2, 
  .hero .content-box .h3{ font-size: 1.35rem; }
  .hero .content-box .lead{ font-size: 1rem; }
  .hero .content-box p{ font-size: .95rem; }
  .hero .content-box .btn-lg{ padding: .55rem 1rem; font-size: 1rem; }
}
@media (max-width: 575.98px){
  .hero{ height: 520px; }
  .hero .content-box{ max-width: 94%; padding: 14px; border-radius: 12px; }
  .hero .content-box .h2, 
  .hero .content-box .h3{ font-size: 1.2rem; margin-bottom: .25rem; }
  .hero .content-box .lead{ font-size: .95rem; margin-bottom: .5rem; }
  .hero .content-box p{ font-size: .9rem; margin-bottom: .65rem; }
}

/* MEMBERSHIPS title block: align like "Our Services" and stay readable */
.membership-heading{
  width: fit-content;
  max-width: 100%;
  padding: 16px 16px 10px;
  background: rgba(248,250,252,.96);
  margin-left: 0;
  margin-right: auto;
  border-radius: 8px;
}
.memberships .section-title{ margin-left: 0 !important; }
@media (max-width: 575.98px){
  .membership-heading{ padding: 12px 14px 8px; }
}

/* SERVICES — mobile should work like desktop:
   - first tap reveals overlay (title/desc)
   - second tap follows the link
   We DON'T remove your old rules; we add a higher-specificity variant
   that activates only when JS adds .touch-overlay to the card. */
@media (hover: none) and (pointer: coarse){
  .service-card.touch-overlay{
    height: 300px; /* keep your original desktop height feel */
    position: relative;
  }
  .service-card.touch-overlay .service-media{ height: 100%; }
  .service-card.touch-overlay .service-content{
    position: absolute;
    left: 0; right: 0; bottom: 0;
    transform: translateY(100%);
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    border-top: 1px solid var(--line);
    transition: transform .3s ease;
  }
  .service-card.touch-overlay.active .service-content{
    transform: translateY(0);
  }
}

/* Extra polish for very small screens */
@media (max-width: 575.98px){
  .service-card{ border-radius: 14px; }
  .service-content h3{ font-size: 1rem; }
  .service-content p{ font-size: .9rem; }
}

/* Guardrails: prevent any micro horizontal scroll on iOS/Android */
html, body{ overflow-x: hidden; }

/* ===== TOPBAR: mobile-only icons for phone & email, keep address text visible ===== */
@media (max-width: 575.98px){
  /* keep the whole row on one line */
  .topbar .container{ flex-wrap: nowrap; }

  /* icons-only for the two links on the right side */
  .topbar .container > .d-flex.align-items-center.gap-3 a.link-quiet{
    /* font-size: 0;              */
    white-space: nowrap;
  }
  .topbar .container > .d-flex.align-items-center.gap-3 a.link-quiet i{
    font-size: 18px;             
    margin-right: 0 !important;
  }

  /* Book Appointment stays inline and compact on mobile */
  .topbar .btn.btn-outline-primary{
    white-space: nowrap;
    padding: .35rem .65rem;
    font-size: .92rem;
  }

  /* compact left cluster but KEEP address text visible */
  .topbar .container > .d-flex.align-items-center.gap-3 span{
    white-space: nowrap;
  }

  /* make the address look clickable when JS adds role=link */
  .topbar .address-link{
    cursor: pointer;
    text-decoration: none;
  }
  .topbar .address-link:active{ opacity:.85; }
}

/* keep everything aligned on small-mid sizes too */
@media (max-width: 767.98px){
  .topbar .container{ gap: .5rem; }
}

    /* Introduction Section Styles */
    .intro-section {
      position: relative;
      padding: 6rem 0;
      background: linear-gradient(135deg, #0b8e90 0%, #14b8a6 100%);
      overflow: hidden;
    }
    
    .intro-container {
      position: relative;
      z-index: 2;
    }
    
    .intro-bg-pattern {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0.1;
      background-image: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.8) 2px, transparent 0),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.6) 1px, transparent 0),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.7) 3px, transparent 0);
      background-size: 100px 100px, 150px 150px, 200px 200px;
      animation: floatPattern 20s linear infinite;
    }
    
    .intro-content {
      max-width: 900px;
      margin: 0 auto;
      text-align: center;
      color: white;
    }
    
    .intro-title {
      font-family: 'Poppins', sans-serif;
      font-weight: 700;
      font-size: 2.5rem;
      margin-bottom: 1.5rem;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease forwards 0.3s;
    }
    
    .intro-text {
      font-size: 1.2rem;
      line-height: 1.7;
      margin-bottom: 2rem;
      opacity: 0;
      transform: translateY(30px);
      animation: fadeInUp 1s ease forwards 0.6s;
    }
    
    .intro-highlights {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 1.5rem;
      margin-top: 3rem;
    }
    
    .intro-highlight {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 1rem;
      padding: 1.5rem;
      width: 200px;
      text-align: center;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transform: translateY(20px);
      opacity: 0;
      transition: all 0.3s ease;
    }
    
    .intro-highlight:nth-child(1) {
      animation: fadeInUp 0.8s ease forwards 0.9s;
    }
    
    .intro-highlight:nth-child(2) {
      animation: fadeInUp 0.8s ease forwards 1.1s;
    }
    
    .intro-highlight:nth-child(3) {
      animation: fadeInUp 0.8s ease forwards 1.3s;
    }
    
    .intro-highlight:hover {
      transform: translateY(-10px);
      background: rgba(255, 255, 255, 0.15);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
    
    .intro-icon {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: #f97316;
      display: inline-block;
      animation: pulse 2s infinite;
    }
    
    .intro-highlight h4 {
      font-size: 1.1rem;
      margin-bottom: 0.5rem;
      font-weight: 600;
    }
    
    .intro-highlight p {
      font-size: 0.9rem;
      opacity: 0.9;
    }
    
    .intro-cta {
      margin-top: 3rem;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1s ease forwards 1.5s;
    }
    
    .intro-cta .btn {
      padding: 0.8rem 2rem;
      font-size: 1.1rem;
      border-radius: 50px;
      transition: all 0.3s ease;
    }
    
    .intro-cta .btn-primary {
      background: #f97316;
      border-color: #f97316;
    }
    
    .intro-cta .btn-primary:hover {
      background: #ea580c;
      border-color: #ea580c;
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
    }
    
    .intro-cta .btn-outline-light:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    }
    
    /* Floating elements */
    .floating-element {
      position: absolute;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.1);
      animation: float 6s ease-in-out infinite;
    }
    
    .floating-element-1 {
      width: 80px;
      height: 80px;
      top: 10%;
      left: 5%;
      animation-delay: 0s;
    }
    
    .floating-element-2 {
      width: 60px;
      height: 60px;
      top: 70%;
      left: 10%;
      animation-delay: 2s;
    }
    
    .floating-element-3 {
      width: 100px;
      height: 100px;
      top: 20%;
      right: 5%;
      animation-delay: 4s;
    }
    
    .floating-element-4 {
      width: 70px;
      height: 70px;
      top: 80%;
      right: 10%;
      animation-delay: 1s;
    }
    
    /* Animations */
    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    
    @keyframes float {
      0%, 100% {
        transform: translateY(0) rotate(0deg);
      }
      50% {
        transform: translateY(-20px) rotate(10deg);
      }
    }
    
    @keyframes floatPattern {
      0% {
        background-position: 0 0, 0 0, 0 0;
      }
      100% {
        background-position: 100px 100px, 150px 150px, 200px 200px;
      }
    }
    
    @keyframes pulse {
      0%, 100% {
        transform: scale(1);
      }
      50% {
        transform: scale(1.1);
      }
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
      .intro-title {
        font-size: 2rem;
      }
      
      .intro-text {
        font-size: 1.1rem;
      }
      
      .intro-highlight {
        width: 100%;
        max-width: 250px;
      }
      
      .floating-element {
        display: none;
      }
    }
    
    @media (max-width: 576px) {
      .intro-section {
        padding: 4rem 0;
      }
      
      .intro-title {
        font-size: 1.8rem;
      }
      
      .intro-text {
        font-size: 1rem;
      }
    }

    /* about text convert in to button */

    .whatsapp-share-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.whatsapp-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-share-btn i {
    font-size: 20px;
}