/* style/the-thao.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --btn-login: #EA7C07;
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-the-thao__section-title--white {
  color: var(--text-light);
}

.page-the-thao__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__text-block--white {
  color: var(--text-light);
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  text-align: center;
}

.page-the-thao__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop */
}

.page-the-thao__hero-content-area {
  max-width: 900px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  color: var(--text-light);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  max-width: 100%;
}

.page-the-thao__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-the-thao__cta-buttons--center {
  margin-top: 40px;
}

.page-the-thao__about-section,
.page-the-thao__advantages-section,
.page-the-thao__promotions-section,
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.page-the-thao__sports-grid-section,
.page-the-thao__guide-section,
.page-the-thao__news-section,
.page-the-thao__final-cta-section {
  padding: 60px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-the-thao__sport-card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__sport-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-the-thao__sport-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-the-thao__sport-description {
  font-size: 1em;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

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

.page-the-thao__advantage-item {
  text-align: center;
  padding: 25px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
}

.page-the-thao__advantage-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__advantage-description {
  font-size: 1em;
  color: var(--text-dark);
}

.page-the-thao__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.page-the-thao__guide-step {
  display: flex;
  align-items: center;
  gap: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
}

.page-the-thao__guide-step:nth-child(even) {
  flex-direction: row-reverse;
}

.page-the-thao__guide-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.page-the-thao__guide-content {
  flex: 1;
  max-width: 50%;
  color: var(--text-light);
}

.page-the-thao__guide-title {
  font-size: 2em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-the-thao__guide-description {
  font-size: 1.1em;
  margin-bottom: 25px;
}

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

.page-the-thao__news-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

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

.page-the-thao__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-the-thao__news-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-the-thao__news-title a:hover {
  text-decoration: underline;
}

.page-the-thao__news-date {
  font-size: 0.9em;
  color: #777;
  margin-bottom: 15px;
}

.page-the-thao__news-excerpt {
  font-size: 1em;
  color: var(--text-dark);
}

.page-the-thao__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  color: var(--text-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }

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

  .page-the-thao__main-title {
    font-size: 2.5em;
  }

  .page-the-thao__description {
    font-size: 1.1em;
  }

  .page-the-thao__sports-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-the-thao__advantage-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-the-thao__guide-step {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__guide-step:nth-child(even) {
    flex-direction: column;
  }

  .page-the-thao__guide-image {
    max-width: 80%;
    margin-bottom: 20px;
  }

  .page-the-thao__guide-content {
    max-width: 100%;
  }

  .page-the-thao__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .page-the-thao__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-the-thao__faq-answer {
    font-size: 1em;
    padding: 0 20px 15px;
  }
}

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

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

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

  .page-the-thao__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

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

  .page-the-thao__hero-image {
    object-fit: contain !important; /* Mobile hero image: contain, not cover */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    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__sports-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-the-thao__sport-card {
    padding-bottom: 15px;
  }

  .page-the-thao__sport-image {
    height: 180px;
  }

  .page-the-thao__advantage-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-the-thao__guide-steps {
    gap: 30px;
  }

  .page-the-thao__guide-step {
    padding: 20px;
    gap: 20px;
  }

  .page-the-thao__guide-image {
    max-width: 100%;
  }

  .page-the-thao__guide-content {
    max-width: 100%;
  }

  .page-the-thao__guide-title {
    font-size: 1.5em;
  }

  .page-the-thao__guide-description {
    font-size: 1em;
  }

  .page-the-thao__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-the-thao__news-image {
    height: 180px;
  }

  .page-the-thao__news-title {
    font-size: 1.2em;
  }

  .page-the-thao__faq-list {
    padding: 0 15px;
  }

  .page-the-thao__faq-question {
    font-size: 1em;
    padding: 15px 18px;
  }

  .page-the-thao__faq-answer {
    font-size: 0.95em;
    padding: 0 18px 15px;
  }

  /* General image and container responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-image-container,
  .page-the-thao__cta-buttons,
  .page-the-thao__sports-grid,
  .page-the-thao__advantage-grid,
  .page-the-thao__guide-step,
  .page-the-thao__news-grid,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Ensure no horizontal scroll for main content */
  .page-the-thao {
    overflow-x: hidden;
  }
}