/* style/the-thao.css */

/* General styles for the page-the-thao scope */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default body background is white */
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #1e1765; /* Darker title color for contrast */
}

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

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

/* Color contrast classes */
.page-the-thao__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-the-thao__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-the-thao__dark-bg .page-the-thao__section-title,
.page-the-thao__dark-bg .page-the-thao__main-title {
  color: #ffffff; /* Ensure titles are white on dark backgrounds */
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-the-thao__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand primary color */
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #1e87b3;
  border-color: #1e87b3;
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center; /* Center buttons on desktop */
}

.page-the-thao__cta-buttons--center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  gap: 15px;
}

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

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

.page-the-thao__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  align-items: center;
  padding: 40px 16px;
  gap: 40px;
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1e1765;
}

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

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

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

.page-the-thao__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-the-thao__icon-box-media {
  width: 240px; /* Fixed width for desktop */
  height: 240px; /* Fixed height for desktop to ensure roundness */
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0; /* Brand color border */
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensure image covers the round area */
  border-radius: 50%; /* Keep image round inside the box */
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e1765;
}

.page-the-thao__feature-text {
  font-size: 1rem;
  color: #555555;
}

/* Betting Guide Section */
.page-the-thao__betting-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: 40px;
}

.page-the-thao__guide-step {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-the-thao__guide-step img {
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-the-thao__guide-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e1765;
}

.page-the-thao__guide-text {
  font-size: 1rem;
  color: #555555;
}

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

.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: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-the-thao__promo-card img {
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-the-thao__promo-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1e1765;
}

.page-the-thao__promo-text {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1; /* Make text take available space */
  margin-bottom: 20px;
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin-top: auto; /* Push button to bottom */
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e1765;
  cursor: pointer;
  list-style: none; /* Remove default marker for details summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

.page-the-thao__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-the-thao__section-title {
    font-size: 2rem;
  }
  .page-the-thao__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px; /* Adjust padding for mobile */
    gap: 20px;
  }
  .page-the-thao__hero-content {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    order: -1; /* Image above text on mobile */
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust H1 size for mobile */
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-the-thao__hero-cta-buttons,
  .page-the-thao__cta-buttons--center {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px; /* Add horizontal padding to button container */
    box-sizing: border-box;
  }

  /* Buttons general mobile styles */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .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 !important; /* Ensure padding on buttons */
    padding-right: 15px !important;
  }

  /* Section titles and descriptions */
  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-the-thao__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-the-thao__content-area {
    padding: 20px 15px; /* Adjust content area padding */
  }

  /* Module 1 (Intro Section) - Feature Grid */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-the-thao__icon-box-media {
    width: 180px; /* Smaller round image on mobile */
    height: 180px;
    border-width: 3px;
  }
  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }

  /* Betting Guide Section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-the-thao__guide-title {
    font-size: 1.4rem;
  }

  /* Promotion Section */
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-the-thao__promo-title {
    font-size: 1.3rem;
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    margin-top: 20px;
  }
  .page-the-thao__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
  }

  /* General Images mobile styles */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Exception for round images to maintain aspect ratio with object-fit */
  .page-the-thao__icon-box-media img {
    height: 100% !important; /* Keep height 100% of parent for object-fit */
    width: 100% !important;
  }

  /* All containers with images should have max-width: 100% and overflow: hidden */
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__betting-guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__feature-item,
  .page-the-thao__guide-step,
  .page-the-thao__promo-card,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden; /* Prevent content overflow */
  }
}