/* ============================================================
   NSR ORTHOPAEDIC & WELLNESS CLINIC — CUSTOM CSS
   Exact match: drmanivannanortho.com
   Colors: Primary Blue #1e73be, Accent Red/Orange #e84c3d
   Font: Poppins + Open Sans
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  --primary:       #1e73be;
  --primary-dark:  #1558a0;
  --primary-light: #2d8fd5;
  --accent:        #e84c3d;
  --accent-dark:   #c0392b;
  --white:         #ffffff;
  --dark:          #1a1a2e;
  --text:          #555555;
  --text-light:    #777777;
  --heading:       #222222;
  --border:        #e0e0e0;
  --bg-light:      #f7f9fc;
  --bg-grey:       #f0f4f8;
  --topbar-bg:     #1a1a2e;
  --header-bg:     #ffffff;
  --footer-bg:     #1a1a2e;
  --footer-text:   #b0b8c4;
  --shadow:        0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover:  0 8px 30px rgba(0,0,0,0.18);
  --radius:        6px;
  --transition:    all 0.3s ease;
  --font-main:     'Poppins', sans-serif;
  --font-body:     'Open Sans', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }
input, select, textarea { font-family: var(--font-body); outline: none; }

/* ---- CONTAINER ---- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-main); color: var(--heading); font-weight: 600; line-height: 1.3; }
.section-subtitle {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 16px;
  line-height: 1.3;
}
.section-desc {
  font-size: 15px;
  color: var(--text-light);
  max-width: 680px;
  line-height: 1.8;
}
.section-header.text-center { text-align: center; }
.section-header.text-center .section-desc { margin: 0 auto 40px; }
.section-header { margin-bottom: 40px; }
.text-center { text-align: center; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: #079842;
  color: var(--white);
  border: 2px solid #079842;
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 95, 25, 0.3);
}
.btn-outline {
  background: transparent;
  color: #079842;
  border: 2px solid #079842;
}
.btn-outline:hover {
  background: #185e8f;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-full { width: 100%; display: block; }

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--topbar-bg);
  padding: 15px 0;
  font-size: 13.5px;
  color: #aab3c0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}
.top-bar-item i {  color: #ecbb39; font-size: 13.2px; }
.top-bar-item span { color: #aab3c0; font-weight: 500; }
.top-bar-item a { color: var(--white); font-weight: 600; }
.top-bar-item a:hover { color: var(--primary); }

/* ============================================================
   HEADER (reduced ~30% from original)
   ============================================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 25px rgba(0,0,0,0.13); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px; /* ~30% less than typical ~100px */
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { width: 36px; height: 36px; object-fit: contain; }
.logo-main { height: 100px; width: auto; object-fit: contain; }

/* NAV */
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-item { position: relative; }
.nav-item > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 25px 14px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--heading);
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--primary); }
.nav-item > a i { font-size: 10px; }
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav-item > a:hover::after,
.nav-item.active > a::after { transform: scaleX(1); }

/* DROPDOWN */
.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s;
  z-index: 999;
}
.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: 13.5px;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: #f7f9fc; color: var(--primary); padding-left: 26px; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 600px;
}
.slider-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  color: var(--primary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.slider-btn:hover { background: var(--primary); color: var(--white); }
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active { background: var(--white); transform: scale(1.3); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 90px 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-image img { width: 100%; height: 440px; object-fit: cover; transition: transform 0.5s; }
.about-image:hover img { transform: scale(1.03); }
.about-content .section-subtitle { margin-bottom: 8px; }
.about-content .section-title { font-size: 26px; margin-bottom: 18px; }
.about-content p {
      font-size: 14px;
    color: #8a8d8c;
    max-width: 680px;
    line-height: 1.8;

}
.about-buttons { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section { padding: 90px 0; background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-icon { overflow: hidden; height: 200px; }
.service-icon img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.service-card:hover .service-icon img { transform: scale(1.06); }
.service-card h3 {
  padding: 20px 20px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
}
.service-card h3 a:hover { color: var(--primary); }
.service-card p { padding: 0 20px; font-size: 14px; color: var(--text-light); line-height: 1.7; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}
.service-link:hover { color: var(--accent); gap: 10px; }

/* ============================================================
   FACILITIES SECTION
   ============================================================ */
.facilities-section { padding: 90px 0; background: var(--white); }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.facility-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.facility-card:hover {
  border-bottom-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  background: var(--white);
}
.facility-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.facility-icon i { font-size: 28px; color: var(--white); }
.facility-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
  line-height: 1.4;
}
.facility-card h4 a:hover { color: var(--primary); }
.facility-card p { font-size: 14px; color: var(--text-light); line-height: 1.75; }

/* ============================================================
   APPOINTMENT + STATS SECTION
   ============================================================ */
.appt-stats-section { padding: 90px 0; background: var(--bg-light); }
.appt-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* FORM */
.appt-form-col .section-title { font-size: 26px; margin-bottom: 24px; }
.appt-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.form-group label span { color: var(--accent); }
.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s;
}
.form-group input:focus { border-color: var(--primary); }
.appt-form .btn-primary { margin-top: 8px; }

/* STATS */
.stats-col .section-title { font-size: 24px; margin-bottom: 14px; }
.stats-col > p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}
.stat-number {
  font-family: var(--font-main);
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.stat-plus {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}
.stat-item h6 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}
.cta-call-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.cta-call-box i { font-size: 22px; color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.cta-call-box p { font-size: 14.5px; color: var(--text); line-height: 1.7; }
.cta-call-box a { color: var(--primary); font-weight: 600; }
.cta-call-box a:hover { color: var(--accent); }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 90px 0; background: var(--white); }
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.open { box-shadow: var(--shadow); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--heading);
  background: var(--white);
  text-align: left;
  gap: 12px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--primary); background: var(--bg-light); }
