/* style/the-thao.css */

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

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

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: var(--color-deep-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.page-the-thao__hero-description {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--color-text-secondary);
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-the-thao__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-the-thao__content-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--color-divider);
}

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

.page-the-thao__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem); /* Responsive font size */
  font-weight: 700;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
}

.page-the-thao__section-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-the-thao__image-center {
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layout for Cards */
.page-the-thao__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--color-text-main);
}

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

.page-the-thao__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 20px;
  display: block;
}

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

.page-the-thao__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Text with Image Layout */
.page-the-thao__text-with-image {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
  margin-top: 40px;
}

.page-the-thao__text-block {
  flex: 1;
  min-width: 300px;
}

.page-the-thao__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-the-thao__list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%232AD16F"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-main);
}

/* Feature Cards (Module 1 style) */
.page-the-thao__feature-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  color: var(--color-text-main);
}

.page-the-thao__icon-box-media {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-primary);
  box-shadow: 0 0 15px var(--color-glow);
}

.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.6rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-the-thao__feature-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Guide Steps */
.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__guide-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--color-text-main);
  position: relative;
}

.page-the-thao__guide-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  box-shadow: 0 0 10px var(--color-glow);
}

.page-the-thao__guide-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.page-the-thao__guide-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

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

.page-the-thao__news-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  color: var(--color-text-main);
}

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

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

.page-the-thao__news-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-the-thao__news-title a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-the-thao__news-title a:hover {
  color: var(--color-primary);
}

.page-the-thao__news-date {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin: 0 20px 15px;
}

.page-the-thao__news-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 20px 20px;
}

.page-the-thao__btn-text {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
  color: var(--color-gold);
}

.page-the-thao__view-all-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-gold);
  cursor: pointer;
  list-style: none;
  outline: none;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-the-thao__faq-toggle {
  margin-left: 20px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-primary);
  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;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

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

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

.page-the-thao__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  background: var(--color-deep-green);
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__cta-bottom-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao__cta-bottom-title {
  font-size: clamp(2rem, 3.5vw, 3rem); /* Responsive font size */
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 20px;
}

.page-the-thao__cta-bottom-description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 15px var(--color-glow);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-glow);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-the-thao__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
  max-width: 300px;
}

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

  .page-the-thao__hero-content {
    order: 2;
  }

  .page-the-thao__hero-image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-the-thao__hero-title,
  .page-the-thao__hero-description,
  .page-the-thao__section-title,
  .page-the-thao__section-description,
  .page-the-thao__cta-bottom-title,
  .page-the-thao__cta-bottom-description {
    text-align: center;
  }

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

  .page-the-thao__text-with-image {
    flex-direction: column;
  }

  .page-the-thao__text-block {
    order: 2;
  }

  .page-the-thao__image-block {
    order: 1;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 20px 15px;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-the-thao__hero-title {
    font-size: 2.2rem; /* Adjusted for mobile */
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__hero-cta-buttons,
  .page-the-thao__view-all-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;
    flex-direction: column;
  }

  .page-the-thao__content-section {
    padding: 40px 0;
  }

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

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

  /* General image and container responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__card,
  .page-the-thao__feature-card,
  .page-the-thao__guide-item,
  .page-the-thao__news-card,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Module 1 (feature cards) square image exception */
  .page-the-thao__icon-box-media {
    width: 120px;
    height: 120px;
    border-width: 2px;
  }

  .page-the-thao__icon-box-media img {
    width: 100%; /* Keep 100% to fill parent */
    height: 100%; /* Keep 100% to fill parent */
    object-fit: cover;
  }

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

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

  .page-the-thao__news-title {
    font-size: 1.2rem;
  }

  .page-the-thao__news-date,
  .page-the-thao__news-excerpt {
    font-size: 0.9rem;
  }

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

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

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

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

  .page-the-thao__cta-bottom-title {
    font-size: 2.2rem;
  }

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