/* 
  Cosmo Expert Clinic - Premium Medical Website CSS
  Theme: Light Blue, White, Dark Navy
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #f000b8;
  --primary-light: rgba(240, 0, 184, 0.15);
  --primary-gradient: linear-gradient(135deg, #8e2de2 0%, #f000b8 100%);
  --secondary: #0b011d;
  --accent: #ffffff;
  --bg-color: #0b011d;
  --text-main: #ffffff;
  --text-muted: #bdaec6;
  --border-color: rgba(255, 255, 255, 0.08);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--accent);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 100px 0;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-2 { margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  gap: 10px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 10px 20px rgba(240, 0, 184, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(240, 0, 184, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 20px rgba(240, 0, 184, 0.3);
  transform: translateY(-3px);
}

/* Glassmorphism Classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* Topbar */
.topbar {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-info {
  display: flex;
  gap: 20px;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-social a {
  color: #fff;
  margin-left: 15px;
  font-size: 16px;
}

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

/* Header & Navbar */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 1, 29, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(11, 1, 29, 0.9);
  border-bottom-color: rgba(240, 0, 184, 0.15);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* Clinic Logo Branding */
.logo-brand-img-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  transition: var(--transition);
}

.logo-brand-img-wrap:hover {
  transform: translateY(-2px) scale(1.02);
}

.clinic-logo-img {
  height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.logo-brand-img-wrap:hover .clinic-logo-img {
  transform: scale(1.02);
}

/* Footer Logo branding */
.footer-logo-wrap {
  display: inline-flex;
  justify-content: center;
  margin-bottom: 25px;
}

.footer-logo-img {
  height: 66px;
  width: auto;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: var(--transition);
}

.footer-logo-img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* Navigation Menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
}

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

.nav-cta {
  background: var(--primary-gradient);
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(240, 0, 184, 0.3);
  transition: var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 0, 184, 0.5) !important;
}

/* Menu Toggle / Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: 900px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  pointer-events: none;
  z-index: 999;
  border-top: 3px solid var(--primary);
}

.nav-links > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-column h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.mega-menu-column ul li {
  margin-bottom: 10px;
}

.mega-menu-column ul li a {
  font-size: 14px;
  color: var(--text-muted);
  display: block;
  transition: var(--transition);
}

.mega-menu-column ul li a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--accent);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 80px;
  background: radial-gradient(circle at 75% 30%, rgba(142, 45, 226, 0.25) 0%, rgba(11, 1, 29, 0) 65%), #0b011d;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(240, 0, 184, 0.1);
  border: 1px solid rgba(240, 0, 184, 0.25);
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  margin-bottom: 25px;
}

.hero-content h1 {
  font-size: 60px;
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin-bottom: 25px;
  letter-spacing: -1.5px;
}

.hero-content h1 .highlight {
  background: linear-gradient(135deg, #f000b8 20%, #8e2de2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 550px;
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
}

.hero-image .aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(240, 0, 184, 0.3) 0%, rgba(142, 45, 226, 0.1) 45%, rgba(11, 1, 29, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  filter: blur(40px);
  pointer-events: none;
}

.doctor-cutout {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  margin-bottom: -80px;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.6));
}

/* Trust Section */
.trust-section {
  padding: 60px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 10;
  margin-top: -50px;
  box-shadow: var(--glass-shadow);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.trust-item h3 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 5px;
}

.trust-item p {
  font-weight: 600;
  color: #fff;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(240, 0, 184, 0.2);
  border-color: var(--primary);
}

.service-img {
  height: 250px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 30px;
}

.service-content h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.service-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-link:hover {
  gap: 12px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-img-sub {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 50%;
  border-radius: var(--radius-md);
  border: 10px solid #fff;
  box-shadow: var(--shadow-lg);
}

.about-content h2 {
  font-size: 42px;
  margin-bottom: 20px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Process Timeline */
.process-section {
  background: #110228;
  color: #fff;
}

.process-section .section-header h2 {
  color: #fff;
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 18%;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: #1a0836;
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--primary);
  margin: 0 auto 20px;
  transition: var(--transition);
}

.timeline-step:hover .step-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.timeline-step h4 {
  color: #fff;
  margin-bottom: 10px;
}

.timeline-step p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Doctors Section */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.doctor-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  text-align: center;
  color: #fff;
}

