/* --- BEM Naming Convention: page-the-thao__element-name --- */

/* Base styles for the Thể Thao page */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

.page-the-thao__section-title--white {
  color: #ffffff;
}

.page-the-thao__section-description {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-the-thao__section-description--white {
  color: #f0f0f0;
}

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #4A8BFF;
  color: #4A8BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-the-thao__btn-primary--center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Image responsive base */
.page-the-thao__image-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 60px;
}

.page-the-thao__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-the-thao__hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 15px;
  text-align: center;
}

.page-the-thao__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-description {
  font-size: 20px;
  color: #1F2D3D;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

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

/* Introduction Section */
.page-the-thao__introduction-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  margin-bottom: 60px;
}

.page-the-thao__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-the-thao__text-block p {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-the-thao__read-more-btn {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.page-the-thao__read-more-btn:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

/* Betting Types Section */
.page-the-thao__betting-types-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main color */
  margin-bottom: 60px;
}

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

.page-the-thao__betting-card {
  background-color: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__betting-card .page-the-thao__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
}

.page-the-thao__betting-card .page-the-thao__card-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.7;
}

.page-the-thao__betting-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  margin-bottom: 60px;
}

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-the-thao__guide-list li {
  background-color: #ffffff; /* Card BG */
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  color: #1F2D3D;
  line-height: 1.6;
}

.page-the-thao__guide-list li strong {
  color: #2F6BFF; /* Main color */
}

.page-the-thao__guide-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Sports Highlight Section */
.page-the-thao__sports-highlight-section {
  padding: 80px 0;
  margin-bottom: 60px;
}

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

.page-the-thao__sport-card {
  background-color: #ffffff; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-the-thao__sport-card .page-the-thao__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 10px;
}

.page-the-thao__sport-card .page-the-thao__card-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

/* Advantages Section */
.page-the-thao__advantages-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
  margin-bottom: 60px;
}

.page-the-thao__advantages-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-the-thao__advantages-list li {
  background-color: #ffffff; /* Card BG */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  font-size: 17px;
  color: #1F2D3D;
  line-height: 1.6;
  position: relative;
  padding-left: 45px;
}

.page-the-thao__advantages-list li::before {
  content: '✔';
  color: #2F6BFF; /* Main color */
  font-size: 22px;
  position: absolute;
  left: 15px;
  top: 18px;
  font-weight: bold;
}

/* CTA Section */
.page-the-thao__cta-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main color */
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.page-the-thao__cta-content {
  flex: 1;
  text-align: left;
  padding-left: 15px;
  padding-right: 15px;
}

.page-the-thao__cta-content .page-the-thao__section-title,
.page-the-thao__cta-content .page-the-thao__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-the-thao__cta-buttons-wrapper {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.page-the-thao__cta-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: right;
}

.page-the-thao__cta-image-wrapper .page-the-thao__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: #F4F7FB; /* Background */
}

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

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #ffffff; /* 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: #f5f5f5;
}
.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main 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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
  line-height: 1.6;
}

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

/* --- Media Queries for Responsive Design --- */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
  .page-the-thao__hero-image-wrapper {
    height: 500px;
  }
  .page-the-thao__main-title {
    font-size: clamp(30px, 4vw, 48px);
  }
  .page-the-thao__hero-description {
    font-size: 18px;
  }
  .page-the-thao__section-title {
    font-size: 30px;
  }
  .page-the-thao__section-description {
    font-size: 16px;
  }
  .page-the-thao__content-grid {
    grid-template-columns: 1fr;
  }
  .page-the-thao__image-block {
    order: -1;
  }
  .page-the-thao__advantages-list {
    grid-template-columns: 1fr;
  }
  .page-the-thao__cta-section {
    flex-direction: column;
    text-align: center;
  }
  .page-the-thao__cta-content .page-the-thao__section-title,
  .page-the-thao__cta-content .page-the-thao__section-description {
    text-align: center;
  }
  .page-the-thao__cta-buttons-wrapper {
    justify-content: center;
  }
  .page-the-thao__cta-image-wrapper {
    min-width: unset;
    width: 100%;
    text-align: center;
  }
  .page-the-thao__advantages-list li::before {
    top: 15px;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
  /* 1. Top section padding */
  .page-the-thao__hero-section {
    padding-top: 10px;
  }

  /* General content area containers */
  .page-the-thao__container,
  .page-the-thao__hero-content,
  .page-the-thao__introduction-section .page-the-thao__container,
  .page-the-thao__betting-types-section .page-the-thao__container,
  .page-the-thao__guide-section .page-the-thao__container,
  .page-the-thao__sports-highlight-section .page-the-thao__container,
  .page-the-thao__advantages-section .page-the-thao__container,
  .page-the-thao__cta-section .page-the-thao__container,
  .page-the-thao__faq-section .page-the-thao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__hero-image-wrapper {
    height: 300px;
  }

  .page-the-thao__hero-content {
    padding: 40px 15px;
  }

  .page-the-thao__main-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-the-thao__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* 2. Dual-column modules stack */
  .page-the-thao__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-the-thao__introduction-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__sports-highlight-section,
  .page-the-thao__advantages-section,
  .page-the-thao__cta-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
    margin-bottom: 30px;
  }

  .page-the-thao__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

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

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

  .page-the-thao__betting-card,
  .page-the-thao__sport-card {
    padding: 20px;
  }

  .page-the-thao__betting-card .page-the-thao__card-title,
  .page-the-thao__sport-card .page-the-thao__card-title {
    font-size: 20px;
  }

  .page-the-thao__guide-list {
    margin: 30px auto;
  }

  .page-the-thao__guide-list li {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-the-thao__guide-cta {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-the-thao__advantages-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-the-thao__advantages-list li {
    padding: 15px 20px 15px 45px;
    font-size: 16px;
  }

  .page-the-thao__advantages-list li::before {
    top: 15px;
    font-size: 20px;
  }

  .page-the-thao__cta-section {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__cta-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__cta-buttons-wrapper {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

  .page-the-thao__faq-list {
    margin: 30px auto 0 auto;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 16px;
  }
  .page-the-thao__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* 3. General images and containers */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__image-block {
    text-align: center;
  }

  /* 4. Buttons */
  .page-the-thao__btn-primary--center {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure no horizontal overflow */
  .page-the-thao {
    overflow-x: hidden;
  }
}