.faq-item.open .faq-question { color: var(--white); background: var(--primary); }
.faq-icon { font-size: 13px; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 22px;
}
.faq-answer p { font-size: 14.5px; color: var(--text); line-height: 1.8; padding: 16px 0; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section { padding: 90px 0; background: #ebeff394; }
.testimonial-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-card video { width: 100%; height: 220px; object-fit: cover; display: block; }

/* GOOGLE REVIEWS */
.google-reviews { position: relative; }
.review-header { margin-bottom: 30px; text-align: center; }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: var(--shadow);
}
.rating-word { font-family: var(--font-main); font-weight: 800; font-size: 16px; color: var(--heading); }
.stars i, .review-stars i { color: #fbbc04; font-size: 14px; }
.review-count { font-size: 13px; color: var(--text-light); }
.google-logo { height: 22px; }

.reviews-slider { overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}
.review-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.review-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.review-meta img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.review-meta strong { display: block; font-size: 14px; color: var(--heading); font-family: var(--font-main); }
.review-date { font-size: 12px; color: var(--text-light); }
.review-card p { font-size: 14px; color: var(--text); line-height: 1.75; }
.reviews-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.review-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.review-btn:hover { background: var(--primary); color: var(--white); }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-section { padding: 90px 0; background: var(--white); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.blog-img-link { display: block; overflow: hidden; height: 190px; }
.blog-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.blog-card:hover .blog-img-link img { transform: scale(1.06); }
.blog-content { padding: 20px; }
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.blog-date { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.blog-cat {
    display: none;
  font-size: 11.5px;
  background: var(--primary);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}
.blog-content h3 { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--heading); }
.blog-content h3 a:hover { color: var(--primary); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #05af49 0%, #037732 100%);
  padding: 40px 0;
  text-align: center;
}
.cta-banner-inner h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
}
.cta-banner-inner h2 a { color: var(--white); }
.cta-banner-inner h2 a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #04260d; }
.footer-top { padding: 70px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 40px;
}
.footer-logo { height: 90px; width: auto; margin-bottom: 18px; }
.footer-about p { font-size: 14px; color: var(--footer-text); line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  font-size: 14px;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: var(--white); }
.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid white;
  display: inline-block;
}
.footer-links li { margin-bottom: 9px; }
.footer-links a {
  font-size: 14px;
  color: var(--footer-text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.footer-links a::before { content: '›'; color: white; font-size: 16px; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li, .footer-hours li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--footer-text);
  margin-bottom: 13px;
  line-height: 1.7;
  align-items: flex-start;
}
.footer-contact i, .footer-hours i { color: white; font-size: 14px; margin-top: 3px; flex-shrink: 0; }
.footer-contact a { color: var(--footer-text); }
.footer-contact a:hover { color: var(--primary); }
.footer-hours strong { color: var(--white); }
.footer-bottom {
  background: #04260d;
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13.5px; color: #7a8898; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 22px;
  background: #25d366;
  color: var(--white);
  border-radius: 50px;
  padding: 12px 18px 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-main);
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
}
.whatsapp-float i { font-size: 22px; }
.whatsapp-float:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(37,211,102,0.5); color: var(--white); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 44px; height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ============================================================
   SIMPLE AOS REVEAL
   ============================================================ */
[data-aos] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-right"] { transform: translateX(-30px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos="fade-left"] { transform: translateX(30px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="zoom-in"] { transform: scale(0.9); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); } 










/* Base responsive settings */
html {
    font-size: 16px;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

@media (max-width: 375px) {
    html {
        font-size: 12px;
    }
}

/* Fix for iOS input zoom */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    button, 
    .btn,
    .nav-item > a,
    .slider-btn,
    .faq-question,
    .review-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    a, button {
        cursor: pointer;
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Prevent body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


/* ======================responsive======================================== */
/* ============================================================
   NSR ORTHOPAEDIC — RESPONSIVE CSS
   Breakpoints: 1200, 1024, 768, 480, 375
   ============================================================ */

/* ============================================================
   NSR ORTHOPAEDIC — COMPLETE RESPONSIVE CSS
   Covers: 4K, 1440p, 1366p, 1024p, 992p, 768p, 576p, 480p, 425p, 375p, 360p, 320p
   ============================================================ */

/* Base container responsive */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   4K SCREENS (2560px and above)
============================================================ */
@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
        padding: 0 40px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .hero-slider {
        height: 850px;
    }
    
    .services-grid,
    .facilities-grid,
    .blog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
    
    .service-card,
    .facility-card,
    .blog-card {
        padding: 40px;
    }
    
    .service-card h3 {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 60px;
    }
}

/* ============================================================
   LARGE DESKTOP (1440px - 1920px)
============================================================ */
@media (min-width: 1440px) and (max-width: 1920px) {
    .container {
        max-width: 1360px;
    }
    
    .hero-slider {
        height: 680px;
    }
    
    .section-title {
        font-size: 42px;
    }
    
    .services-grid,
    .facilities-grid,
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1366px) and (max-width: 1439px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-slider {
        height: 600px;
    }
}

/* ============================================================
   DESKTOP (1200px - 1365px)
============================================================ */
@media (min-width: 1200px) and (max-width: 1365px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-slider {
        height: 700px;
    }
    
    .nav-list {
        gap: 20px;
    }
}

/* ============================================================
   LAPTOP / TABLET LANDSCAPE (992px - 1199px)
============================================================ */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-slider {
        height: 500px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .services-grid,
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-item > a {
        font-size: 14px;
    }
}

/* ============================================================
   TABLET (768px - 991px)
============================================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-slider {
        height: 450px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .appt-stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* Top Bar - Hide right side on tablet */
    .top-bar-right {
        display: none;
    }
    
    .top-bar-item {
        font-size: 12px;
    }
}

/* ============================================================
   TABLET PORTRAIT (768px) - SPECIFIC
============================================================ */
@media (max-width: 768px) {
    /* Hide right side of top bar */
    .top-bar-right {
        display: none;
    }
    
    .top-bar-left {
        width: 100%;
        justify-content: center;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    /* Header adjustments */
    .header-inner {
        height: 64px;
        padding: 10px 0;
    }
    
    .logo-main {
        height: 58px;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 64px;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 64px);
        background: var(--white, #ffffff);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        transition: left 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        padding: 0;
    }
    
    .main-nav.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .nav-item > a {
        padding: 15px 24px;
        border-bottom: 1px solid #e2e8f0;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-item.active > a {
        color: var(--secondary, #2b7a62);
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f8fafc;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
    }
    
    .has-dropdown.open .dropdown {
        max-height: 500px;
    }
    
    .dropdown li a {
        padding: 12px 24px 12px 40px;
        font-size: 14px;
    }
    
    .services-grid,
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ============================================================
   MOBILE LARGE (576px - 767px)
============================================================ */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-slider {
        height: 380px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .top-bar {
        display: none;
    }
    
    .services-grid,
    .facilities-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .appt-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .testimonial-videos {
        grid-template-columns: 1fr;
    }
    
    .reviews-track .review-card {
        min-width: calc(100% - 20px);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MOBILE MEDIUM (481px - 575px)
============================================================ */
@media (min-width: 481px) and (max-width: 575px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-slider {
        height: 320px;
        
    }
    
    .slider-btn {
        display: none;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .top-bar {
        display: none;
    }
    
    .services-grid,
    .facilities-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    .about-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .appt-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .appt-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-plus {
        font-size: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-videos {
        grid-template-columns: 1fr;
    }
    
    .reviews-track .review-card {
        min-width: 100%;
    }
    
    .rating-badge {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .cta-banner-inner h2 {
        font-size: 18px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px;
    }
}

/* ============================================================
   MOBILE (480px) - SPECIFIC
============================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-slider {
        height: 300px;
    }
    
    .slider-btn {
        display: none;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 12px;
    }
    
    .top-bar {
        display: none;
    }
    
    .services-section,
    .facilities-section,
    .about-section,
    .appt-stats-section,
    .testimonials-section,
    .blog-section,
    .faq-section {
        padding: 50px 0;
    }
    
    .services-grid,
    .facilities-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .facility-card,
    .blog-card {
        padding: 20px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image img {
        height: auto;
    }
    
    .about-buttons {
        flex-direction: column;
    }
    
    .about-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .appt-stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .appt-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .stat-plus {
        font-size: 18px;
    }
    
    .stat-item h6 {
        font-size: 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .testimonial-videos {
        grid-template-columns: 1fr;
    }
    
    .reviews-track .review-card {
        min-width: 100%;
    }
    
    .rating-badge {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .review-meta {
        flex-wrap: wrap;
    }
    
    .cta-banner {
        padding: 40px 0;
    }
    
    .cta-banner-inner h2 {
        font-size: 18px;
        letter-spacing: 1px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 15px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    .whatsapp-float span {
        display: none;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================================
   MOBILE (425px) - SPECIFIC
============================================================ */
@media (max-width: 425px) {
    .hero-slider {
        height: 350px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-item {
        text-align: center;
        padding: 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-plus {
        font-size: 24px;
    }
    
    .service-card h3,
    .facility-card h4 {
        font-size: 18px;
    }
    
    .blog-content h3 {
        font-size: 16px;
    }
    
    .cta-call-box {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-call-box i {
        font-size: 32px;
    }
}

/* ============================================================
   MOBILE (375px) - SPECIFIC
============================================================ */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .header-inner {
        height: 58px;
    }
    
    .logo-main {
        height: 52px;
    }
    
    .service-card,
    .facility-card {
        padding: 18px;
    }
    
    .service-card h3,
    .facility-card h4 {
        font-size: 17px;
    }
    
    .service-card p,
    .facility-card p {
        font-size: 13px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .appt-form {
        padding: 18px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .faq-question {
        font-size: 14px;
        padding: 12px;
    }
    
    .review-card {
        padding: 15px;
    }
    
    .review-meta img {
        width: 40px;
        height: 40px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ============================================================
   MOBILE (360px) - SPECIFIC
============================================================ */
@media (max-width: 360px) {
    .hero-slider {
        height: 350px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-subtitle {
        font-size: 11px;
    }
    
    .hero-slider {
        min-height: 350px;
    }
    
    .service-card h3,
    .facility-card h4 {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .stat-plus {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .footer-col h4 {
        font-size: 16px;
    }
    
    .footer-links li,
    .footer-contact li,
    .footer-hours li {
        font-size: 13px;
    }
}

/* ============================================================
   MOBILE (320px) - SPECIFIC
============================================================ */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .section-subtitle {
        font-size: 10px;
    }
    
    .hero-slider {
        min-height: 350px;
    }
    
    .slider-dots {
        bottom: 10px;
    }
    
    .dot {
        width: 6px;
        height: 6px;
    }
    
    .dot.active {
        width: 20px;
    }
    
    .service-card,
    .facility-card,
    .blog-card {
        padding: 15px;
    }
    
    .service-card h3,
    .facility-card h4 {
        font-size: 15px;
    }
    
    .service-card p,
    .facility-card p {
        font-size: 12px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-plus {
        font-size: 16px;
    }
    
    .stat-item h6 {
        font-size: 11px;
    }
    
    .faq-question {
        font-size: 13px;
        padding: 10px;
    }
    
    .review-card {
        padding: 12px;
    }
    
    .review-meta strong {
        font-size: 13px;
    }
    
    .footer-col h4 {
        font-size: 15px;
    }
    
    .footer-links li,
    .footer-contact li,
    .footer-hours li {
        font-size: 12px;
    }
    
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }
}

/* ============================================================
   LANDSCAPE MODE FOR MOBILE DEVICES
============================================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 300px;
    }
    
    .main-nav.open {
        max-height: 80vh;
    }
    
    .mobile-nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .site-header {
        position: sticky;
    }
}

/* ============================================================
   FOLDABLE DEVICES (Galaxy Fold, etc.)
============================================================ */
@media (max-width: 280px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-slider {
        height: 200px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .service-card h3,
    .facility-card h4 {
        font-size: 14px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

/* ============================================================
   PRINT STYLES
============================================================ */
@media print {
    .top-bar,
    .hero-slider,
    .whatsapp-float,
    .scroll-top,
    .cta-banner,
    .appt-form,
    .hamburger,
    .main-nav {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* ============================================================
   UTILITY CLASSES FOR RESPONSIVE
============================================================ */
.hide-on-mobile {
    display: block;
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none;
    }
    
    .hide-on-desktop {
        display: block;
    }
}

/* Fix for horizontal scroll on all devices */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Ensure all images are responsive */
img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Fix for flexbox wrapping on small devices */
.flex-wrap-on-mobile {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .flex-column-on-mobile {
        flex-direction: column;
    }
    
    .text-center-on-mobile {
        text-align: center;
    }
}

/* ==========================end responsive ====================== */ 
  

