/* style/the-thao.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --page-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--page-bg);
  line-height: 1.6;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Using clamp for responsive font size */
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 165, 58, 0.4);
}

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

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn--primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-the-thao__btn--primary:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
  transform: translateY(-2px);
}

.page-the-thao__btn--secondary {
  background: var(--card-bg);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-the-thao__btn--small {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* General Section Styling */
.page-the-thao__section {
  padding: 80px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-the-thao__section:last-of-type {
  border-bottom: none;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 165, 58, 0.3);
}

.page-the-thao__text-block {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-main);
}

.page-the-thao__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Feature Grid */
.page-the-thao__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

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

.page-the-thao__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(var(--glow-color), 0.3);
}

.page-the-thao__card-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__card-text {
  font-size: 0.95em;
  color: var(--text-main);
  line-height: 1.7;
}

/* Bet Types List */
.page-the-thao__bet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.page-the-thao__bet-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-the-thao__bet-type-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__bet-type-description {
  font-size: 0.9em;
  color: var(--text-main);
  line-height: 1.7;
}

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

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

.page-the-thao__step-card {
  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.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-the-thao__step-description {
  font-size: 0.95em;
  color: var(--text-main);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Tips List */
.page-the-thao__tip-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-the-thao__tip-item {
  background-color: var(--card-bg);
  padding: 20px 25px;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-main);
  position: relative;
  padding-left: 45px;
}

.page-the-thao__tip-item::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2em;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

/* Promotions */
.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);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: rgba(255, 165, 58, 0.1);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-the-thao__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.2);
}

.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);
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: var(--text-main);
  line-height: 1.7;
}

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

/* Conclusion */
.page-the-thao__section--conclusion {
  text-align: center;
  padding-bottom: 100px;
}

.page-the-thao__section--conclusion .page-the-thao__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__link-in-text {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-the-thao__link-in-text:hover {
  color: var(--glow-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.8em;
  }

  .page-the-thao__section-title {
    font-size: 2.4em;
  }

  .page-the-thao__container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Hero) + CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Adhere to 10px top padding */
    padding-bottom: 40px;
  }

  .page-the-thao__main-title {
    font-size: 2.2em !important;
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-the-thao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 2. Single-Column Content Container */
  .page-the-thao__section {
    padding: 40px 0;
  }

  .page-the-thao__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8em !important;
    margin-bottom: 30px;
  }

  .page-the-thao__text-block {
    font-size: 0.95em;
    line-height: 1.7;
  }

  /* Feature Grid */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__feature-card {
    padding: 25px;
  }

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

  /* Bet Types List */
  .page-the-thao__bet-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__bet-item {
    padding: 20px;
  }

  .page-the-thao__bet-type-title {
    font-size: 1.1em;
  }

  /* Step-by-Step Guide */
  .page-the-thao__step-by-step {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__step-card {
    padding: 25px;
  }

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

  /* Tips List */
  .page-the-thao__tip-item {
    padding: 15px 15px 15px 40px;
    font-size: 0.95em;
  }

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

  .page-the-thao__promo-card {
    padding: 25px;
  }

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

  .page-the-thao__faq-toggle {
    font-size: 1.2em;
  }

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

  /* 3. Universal Images */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__hero-image-wrapper,
  .page-the-thao__image-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Conclusion */
  .page-the-thao__section--conclusion {
    padding-bottom: 60px;
  }
}