.doctor-img {
  height: 350px;
  overflow: hidden;
}

.doctor-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.doctor-card:hover .doctor-img img {
  transform: scale(1.05);
}

.doctor-info {
  padding: 30px;
}

.doctor-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
  color: #fff;
}

.doctor-info p {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
}

.doctor-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.doctor-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-social a:hover {
  background: var(--primary);
  color: #fff;
}

/* FAQs */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  color: #fff;
}

.faq-question i {
  color: var(--primary);
  transition: var(--transition);
}

.faq-answer {
  padding: 0 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  padding: 0 30px 20px;
  max-height: 500px; /* Arbitrary large number for animation */
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: var(--accent);
  color: #fff;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo h2 {
  font-size: 32px;
  color: #fff;
}

.footer-logo span {
  color: var(--primary);
}

.footer-about {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  margin-bottom: 30px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-widget h4 {
  font-size: 20px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

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

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--primary);
  font-size: 20px;
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}



/* Responsive Design */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 48px;
  }
  
  .hero-content p {
    margin: 0 auto 30px;
  }
  
  .services-grid, .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .timeline::before {
    left: 40px;
    top: 0;
    width: 2px;
    height: 100%;
  }
  
  .timeline-step {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    margin-bottom: 30px;
  }
  
  .step-icon {
    margin: 0 30px 0 0;
  }
}

@media (max-width: 1024px) {
  .topbar {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 78px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 78px);
    background: rgba(11, 1, 29, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1005;
    overflow-y: auto; /* Prevent cuts in short/landscape mobile viewports */
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links > li > a {
    font-size: 20px;
  }
  
  .mega-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
    display: none;
    padding: 15px 0;
    pointer-events: auto;
  }
  
  .nav-links > li:hover .mega-menu {
    display: block;
  }
  
}

@media (max-width: 768px) {
  .services-grid, .doctors-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Appointment Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background: #110228;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition);
  color: #fff;
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-muted);
}

.popup-form .form-group {
  margin-bottom: 20px;
}

.popup-form input, .popup-form select {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.popup-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.popup-form input:focus, .popup-form select:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.popup-form .btn {
  width: 100%;
}

/* Results Gallery Carousel (Simplified for dummy content) */
.results-carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
}

.results-carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.result-card {
  min-width: 300px;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.result-images {
  display: flex;
}

.result-images img {
  width: 50%;
  height: 200px;
  object-fit: cover;
}

/* ==========================================================
   PREMIUM CUSTOM STYLES & LAYOUT EXTENSIONS (HOSTINGER FIXES)
   ========================================================== */

.bg-glass-layer {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* About Page Custom Responsive Layouts */
.about-header {
    padding-top: 180px;
    text-align: center;
}

.about-header-title {
    font-size: 60px;
    font-family: var(--font-heading);
    margin-bottom: 20px;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-achievements-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* Qualifications Section (Degrees Grid) */
.degrees-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.degree-card {
    text-align: center;
    padding: 35px 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.degree-card img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.degree-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent);
}

.degree-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.degree-card:hover {
    box-shadow: 0 15px 35px rgba(240, 0, 184, 0.15);
    border-color: var(--primary);
}

/* Specializations Section */
.specializations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.spec-tag {
    background: rgba(240, 0, 184, 0.08);
    border: 1px solid rgba(240, 0, 184, 0.25);
    color: var(--accent);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.spec-tag i {
    color: var(--primary);
}

.spec-tag:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(240, 0, 184, 0.25);
}

.spec-tag:hover i {
    color: #fff;
}

/* Philosophy & Approach Grid */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.approach-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.approach-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.approach-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.3;
}

.approach-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(240, 0, 184, 0.15);
}

.approach-card:hover .approach-icon {
    color: var(--primary);
}

/* Background Aesthetics (Orbs & Aura Backdrops) */
.orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.orb-1 {
    top: 5%;
    left: -15%;
    background: var(--primary);
}

