/* ===================== GLOBAL ===================== */
: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;
  --grad: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}


/* ===================== HERO ===================== */
.neuro-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 50vh;
  min-height: 260px;
  overflow: hidden;
  background: #0b1220;
  display: grid;
  place-items: center;
  padding: 46px 18px;
  margin-top: var(--header-h);
}

.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;
}

.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;
}

.neuro-bg-1 {
  background-image: var(--neuro-img-1);
  animation: neuroFadeZoom 10s ease-in-out infinite;
}

.neuro-bg-2 {
  background-image: var(--neuro-img-2);
  animation: neuroFadeZoom 10s ease-in-out infinite;
  animation-delay: 5s;
}

@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); }
}

.neuro-hero-overlay {
  position: absolute;
  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;
}

.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,.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,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.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; }
}

/* Tablet 768px–1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .neuro-hero {
    margin-top: 67px;
    padding: 15px 12px;
    height: 50vh;
    min-height: 280px;
  }
  .neuro-hero-title { font-size: clamp(26px, 6vw, 40px); }
  .neuro-hero-breadcrumb { font-size: 14px; gap: 8px; }
}

/* Mobile max-767px */
@media (max-width: 767px) {
  .neuro-hero {
    margin-top: 66px;
    height: 40vh;
    min-height: 260px;
  }
  .neuro-hero-title { font-size: clamp(24px, 7vw, 32px); }
  .neuro-hero-breadcrumb { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .neuro-hero-bg { animation: none !important; opacity: 1; transform: none; }
  .neuro-bg-2 { display: none; }
}


/* ===================== SERVICE SECTION ===================== */
.service-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.service-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.service-card {
  background: var(--grad);
  color: #fff;
  padding: 6px 10px;
  margin: 3px 0;
  cursor: pointer;
  border: 1px solid #007BFF;
  border-radius: 5px;
  transition: filter 0.3s ease, transform 0.3s ease;
  font-size: 13px;
  text-align: center;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  width: 100%;
}

.service-card h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.service-card:hover {
  filter: brightness(0.88);
  transform: scale(1.03);
}

.service-content {
  flex: 2;
  margin-left: 20px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: 650px;
  align-self: flex-start;
  height: auto;
}

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 1024px+ */
@media (min-width: 1024px) {
  .service-section { gap: 40px; }
}

/* 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; }
}

/* Mobile max-767px */
@media (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; }
  h2 { font-size: 20px; }
  p, ul { font-size: 14px; }
}