/* style/the-thao.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --button-login-color: #EA7C07;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming default white body background */
}

.page-the-thao__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  background-color: var(--secondary-color);
}

.page-the-thao__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-dark);
}

.page-the-thao__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
  max-width: 600px;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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: #208cb3; /* Darken primary color */
  border-color: #208cb3;
}

.page-the-thao__btn-secondary {
  background-color: var(--secondary-color);
  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__btn-tertiary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 15px;
  font-size: 0.9em;
}

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

.page-the-thao__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

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

/* Section Titles and Descriptions */
.page-the-thao__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section (Feature Grid) */
.page-the-thao__intro-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

.page-the-thao__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-the-thao__feature-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e0f2f7; /* Light background for icons */
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

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

.page-the-thao__feature-text {
  font-size: 1em;
  color: #666;
}

/* Sports Section (Cards Grid) */
.page-the-thao__sports-section {
  padding: 60px 0;
}

.page-the-thao__sport-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__sport-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
}

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

.page-the-thao__sport-card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin: 20px 15px 10px;
}

.page-the-thao__sport-card-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 20px;
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: #f0f8ff;
  padding: 60px 0;
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__guide-step {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-the-thao__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__step-text {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
}

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

.page-the-thao__promo-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
}

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

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

.page-the-thao__promo-card-text {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 20px;
}

.page-the-thao__cta-bottom {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: #f8f9fa;
  padding: 60px 0;
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  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;
  margin-left: 15px;
  color: #666;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−';
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #555;
  line-height: 1.6;
}

/* General Image Styling */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-the-thao__section-title {
    font-size: clamp(1.8em, 4vw, 2em);
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-the-thao__hero-content {
    flex: 1 1 100%;
    min-width: unset;
  }

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

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    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__btn-tertiary {
    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__hero-image {
    flex: 1 1 100%;
    min-width: unset;
    padding: 0 15px;
  }

  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

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

  /* Module 1: Feature Grid */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }

  .page-the-thao__feature-title {
    font-size: 1.3em;
  }

  .page-the-thao__feature-text {
    font-size: 0.95em;
  }

  /* Sports Cards Grid */
  .page-the-thao__sport-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__sport-card-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-the-thao__sport-card-title {
    font-size: 1.3em;
  }

  .page-the-thao__sport-card-text {
    font-size: 0.9em;
  }

  /* Guide Steps */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-the-thao__guide-step {
    padding-top: 50px;
  }

  .page-the-thao__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.6em;
    top: -15px;
  }

  .page-the-thao__step-title {
    font-size: 1.3em;
  }

  .page-the-thao__step-text {
    font-size: 0.95em;
  }

  /* Promo Cards Grid */
  .page-the-thao__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__promo-card-image {
    height: 180px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-the-thao__promo-card-text {
    font-size: 0.9em;
  }

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

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

  /* General Image & Container for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
  }

  .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: 15px;
    padding-right: 15px;
  }

  .page-the-thao__cta-bottom {
    padding: 0 15px;
  }
}