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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth scrolling for anchor navigation */
html {
  scroll-behavior: smooth;
}

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

.header {
    background: linear-gradient(to right, #d97706, #f59e0b, #f59e0b);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #fef3c7;
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    display: block;
}

.dropdown-content a:hover {
    background-color: #fef3c7;
    color: #d97706;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

.hero {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
}

.section {
  padding: 4rem 0;
  /* space to compensate for the sticky header when scrolling to anchors */
  scroll-margin-top: 88px;
}

.bg-light {
    background-color: #f9fafb;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #d97706;
}

.matches-grid,
.gallery-grid,
.tournaments-grid,
.news-grid,
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
  padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Garantir que todos os cards tenham altura consistente dentro do grid */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Contêiner da imagem de notícia: força proporção 16:9 para todos os cards */
.news-media {
  width: 100%;
  aspect-ratio: 16 / 9; /* mantém caixa com proporção 16:9 */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #f3f4f6; /* cor de fundo enquanto carrega */
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* corta/centraliza imagens retrato para caber no 16:9 */
  display: block;
}

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

.card h3 {
    color: #d97706;
    margin-bottom: 0.5rem;
}

.gallery-item {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.news-image {
    width: 100%;
    max-width: 420px; /* largura máxima padrão, ajuste conforme necessário */
    height: auto;
    display: block;
    margin-bottom: 1rem;
    border-radius: 8px;
    object-fit: cover;
}

/* Utility classes para tamanhos comuns */
.news-image--small { max-width: 160px; }
.news-image--medium { max-width: 280px; }
.news-image--large { max-width: 560px; }
.news-image--full { max-width: 100%; }

@media (max-width: 600px) {
  .news-image { max-width: 100%; height: auto; }
}

.ranking-table {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.ranking-table th {
    background-color: #f59e0b;
    color: white;
    font-weight: 600;
}

.ranking-table tr:hover {
    background-color: #fef3c7;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #f59e0b;
}

.contact-form button {
    background: #f59e0b;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #d97706;
}

.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #d97706;
        padding: 1rem;
        gap: 0;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 1rem;
        width: 100%;
    }

    .menu-btn {
        display: flex;
    }

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

    .hero p {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        margin-top: 0;
    }
}


/* === SEÇÃO SOBRE NÓS === */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1 1 500px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #374151;
}

.about-text strong {
    color: #d97706;
}

.about-image {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Responsividade */
@media (max-width: 900px) {
    .about-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-image img {
        max-width: 350px;
    }

    .about-text p {
        font-size: 1rem;
    }
}

.ranking-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.ranking-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  min-width: 200px;
}

.ranking-select:focus {
  border-color: #f59e0b;
  outline: none;
}

.ranking-wrapper {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.ranking-table th {
  background: #f59e0b;
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  position: sticky;
  top: 0;
}

.ranking-table th:first-child {
  border-top-left-radius: 8px;
}

.ranking-table th:last-child {
  border-top-right-radius: 8px;
}

.ranking-table tr:nth-child(even) {
  background-color: #fef3c7;
}

.ranking-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.ranking-table tr:hover td {
  background-color: #fff7ed;
}

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

.player-photo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.position {
  font-weight: 600;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.position-up {
  color: #059669;
}

.position-down {
  color: #dc2626;
}

.position-same {
  color: #6b7280;
}

.ranking-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

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

@media (max-width: 768px) {
  .ranking-filters {
    flex-direction: column;
    align-items: stretch;
  }
  
  .ranking-select {
    width: 100%;
  }
  
  .ranking-table {
    font-size: 0.875rem;
  }
  
  .ranking-legend {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.ranking-section {
  background: #f9fafb;
  padding: 4rem 0;
}

.ranking-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.ranking-header {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: white;
  text-align: center;
  padding: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.ranking-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.ranking-select {
  padding: 0.75rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
  min-width: 200px;
  transition: 0.2s ease;
}

.ranking-select:hover,
.ranking-select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
  outline: none;
}

.ranking-wrapper {
  overflow-x: auto;
  padding: 1rem 2rem 2rem;
}

.ranking-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 700px;
}

.ranking-table thead {
  background: #f59e0b;
  color: white;
}

.ranking-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  position: sticky;
  top: 0;
  font-size: 1rem;
}

.ranking-table th:first-child {
  border-top-left-radius: 8px;
}

.ranking-table th:last-child {
  border-top-right-radius: 8px;
}

.ranking-table tbody tr {
  transition: background 0.3s ease, transform 0.1s ease;
}

.ranking-table tbody tr:nth-child(even) {
  background-color: #fff8e1;
}

.ranking-table tbody tr:hover {
  background-color: #fff3c4;
  transform: scale(1.01);
}

.ranking-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

/* Ícones de posição (subida/queda) */
.position {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
}

.position-up {
  color: #059669;
}

.position-down {
  color: #dc2626;
}

.position-same {
  color: #6b7280;
}

/* Nome + foto do jogador */
.player-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.player-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f59e0b;
  transition: transform 0.3s ease;
}

.player-photo:hover {
  transform: scale(1.1);
}

/* Legenda */
.ranking-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  flex-wrap: wrap;
}

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

/* === RANKING ESCOLAR ESTILIZADO === */
#rankingsCerquilho2025 {
  background: #fffaf0;
}

