/* style/the-thao.css */

:root {
  --page-the-thao-primary-color: #113B7A;
  --page-the-thao-secondary-color: #1D5FD1;
  --page-the-thao-text-main: #F3F8FF;
  --page-the-thao-text-secondary: #AFC4E8;
  --page-the-thao-card-bg: #10233F;
  --page-the-thao-border-color: #244D84;
  --page-the-thao-glow-color: #4FA8FF;
  --page-the-thao-gold-color: #F2C14E;
  --page-the-thao-divider-color: #1B3357;
  --page-the-thao-deep-navy: #08162B;
  --page-the-thao-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

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

.page-the-thao__dark-bg {
  background-color: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles main offset */
  padding-bottom: 60px;
  background-color: var(--page-the-thao-deep-navy);
  color: var(--page-the-thao-text-main);
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px 15px;
}

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

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

.page-the-thao__hero-content {
  flex: 1 1 40%;
  min-width: 300px;
  order: 2;
  text-align: left;
}

.page-the-thao__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--page-the-thao-gold-color);
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--page-the-thao-text-secondary);
}

.page-the-thao__hero-cta-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Buttons */
.page-the-thao__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--page-the-thao-button-gradient);
  color: var(--page-the-thao-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__btn-secondary:hover {
  background-color: var(--page-the-thao-secondary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
  padding: 60px 15px;
  text-align: center;
}

.page-the-thao__intro-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-the-thao__intro-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__intro-description {
  font-size: 1.1rem;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-the-thao__icon-box-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.page-the-thao__icon-box {
  flex: 1 1 300px;
  max-width: 350px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--page-the-thao-secondary-color);
  box-shadow: 0 0 0 5px rgba(29, 95, 209, 0.3);
}

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

.page-the-thao__icon-box-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__icon-box-text {
  font-size: 1rem;
  color: #666666;
}

/* Main Content Area */
.page-the-thao__content-area {
  padding: 60px 15px;
}

.page-the-thao__content-container {
  max-width: 1000px;
  margin: 0 auto;
}

.page-the-thao__content-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--page-the-thao-gold-color);
}

.page-the-thao__content-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--page-the-thao-secondary-color);
}

.page-the-thao__content-text {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--page-the-thao-text-secondary);
}

.page-the-thao__sport-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 30px;
  color: var(--page-the-thao-text-secondary);
}

.page-the-thao__sport-item {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 15px;
  text-align: center;
}

.page-the-thao__promo-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__promo-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__promo-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

.page-the-thao__promo-image-wrapper {
  margin-bottom: 40px;
}

.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 15px;
}

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

.page-the-thao__faq-main-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: var(--page-the-thao-gold-color);
}

.page-the-thao__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
  list-style: none;
  user-select: none;
}

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

.page-the-thao__faq-question:hover {
  background-color: var(--page-the-thao-deep-navy);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-the-thao-gold-color);
}

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--page-the-thao-text-secondary);
}

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

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

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

/* CTA Bottom Section */
.page-the-thao__cta-bottom {
  padding: 60px 15px;
  text-align: center;
}

.page-the-thao__cta-bottom-container {
  max-width: 800px;
  margin: 0 auto;
}

.page-the-thao__cta-bottom-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__cta-bottom-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555555;
}

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

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Hero Section Mobile */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 30px 15px;
  }

  .page-the-thao__hero-image-wrapper {
    order: 1;
    flex: none;
    width: 100%;
  }

  .page-the-thao__hero-content {
    order: 2;
    flex: none;
    width: 100%;
    text-align: center;
  }

  .page-the-thao__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-the-thao__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons Mobile */
  .page-the-thao__cta-button,
  .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__hero-cta-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Intro Section Mobile */
  .page-the-thao__intro-section {
    padding: 40px 15px;
  }

  .page-the-thao__intro-title,
  .page-the-thao__content-title,
  .page-the-thao__faq-main-title,
  .page-the-thao__promo-title,
  .page-the-thao__cta-bottom-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-the-thao__intro-description,
  .page-the-thao__promo-description,
  .page-the-thao__cta-bottom-description {
    font-size: 1rem;
  }

  .page-the-thao__icon-box-grid {
    flex-direction: column;
    gap: 25px;
  }

  .page-the-thao__icon-box {
    max-width: 100%;
    padding: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3);
  }

  /* Content Area Mobile */
  .page-the-thao__content-area {
    padding: 40px 15px;
  }

  .page-the-thao__content-subtitle {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-the-thao__content-text,
  .page-the-thao__sport-item {
    font-size: 0.95rem;
  }

  .page-the-thao__sport-list {
    margin-left: 20px;
    margin-bottom: 25px;
  }

  /* Promo Section Mobile */
  .page-the-thao__promo-section {
    padding: 40px 15px;
  }

  /* FAQ Section Mobile */
  .page-the-thao__faq-section {
    padding: 40px 15px;
  }

  .page-the-thao__faq-main-title {
    margin-bottom: 30px;
  }

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

  .page-the-thao__faq-toggle {
    font-size: 1.3rem;
  }

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

  /* CTA Bottom Section Mobile */
  .page-the-thao__cta-bottom {
    padding: 40px 15px;
  }

  /* Universal Image Responsiveness for content area */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Specific override for circular images to maintain aspect ratio */
  .page-the-thao__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Container responsiveness */
  .page-the-thao__hero-container,
  .page-the-thao__intro-container,
  .page-the-thao__content-container,
  .page-the-thao__promo-container,
  .page-the-thao__faq-container,
  .page-the-thao__cta-bottom-container,
  .page-the-thao__icon-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}