.head-carousel {
  color: rgb(34, 34, 34);
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  max-width: 36%;
  background: var(--highlight);
  padding: 0.75rem 2.5rem;
  border-radius: 1rem;
  margin: 2rem auto 0px;
}

.neuro-carousel {
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
  max-width: 1200px;
  margin: auto;
}

.carousel-info {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  margin: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  position: relative;
}

.carousel-info h4 {
  color: #af4646;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.carousel-info p {
  max-width: 600px;
  margin: 0 auto 1rem;
  color: #555;
  font-size: 1rem;
}

.symptoms-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.symptoms-list.show {
  max-height: 500px;
  opacity: 1;
}

.symptom-item {
  background: #fdf0ba;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #333;
}

.symptom-warning {
  background: #d4f6da;
  color: #1a202c;
}

.toggle-symptoms {
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background: #f5d976;
  color: #1a202c;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  animation: shadow-pulse 2s infinite;
}

.toggle-symptoms:hover {
  background-color: #fdf0ba;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  margin: auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 1.5rem;
  justify-content: space-evenly;
  scrollbar-width: none;
  scroll-padding-inline: 1.5rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.icon-item {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.144);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
  scroll-snap-align: center;
  position: relative;
}

.icon-item svg {
  width: 48px;
  height: 48px;
  max-width: 90%;
  max-height: 90%;
  fill: #363021;
  transition: transform 0.3s ease, fill 0.3s ease;
}

.icon-item:hover svg {
  transform: scale(1.1);
}

.icon-item.active svg {
  fill: white;
  transform: scale(1.1);
}

.icon-item.active {
  background: linear-gradient(145deg, #fffae7, #f5d976);
  transform: scale(1.1);
}

.controls-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.toggle-auto {
  background: #25262a;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  animation: shadow-pulse 2s infinite;
}

.toggle-auto:hover {
  background: #fdf0ba;
  color: #25262a;
}

@keyframes shadow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 182, 93, 0.4);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(223, 182, 71, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(223, 182, 71, 0);
  }
}

@media (max-width: 600px) {
  .carousel-info {
    padding: 1.5rem;
  }
  .carousel-info h2 {
    font-size: 1.5rem;
  }
  .carousel-info p {
    font-size: 0.9rem;
  }
  .icon-item {
    width: 70px;
    height: 70px;
  }
  .icon-item svg {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
    .head-carousel {
        max-width: 80%;
        margin: 0.5rem auto 0 auto;
        padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    }
}

@media (max-width: 925px) {
    .head-carousel {
        max-width: 80%;
        margin: 1rem auto 0 auto;
        padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    }
}