.ranking-wrapper {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 2rem;
  overflow-x: auto;
  margin-top: 1rem;
}

.ranking-wrapper table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.ranking-wrapper th {
  background: linear-gradient(90deg, #d97706, #f59e0b);
  color: white;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  position: sticky;
  top: 0;
}

.ranking-wrapper th:first-child {
  border-top-left-radius: 8px;
}
.ranking-wrapper th:last-child {
  border-top-right-radius: 8px;
}

.ranking-wrapper td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  color: #374151;
  font-size: 1rem;
}

.ranking-wrapper tr:nth-child(even) {
  background-color: #fff7e6;
}

.ranking-wrapper tr:hover {
  background-color: #fff2cc;
  transition: 0.3s ease;
}

.player-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.player-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #f59e0b;
  object-fit: cover;
}

.position {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.position-up {
  color: #059669;
}
.position-down {
  color: #dc2626;
}
.position-same {
  color: #6b7280;
}

/* Legenda */
.ranking-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  color: #6b7280;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

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

/* Responsividade */
@media (max-width: 768px) {
  .ranking-wrapper {
    padding: 1rem;
  }
  .ranking-wrapper table {
    font-size: 0.9rem;
    min-width: 600px;
  }
  .player-photo {
    width: 32px;
    height: 32px;
  }
}


/* ===========================
   GALERIA DE IMAGENS (acima dos torneios)
=========================== */
.gallery-preview {
  background: #f8f9fb;
  padding: 4rem 1rem;
  text-align: center;
}

.gallery-preview .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #222;
  position: relative;
}

.gallery-preview .section-title::after {
  content: "";
  width: 80px;
  height: 4px;
  background: #c41e3a;
  display: block;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
  .gallery-preview {
    padding: 3rem 0.5rem;
  }

  .gallery-grid img {
    height: 150px;
  }
}

/* ===========================
   CARROSSEL
=========================== */
.carousel-container {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

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

.slide {
  min-width: 100%;
  transition: opacity 0.5s ease-in-out;
  display: none;
}

.slide.active {
  display: block;
}

.carousel-slides img {
  width: 100%;
  height: 600px; /* Aumentado de 400px para 500px */
  object-fit: cover;
  border-radius: 16px;
}

/* Botões de navegação */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(196,30,58,0.7);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(196,30,58,0.9);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

/* Indicadores */
.carousel-indicators {
  text-align: center;
  margin-top: 1rem;
}

.carousel-indicators .indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-indicators .indicator.active {
  background-color: #c41e3a;
}

/* Responsivo */
@media (max-width: 768px) {
  .carousel-slides img {
    height: 300px; /* Aumentado proporcionalmente para telas menores */
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }
}


/* ===========================
   CONTATO - WHATSAPP SIMPLES
=========================== */
.contact-whatsapp {
  background: #f8f9fb;
  text-align: center;
  padding: 4rem 1rem;
}

.contact-whatsapp .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #222;
}

.whatsapp-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  background-color: #25D366;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.whatsapp-link i {
  font-size: 2rem;
}

.whatsapp-link:hover {
  background-color: #1ebe5c;
  transform: scale(1.05);
}

.contact-whatsapp p {
  max-width: 500px;
  font-size: 1rem;
  color: #555;
}

/* Responsivo */
@media (max-width: 600px) {
  .whatsapp-link {
    font-size: 1.2rem;
    padding: 0.7rem 1.2rem;
  }

  .whatsapp-link i {
    font-size: 1.6rem;
  }
}


/* ===========================
   SEÇÃO PATROCINADORES
=========================== */
#sponsors {
  padding: 4rem 0;
  background-color: #f9fafb;
}

.sponsors-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 3rem;
}

.sponsors-grid {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.sponsor-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  width: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sponsor-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.sponsor-logo-container {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-card h3 {
  color: #d97706;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .sponsor-card {
    padding: 1.5rem;
  }

  .sponsor-logo-container {
    height: 120px;
  }

  .sponsors-subtitle {
    font-size: 1rem;
  }
}
