/* style/the-thao.css */

/* Variables from custom color scheme */
:root {
  --lucky8-primary: #113B7A;
  --lucky8-secondary: #1D5FD1;
  --lucky8-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --lucky8-card-bg: #10233F;
  --lucky8-text-main: #F3F8FF;
  --lucky8-text-secondary: #AFC4E8;
  --lucky8-border: #244D84;
  --lucky8-glow: #4FA8FF;
  --lucky8-gold: #F2C14E;
  --lucky8-divider: #1B3357;
  --lucky8-deep-navy: #08162B; /* Body background color from shared.css */
}

/* Base styles for the page content, ensuring light text on dark body background */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--lucky8-text-main); /* Light text for dark body background */
  background-color: var(--lucky8-deep-navy); /* Base background for main sections */
  line-height: 1.6;
}

.page-the-thao__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: var(--lucky8-gold);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.page-the-thao__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--lucky8-text-main);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-the-thao__btn-primary {
  background: var(--lucky8-button-gradient);
  color: #ffffff; /* Always white text for dark buttons */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--lucky8-text-main);
  border: 2px solid var(--lucky8-secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background: var(--lucky8-secondary);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-link {
  background: transparent;
  color: var(--lucky8-gold);
  border: none;
  text-decoration: underline;
  padding: 0;
  font-size: 1em;
  font-weight: 500;
}

.page-the-thao__btn-link:hover {
  color: var(--lucky8-glow);
}

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

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

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

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: var(--lucky8-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: var(--lucky8-text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-the-thao__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* Intro Section (Module 1) */
.page-the-thao__intro-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--lucky8-card-bg); /* Darker background for contrast */
}

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

.page-the-thao__feature-item {
  text-align: center;
  background-color: var(--lucky8-deep-navy); /* Slightly darker card for contrast */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--lucky8-border);
}

.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 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--lucky8-gold);
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.4); /* Gold glow */
}

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

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--lucky8-gold);
  margin-bottom: 15px;
}

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

/* Offerings Section */
.page-the-thao__offerings-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--lucky8-deep-navy);
}

.page-the-thao__grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.page-the-thao__text-block p {
  margin-bottom: 15px;
  color: var(--lucky8-text-secondary);
}

.page-the-thao__image-container {
  text-align: center;
}

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

/* Guide Section */
.page-the-thao__guide-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--lucky8-card-bg); /* Darker background */
}

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

.page-the-thao__step-item {
  background-color: var(--lucky8-deep-navy);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--lucky8-border);
}

.page-the-thao__step-title {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--lucky8-gold);
  margin-bottom: 15px;
}

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

.page-the-thao__center-cta {
  text-align: center;
  margin-top: 60px;
}

/* Promo Section */
.page-the-thao__promo-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--lucky8-deep-navy);
}

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

.page-the-thao__promo-card {
  background-color: var(--lucky8-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--lucky8-border);
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-the-thao__promo-text {
  font-size: 1em;
  color: var(--lucky8-text-secondary);
  margin-bottom: 20px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--lucky8-card-bg);
}

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

.page-the-thao__faq-item {
  background-color: var(--lucky8-deep-navy);
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--lucky8-border);
  overflow: hidden;
  box-shadow: 0 3px 15px 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;
  font-weight: 600;
  color: var(--lucky8-text-main);
  cursor: pointer;
  background-color: var(--lucky8-primary); /* Slightly lighter dark for question */
  border-bottom: 1px solid var(--lucky8-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-the-thao__faq-question:hover {
  background-color: var(--lucky8-secondary);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--lucky8-gold);
  margin-left: 15px;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  background-color: var(--lucky8-secondary);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: "−"; /* Change to minus when open */
}

.page-the-thao__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--lucky8-text-secondary);
  background-color: var(--lucky8-deep-navy);
  line-height: 1.7;
}

/* Contact CTA Section */
.page-the-thao__contact-cta-section {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--lucky8-deep-navy);
}

.page-the-thao__contact-cta-section .page-the-thao__container {
  background-color: var(--lucky8-card-bg);
  border-radius: 15px;
  text-align: center;
  padding: 60px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--lucky8-border);
}

.page-the-thao__contact-cta-section .page-the-thao__section-title {
  margin-bottom: 15px;
}

.page-the-thao__contact-cta-section .page-the-thao__section-description {
  margin-bottom: 40px;
}

/* General image responsive styles (excluding specific cases like circular images) */
.page-the-thao img:not(.page-the-thao__icon-box-media img) {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-the-thao__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }

  .page-the-thao__grid-2-col {
    grid-template-columns: 1fr;
  }

  .page-the-thao__image-container {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* Global page padding */
  .page-the-thao__container {
    padding: 30px 15px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Buttons stack vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }
  
  .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; /* Ensure internal button padding is consistent */
    padding-right: 15px;
    font-size: 1em;
  }

  /* Intro Section (Module 1) */
  .page-the-thao__intro-section,
  .page-the-thao__offerings-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__contact-cta-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .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__features-grid,
  .page-the-thao__steps-grid,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 150px; /* Smaller circular image on mobile */
    height: 150px;
    margin-bottom: 15px;
  }
  
  .page-the-thao__feature-item,
  .page-the-thao__step-item,
  .page-the-thao__promo-card {
    padding: 25px;
  }

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

  /* Offerings Section */
  .page-the-thao__grid-2-col {
    gap: 30px;
  }

  /* Guide Section */
  .page-the-thao__center-cta {
    margin-top: 40px;
  }

  /* Promo Section */
  .page-the-thao__promo-image {
    height: 180px; /* Adjust height for mobile */
  }

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

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

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

  /* Contact CTA Section */
  .page-the-thao__contact-cta-section .page-the-thao__container {
    padding: 40px 20px;
  }

  /* General images for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__cta-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; /* Add horizontal padding to main containers */
    padding-right: 15px;
    overflow: hidden; /* Prevent horizontal scroll */
  }
}