/* style/the-thao.css */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f5f5f5; /* Light background for the page */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small padding, relying on body for header offset */
  position: relative;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-the-thao__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.page-the-thao__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-the-thao__hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #ffffff;
}

.page-the-thao__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-the-thao__btn-small {
  padding: 8px 20px;
  font-size: 0.9em;
}

.page-the-thao__btn-large {
  padding: 15px 40px;
  font-size: 1.1em;
}

.page-the-thao__section {
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-the-thao__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-the-thao__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao__text-block a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-the-thao__text-block a:hover {
  text-decoration: underline;
}

.page-the-thao__highlight {
  font-weight: 700;
  color: #EA7C07; /* Login color for highlight */
}

.page-the-thao__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-the-thao__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: #26A9E0;
}

.page-the-thao__card-text {
  font-size: 1rem;
  padding: 0 20px 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-the-thao__card .page-the-thao__btn-primary {
  margin: 0 20px 20px;
  text-align: center;
}

.page-the-thao__ordered-list,
.page-the-thao__unordered-list {
  list-style-position: inside;
  margin: 20px 0;
  padding-left: 20px;
}

.page-the-thao__ordered-list li,
.page-the-thao__unordered-list li {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.page-the-thao__ordered-list li strong,
.page-the-thao__unordered-list li strong {
  color: #26A9E0;
}

.page-the-thao__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__center-content {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content-wrapper {
    max-width: 700px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-the-thao__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  }

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

  .page-the-thao__content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important;
  }

  .page-the-thao__hero-image-wrapper {
    padding-bottom: 75%; /* More suitable for mobile (4:3) */
  }

  .page-the-thao__hero-content-wrapper {
    width: 95%;
    padding: 15px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-the-thao__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 20px;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-the-thao__text-block {
    font-size: 1rem;
  }

  .page-the-thao__content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__card-image {
    height: 200px;
  }

  .page-the-thao__card-title {
    font-size: 1.3rem;
    padding: 15px 15px 8px;
  }

  .page-the-thao__card-text {
    padding: 0 15px 15px;
  }

  .page-the-thao__card .page-the-thao__btn-primary {
    margin: 0 15px 15px;
  }

  .page-the-thao__ordered-list,
  .page-the-thao__unordered-list {
    padding-left: 15px;
  }

  .page-the-thao__ordered-list li,
  .page-the-thao__unordered-list li {
    font-size: 1rem;
  }

  .page-the-thao__image-full-width {
    margin: 20px 0;
  }

  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* General image adaptation for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure no horizontal scroll for main content */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-the-thao__container */
  }
}