/* ===== Desktop Styles ===== */

.page-the-thao { background-color: #ffffff; }

/* Hero Section */
.page-the-thao__hero-section { padding: 10px 16px 0; }
.page-the-thao__hero-image { width: 100%; height: auto; aspect-ratio: 1020 / 300; object-fit: cover; display: block; }

/* Hero Content */
.page-the-thao__hero-content { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 600px; margin: 0 auto; padding: 20px 0; text-align: center; }
.page-the-thao__hero-content h1 { font-weight: bold; line-height: 1.3; /* No fixed font size */ margin: 0; }
.page-the-thao__hero-content p { color: #333333; margin: 0 5px; } 

/* Buttons */
.page-the-thao__btn { display: inline-block; padding: 12px 28px; border-radius: 999px; background-color: #26A9E0; color: #ffffff; font-weight: bold; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; border: 2px solid transparent; box-sizing: border-box; }
.page-the-thao__btn:hover, .page-the-thao__btn:focus { transform: scale(1.05); }
.page-the-thao__btn--primary { }
.page-the-thao__btn--login { background-color: #EA7C07; color: #ffffff; }

/* Logo Grid Section */
.page-the-thao__logo-section { max-width: 1200px; margin: 24px auto 40px; padding: 0 16px; }
.page-the-thao__logo-heading { text-align: center; font-size: 2rem; line-height: 1.2; font-weight: bold; color:  #26A9E0; margin-bottom: 32px; }
.page-the-thao__logo-grid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px 16px; 
  justify-items: center; 
}
.page-the-thao__logo-item { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 12px; 
  width: 100%; 
  max-width: 280px; 
}
.page-the-thao__logo-image { width: 100%; aspect-ratio: 2 / 1; object-fit: contain; }
.page-the-thao__logo-cta { 
  display: inline-block; 
  padding: 10px 22px; 
  border-radius: 999px; 
  background-color: #26A9E0; 
  color: #ffffff; 
  font-weight: bold; 
  text-decoration: none; 
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent; 
  box-sizing: border-box;
}
.page-the-thao__logo-cta:hover { transform: scale(1.05); }

/* Override positions for the 5th and 6th items to match the 4+2 layout */
.page-the-thao__logo-item:nth-child(5) { grid-column: 2; }
.page-the-thao__logo-item:nth-child(6) { grid-column: 3; }

/* Blog & Guide Section */
.page-the-thao__blog-guide-section { max-width: 1200px; margin: 0 auto; padding: 30px 16px 50px; }
.page-the-thao__blog-guide-title { text-align: center; font-size: 2.5rem; line-height: 1.2; color: #26A9E0; margin-bottom: 30px; }
.page-the-thao__blog-guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Guide card style */
.page-the-thao__guide-item { background-color: #f8f9fa; border-radius: 8px; overflow: hidden; padding: 15px; }

/* Blog figure images */
.page-the-thao__blog-figure { margin: 0; padding: 0; }
.page-the-thao__blog-figure img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }

/* Blog text content beneath the image */
.page-the-thao__blog-title { font-weight: bold; margin: 16px 0; }
.page-the-thao__blog-guide-section p { color: #333333; }
.page-the-thao__blog-link { display: inline-block; margin-top: 10px; font-weight: bold; color: #26A9E0; text-decoration: none; }
.page-the-thao__blog-link:hover { text-decoration: underline; }

/* ===================== Media Queries ===================== */

/* Range between 769px and 1024px */
@media (max-width: 1024px) {
  .page-the-thao__logo-grid { 
    gap: 16px; 
  }
}

/* All mobile and small tablet styles */
@media (max-width: 768px) {
  /* General image rules for all images within page-the-thao */
  .page-the-thao img { 
    max-width: 100% ; 
    height: auto ; 
  }

  .page-the-thao__hero-section { 
    padding: 8px 0 0; 
  }

  .page-the-thao__hero-image { 
    aspect-ratio: 2 / 1; /* smaller ratio on mobile */
  }

  .page-the-thao__hero-content { 
    padding: 15px 10px;
  }

  .page-the-thao__logo-section { 
    margin: 20px 0 30px; 
  }

  .page-the-thao__logo-heading {
    font-size: 1.75rem;
  }

  .page-the-thao__logo-grid {
    grid-template-columns: repeat(2, 1fr); /* only 2 columns */
  }
  
  .page-the-thao__logo-item:nth-child(5), 
  .page-the-thao__logo-item:nth-child(6) { 
    grid-column: auto; 
  }

  /* Blog grid becomes single column */
  .page-the-thao__blog-guide-grid { grid-template-columns: 1fr; gap: 20px; }

  .page-the-thao__blog-guide-title { font-size: 2rem; }

  /* Buttons must not overflow on mobile */
  .page-the-thao__btn, .page-the-thao__logo-cta {
    max-width: 100%; 
    box-sizing: border-box; 
    white-space: normal; 
    word-wrap: break-word;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__hero-content .page-the-thao__btn {
    width: 100%;
  }
}

/* Hides any element with the specific 'index' CSS if accidentally inherited (defensive) */
.page-the-thao__noIndex { display: none; }