/* Reset e Variáveis */
:root {
  --primary: #001f3f;
  --secondary: #003d7a;
  --accent: #ffd700;
  --light: #f5f6fa;
  --dark: #2f3640;
  --text: #333;
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family:
    "Segoe UI",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: linear-gradient(135deg, var(--light) 0%, #e8eaf6 100%);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Header estilo capa do Facebook - SIMPLIFICADO */
.header-cover {
  position: relative;
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Imagem de fundo */
.cover-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay escuro 
.cover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 31, 63, 0.5) 0%,
    rgba(0, 31, 63, 0.8) 100%
  );
  z-index: 1;
}*/

/* Conteúdo do header */
.header-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}

/* Informações do título */
.header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeInDown 0.8s ease-out;
}

.header-info h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 15px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.header-info p {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.95;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Container para os botões */
.header-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Botão de idioma */
.language-toggle {
  padding: 12px 28px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  background: rgb(255, 243, 7);
  backdrop-filter: blur(15px);
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.language-toggle:hover {
  transform: translateY(-3px);
  background: rgba(0, 31, 63, 0.8);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.language-toggle:active {
  transform: translateY(-1px);
}

.flag-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.flag-icon {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flag-emoji {
  font-size: 1.4em;
  line-height: 1;
  display: none;
}

.separator {
  opacity: 0.6;
  margin: 0 3px;
}

/* Navegação */
nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

nav a {
  display: inline-block;
  margin: 0 8px;
  padding: 6px 4px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
  white-space: nowrap;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

/* Restante do CSS continua igual... (sidebar, conteúdo, etc) */

/* Layout com sidebar */
.content-wrapper {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  gap: 30px;
  padding: 40px 20px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Sidebar de busca à esquerda */
.sidebar-search {
  width: 300px;
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

.search-sticky {
  position: sticky;
  top: 20px;
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  animation: fadeIn 0.8s ease-out;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.search-sticky h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-box-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.search-input::placeholder {
  color: #999;
}

.search-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 31, 63, 0.2);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 31, 63, 0.3);
}

.search-btn:active {
  transform: translateY(0);
}

/* Resultados da busca na sidebar */
.search-results-sidebar {
  margin-top: 20px;
  max-height: 500px;
  overflow-y: auto;
  display: none;
}

.search-results-sidebar.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-item {
  padding: 15px;
  margin-bottom: 10px;
  background: var(--light);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.result-item:hover {
  background: #e8eaf6;
  border-left-color: var(--accent);
  transform: translateX(5px);
}

.result-item h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--primary);
  font-weight: 700;
}

.result-item p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #999;
  font-style: italic;
  font-size: 14px;
}

/* Scrollbar para resultados */
.search-results-sidebar::-webkit-scrollbar {
  width: 6px;
}

.search-results-sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-results-sidebar::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 10px;
}

.search-results-sidebar::-webkit-scrollbar-thumb:hover {
  background: #ffc700;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  min-width: 0;
}

.main-content section {
  margin: 0 0 40px 0;
  padding: 50px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  animation: fadeIn 0.8s ease-out;
}

.main-content section:last-child {
  margin-bottom: 0;
}

.main-content section:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

section h2 {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 2.3rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.dica-box {
  margin-top: 20px;
  padding: 15px;
  background: var(--light);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

/* Estilos para itens expansíveis */
.expandable-list {
  list-style: none;
  padding: 0;
}

.expandable-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.expandable-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.expandable-header {
  padding: 18px 20px;
  cursor: pointer;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.expandable-header:hover {
  background: #e9ecef;
}

.expandable-header.active {
  background: var(--accent);
  color: var(--dark);
}

.expandable-icon {
  font-size: 1.2em;
  transition: transform 0.3s ease;
  font-weight: bold;
}

.expandable-header.active .expandable-icon {
  transform: rotate(180deg);
}

.expandable-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 20px;
  background: white;
}

.expandable-content.active {
  max-height: 600px;
  padding: 20px;
  border-top: 1px solid #e0e0e0;
}

.expandable-content p {
  margin: 0;
  line-height: 1.7;
  color: #444;
  font-size: 1rem;
}

/* Botões de cursos */
.botoes-cursos {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-curso {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 31, 63, 0.2);
}

.btn-curso:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 31, 63, 0.3);
}

.btn-curso:active {
  transform: translateY(-1px);
}

/* Footer */

/* Footer – solução limpa */

.site-footer {
  width: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 25px 0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

/* Animações */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar-search {
    width: 100%;
  }

  .search-sticky {
    position: relative;
    top: 0;
  }

  .search-box-container {
    flex-direction: row;
  }

  .search-input {
    flex: 1;
  }

  .search-btn {
    width: auto;
    padding: 14px 30px;
  }

  .header-cover {
    height: 350px;
  }

  .header-content {
    padding: 30px;
  }

  .header-info h1 {
    font-size: 3rem;
  }

  .header-info p {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .header-cover {
    height: 320px;
  }

  .header-content {
    padding: 25px 20px;
  }

  .header-info {
    text-align: center;
  }

  .header-info h1 {
    font-size: 2.5rem;
  }

  .header-info p {
    font-size: 1.1rem;
  }

  .header-buttons {
    justify-content: center;
  }

  .language-toggle {
    font-size: 14px;
    padding: 10px 20px;
    gap: 6px;
  }

  .flag-icon {
    width: 24px;
    height: 16px;
  }

  .content-wrapper {
    padding: 20px 15px;
  }

  .search-sticky {
    padding: 20px;
  }

  .search-box-container {
    flex-direction: column;
  }

  .search-btn {
    width: 100%;
  }

  .main-content section {
    padding: 30px 20px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  .expandable-header {
    padding: 15px;
  }

  .expandable-content.active {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .header-cover {
    height: 280px;
  }

  .header-content {
    padding: 20px 15px;
  }

  .header-info h1 {
    font-size: 2rem;
  }

  .header-info p {
    font-size: 1rem;
  }
}

/* Estilos para seção de redes sociais */
.redes {
  margin-top: 30px;
  padding: 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.redes h3 {
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.social-btn:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-btn.pinterest {
  background: #e60023;
}

.social-btn.youtube {
  background: #ff0000;
}

/* Seção de doações */
.doacoes {
  padding: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.doacoes h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.donation-image {
  width: 100%;
  margin: 15px 0;
  background: white;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.donation-image img {
  width: 100%;
  height: auto;
  max-width: 200px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.doacoes p {
  color: var(--primary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 15px 0;
  opacity: 0.95;
}

.donation-btn {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: #f5576c;
  text-decoration: none;
  font-weight: 700;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.donation-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: #fff5f5;
}

.donation-btn:active {
  transform: translateY(-1px);
}

.perfil-imagem {
  display: block;
  margin: 0 auto;
  max-width: 500px; /* ajuste aqui */
}

.desafios-imagem {
  display: block;
  margin: 0 auto;
  max-width: 300px; /* ajuste aqui */
  width: 100%;
  height: auto;
}
/* =========================
   CARROSSEL ISOLADO
   ========================= */

.cx-carousel {
  position: relative;
  width: 100%;
  max-width: 900px; /* ajuste se quiser */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.cx-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.cx-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.cx-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0; /* dá respiro visual */
}

.cx-slide img {
  max-width: 420px; /* controle real do tamanho */
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* =========================
   CARROSSEL DE FOTOS
   ========================= */

.ph-carousel {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 16px;
}

.ph-track {
  display: flex;
  transition: transform 0.6s ease;
}

.ph-slide {
  min-width: 100%;
  height: 420px; /* altura padrão de galeria */
}

.ph-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* aqui PODE, são fotos */
  display: block;
}

.image-wrapper {
  width: 100%;
  max-width: 100%;
  height: 420px; /* altura do espaço vermelho */
  background: #f5f5f5; /* opcional (fundo neutro) */
  border-radius: 12px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 🔥 ESSENCIAL */
  display: block;
}

.main-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
