/* style/the-thao.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-page: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

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

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

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

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-black);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-subtitle {
  font-size: 1.2rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

.page-the-thao__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-the-thao__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-the-thao__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__card-description {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

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

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
}

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Consistent with fixed header spacing */
  padding-bottom: 60px;
  background-color: var(--background-page);
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

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

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

.page-the-thao__main-title {
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.page-the-thao__hero-description {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-the-thao__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Introduction Section */
.page-the-thao__introduction-section {
  background-color: var(--background-page);
}

/* Types Section */
.page-the-thao__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Benefits Section */
.page-the-thao__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__section-subtitle,
.page-the-thao__dark-bg .page-the-thao__text-block,
.page-the-thao__dark-bg .page-the-thao__benefit-title,
.page-the-thao__dark-bg .page-the-thao__benefit-description {
  color: #ffffff;
}

.page-the-thao__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-the-thao__benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.page-the-thao__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-the-thao__benefit-description {
  font-size: 1rem;
  line-height: 1.6;
}

/* Guide Section */
.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__guide-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__guide-step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__guide-description {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__guide-button {
  width: 100%;
  max-width: 200px;
}

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

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

/* FAQ Section */
.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-the-thao__faq-item[open] {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
  outline: none;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  font-weight: 400;
  margin-left: 15px;
  color: var(--primary-color);
  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 25px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
}

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

/* CTA Section */
.page-the-thao__cta-section {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-the-thao__cta-content .page-the-thao__section-title,
.page-the-thao__cta-content .page-the-thao__text-block {
  color: #ffffff;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */

/* Desktop specific H1 font size override to avoid excessive size if default is too big */
@media (min-width: 1025px) {
  .page-the-thao__main-title {
    font-size: clamp(2.8rem, 4.5vw, 3.8rem); /* Max size for desktop H1 */
  }
}

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 2rem;
  }

  .page-the-thao__section-subtitle {
    font-size: 1.1rem;
  }

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

  .page-the-thao__hero-image-wrapper {
    max-height: 400px;
  }

  .page-the-thao__hero-description {
    font-size: 1.1rem;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100%;
  }

  .page-the-thao__card-title {
    font-size: 1.4rem;
  }

  .page-the-thao__card-description {
    font-size: 0.95rem;
  }

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

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

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* General mobile adaptations for content area */
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao__container {
    padding: 0 15px !important;
  }

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

  /* Hero Section (mobile specific) */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-the-thao__hero-image-wrapper {
    max-height: none !important;
    margin-bottom: 20px !important;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Responsive H1 for mobile */
    margin-bottom: 15px !important;
  }

  .page-the-thao__hero-description {
    font-size: 1rem !important;
    margin-bottom: 30px !important;
  }

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

  /* Game Grid/Types Grid (mobile specific) */
  .page-the-thao__types-grid {
    grid-template-columns: 1fr !important; /* Single column for types grid */
    gap: 20px !important;
  }

  .page-the-thao__card {
    padding: 20px !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__card-image {
    height: 180px !important;
    object-fit: cover !important;
  }

  .page-the-thao__card-title {
    font-size: 1.3rem !important;
  }

  .page-the-thao__card-description {
    font-size: 0.9rem !important;
  }

  /* Generic Images and Containers (mobile specific) */
  .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-section,
  .page-the-thao__introduction-section,
  .page-the-thao__types-section,
  .page-the-thao__benefits-section,
  .page-the-thao__guide-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons and Button Containers (mobile specific) */
  .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: 12px 15px !important;
    font-size: 1rem !important;
  }

  .page-the-thao__hero-buttons,
  .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: 0px !important; /* Inner padding on buttons themselves */
    padding-right: 0px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    flex-direction: column !important; /* Stack buttons vertically */
  }

  .page-the-thao__guide-button {
    max-width: 100% !important;
  }

  /* Winner List (Not applicable for this page, but if it were, it would be here) */
  /* Assuming 1 column for any list/grid that might appear here */

  /* Other content modules (e.g., Benefits, Guide, Promotions) */
  .page-the-thao__benefits-list,
  .page-the-thao__guide-list,
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__benefit-icon {
    width: 80px;
    height: 80px;
  }

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

  .page-the-thao__faq-answer {
    font-size: 0.9rem !important;
    padding: 0 18px 15px 18px !important;
  }
}