/* style/the-thao.css */

:root {
  --vnbet-orange-primary: #FF8C1A;
  --vnbet-orange-secondary: #FFA53A;
  --vnbet-deep-orange: #D96800;
  --vnbet-card-bg: #17191F;
  --vnbet-bg: #0D0E12;
  --vnbet-text-main: #FFF3E6;
  --vnbet-border: #A84F0C;
  --vnbet-glow: #FFB04D;
}

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

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

.page-the-thao__section-title,
.page-the-thao__cta-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--vnbet-orange-secondary);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--vnbet-text-main);
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding to avoid double header offset */
  padding-bottom: 60px;
  background: var(--vnbet-bg);
  position: relative;
  overflow: hidden;
}

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

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

.page-the-thao__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 800;
  color: var(--vnbet-orange-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

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

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

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

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--vnbet-orange-secondary) 0%, var(--vnbet-deep-orange) 100%);
  color: var(--vnbet-text-main);
  border: 2px solid var(--vnbet-deep-orange);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, var(--vnbet-deep-orange) 0%, var(--vnbet-orange-secondary) 100%);
  box-shadow: 0 0 15px var(--vnbet-glow);
}

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

.page-the-thao__btn-secondary:hover {
  background: var(--vnbet-orange-primary);
  color: var(--vnbet-bg);
  box-shadow: 0 0 15px var(--vnbet-glow);
}

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

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

/* Intro Section (Features) */
.page-the-thao__intro-section {
  padding: 80px 0;
  background: var(--vnbet-bg);
}

.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: var(--vnbet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--vnbet-border);
  transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(255, 140, 26, 0.2);
}

.page-the-thao__icon-box-media {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 165, 58, 0.1);
  border: 2px solid var(--vnbet-orange-primary);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--vnbet-orange-secondary);
  margin-bottom: 15px;
}

.page-the-thao__feature-text {
  color: var(--vnbet-text-main);
  font-size: 1em;
}

/* Sports Categories Section */
.page-the-thao__sports-categories-section {
  padding: 80px 0;
  background: var(--vnbet-bg);
}

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

.page-the-thao__category-card {
  display: flex;
  flex-direction: column;
  background: var(--vnbet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--vnbet-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.2);
}

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

.page-the-thao__category-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__category-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--vnbet-orange-primary);
  margin-bottom: 10px;
}

.page-the-thao__category-text {
  font-size: 0.95em;
  color: var(--vnbet-text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__read-more {
  display: inline-block;
  color: var(--vnbet-orange-secondary);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-the-thao__read-more:hover {
  color: var(--vnbet-glow);
}

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

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

.page-the-thao__guide-item {
  background: var(--vnbet-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--vnbet-border);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-the-thao__guide-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-the-thao__guide-step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--vnbet-orange-primary);
  margin-bottom: 15px;
}

.page-the-thao__guide-step-text {
  font-size: 1em;
  color: var(--vnbet-text-main);
  margin-bottom: 20px;
}

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

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

.page-the-thao__faq-item {
  background: var(--vnbet-card-bg);
  border: 1px solid var(--vnbet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--vnbet-orange-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.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;
  margin-left: 15px;
  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: 1em;
  color: var(--vnbet-text-main);
}

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

.page-the-thao__faq-answer a {
  color: var(--vnbet-orange-primary);
  text-decoration: underline;
}

/* CTA Bottom Section */
.page-the-thao__cta-bottom-section {
  padding: 80px 0;
  background: var(--vnbet-bg);
}

.page-the-thao__cta-card {
  background: var(--vnbet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--vnbet-border);
}

.page-the-thao__cta-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-the-thao__cta-text-content {
  flex: 1 1 400px;
  padding: 40px;
  text-align: center;
}

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

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

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-content {
    text-align: center;
  }

  .page-the-thao__cta-buttons {
    justify-content: center;
  }

  .page-the-thao__cta-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

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

  .page-the-thao__hero-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }

  .page-the-thao__section-title,
  .page-the-thao__cta-title {
    font-size: 2em;
  }

  .page-the-thao__section-description {
    font-size: 1em;
  }

  .page-the-thao__intro-section,
  .page-the-thao__sports-categories-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 50px 0;
  }

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

  .page-the-thao__features-grid,
  .page-the-thao__category-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Module 1 Round Images */
  .page-the-thao__icon-box-media {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
  }

  .page-the-thao__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .page-the-thao__feature-item,
  .page-the-thao__category-card,
  .page-the-thao__guide-item {
    padding: 20px;
  }

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

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

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

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

  .page-the-thao__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__cta-text-content {
    padding: 30px 20px;
  }

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

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

  /* Universal image responsiveness for content area */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

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