/* style/the-thao.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --text-main-color: #FFF6D6;
  --background-dark: #0A0A0A;
  --card-background: #111111;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

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

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

.page-the-thao__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

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

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

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--glow-color);
}

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

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

.page-the-thao__btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  padding: 0;
  font-weight: 600;
  text-decoration: underline;
}

.page-the-thao__btn-link:hover {
  color: var(--secondary-color);
}

.page-the-thao__btn-small {
  padding: 8px 18px;
  font-size: 15px;
}

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background-dark);
}

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

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

.page-the-thao__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

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

.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;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: var(--card-background);
}

.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;
  background-color: var(--background-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

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

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

.page-the-thao__feature-text {
  font-size: 16px;
  color: var(--text-main-color);
}

/* Sports Types Section */
.page-the-thao__sports-types-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-the-thao__sport-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-the-thao__sport-category:last-child {
  margin-bottom: 0;
}

.page-the-thao__sport-category--reverse {
  flex-direction: row-reverse;
}

.page-the-thao__sport-content {
  flex: 1;
  min-width: 300px;
}

.page-the-thao__sport-title {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-the-thao__sport-text {
  font-size: 17px;
  color: var(--text-main-color);
  margin-bottom: 25px;
}

.page-the-thao__sport-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__sport-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__live-betting-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-the-thao__live-betting-content {
  flex: 1;
  min-width: 300px;
  color: var(--text-main-color);
}

.page-the-thao__live-betting-content p {
  margin-bottom: 20px;
  font-size: 17px;
}

.page-the-thao__live-betting-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-the-thao__live-betting-content ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  font-size: 17px;
}

.page-the-thao__live-betting-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.page-the-thao__live-betting-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__live-betting-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Promo Section */
.page-the-thao__promo-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.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(--card-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
}

.page-the-thao__promo-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-the-thao__promo-text {
  font-size: 16px;
  color: var(--text-main-color);
  margin-bottom: 25px;
}

.page-the-thao__promo-all-btn-container {
  text-align: center;
  margin-top: 50px;
}

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

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

.page-the-thao__guide-step {
  background-color: var(--background-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  text-align: center;
}

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

.page-the-thao__guide-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

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

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

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

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

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  outline: none;
  list-style: none;
  user-select: none;
}

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

.page-the-thao__faq-question {
  flex-grow: 1;
  color: var(--primary-color);
}

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

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

.page-the-thao__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: var(--text-main-color);
  line-height: 1.7;
}

/* Blog Section */
.page-the-thao__blog-section {
  padding: 80px 0;
  background-color: var(--card-background);
}

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

.page-the-thao__blog-card {
  background-color: var(--background-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

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

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

.page-the-thao__blog-title {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-the-thao__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-the-thao__blog-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-the-thao__blog-meta {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 15px;
}

.page-the-thao__blog-excerpt {
  font-size: 16px;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-the-thao__view-all-btn-container {
  text-align: center;
  margin-top: 50px;
}

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

/* Mobile Specific Styles */
@media (max-width: 768px) {
  .page-the-thao__content-container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

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

  .page-the-thao__hero-container {
    flex-direction: column;
    padding: 20px 15px !important;
    gap: 30px !important;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100% !important;
    min-width: unset !important;
  }

  .page-the-thao__hero-title {
    font-size: 32px !important;
    text-align: center;
  }

  .page-the-thao__hero-description {
    font-size: 16px !important;
    text-align: center;
  }

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

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

  /* Intro Section Mobile */
  .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: 200px !important;
    height: 200px !important;
    border-width: 3px !important;
  }

  /* Sports Types Section Mobile */
  .page-the-thao__sports-types-section {
    padding: 50px 0 !important;
  }

  .page-the-thao__sport-category,
  .page-the-thao__sport-category--reverse {
    flex-direction: column !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
  }

  .page-the-thao__sport-title {
    font-size: 26px !important;
    text-align: center;
  }

  .page-the-thao__sport-text {
    font-size: 16px !important;
    text-align: center;
  }

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

  .page-the-thao__live-betting-grid {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .page-the-thao__live-betting-content ul {
    padding-left: 20px !important;
  }

  /* Promo Section Mobile */
  .page-the-thao__promo-section {
    padding: 50px 0 !important;
  }

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

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

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

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

  .page-the-thao__faq-item summary {
    font-size: 16px !important;
    padding: 15px !important;
  }

  .page-the-thao__faq-toggle {
    font-size: 20px !important;
  }

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

  /* Blog Section Mobile */
  .page-the-thao__blog-section {
    padding: 50px 0 !important;
  }

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

  .page-the-thao__blog-image {
    height: 200px !important;
  }

  .page-the-thao__blog-title {
    font-size: 18px !important;
  }

  .page-the-thao__blog-excerpt {
    font-size: 15px !important;
  }

  /* General image responsiveness for all img tags */
  .page-the-thao img:not(.page-the-thao__icon-box-media img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Specific override for feature images to maintain square aspect ratio */
  .page-the-thao__icon-box-media {
    width: 150px !important;
    height: 150px !important;
  }
  .page-the-thao__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .page-the-thao__cta-buttons,
  .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;
  }

  .page-the-thao__promo-all-btn-container .page-the-thao__btn-primary,
  .page-the-thao__view-all-btn-container .page-the-thao__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-the-thao__hero-title {
    font-size: 28px !important;
  }
  .page-the-thao__section-title {
    font-size: 24px !important;
  }
  .page-the-thao__sport-title {
    font-size: 24px !important;
  }
}