/* Biến màu sắc */
:root {
  --page-the-thao-primary-color: #FF8C1A;
  --page-the-thao-secondary-color: #FFA53A;
  --page-the-thao-card-bg: #17191F;
  --page-the-thao-background: #0D0E12;
  --page-the-thao-text-main: #FFF3E6;
  --page-the-thao-border: #A84F0C;
  --page-the-thao-glow: #FFB04D;
  --page-the-thao-deep-orange: #D96800;
  --page-the-thao-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-the-thao {
  color: var(--page-the-thao-text-main); /* Mặc định chữ trắng cho nền tối */
  background-color: var(--page-the-thao-background);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Nhỏ hơn header-offset */
  background-color: var(--page-the-thao-background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-the-thao__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px 40px;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--page-the-thao-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.7);
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--page-the-thao-button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

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

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

.page-the-thao__btn-tertiary {
  background: transparent;
  color: var(--page-the-thao-primary-color);
  border: 1px solid var(--page-the-thao-border);
  padding: 10px 20px;
  font-size: 1rem;
}

.page-the-thao__btn-tertiary:hover {
  background: rgba(255, 140, 26, 0.1);
  color: var(--page-the-thao-glow);
  border-color: var(--page-the-thao-glow);
}

/* Sections */
.page-the-thao__introduction-section,
.page-the-thao__bet-types-section,
.page-the-thao__top-sports-section,
.page-the-thao__guide-section,
.page-the-thao__advantages-section,
.page-the-thao__promotions-section,
.page-the-thao__app-download-section,
.page-the-thao__faq-section,
.page-the-thao__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__dark-section {
  background-color: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--page-the-thao-primary-color);
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

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

.page-the-thao__text-block {
  text-align: left;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 30px;
}

.page-the-thao__text-block p {
  margin-bottom: 15px;
}

.page-the-thao__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-the-thao__grid-2-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
  align-items: flex-start;
}

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

.page-the-thao__grid-promotions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

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

/* Cards */
.page-the-thao__card {
  background: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-the-thao__card p {
  font-size: 1rem;
  color: #ccc;
  flex-grow: 1;
}

/* Feature Items */
.page-the-thao__feature-item {
  background: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-the-thao__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px rgba(255, 140, 26, 0.5));
}

.page-the-thao__feature-item h3 {
  font-size: 1.3rem;
  color: var(--page-the-thao-primary-color);
  margin-bottom: 10px;
}

.page-the-thao__feature-item p {
  font-size: 0.95rem;
  color: #ccc;
}

/* Step Items */
.page-the-thao__step-item {
  background: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--page-the-thao-secondary-color);
  margin-bottom: 15px;
  line-height: 1;
}

.page-the-thao__step-title {
  font-size: 1.5rem;
  color: var(--page-the-thao-primary-color);
  margin-bottom: 15px;
}

.page-the-thao__step-item p {
  font-size: 1rem;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions */
.page-the-thao__promo-card {
  background: var(--page-the-thao-card-bg);
  color: var(--page-the-thao-text-main);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__promo-content {
  padding: 25px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-content h3 {
  font-size: 1.4rem;
  color: var(--page-the-thao-secondary-color);
  margin-bottom: 15px;
}

.page-the-thao__promo-content p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__promotion-note {
  font-size: 0.95rem;
  color: #aaa;
  margin-top: 30px;
}

.page-the-thao__promotion-note a {
  color: var(--page-the-thao-glow);
  text-decoration: none;
}

.page-the-thao__promotion-note a:hover {
  text-decoration: underline;
}

/* App Download Section */
.page-the-thao__app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-the-thao__app-content {
  flex: 1;
}

.page-the-thao__app-benefits {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: #e0e0e0;
}

.page-the-thao__app-benefits li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.page-the-thao__app-benefits li i {
  color: var(--page-the-thao-glow);
  margin-right: 10px;
  font-size: 1.3rem;
}

.page-the-thao__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__app-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-the-thao__download-note {
  font-size: 0.95rem;
  color: #aaa;
  margin-top: 20px;
}

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

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-the-thao-secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 5px 5px;
  color: #ccc;
  font-size: 1rem;
}

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

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

/* Conclusion Section */
.page-the-thao__conclusion-section .page-the-thao__cta-buttons {
  margin-top: 40px;
}

/* General Text Styling */
.page-the-thao p a,
.page-the-thao li a {
  color: var(--page-the-thao-glow);
  text-decoration: none;
}

.page-the-thao p a:hover,
.page-the-thao li a:hover {
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }

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

  .page-the-thao__app-flex {
    flex-direction: column;
  }

  .page-the-thao__app-content,
  .page-the-thao__app-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-the-thao__app-image-wrapper img {
    max-width: 80%;
  }

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

@media (max-width: 768px) {
  .page-the-thao__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: 400px !important;
  }

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

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 2rem;
  }

  .page-the-thao__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-the-thao__introduction-section,
  .page-the-thao__bet-types-section,
  .page-the-thao__top-sports-section,
  .page-the-thao__guide-section,
  .page-the-thao__advantages-section,
  .page-the-thao__promotions-section,
  .page-the-thao__app-download-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    padding: 40px 0;
  }

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

  .page-the-thao__text-block {
    padding: 0 10px;
  }

  .page-the-thao__text-block p {
    font-size: 0.95rem;
  }

  .page-the-thao__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    margin: 15px auto;
  }

  .page-the-thao__grid-3-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__grid-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__grid-promotions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-the-thao__card {
    padding: 20px;
  }

  .page-the-thao__card-image {
    height: 180px;
  }

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

  .page-the-thao__promo-card {
    flex-direction: column;
  }

  .page-the-thao__promo-image {
    height: 200px;
  }

  .page-the-thao__promo-content {
    padding: 20px;
  }

  .page-the-thao__app-benefits li {
    font-size: 1rem;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }

  .page-the-thao__faq-qtext {
    font-size: 1rem;
  }

  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }
  .page-the-thao__products-section {
    overflow-x: hidden;
  }
  .page-the-thao__content-area, .page-the-thao__text-block,
  .page-the-thao__section, .page-the-thao__card, .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}