/* style/the-thao.css */

/* General styles for the page-the-thao scope */
.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly set for clarity, assuming shared.css doesn't set body background */
  line-height: 1.6;
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-the-thao__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-the-thao__text-block p {
  margin-bottom: 1em;
}

.page-the-thao__text-white {
  color: #ffffff !important;
}

/* Hero Section */
.page-the-thao__hero-section {
  background-color: #f8f8f8; /* Light background for hero */
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 60px;
}

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

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 800;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

/* CTA Buttons */
.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: flex-start;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: nowrap; /* Prevent text wrapping initially */
  word-wrap: normal;
}

.page-the-thao__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-the-thao__btn-primary:hover {
  background-color: #a30707;
  border-color: #a30707;
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

.page-the-thao__cta-center .page-the-thao__btn-primary,
.page-the-thao__cta-center .page-the-thao__btn-secondary {
  margin: 0 10px;
}

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

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

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

.page-the-thao__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 200px; /* Smaller for circular */
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

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

/* Betting Types Section */
.page-the-thao__betting-types-section {
  padding: 60px 0;
  background-color: #f3fdf6; /* Light green background */
}

.page-the-thao__grid-2-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-the-thao__grid-2-col--reverse {
  flex-direction: row-reverse;
}

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

.page-the-thao__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Top Sports Section */
.page-the-thao__top-sports-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-the-thao__dark-bg {
  background-color: #017439;
}

.page-the-thao__top-sports-section .page-the-thao__section-title,
.page-the-thao__top-sports-section .page-the-thao__section-description {
  color: #ffffff;
}

.page-the-thao__sport-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-the-thao__sport-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-the-thao__sport-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-the-thao__sport-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-the-thao__guide-step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #017439;
}

.page-the-thao__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

/* Tips Section */
.page-the-thao__tips-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-the-thao__tips-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="%23017439"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #444444;
}

.page-the-thao__tips-list strong {
  color: #017439;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
}

.page-the-thao__promo-content {
  text-align: center;
}

.page-the-thao__promo-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
  gap: 30px;
  text-align: left;
}

.page-the-thao__promo-card:nth-child(even) {
  flex-direction: row-reverse;
}

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

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

.page-the-thao__promo-details {
  flex: 1 1 50%;
  min-width: 280px;
}

.page-the-thao__promo-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-the-thao__promo-text {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

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

.page-the-thao__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none; /* For details summary */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or similar */
}

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

/* Contact CTA Section */
.page-the-thao__contact-cta-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff;
  text-align: center;
}

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

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

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
  }

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

  .page-the-thao__grid-2-col {
    flex-direction: column;
  }

  .page-the-thao__grid-2-col--reverse {
    flex-direction: column; /* Revert for small screens */
  }

  .page-the-thao__text-block,
  .page-the-thao__image-block {
    flex: 1 1 100%;
  }

  .page-the-thao__promo-card {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__promo-card:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-the-thao__content-container {
    padding: 30px 15px;
  }

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

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

  .page-the-thao__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, important for mobile */
    padding-bottom: 30px;
  }

  .page-the-thao__hero-title {
    font-size: 2em; /* Ensure H1 is not too large */
  }

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

  /* Buttons and Button Containers */
  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 15px;
    padding-right: 15px;
    justify-content: center;
  }
}