html,
body {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header - ATUALIZADO PARA FUNDO BRANCO */
.header {
  background: white;
  color: #1f2937;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.logo-image {
  height: 75px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-fallback h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.nav a:hover {
  color: #2563eb;
}

.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #2563eb;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* Menu Hambúrguer */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #1f2937;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #e5e7eb;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  color: #1f2937;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background: #f8fafc;
  padding-left: 1rem;
  border-radius: 8px;
  color: #2563eb;
}

/* Hero Section - COM IMAGEM DE FUNDO */
.hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.85), rgba(30, 64, 175, 0.85)),
    url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/pessoas-RZk5bQSXILsE9CTNRZvNgT8pY1mV0U.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 120px 0 80px;
  margin-top: 80px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.7), rgba(30, 64, 175, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-container {
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-box i {
  color: #2563eb;
  font-size: 1.2rem;
}

.search-box select {
  background: transparent;
  border: none;
  color: #1f2937;
  font-size: 1rem;
  flex: 1;
  outline: none;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
}

.search-box select option {
  background: white;
  color: #1f2937;
}

.search-filter-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.filter-checkbox i {
  font-size: 0.9rem;
  color: #2563eb;
}

.search-btn {
  background: #2563eb;
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  font-family: "Nunito", sans-serif;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.search-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

/* mobile: esconder a seção de stats */
@media (max-width: 768px) {
  .stats {
    display: none;
  }
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Remover a seção da imagem do hero */
.hero-image {
  display: none;
}

/* Banner Section - SOLUÇÃO QUE FUNCIONA */
.banner-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  background-color: #f0f0f0;
}

.banner-carousel {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-slide a {
  display: block;
  width: 100%;
  height: auto;
}

/* Video Section - CORRIGIDO PARA MANTER PROPORÇÃO */
.video-section {
  padding: 60px 0;
  background: #000;
}

.video-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
  font-weight: 800;
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.video-thumbnail {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  /* Usar proporção 16:9 em vez de altura fixa */
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Iframe do YouTube - CORRIGIDO */
.video-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-radius: 20px !important;
  display: block !important;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  transition: transform 0.3s;
  z-index: 10;
}

.video-thumbnail:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Categories */
.categories {
  padding: 80px 0;
  background: #f8fafc;
}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
  font-weight: 800;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.category-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  font-size: 2rem;
  color: white;
}

.category-icon.yellow {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.category-icon.orange {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.category-icon.green {
  background: linear-gradient(135deg, #34d399, #10b981);
}

.category-icon.blue {
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.category-icon.purple {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
}

.category-icon.gray {
  background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.category-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.category-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
}

/* Professionals */
.professionals {
  padding: 80px 0;
  background: white;
}

.professionals h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
  font-weight: 800;
}

.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.professional-card {
  background: white;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.professional-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.professional-image {
  position: relative;
  flex-shrink: 0;
}

.professional-image img {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid #3b82f6;
}

.available-badge {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: #ef4444;
  color: white;
  padding: 4px 8px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 2px solid white;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.available-badge i {
  font-size: 0.6rem;
}

.professional-info {
  flex: 1;
}

.professional-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.professional-categories {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-badge {
  background: #3b82f6;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-block;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-star {
  color: #fbbf24;
  font-size: 1.2rem;
}

.rating-text {
  font-size: 1rem;
  color: #1f2937;
  font-weight: 700;
}

.rating-count {
  color: #6b7280;
  font-weight: 500;
}

.whatsapp-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #10b981;
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-btn:hover {
  background: #059669;
}

/* News */
.news {
  padding: 80px 0;
  background: #f8fafc;
}

.news h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1f2937;
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.news-date,
.news-location {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-date {
  background: #dbeafe;
  color: #1e40af;
}

.news-location {
  background: #e0e7ff;
  color: #5b21b6;
}

.news-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #1f2937;
  line-height: 1.4;
}

.news-content p {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.9rem;
  flex: 1;
  font-weight: 500;
}

.news-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.like-btn,
.comment-btn {
  background: #f3f4f6;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.like-btn:hover {
  background: #dbeafe;
  color: #1e40af;
}

.comment-btn:hover {
  background: #f3e8ff;
  color: #7c3aed;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-weight: 800;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-section p {
  color: #d1d5db;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.logo-image-footer {
  height: 40px;
  width: auto;
}

.logo-fallback-footer h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-weight: 500;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: #000;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 3rem;
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Search Results Page */
.search-results {
  padding: 120px 0 80px;
  background: #f8fafc;
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
}

.search-header h2 {
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 1rem;
  font-weight: 800;
}

.search-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.search-info span {
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  color: #374151;
}

/* News Page */
.news-page {
  padding: 120px 0 80px;
  background: #f8fafc;
}

.news-page h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #1f2937;
  margin-bottom: 3rem;
  font-weight: 800;
}

.news-page .news-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* News Article Page - CORRIGIDO */
.news-article {
  padding: 120px 0 80px;
  background: white;
}

.news-full {
  max-width: 800px;
  margin: 0 auto;
}

.news-header {
  position: relative;
  margin-bottom: 3rem;
}

.news-image-full {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.news-image-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-title-overlay {
  position: static;
  background: none;
  color: #1f2937;
  padding: 0;
  border-radius: 0;
  margin-bottom: 2rem;
}

.news-title-overlay h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
  color: #1f2937;
}

.news-meta-full {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.news-meta-full span {
  background: #f3f4f6;
  color: #374151;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-meta-full .news-date {
  background: #dbeafe;
  color: #1e40af;
}

.news-meta-full .news-location {
  background: #e0e7ff;
  color: #5b21b6;
}

.news-meta-full .news-author {
  background: #f0fdf4;
  color: #16a34a;
}

.news-content-full {
  line-height: 1.8;
  color: #374151;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.news-content-full p {
  margin-bottom: 1.5rem;
}

.news-video {
  margin-bottom: 3rem;
}

.news-video h3 {
  margin-bottom: 1rem;
  color: #1f2937;
  font-weight: 800;
}

.news-video .video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
}

.news-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

.news-actions-full {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 15px;
}

.news-actions-full button {
  background: white;
  border: 1px solid #e5e7eb;
  padding: 12px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.news-actions-full .like-btn:hover {
  background: #dbeafe;
  color: #1e40af;
  border-color: #3b82f6;
}

.news-actions-full .comment-btn:hover {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #8b5cf6;
}

.news-actions-full .share-btn:hover {
  background: #dcfce7;
  color: #16a34a;
  border-color: #10b981;
}

.news-navigation {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.btn-voltar,
.btn-ver-todas {
  background: #2563eb;
  color: white;
  padding: 12px 24px;
  border-radius: 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: background 0.3s;
}

.btn-voltar:hover,
.btn-ver-todas:hover {
  background: #1d4ed8;
}

.error-message {
  text-align: center;
  padding: 3rem;
}

.error-message h2 {
  color: #ef4444;
  margin-bottom: 1rem;
  font-weight: 800;
}

/* Search filters for busca.html - MELHORADO */
.search-results .search-container {
  margin-bottom: 2rem;
}

.search-results .search-box {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
}

.search-results .search-box select {
  color: #374151;
}

.search-results .search-box select option {
  background: white;
  color: #374151;
}

.search-results .search-filter-box {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
}

.search-results .filter-checkbox {
  color: #374151;
}

/* MELHORADO: Filtros de busca com melhor espaçamento */
.search-filters {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.search-filters .filter-checkbox {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #374151;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.search-filters .filter-checkbox:hover {
  background: #f8fafc;
  border-color: #2563eb;
}

.search-filters .filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.search-filters .filter-checkbox i {
  font-size: 0.9rem;
  color: #2563eb;
}

/* Loader */
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loader p {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Text center utility */
.text-center {
  text-align: center;
}

/* Layout alternativo para notícias em destaque */
.news-card-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1.5rem;
}

.news-card-featured .news-image {
  height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .professionals-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .news-grid,
  .news-page .news-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Video responsivo para tablet */
  .video-thumbnail {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .stats {
    flex-direction: column;
    gap: 1rem;
  }

  /* Video responsivo para mobile */
  .video-thumbnail {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .professionals-grid {
    grid-template-columns: 1fr;
  }

  .professional-card {
    min-width: auto;
  }

  /* Video responsivo para telas muito pequenas */
  .video-thumbnail {
    height: 250px;
  }
}

.floating-register {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  transition: transform .2s;
}
.floating-register:hover {
  transform: scale(1.05);
}

/* 3) Garantir que toda seção use padding lateral no mobile */
@media (max-width: 768px) {
  /* Ajusta o padding dos containers para não “encostar” nas bordas */
  .hero .container,
  .categories .container,
  .banner-section-full .container,
  .news .container,
  .professionals .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Se a busca estiver estourando a largura, limite ela */
  .search-container .search-box {
    max-width: 100%;
  }
}

/* ————————————————————
   1) Evita que o header “coma” o topo do herói azul
———————————————————— */
@media (max-width: 768px) {
  .hero {
    /* ajusta o padding-top pro tamanho do header sticky */
    padding-top: 4rem;  /* se teu header tiver ~64px de altura, 4rem funciona bem */
  }
}

/* ————————————————————
   2) No mobile, mostra só 2 cards por linha em “Categorias Populares”
———————————————————— */
@media (max-width: 768px) {
  .categories-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
}


/* ——— Corrige largura excessiva da search-box no mobile ——— */
@media (max-width: 768px) {

  .hero {
    padding: 120px 0 0px;
  }
  /* Garante que o wrapper da busca não ultrapasse a tela */
  .hero .search-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;      /* garante padding lateral */
    box-sizing: border-box;
  }

  /* Faz a search-box ficar responsiva e quebrar linhas se necessário */
  .hero .search-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;      /* permite que os itens “quebrem” linha */
    gap: 0.5rem;          /* espaçamento menor */
  }

  /* Permite que o select encolha para não estourar a linha */
  .hero .search-box select {
    flex: 1 1 auto;
    min-width: 0;         /* essencial para evitar overflow em flexbox */
  }

  /* Fixa a checkbox e o botão para ficarem “inline” mas encolhíveis */
  .hero .search-box .search-filter-box,
  .hero .search-box button.search-btn {
    flex: 0 1 auto;
    min-width: 0;
  }

  .search-filter-box {
padding: 0;
}

.hero .search-box button.search-btn {
    flex: 1 1 100%;        /* ocupa toda a largura disponível */
    max-width: 200px;      /* opcional: limita o tamanho máximo do botão */
    margin: 0.5rem auto;   /* centraliza horizontalmente e dá um espacinho vertical */
  }

}

/* ——— Banner Full Responsivo ——— */
.banner-section-full {
  /* expande para ocupar toda a viewport */
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.banner-carousel-full,
.banner-slide-full {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-slide-full {
  display: block;
}

.banner-slide-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain !important; /* garante que a imagem inteira apareça */
}

/* Se quiser que a imagem cubra sem distorcer, use object-fit: cover */
/* .banner-slide-full img { object-fit: cover; } */

/* ——— Ajustes Mobile ——— */
@media (max-width: 768px) {
  .banner-section-full {
    /* reforça o cálculo para evitar qualquer scroll lateral */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .banner-slide-full img {
    /* limita a altura pra não explodir a tela se for muito grande */
    max-height: 50vh;
  }
}
.banner-section-full,
.banner-carousel-full,
.banner-slide-full {
  position: relative;
  width: 100vw;
  height: auto !important;  /* container ajusta ao tamanho real da imagem */
  overflow: visible;
}

.banner-slide-full img {
  width: 100%;
  height: auto !important;
  object-fit: contain;     /* mostra a imagem inteira */
}
