:root{
  --neuro-img-1: url("image/neurology-service.png");
  --neuro-img-2: url("image/neurologybanner.jpg");
  --neuro-accent: #00a6be;
  --neuro-green: #5ee487;
  --header-h: 80px; /* Header height */
}

/* ✅ GLOBAL FIX */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Neuro Hero Section */
.neuro-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 50vh; /* 40% of viewport height */
  min-height: 260px; /* Ensure it's not too small on smaller screens */
  overflow: hidden;
  background: #0b1220;
  display: grid;
  place-items: center;
  padding: 46px 18px;
  margin-top: var(--header-h); /* Ensure it starts below the header */
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* top accent */
.neuro-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--neuro-accent), transparent);
  z-index: 3;
  opacity: .9;
}

/* BACKGROUND LAYERS */
.neuro-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  will-change: transform, opacity;
}

/* Image 1 */
.neuro-bg-1 {
  background-image: var(--neuro-img-1);
  animation: neuroFadeZoom 10s ease-in-out infinite;
}

/* Image 2 (delayed swap) */
.neuro-bg-2 {
  background-image: var(--neuro-img-2);
  animation: neuroFadeZoom 10s ease-in-out infinite;
  animation-delay: 5s;
}

/* Zoom + crossfade */
@keyframes neuroFadeZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  10% {
    opacity: 1;
    transform: scale(1.03);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }

  60% {
    opacity: 0;
    transform: scale(1.10);
  }

  100% {
    opacity: 0;
    transform: scale(1.10);
  }
}

/* Overlay */
.neuro-hero-overlay {
  inset: 0;
  background: radial-gradient(60% 90% at 50% 40%, rgba(0, 0, 0, .20), rgba(0, 0, 0, .70)),
    linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .65));
  z-index: 1;
}

/* Content */
.neuro-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 980px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 16px;
}

.neuro-hero-title {
  margin: 0 0 16px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  line-height: 1.06;
  font-size: 33px;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  order: 1;
}

.neuro-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  order: 2;
}

.neuro-hero-link {
  color: #0B5ED7;
  text-decoration: none;
  transition: opacity .2s ease;
}

.neuro-hero-link:hover {
  opacity: .85;
}

.neuro-hero-sep {
  opacity: .8;
  color: black;
}

.neuro-hero-current {
  opacity: .92;
  color: #0B5ED7;
}
/* Desktop 1025px+ */
@media (min-width: 1025px) {
  .neuro-hero {
    margin-top: 176px;
    padding-top: 80px;
    height: 50vh;
    min-height: 260px;
  }
   .neuro-hero-breadcrumb{
    margin-bottom: 60px;
   }
}
/* Responsive header heights */
@media (max-width: 1024px) {
  .neuro-hero {
    margin-top: 176px; /* Removed gap between header and hero section */
    height: 50vh;
    min-height: 300px;
  }
}

/* Tablet & Mobile Responsiveness */
/* Tablet Responsiveness */
@media (min-width: 768px) and (max-width: 1023px) {
  .neuro-hero {
    height: 50vh;
    min-height: 280px;
    padding: 15px 12px;
    margin-top: 67px;
  }

  .neuro-hero-title {
    font-size: clamp(26px, 6vw, 40px);
  }

  .neuro-hero-breadcrumb {
    font-size: 14px;
    gap: 8px;
  }
}

@media (min-width: 275px) and (max-width: 767px){
  .neuro-hero {
    height: 40vh;
    min-height: 260px;
    margin-top: 66px; /* Mobile header height */
  }
  
  .neuro-hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  
  .neuro-hero-breadcrumb {
    font-size: 13px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .neuro-hero-bg {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .neuro-bg-2 {
    display: none;
  }
}


/* Resetting box model */
* {
  box-sizing: border-box;
}

.service-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Left side - Services List */
.service-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.service-card {
  background: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
  color: #ffffff;
  padding: 6px 10px;
  margin: 3px 0;
  cursor: pointer;
  border: 1px solid #007BFF;
  transition: background-color 0.3s, transform 0.3s;
  font-size: 13px;
  text-align: center;
  border-radius: 5px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.service-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.service-card:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

/* Right side - Service Content */
.service-content {
  flex: 2;
  margin-left: 20px;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: 650px;
  box-sizing: border-box;
  align-self: flex-start; /* ← Yahi fix hai, content ki height cards se match nahi karegi */
  height: auto;           /* ← Extra space nahi aayega neeche */
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

ul {
  list-style-type: disc;
  margin-left: 20px;
  font-size: 16px;
  line-height: 1.6;
}

/* ✅ Desktop + Laptop: 1024px aur upar */
@media (min-width: 1024px) {
  .service-section {
    gap: 40px;
  }
  .service-card {
    padding: 6px 10px;
    font-size: 13px;
    height: 38px;
  }
  .service-card h3 {
    font-size: 13px;
  }
  .service-content {
    align-self: flex-start;
    height: auto;
  }
}

/* ✅ Tablet: 768px – 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .service-section {
    gap: 15px;
    padding: 15px;
  }
  .service-list {
    gap: 4px;
  }
  .service-card {
    padding: 5px 8px;
    font-size: 12px;
    height: 34px;
    margin: 2px 0;
  }
  .service-card h3 {
    font-size: 12px;
  }
  .service-content {
    margin-left: 0;
    max-width: 100%;
    font-size: 15px;
    align-self: flex-start;
    height: auto;
  }
}

/* ✅ Mobile: 275px – 767px */
@media (min-width: 275px) and (max-width: 767px) {
  .service-section {
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }
  .service-list {
    gap: 4px;
  }
  .service-card {
    padding: 5px 8px;
    font-size: 11px;
    height: 32px;
    margin: 2px 0;
  }
  .service-card h3 {
    font-size: 11px;
  }
  .service-content {
    margin-left: 0;
    margin-top: 15px;
    max-width: 100%;
    font-size: 14px;
    padding: 15px;
    align-self: flex-start;
    height: auto;
  }
  h2 {
    font-size: 20px;
  }
  p {
    font-size: 14px;
  }
  ul {
    font-size: 14px;
  }
}
