@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

body {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  background: #f4f4f4;
}

.banner-container {
  overflow: hidden;
  background: #000;
  padding: 10px 0;
}

.banner-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  animation: scrollBanners 20s linear infinite;
  overflow: hidden;
}

.banner-track img {
  height: 90px;
  margin-right: 20px;
  flex-shrink: 0;
}

@keyframes scrollBanners {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

nav {
  background-color: #1a1a1a;
 
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  color: white;
}

nav li {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre ícono y texto */
  font-size: 16px;
  padding: 10px 15px;
  border: none;
  background-color: black;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

nav li:hover,
nav li.active {
  background-color: gray
}

/* #filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  flex-wrap: wrap;
}

#filters button {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: black;
  cursor: pointer;
  transition: background 0.3s;
} */

#filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  flex-wrap: wrap;
}

#filters button {
  display: flex;
  align-items: center;
  gap: 8px; /* espacio entre ícono y texto */
  font-size: 16px;
  padding: 10px 15px;
  border: none;
  background-color: black;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#filters button:hover,
#filters button.active {
  background: #3b00d8;
  color: white;
}

.main-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  padding: 20px;
}

.match {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
}

.teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
  margin: 10px 0;
}

.team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.team img {
  max-width: 60px;
  height: auto;
  margin-bottom: 5px;
}

.vs {
  font-size: 55px;
  font-family: 'Kanit', sans-serif;
  color: #3b00d8;
}

.details-card {
  background: #f0f4f8;
  padding: 10px;
  margin-top: 10px;
  border-left: 4px solid #3b00d8;
  border-radius: 10px;
  display: none;
}

aside {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

aside h2 {
  margin-top: 0;
}

.article {
  margin-bottom: 15px;
}

.article img {
  width: 100%;
  border-radius: 8px;
}

.article h4 {
  margin: 5px 0;
}

.article a {
  text-decoration: none;
  color: #3b00d8;
}

.cta-box {
  margin-top: 20px;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 8px;
}

.cta-box input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  object-fit: contain;
}

.cta-box button {
  width: 100%;
  height: 70px;
  padding: 10px;
  background: #3b00d8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#article-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.3s ease;
}

#article-modal.hidden {
  display: none;
}

#article-modal-content {
  background: #fff;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

#modal-article-title {
  margin-top: 0;
  font-size: 20px;
  color: #333;
}

#modal-article-body {
  font-size: 15px;
  color: #444;
  margin-top: 10px;
}

#article-modal button {
  margin-top: 15px;
  background-color: #3b00d8;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-height: 500px;
  height: auto;
  margin: 0 auto;
 
  padding-top: 10px;
 /* background-color: #000; */
}

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

.carousel-track img {
  width: 100%;
  height: auto;
  object-fit: cover;
  padding-top: 10px;
  flex-shrink: 0;
}

.carousel-track a {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
  }

  aside {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  #filters {
    flex-direction: column;
    align-items: center;
  }

  .carousel-container {
    height: auto;
    margin-top: 20px;
  }

  .carousel-track img {
    height: auto;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
  }

  .carousel-track a {
    display: block;
    width: 100%;
    height: auto;
  }

  #article-modal-content {
    width: 90%;
  }

  .banner-track img {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .banner-track {
    gap: 10px;
  }

  .banner-track img {
    height: 60px;
    margin-right: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav li {
    padding: 8px 12px;
  }

  #filters {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 15px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  #filters button {
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .cta-box {
    padding: 10px;
  }

  .carousel-container {
    height: auto;
  }

  .teams {
    flex-direction: column;
    align-items: flex-start;
  }

  .team {
    justify-content: flex-start;
  }

  .article img {
    max-height: 200px;
    object-fit: cover;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination button {
  padding: 8px 12px;
  border: none;
  background-color: black;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}

.pagination button.active,
.pagination button:hover {
  background-color: #3b00d8;
  color: white;
}

button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #222;
}

/* Banner responsive */
.banner-desktop {
  display: block;
}

.banner-mobile {
  display: none;
}

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

  .banner-mobile {
    display: block;
  }

  .banner-mobile img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}


.site-header {
  background-color: #0b1120;
  padding: 20px;
  border-bottom: 2px solid #00f0ff;
}

.header-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.header-logo {
  height: 100px;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.4));
}

.header-info {
  color: #fff;
}

.site-title {
  font-size: 2.5rem;
  margin: 0;
}

.site-description {
  font-size: 1rem;
  margin: 0;
  color: #cfd8dc;
}

.site-subinfo {
  font-size: 0.9rem;
  color: #b0bec5;
  margin-top: 0.5rem;
}

/* 🔄 RESPONSIVE VERSION */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .header-logo {
    height: 50px;
  }

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

  .site-description,
  .site-subinfo {
    font-size: 0.95rem;
    padding: 0 1rem;
  }
}
.ad-banner img {
  width: 100%;
  margin-top: 15px;
  border-radius: 10px;
  border: 3px solid transparent; /* para evitar salto cuando aparece el borde */
  animation: semiparpadeo 3s ease-in-out infinite;
}