/* style/the-thao.css */

:root {
  --page-the-thao-primary-color: #017439;
  --page-the-thao-secondary-color: #FFFFFF;
  --page-the-thao-register-color: #C30808;
  --page-the-thao-login-color: #C30808;
  --page-the-thao-background-color: #FFFFFF;
  --page-the-thao-register-login-font-color: #FFFF00;
  --page-the-thao-text-color: #333333; /* Default dark text for light body background */
}

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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-the-thao-primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-the-thao__content-paragraph {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

/* Buttons */
.page-the-thao__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: var(--page-the-thao-register-color); /* Sử dụng màu đăng ký cho nút chính */
  color: var(--page-the-thao-register-login-font-color); /* Màu chữ vàng cho nút đăng ký/login */
  border: 2px solid var(--page-the-thao-register-color);
}

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

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

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 60px;
  background-color: var(--page-the-thao-background-color);
}

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

.page-the-thao__hero-image {
  flex: 1 1 45%;
  text-align: center;
  order: 2;
}

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

.page-the-thao__hero-content {
  flex: 1 1 50%;
  order: 1;
  text-align: left;
  color: var(--page-the-thao-text-color);
}

.page-the-thao__hero-title {
  font-size: 3.2em;
  font-weight: 800;
  color: var(--page-the-thao-primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.8;
}

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

/* Intro Features Section */
.page-the-thao__intro-features {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-the-thao__feature-item {
  background-color: var(--page-the-thao-secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 150px;
  height: 150px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-the-thao-primary-color);
  box-shadow: 0 0 0 8px rgba(1, 116, 57, 0.2);
}

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

.page-the-thao__feature-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-the-thao-primary-color);
  margin-bottom: 15px;
}

.page-the-thao__feature-description {
  font-size: 1.05em;
  color: #555;
}

/* Sports Overview Section */
.page-the-thao__sports-overview-section {
  padding: 80px 0;
  background-color: var(--page-the-thao-background-color);
}

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

.page-the-thao__sports-card {
  background-color: var(--page-the-thao-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
}

.page-the-thao__sports-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__sports-card .page-the-thao__card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-the-thao-primary-color);
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-the-thao__sports-card p {
  font-size: 1em;
  color: #666;
  padding: 0 20px 20px;
}

/* Betting Types Section */
.page-the-thao__betting-types-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-the-thao__betting-item {
  background-color: var(--page-the-thao-secondary-color);
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-the-thao__betting-item p {
  font-size: 1em;
  color: #555;
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  display: block;
}

/* Advantages Section */
.page-the-thao__advantages-section {
  padding: 80px 0;
  background-color: var(--page-the-thao-primary-color);
  color: var(--page-the-thao-secondary-color);
}

.page-the-thao__advantages-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

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

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

.page-the-thao__advantage-item p {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.9);
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 80px 0;
  background-color: var(--page-the-thao-background-color);
}

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

.page-the-thao__guide-item {
  background-color: var(--page-the-thao-secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-the-thao__guide-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__guide-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--page-the-thao-primary-color);
  margin-bottom: 15px;
}

.page-the-thao__guide-item p {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}

.page-the-thao__guide-button {
  margin-top: auto; /* Push button to bottom */
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.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(--page-the-thao-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--page-the-thao-primary-color);
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-the-thao__promo-card p {
  font-size: 1em;
  color: #666;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-the-thao__promo-button {
  margin: 0 20px 20px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: var(--page-the-thao-background-color);
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-the-thao-primary-color);
  cursor: pointer;
  background-color: var(--page-the-thao-secondary-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* Hide default marker */
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #555;
  background-color: #fdfdfd;
  border-top: 1px solid #eee;
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-the-thao-primary-color);
  color: var(--page-the-thao-secondary-color);
}

.page-the-thao__cta-bottom-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

.page-the-thao__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-the-thao__hero-title {
    font-size: 2.8em;
  }
  .page-the-thao__section-title {
    font-size: 2em;
  }
  .page-the-thao__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
  }

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

  .page-the-thao__hero-content {
    order: 2;
    flex: 1 1 100%;
    text-align: center;
  }

  .page-the-thao__hero-title {
    font-size: 2.2em !important;
    margin-top: 20px;
  }

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

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

  /* Buttons - Mobile specific */
  .page-the-thao__cta-button,
  .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;
    padding-right: 15px;
  }

  .page-the-thao__hero-cta-group,
  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  /* Intro Features Section */
  .page-the-thao__intro-features {
    padding: 50px 0;
  }
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__icon-box-media {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
  }
  .page-the-thao__feature-title {
    font-size: 1.5em;
  }

  /* Sports Overview Section */
  .page-the-thao__sports-overview-section {
    padding: 50px 0;
  }
  .page-the-thao__sports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__sports-image {
    height: 200px;
  }
  .page-the-thao__sports-card .page-the-thao__card-title {
    font-size: 1.4em;
  }

  /* Betting Types Section */
  .page-the-thao__betting-types-section {
    padding: 50px 0;
  }
  .page-the-thao__betting-item {
    padding: 20px;
  }
  .page-the-thao__betting-type-title {
    font-size: 1.3em;
  }
  .page-the-thao__content-image {
    margin-top: 20px;
  }

  /* Advantages Section */
  .page-the-thao__advantages-section {
    padding: 50px 0;
  }
  .page-the-thao__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__advantage-title {
    font-size: 1.4em;
  }

  /* Guide Section */
  .page-the-thao__guide-section {
    padding: 50px 0;
  }
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__guide-image {
    height: 180px;
  }
  .page-the-thao__guide-title {
    font-size: 1.5em;
  }

  /* Promo Section */
  .page-the-thao__promo-section {
    padding: 50px 0;
  }
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__promo-image {
    height: 160px;
  }
  .page-the-thao__promo-card .page-the-thao__card-title {
    font-size: 1.4em;
  }

  /* FAQ Section */
  .page-the-thao__faq-section {
    padding: 50px 0;
  }
  .page-the-thao__faq-question {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.2em;
  }
  .page-the-thao__faq-answer {
    padding: 15px;
    font-size: 0.95em;
  }

  /* CTA Bottom Section */
  .page-the-thao__cta-bottom-section {
    padding: 50px 0;
  }
  .page-the-thao__cta-description {
    font-size: 1.1em;
  }

  /* General Image Responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure containers also adapt */
  .page-the-thao__hero-section,
  .page-the-thao__intro-features,
  .page-the-thao__sports-overview-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__advantages-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section,
  .page-the-thao__container,
  .page-the-thao__card,
  .page-the-thao__feature-item,
  .page-the-thao__sports-card,
  .page-the-thao__promo-card,
  .page-the-thao__guide-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}