.orb-2 {
    top: 45%;
    right: -15%;
    background: #8e2dd8;
}

.aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(240, 0, 184, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.doctor-cutout {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(17, 42, 70, 0.15));
}

/* Bespoke Services (Vertical Cards) */
.vertical-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.vertical-card {
    position: relative;
    height: 520px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    cursor: pointer;
}

.vertical-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.vertical-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 42, 70, 0.85) 0%, rgba(17, 42, 70, 0.25) 50%, transparent 100%);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
}

.vertical-card-sub {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.vertical-card-title {
    color: #fff;
    font-size: 26px;
    font-weight: 700;
    transform: translateY(10px);
    transition: var(--transition);
    line-height: 1.2;
}

.vertical-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(240, 0, 184, 0.22);
    border-color: var(--primary);
}

.vertical-card:hover img {
    transform: scale(1.12);
}

.vertical-card:hover .vertical-card-sub {
    transform: translateY(0);
    opacity: 1;
}

.vertical-card:hover .vertical-card-title {
    transform: translateY(0);
}

/* Before/After Transformation Results Grid & Crop Split */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.ba-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.ba-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(240, 0, 184, 0.2);
    border-color: var(--primary);
}

.ba-comparison {
    display: flex;
    height: 330px;
    position: relative;
    background: #0b011d;
    cursor: pointer;
    overflow: hidden;
}

.ba-side {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ba-side-before {
    border-right: 1.5px solid rgba(255, 255, 255, 0.6);
}

.ba-side img {
    position: absolute;
    width: 200%;
    max-width: none !important;
    height: 100%;
    object-fit: cover;
    top: 0;
    transition: transform 0.6s ease;
}

.ba-side-before img {
    left: 0;
    object-position: 18% center;
    filter: brightness(0.96);
}

.ba-side-after img {
    left: -100%;
    object-position: 82% center;
}

/* Deleted redundant top before/after overlay tag properties */

.ba-footer {
    padding: 22px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border);
}

.ba-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.ba-disclaimer {
    text-align: center;
    margin-top: 25px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Results Lightbox Modal */
.results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 1, 29, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    border: 1px solid var(--glass-border);
    background: rgba(18, 8, 38, 0.95);
    padding: 8px;
}

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
    transform: scale(1.15);
}

/* ==========================================================
   REBUILT PREMIUM BEFORE/AFTER COMPARISON GRID
   ========================================================== */

.slider-section {
    padding: 100px 0;
    position: relative;
}

.slider-grid.new-3col-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 50px;
}

.slider-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.slider-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(240, 0, 184, 0.16);
    transform: translateY(-4px);
}

.slider-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-align: center;
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    background: #0b011d;
    user-select: none;
}

/* Image Cropping & Proportions */
.comparison-slider .slider-img {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center top; /* Ensure forehead/hair are fully visible at the top */
    pointer-events: none;
}


.comparison-slider .img-before {
    z-index: 1;
}

.comparison-slider .img-after {
    z-index: 2;
    clip-path: inset(0 0 0 50%); /* Start at exactly 50% split */
}

/* Slidable Range Input (Transparent Invisible Overlay) */
.slider-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 5;
    cursor: ew-resize;
    width: 100%;
    height: 100%;
    margin: 0;
}

