/* Estilos exclusivos da página inicial (index.html) */
body { padding-top: 80px; text-align: left; visibility: hidden; }
body.modal-open { overflow: auto; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 20px; }

.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 80px 20px 90px;
  text-align: left;
  border-radius: 0 0 40px 40px;
  box-shadow: inset 0 -15px 30px rgba(0,0,0,0.04);
}
.hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: 15px; max-width: 800px; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: 0.95; margin-bottom: 35px; max-width: 700px; line-height: 1.6; }

#loadingState { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; }
.spinner { width: 50px; height: 50px; border: 5px solid #eef7ff; border-top: 5px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Caixa de Pesquisa Avançada no Hero */
.search-box-home { background: white; padding: 30px; border-radius: 24px; box-shadow: 0 20px 45px rgba(0,0,0,0.12); max-width: 950px; margin-top: 25px; color: #333; text-align: left; border: 1px solid rgba(255,255,255,0.8); }
.search-type-tabs { display: flex; gap: 15px; margin-bottom: 25px; border-bottom: 1px solid #eaeaea; padding-bottom: 15px; }
.tab-btn { background: none; border: none; font-size: 1rem; font-weight: 700; color: #666; cursor: pointer; padding: 10px 20px; border-radius: 12px; transition: 0.2s; }
.tab-btn.active { background: #f0fbfb; color: var(--primary); }

.search-fields-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; align-items: center; }
@media(max-width: 768px) { .search-fields-grid { grid-template-columns: 1fr; } }
.field-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.field-group label { font-size: 0.8rem; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.field-group select, .field-group input { padding: 14px 18px; border-radius: 14px; border: 1px solid #ddd; font-size: 0.95rem; outline: none; background: #fafafa; color: #333; transition: border-color 0.2s; }
.field-group select:focus, .field-group input:focus { border-color: var(--primary); background: white; }
.btn-search-home { background: var(--primary); color: white; border: none; padding: 16px 35px; border-radius: 14px; font-weight: 800; cursor: pointer; font-size: 1rem; height: 100%; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 20px rgba(29,178,196,0.25); }
.btn-search-home:hover { opacity: 0.9; }

/* Barra de Filtro Secundária (Resultados) */
.search-container { max-width: 1100px; margin: 25px auto 0; padding: 0 20px; display: flex; gap: 12px; align-items: center; text-align: left; }
.search-input { flex: 1; padding: 16px 22px; border-radius: 16px; border: 1px solid #ddd; font-size: 1rem; outline: none; background: white; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }

.filter-dropdown-wrapper { position: relative; }
.btn-filter-toggle { background: white; border: 1px solid #ddd; width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary); transition: 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.btn-filter-toggle:hover { background: #f0fbfb; }
.filter-dropdown-content { display: none; position: absolute; right: 0; top: 65px; background: white; min-width: 260px; box-shadow: 0 20px 40px rgba(0,0,0,0.15); border-radius: 16px; padding: 12px; z-index: 100; border: 1px solid #eee; max-height: 320px; overflow-y: auto; text-align: left; }
.filter-dropdown-content.show { display: block; }
.filter-option { padding: 12px 16px; font-size: 0.9rem; color: #444; cursor: pointer; border-radius: 10px; transition: 0.2s; text-align: left; }
.filter-option:hover { background: #f0fbfb; color: var(--primary); font-weight: 600; }

.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; text-align: left; }
.grid { display: grid; grid-template-columns: 1fr; max-width: 950px; margin: 0 auto; gap: 24px; text-align: left; }

/* Estilo de lista vertical padrão para os resultados */
.card { background: white; padding: 30px; border: 1px solid #eaeaea; border-radius: 20px; display: flex; align-items: center; gap: 30px; position: relative; overflow: hidden; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
@media(max-width: 768px) { .card { flex-direction: column; text-align: left; gap: 20px; padding: 25px 20px; } }

.img-perfil { width: 130px; height: 130px; min-width: 130px; aspect-ratio: 1/1; border-radius: 50%; background: #f0f0f0; border: 3px solid #f0fbfb; object-fit: cover; display: block; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
@media(max-width: 768px) { .img-perfil { margin: 0 auto; } }

.card-info-col { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.nome { font-size: 1.4rem; font-weight: 800; color: var(--dark); text-align: left; margin-bottom: 4px; }
.resumo { min-height: auto; margin: 8px 0 16px 0; font-size: 0.95rem; line-height: 1.5; color: #555; text-align: left; }

.card-meta-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; font-size: 0.85rem; color: #666; font-weight: 600; }
.card-meta-tag { background: #f0fbfb; color: var(--primary); padding: 6px 14px; border-radius: 8px; font-weight: 700; }

.preco-sessao { width: 100%; max-width: none; margin: 0 0 18px 0; padding: 12px 18px; background: #f4fbfb; border: 1px dashed var(--primary); border-radius: 12px; font-size: 0.95rem; color: var(--dark); font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.preco-sessao span { font-size: 0.8rem; color: #666; font-weight: 700; text-transform: uppercase; }
.preco-sessao strong { color: var(--primary); font-size: 1.1rem; }

.card-actions { margin-top: 0; display: flex; gap: 15px; max-width: none; width: 100%; }
.btn-card-perfil { background: #f4fbfb; border: 1px solid var(--primary); color: var(--primary); padding: 14px 20px; border-radius: 14px; font-weight: 700; cursor: pointer; font-size: 0.9rem; text-align: center; flex: 1; text-decoration: none; transition: background 0.2s; }
.btn-card-perfil:hover { background: #e2f5f5; }
.btn-card-whats { background: #25D366; color: white; border: none; padding: 14px 20px; border-radius: 14px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; flex: 1; box-shadow: 0 5px 15px rgba(37,211,102,0.2); transition: opacity 0.2s; }
.btn-card-whats:hover { opacity: 0.9; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2000; justify-content: center; align-items: center; padding: 20px; text-align: left; backdrop-filter: blur(5px); }
.modal-content { background: white; border-radius: 28px; max-width: 550px; width: 100%; padding: 40px; position: relative; max-height: 90vh; overflow-y: auto; text-align: left; box-shadow: 0 25px 50px rgba(0,0,0,0.25); }
.close-modal { position: absolute; top: 25px; right: 25px; font-size: 1.8rem; cursor: pointer; color: #888; transition: color 0.2s; }
.close-modal:hover { color: var(--dark); }

.termos-box { background: #f9fbfb; border: 1px solid #eaeaea; padding: 20px; border-radius: 16px; height: 260px; overflow-y: scroll; font-size: 0.85rem; line-height: 1.6; color: #555; margin: 25px 0; text-align: left; }

/* Últimas Avaliações na Home */
.secao-ultimas-avaliacoes { margin: 50px 0 30px; text-align: left; }
.secao-ultimas-avaliacoes h3 { color: var(--dark); margin-bottom: 25px; font-size: 1.6rem; font-weight: 800; text-align: left; }
.grid-ultimas-avaliacoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: left; }
@media(max-width: 900px) { .grid-ultimas-avaliacoes { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) { .grid-ultimas-avaliacoes { grid-template-columns: 1fr; } }
.avaliacao-card { background: white; padding: 24px; border-radius: 18px; border: 1px solid #eaeaea; text-align: left; box-shadow: 0 8px 20px rgba(0,0,0,0.03); transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; display: flex; flex-direction: column; }
.avaliacao-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.06); }
.avaliacao-autor { font-weight: 700; font-size: 0.95rem; color: var(--dark); display: flex; justify-content: space-between; align-items: center; text-align: left; gap: 15px; }
.avaliacao-estrelas { color: var(--primary); font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }
.avaliacao-comentario { font-size: 0.9rem; color: #555; margin-top: 12px; line-height: 1.6; text-align: left; flex: 1; }

/* Artigos na Home */
.secao-artigos-home { margin: 50px 0 30px; text-align: left; }
.secao-artigos-home-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.secao-artigos-home h3 { color: var(--dark); margin: 0; font-size: 1.6rem; font-weight: 800; text-align: left; }
.btn-todos-artigos { background: white; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; transition: background 0.2s; }
.btn-todos-artigos:hover { background: #f0fbfb; }
.grid-artigos-home { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.artigo-home-card { background: white; border: 1px solid #eaeaea; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.03); transition: transform 0.2s, box-shadow 0.2s; }
.artigo-home-card:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.06); }
.artigo-home-imagem { width: 100%; height: 160px; object-fit: cover; background: #eef7f7; display: block; }
.artigo-home-sem-imagem { display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 800; }
.artigo-home-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.artigo-home-meta { font-size: 0.7rem; color: var(--primary); font-weight: 800; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 0.5px; }
.artigo-home-card h4 { color: var(--dark); font-size: 1rem; line-height: 1.35; margin-bottom: 10px; font-weight: 800; }
.artigo-home-card p { color: #666; font-size: 0.82rem; line-height: 1.5; margin-bottom: 20px; flex: 1; }
.btn-ler-artigo { background: var(--primary); color: white; text-decoration: none; padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 0.8rem; text-align: center; transition: opacity 0.2s; }
.btn-ler-artigo:hover { opacity: 0.9; }
@media(max-width: 1000px) { .grid-artigos-home { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 600px) {
  .grid-artigos-home { grid-template-columns: 1fr; }
  .secao-artigos-home-header { align-items: flex-start; flex-direction: column; gap: 12px; }
}

/* Novos Perfis - carrossel simples */
.secao-novos-perfis { margin: 50px 0 30px; text-align: left; }
.secao-novos-perfis h3 { color: var(--dark); margin-bottom: 25px; font-size: 1.6rem; font-weight: 800; text-align: left; }
.carrossel-simples { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 15px; scroll-behavior: smooth; text-align: left; }
.carrossel-simples::-webkit-scrollbar { height: 8px; }
.carrossel-simples::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.carrossel-item { min-width: 280px; max-width: 280px; background: white; border-radius: 20px; padding: 20px; border: 1px solid #eaeaea; display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; box-shadow: 0 8px 20px rgba(0,0,0,0.03); transition: transform 0.2s; }
.carrossel-item:hover { transform: translateY(-3px); }
.carrossel-item-top { display: flex; align-items: center; gap: 15px; width: 100%; text-align: left; }
.carrossel-item-foto { width: 65px; height: 65px; min-width: 65px; border-radius: 50%; object-fit: cover; border: 2px solid #f0fbfb; display: block; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.carrossel-item-info { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; text-align: left; }
.carrossel-item h4 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin: 0; white-space: normal; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: left; line-height: 1.3; }
.btn-carrossel-ver { background: var(--primary); color: white; border: none; padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 0.8rem; cursor: pointer; width: 100%; text-align: center; text-decoration: none; transition: opacity 0.2s; display: inline-block; }
.btn-carrossel-ver:hover { opacity: 0.9; }

.footer { padding: 50px 20px; text-align: center; background: white; border-top: 1px solid #eee; margin-top: 50px; }
.footer-links { margin-top: 0; display: flex; justify-content: center; gap: 25px; font-size: 0.9rem; color: #666; align-items: center; text-align: center; flex-wrap: wrap; }
.footer-link { cursor: pointer; text-decoration: underline; text-align: center; transition: color 0.2s; }
.footer-link:hover { color: var(--primary); }
.btn-parceiro { background: var(--primary); color: white !important; text-decoration: none !important; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 0.85rem; border: none; cursor: pointer; text-align: center; transition: opacity 0.2s; }
.btn-parceiro:hover { opacity: 0.9; }

/* Estilos para lista de especialidades na Home */
.secao-especialidades-home { margin: 40px 0; text-align: left; }
.secao-especialidades-home h3 { color: var(--dark); margin-bottom: 20px; font-size: 1.4rem; font-weight: 800; }
.especialidades-tags-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-especialidade-home { background: white; border: 1px solid #ddd; padding: 10px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; color: #444; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.tag-especialidade-home:hover { background: #f0fbfb; border-color: var(--primary); color: var(--primary); }
.btn-ver-mais-esp { background: none; border: 1px dashed var(--primary); color: var(--primary); padding: 10px 18px; border-radius: 20px; font-size: 0.9rem; font-weight: 800; cursor: pointer; transition: 0.2s; }
.btn-ver-mais-esp:hover { background: #f0fbfb; }

.btn-voltar-home-resultados { display: inline-flex; align-items: center; gap: 8px; background: white; border: 1px solid #ddd; padding: 12px 20px; border-radius: 14px; font-weight: 700; font-size: 0.9rem; cursor: pointer; margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); color: var(--primary); transition: background 0.2s; }
.btn-voltar-home-resultados:hover { background: #f0fbfb; }
