/* === CONSULTAS PREMIUM === */
.consultas {
  padding: 4rem 1rem;
  background: #f7f9fc;
  font-family: "Inter", sans-serif;
}

.consultas-inner {
  display: flex;
  flex-wrap: nowrap; /* mantém as 3 colunas lado a lado */
  gap: 1rem;
  align-items: stretch; /* força altura igual */
  max-width: 97%;
  width: 97%;
  margin: 0 auto;
  padding: 1rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 77, 128, 0.2); /* sombra azul */
}

.banner-text .banner-buttons {
  margin-top: 80px;
}

/* ===========================
   MENU LATERAL DAS ESPECIALIDADES
=========================== */
.consultas-menu {
  flex: 0 0 300px;
  max-width: 300px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  padding: 1rem;
  position: sticky;
  top: 1.5rem;
  height: auto;
  box-shadow: none; /* sombra removida, já existe no container pai */
}

.consultas-menu h3 {
  margin-bottom: 0.8rem;
  color: #004d80;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #e6f2ff;
  padding-bottom: 0.4rem;
}

.consultas-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.consultas-menu li {
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #333;
  font-weight: 600;
  margin-bottom: 0.4rem;
  background: #f9fbfc;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.consultas-menu li:hover {
  background: #e6f2ff;
  color: #004d80;
  transform: translateX(3px);
}

.consultas-menu li.active {
  background: #004d80;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===========================
   TEXTO E CONTEÚDO DAS CONSULTAS
=========================== */
.consultas-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #333;
  box-shadow: none; /* sombra removida, já existe no container pai */
}

.consultas-text h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #004d80;
  margin-bottom: 1rem;
  width: 100%;
  word-wrap: break-word;
}

.consultas-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #004d80; /* mesma cor usada nos médicos */
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.consultas-text p {
  margin-bottom: 2rem;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}

.consultas-text h3 {
  color: #004d80;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

/* Lista dos médicos */
.medicos-list {
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0;
}

.medicos-list li {
  background: #f9fbfc;
  margin-bottom: 0.4rem;
  padding: 0.5rem 0.8rem;
  padding-left: 3rem;
  border-radius: 6px;
  font-weight: 500;
  color: #333;
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: background 0.3s ease, transform 0.2s ease;
}

.medicos-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #004d80;
  font-size: 0.9rem;
}

.medicos-list li:hover {
  background: #e6f2ff;
  color: #004d80;
  transform: translateX(3px);
}

/* ===========================
   CONTEÚDO DA ESPECIALIDADE
=========================== */
.consultas-content {
  flex: 1;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  animation: fadeIn 0.4s ease-in-out;
  min-height: 500px;
  box-shadow: none; /* sombra removida */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Imagem da consulta */
.consultas-img-container {
  flex: 0 0 320px;
  max-width: 320px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.consultas-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: none; /* sombra removida */
}

/* Lista lateral de especialidades */
.especialidades-lista {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-sizing: border-box;
  word-wrap: break-word;
}

.especialidades-lista li {
  padding: 8px 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  white-space: normal;
  word-wrap: break-word;
}

.especialidades-lista li:last-child {
  border-bottom: none;
}

.especialidades-lista li.active {
  background: #f0f0f0;
  font-weight: bold;
}

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (min-width: 993px) {
  .consultas-inner {
    flex-direction: row;
    gap: 1rem;
  }
  .consultas-text h1 {
    font-size: 1rem;
  }

  .consultas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .consultas-menu {
    flex: 0 0 300px;
    max-width: 300px;
    position: sticky;
    top: 2rem;
  }
}

@media (max-width: 992px) {
  .consultas-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

.consultas-text h1 {
    font-size: 1rem;
  }
  .consultas-content {
    flex-direction: column;
    gap: 1rem;
    min-height: auto;
  }

  .consultas-img-container {
    width: 100%;
    max-height: 400px;
  }

  .consultas-img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
  }

  .consultas-menu {
    width: 100%;
    max-width: 100%;
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .consultas-text h1 {
    font-size: 1rem;
    text-align: center;
  }
  .consultas-text h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .consultas-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .consultas-content {
    flex-direction: column;
    gap: 1rem;
  }

  .consultas-menu ul {
    display: none;
  }

  .consultas-img-container {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    max-height: none; /* deixa a altura livre */
  }

  .consultas-img {
    width: 100%;
    height: auto;
    max-height: none; /* evita corte vertical */
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .consultas-text h1 {
    font-size: 1rem;
  }

  .consultas-text h2 {
    font-size: 1.3rem;
    text-align: center;
  }

  .consultas-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .medicos-list li {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    padding-left: 2.5rem;
  }

  .consultas-img-container {
    flex: 1 1 100%;
    max-width: 100%;
    max-height: none;
  }

  .consultas-img {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 360px) {
  .consultas-text h1 {
    font-size: 1rem;
  }
  .consultas-text h2 {
    font-size: 1.3rem;
    text-align: center;

  .medicos-list {
    grid-template-columns: 1fr;
  }

  .consultas-img-container {
    max-width: 100%;
    max-height: none;
  }

  .consultas-img {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .consultas-text p {
    font-size: 0.9rem;
  }

  .consultas-content {
    padding: 1rem;
  }
}