/* style/the-thao.css */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --background-dark: #08160F;
  --card-bg: #11271B;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--background-dark); /* Assume body background is dark from shared.css */
  line-height: 1.6;
}

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

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

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--divider-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-image-wrapper {
  flex: 1 1 50%;
  min-width: 300px;
  order: 2; /* Image below content on mobile by default */
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
  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: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-the-thao__btn-small {
  padding: 8px 16px;
  font-size: 0.9em;
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  border-radius: 6px;
}

.page-the-thao__btn-small:hover {
  opacity: 0.9;
}

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

/* Intro Section - Features Grid */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-the-thao__feature-item {
  text-align: center;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-the-thao__icon-box-media {
  width: 200px; /* Fixed width for circular image */
  height: 200px; /* Fixed height for circular image */
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 0 0 5px rgba(34, 199, 104, 0.2);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is circular */
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__feature-text {
  color: var(--text-secondary);
  font-size: 1em;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-the-thao__sport-category {
  margin-bottom: 50px;
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__sport-title {
  font-size: 2em;
  color: var(--gold-color);
  margin-bottom: 25px;
  text-align: center;
  font-weight: bold;
}

.page-the-thao__sport-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.page-the-thao__sport-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__sport-text-block {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-the-thao__sport-text-block p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: guide-step;
}

.page-the-thao__guide-item {
  background-color: var(--card-bg);
  padding: 25px 30px;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 70px;
}

.page-the-thao__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background: var(--secondary-color);
  color: var(--background-dark);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9em;
}

.page-the-thao__guide-step-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__guide-item p {
  color: var(--text-secondary);
}

/* Tips & Strategies Section */
.page-the-thao__tips-strategies-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-the-thao__tip-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__tip-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__tip-item p {
  color: var(--text-secondary);
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

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

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

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

.page-the-thao__promo-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 10px;
  padding: 0 15px;
  font-weight: bold;
}

.page-the-thao__promo-text {
  color: var(--text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-the-thao__faq-item summary {
  list-style: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--secondary-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;
  color: var(--text-secondary);
  font-size: 1em;
  line-height: 1.6;
}

/* Conclusion Section */
.page-the-thao__conclusion-section {
  padding: 60px 0;
  background-color: var(--deep-green);
  text-align: center;
}

.page-the-thao__conclusion-section .page-the-thao__description {
  margin-bottom: 40px;
}

/* General Image Responsiveness */
.page-the-thao img:not(.page-the-thao__icon-box-media img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-image-wrapper,
  .page-the-thao__hero-content {
    order: unset;
  }

  .page-the-thao__cta-buttons {
    justify-content: center;
  }

  .page-the-thao__sport-content-wrapper {
    flex-direction: column;
  }

  .page-the-thao__sport-image {
    flex: 1 1 100%;
    width: 100%;
  }

  .page-the-thao__sport-text-block {
    flex: 1 1 100%;
  }
}

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

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

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

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

  /* HERO section */
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    text-align: center;
  }

  .page-the-thao__description {
    font-size: 0.95em;
    text-align: center;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-small,
  .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;
  }

  /* Module 1: Three-column circular images */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 2px;
  }

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

  /* Sports Categories Section */
  .page-the-thao__sport-category {
    padding: 20px;
  }

  .page-the-thao__sport-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-the-thao__sport-image {
    flex: 1 1 100%;
    width: 100%;
  }

  .page-the-thao__sport-text-block {
    flex: 1 1 100%;
  }

  .page-the-thao__sport-text-block p {
    font-size: 0.95em;
  }

  /* Guide Section */
  .page-the-thao__guide-item {
    padding: 15px 15px 15px 60px;
    margin-bottom: 15px;
  }

  .page-the-thao__guide-item::before {
    left: 10px;
    top: 15px;
    width: 35px;
    height: 35px;
    font-size: 0.8em;
  }

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

  /* Tips & Strategies Section */
  .page-the-thao__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

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

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

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

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

  .page-the-thao__hero-image {
    height: auto !important;
  }

  .page-the-thao__promo-image {
    height: 180px !important; /* Keep fixed height for consistency */
    width: 100% !important;
  }
}