/* style/the-thao.css */

:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F5F7FA;
  --border-color: #E0E0E0;
  --header-offset: 122px; /* Default value, will be overridden by shared.css if present */
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-page-color);
}

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

.page-the-thao__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Section / Hero Section */
.page-the-thao__top-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  text-align: center;
}

.page-the-thao__hero-image-wrapper {
  margin-bottom: 20px;
}

.page-the-thao__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-the-thao__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background: var(--background-page-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-the-thao__btn-tertiary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
  border-radius: 20px;
}

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

/* General Section Styles */
.page-the-thao__section {
  padding: 60px 0;
}

.page-the-thao__section:nth-of-type(even) {
  background-color: var(--card-bg-color);
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-the-thao__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 35px;
  margin-bottom: 20px;
}

.page-the-thao p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-main-color);
}

.page-the-thao__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-the-thao__list li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-the-thao__image-figure {
  margin: 30px 0;
  text-align: center;
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-the-thao__figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
}

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

.page-the-thao__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-the-thao__promo-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__promo-description {
  font-size: 0.95em;
  color: var(--text-main-color);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__promo-note {
  font-style: italic;
  text-align: center;
  margin-top: 20px;
  color: #666;
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #fcfcfc;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-the-thao__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-the-thao__faq-answer p {
  margin-bottom: 0;
}

.page-the-thao__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-the-thao__faq-answer a:hover {
  color: var(--secondary-color);
}

/* Contact Us Section */
.page-the-thao__contact-us {
  text-align: center;
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__contact-us .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__contact-us .page-the-thao__section-title::after {
  background-color: #ffffff;
}

.page-the-thao__contact-us p {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-the-thao__contact-us .page-the-thao__btn-primary {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

.page-the-thao__contact-us .page-the-thao__btn-primary:hover {
  background: var(--background-page-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-the-thao__contact-us .page-the-thao__btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-the-thao__contact-us .page-the-thao__btn-secondary:hover {
  background: #ffffff;
  color: var(--primary-color);
  border-color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

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

  .page-the-thao__sub-title {
    font-size: 1.6em;
  }

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

@media (max-width: 768px) {
  /* 1. Top section title + Dual CTAs */
  .page-the-thao__top-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }

  .page-the-thao__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 2. Single-column long text containers */
  .page-the-thao__container,
  .page-the-thao__article-wrap {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-the-thao__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-the-thao p,
  .page-the-thao__list li {
    font-size: 0.9em;
  }

  /* 3. General images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__hero-image,
  .page-the-thao__content-image,
  .page-the-thao__promo-image {
    border-radius: 6px;
  }

  /* 4. Buttons and button containers - already covered in top section CTA */

  /* 5. FAQ blocks */
  .page-the-thao__faq-question {
    padding: 15px;
    font-size: 1em;
  }

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

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

  .page-the-thao__promo-card {
    padding: 20px;
  }

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

  .page-the-thao__promo-description {
    font-size: 0.85em;
  }
}