/* style/the-thao.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0;
}

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

/* General Section Styling */
.page-the-thao__content-area {
  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(--primary-color);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-the-thao__btn-tertiary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-the-thao__btn-tertiary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Aligned with fixed header spacing */
  padding-bottom: 60px;
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-the-thao__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-the-thao__hero-cta-buttons .page-the-thao__btn-primary {
  background-color: var(--login-color);
  border-color: var(--login-color);
}

.page-the-thao__hero-cta-buttons .page-the-thao__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

.page-the-thao__hero-cta-buttons .page-the-thao__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

.page-the-thao__hero-cta-buttons .page-the-thao__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

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

.page-the-thao__hero-side-image {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Intro Section (Why Choose Us) */
.page-the-thao__intro-section {
  background-color: var(--background-light);
  padding: 60px 0;
  color: var(--text-dark);
}

.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: var(--secondary-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
}

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

.page-the-thao__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__feature-text {
  color: var(--text-dark);
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  background-color: var(--background-dark);
  padding: 60px 0;
  color: var(--text-light);
}

.page-the-thao__sports-categories-section .page-the-thao__section-title,
.page-the-thao__sports-categories-section .page-the-thao__section-description {
  color: var(--text-light);
}

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

.page-the-thao__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-the-thao__category-title {
  font-size: 1.4em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-the-thao__category-text {
  color: rgba(255, 255, 255, 0.8);
  padding: 0 15px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-the-thao__live-betting-section {
  background-color: var(--background-light);
  padding: 60px 0;
  color: var(--text-dark);
}

.page-the-thao__live-betting-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

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

.page-the-thao__live-betting-image {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-the-thao__live-match-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Promotion Section */
.page-the-thao__promo-section {
  background-color: var(--background-dark);
  padding: 60px 0;
  color: var(--text-light);
}

.page-the-thao__promo-section .page-the-thao__section-title,
.page-the-thao__promo-section .page-the-thao__section-description {
  color: var(--text-light);
}

.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__promo-title {
  font-size: 1.4em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-the-thao__promo-text {
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-the-thao__view-all-promos {
  text-align: center;
  margin-top: 40px;
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: var(--background-light);
  padding: 60px 0;
  color: var(--text-dark);
}

.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-step-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-the-thao__step-number {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__step-text {
  color: var(--text-dark);
}

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

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: var(--background-dark);
  padding: 60px 0;
  color: var(--text-light);
}

.page-the-thao__faq-section .page-the-thao__section-title {
  color: var(--text-light);
}

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

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  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.15em;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: "−";
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.7);
}

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

  .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-cta-buttons {
    justify-content: center;
  }

  .page-the-thao__live-betting-container {
    flex-direction: column;
  }

  .page-the-thao__live-betting-content {
    order: 2;
  }

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

@media (max-width: 768px) {
  /* General */
  .page-the-thao__content-area {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__section-description {
    font-size: 1em !important;
    margin-bottom: 30px !important;
    padding: 0 5px;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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 !important;
    padding-right: 15px !important;
  }

  .page-the-thao__hero-cta-buttons .page-the-thao__btn-primary,
  .page-the-thao__hero-cta-buttons .page-the-thao__btn-secondary {
    padding: 12px 15px !important; /* Adjust padding for smaller screens */
  }

  .page-the-thao__hero-side-image {
    border-radius: 5px !important;
  }

  /* Intro Section (3 columns) */
  .page-the-thao__intro-section {
    padding: 40px 0 !important;
  }

  .page-the-thao__feature-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__icon-box-media {
    width: 160px !important;
    height: 160px !important;
    border-width: 3px !important;
  }

  .page-the-thao__feature-title {
    font-size: 1.3em !important;
  }

  /* Sports Categories Section */
  .page-the-thao__sports-categories-section {
    padding: 40px 0 !important;
  }

  .page-the-thao__category-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__category-image {
    height: 180px !important;
  }

  .page-the-thao__category-title {
    font-size: 1.2em !important;
  }

  /* Live Betting Section */
  .page-the-thao__live-betting-section {
    padding: 40px 0 !important;
  }

  .page-the-thao__live-betting-content,
  .page-the-thao__live-betting-image {
    min-width: unset !important;
  }

  .page-the-thao__live-match-image {
    border-radius: 5px !important;
  }

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

  .page-the-thao__promo-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__promo-title {
    font-size: 1.3em !important;
  }

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

  .page-the-thao__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao__step-number {
    font-size: 2em !important;
  }

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

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

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

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

  .page-the-thao__faq-answer {
    padding: 0 20px 15px !important;
  }

  /* Universal image responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Exception for circular images */
  .page-the-thao__icon-box-media img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
  }
}