/* Luxury Center Slider Handle */
.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    z-index: 4;
    pointer-events: none;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(240, 0, 184, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comparison-slider:hover .handle-circle {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 20px rgba(240, 0, 184, 0.6);
}

.handle-circle::before, .handle-circle::after {
    content: '';
    border: solid #fff;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    position: absolute;
}

.handle-circle::before {
    transform: rotate(135deg);
    left: 13px;
}

.handle-circle::after {
    transform: rotate(-45deg);
    right: 13px;
}

/* Clean Bottom Labels Only */
.slider-label {
    position: absolute;
    bottom: 16px;
    background: rgba(11, 1, 29, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 3;
    pointer-events: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.label-before {
    left: 16px;
}

.label-after {
    right: 16px;
}

.slider-disclaimer {
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.3px;
}

/* Redesigned Premium Certificates Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.cert-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 330px; /* Strict uniform height across all cards */
}

.cert-img-container {
    height: 180px; /* Fixed height for image container */
    background: rgba(11, 1, 29, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.cert-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain original aspect ratios without stretching/cropping */
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.cert-info {
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.cert-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Strict 2-line title limit */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* Fixed title height for pixel-perfect row alignment */
}

.cert-institution {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cert-year {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.cert-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(240, 0, 184, 0.15);
    transform: translateY(-5px);
}

.cert-card:hover .cert-img-container img {
    transform: scale(1.04);
}

/* Certifications Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 1, 29, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(18, 8, 38, 0.95);
    padding: 8px;
}

.lightbox-close, .lightbox-rotate {
    position: absolute;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2010;
}

.lightbox-close {
    top: 30px;
    right: 30px;
    font-size: 34px;
}

.lightbox-rotate {
    top: 30px;
    right: 100px;
    font-size: 18px;
}

.lightbox-close:hover, .lightbox-rotate:hover {
    background: var(--primary);
    transform: scale(1.12);
}

.lightbox img.rotate-90 {
    transform: rotate(90deg) scale(0.78);
}

.lightbox img.rotate-minus-90 {
    transform: rotate(-90deg) scale(0.78);
}

.lightbox img.rotate-180 {
    transform: rotate(180deg) scale(0.95);
}

/* Clinical Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 310px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 42, 70, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.gallery-overlay span {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transform: translateY(12px);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(240, 0, 184, 0.22);
    border-color: var(--primary);
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* WhatsApp Floating CTA button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 62px;
    height: 62px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    z-index: 1000;
    transition: var(--transition);
    animation: pulseWhatsApp 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    color: #fff;
    background: #20ba5a;
}

@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.75); }
    70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================
   PREMIUM STABLE CONTACT & CONSULTATION CTA SECTION
   ========================================================== */

#contact {
    position: relative;
    padding: 100px 0;
    background: transparent;
}

.contact-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    /* Stable - absolutely no skew or rotate transforms */
    transform: none !important;
    transition: var(--transition);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    color: #fff;
}

.contact-form p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-cta-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

/* Align and style the CTA button */
.contact-form .btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 8px 25px rgba(240, 0, 184, 0.45);
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 50px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    transform: none !important; /* No floating animation */
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 30px rgba(240, 0, 184, 0.65) !important;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 50px;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-item h4 i {
    font-size: 15px;
    color: var(--primary);
}

.contact-info-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.contact-info-item .phone-highlight {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2px;
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 40px;
    }
}

@media (max-width: 576px) {
    .contact-card {
        padding: 40px 24px;
        border-radius: var(--radius-md);
    }
    
    .contact-form h2 {
        font-size: 30px;
    }
}


/* FULL RESPONSIVENESS ADAPTATIONS & BREAKPOINTS */
@media (max-width: 1024px) {
    .degrees-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vertical-cards-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ba-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slider-grid.new-3col-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approach-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-achievements-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
}

@media (max-width: 768px) {
    .degrees-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vertical-cards-row {
        grid-template-columns: 1fr;
    }
    
    .vertical-card {
        height: 420px;
    }
    
    .ba-grid {
        grid-template-columns: 1fr;
    }
    
    .ba-comparison {
        height: 290px;
    }
    
    .slider-grid.new-3col-layout {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 260px;
    }
    
    .lightbox img {
        max-width: 95%;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .lightbox-rotate {
        top: 20px;
        right: 80px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }

    .about-header {
        padding-top: 130px;
        padding-bottom: 50px;
    }
    
    .about-header-title {
        font-size: 38px;
    }
    
    .orb {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }
}

@media (max-width: 576px) {
    .glass-card {
        padding: 25px 20px;
        border-radius: var(--radius-md);
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 34px;
        line-height: 1.25;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .doctor-cutout {
        max-height: 380px;
        margin-bottom: -40px;
    }
}

@media (max-width: 480px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cert-card {
        height: auto;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }

    .clinic-logo-img {
        height: 48px;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .trust-item h3 {
        font-size: 28px;
    }
    
    .trust-item p {
        font-size: 12px;
    }
}
