/* style/the-thao.css */

:root {
  --vivu88-primary: #2F6BFF;
  --vivu88-secondary: #6FA3FF;
  --vivu88-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --vivu88-card-bg: #FFFFFF;
  --vivu88-bg: #F4F7FB;
  --vivu88-text-main: #1F2D3D;
  --vivu88-text-dark: #000000;
  --vivu88-border: #D6E2FF;
  --vivu88-glow: #A5C4FF;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--vivu88-text-main);
  background-color: var(--vivu88-bg);
}

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

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

.page-the-thao__section-title--light {
  color: var(--vivu88-card-bg);
}

.page-the-thao__description {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--vivu88-text-main);
}

.page-the-thao__description--light {
  color: var(--vivu88-card-bg);
}

.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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: var(--vivu88-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

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

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding to account for fixed header */
  padding-bottom: 40px;
  background-color: var(--vivu88-bg);
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--vivu88-primary);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
}

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

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

/* Intro Section (3 columns with square images) */
.page-the-thao__intro-section {
  background-color: var(--vivu88-card-bg);
  padding: 60px 0;
}

.page-the-thao__icon-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.page-the-thao__icon-box {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  background: var(--vivu88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--vivu88-secondary);
  box-shadow: 0 0 0 8px rgba(111, 163, 255, 0.3);
}

.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__icon-box-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--vivu88-primary);
  margin-bottom: 10px;
}

.page-the-thao__icon-box p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--vivu88-text-main);
}

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

.page-the-thao__content-area--reverse {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-the-thao__text-block {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-the-thao__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--vivu88-text-main);
}

.page-the-thao__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-the-thao__list li::before {
  content: '✔';
  color: var(--vivu88-primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Betting Guide Section */
.page-the-thao__betting-guide-section {
  padding: 60px 0;
  background-color: var(--vivu88-card-bg);
}

.page-the-thao__guide-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.page-the-thao__guide-step {
  flex: 1 1 280px;
  max-width: 350px;
  background: var(--vivu88-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--vivu88-primary);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-the-thao__guide-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--vivu88-text-main);
}

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

/* Promotions Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background: var(--vivu88-primary);
  color: #ffffff;
  text-align: center;
}

.page-the-thao__dark-section {
  background: var(--vivu88-primary);
  color: #ffffff; /* Forced white text */
}

.page-the-thao__promo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-the-thao__promo-content .page-the-thao__text-block,
.page-the-thao__promo-content .page-the-thao__image-block {
  flex: 1 1 45%;
  min-width: 300px;
}

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

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

.page-the-thao__faq-item {
  background: var(--vivu88-card-bg);
  border: 1px solid var(--vivu88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.page-the-thao__faq-item[open] {
  background: #fdfdfd;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--vivu88-text-main);
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
}

.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: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--vivu88-primary);
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    padding: 30px 16px;
    gap: 20px;
  }
  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    text-align: center;
  }
  .page-the-thao__hero-content {
    order: 2;
  }
  .page-the-thao__hero-image {
    order: 1;
  }
  .page-the-thao__main-title {
    text-align: center;
  }
  .page-the-thao__description {
    text-align: center;
  }
  .page-the-thao__cta-buttons {
    justify-content: center;
  }
  .page-the-thao__section-title {
    font-size: 32px;
  }
  .page-the-thao__icon-boxes {
    gap: 20px;
  }
  .page-the-thao__icon-box {
    flex: 1 1 45%;
    max-width: 48%;
  }
  .page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
  }
  .page-the-thao__content-area--reverse {
    flex-direction: column;
  }
  .page-the-thao__promo-content {
    flex-direction: column;
  }
  .page-the-thao__promo-content .page-the-thao__text-block,
  .page-the-thao__promo-content .page-the-thao__image-block {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-the-thao__hero-container {
    flex-direction: column; /* Ensure vertical stacking */
    padding: 20px 15px;
    gap: 20px;
  }
  .page-the-thao__hero-content {
    order: 2;
    text-align: center;
    min-width: unset;
  }
  .page-the-thao__hero-image {
    order: 1;
    min-width: unset;
  }
  .page-the-thao__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    text-align: center;
    margin-bottom: 15px;
  }
  .page-the-thao__description {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Intro Section (3 columns) */
  .page-the-thao__intro-section {
    padding: 40px 0;
  }
  .page-the-thao__icon-boxes {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__icon-box {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 20px;
  }
  .page-the-thao__icon-box-media {
    width: 180px;
    height: 180px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(111, 163, 255, 0.3);
  }
  .page-the-thao__icon-box-title {
    font-size: 20px;
  }

  /* Sports Types Section & Promo Section (reverse layout) */
  .page-the-thao__sports-types-section,
  .page-the-thao__betting-guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
  }
  .page-the-thao__content-area,
  .page-the-thao__promo-content {
    padding: 30px 15px;
    flex-direction: column;
    gap: 30px;
  }
  .page-the-thao__content-area--reverse {
    flex-direction: column; /* Stack text and image vertically */
  }
  .page-the-thao__text-block,
  .page-the-thao__image-block {
    flex: 1 1 100%;
    min-width: unset;
    text-align: center;
  }
  .page-the-thao__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-the-thao__list {
    font-size: 15px;
    text-align: left;
    padding-left: 0;
  }
  .page-the-thao__list li {
    padding-left: 20px;
  }
  .page-the-thao__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Betting Guide Section */
  .page-the-thao__guide-steps {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__guide-step {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
    padding-top: 50px;
  }
  .page-the-thao__step-number {
    width: 45px;
    height: 45px;
    font-size: 20px;
    top: -15px;
  }
  .page-the-thao__step-title {
    font-size: 20px;
  }

  /* FAQ Section */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-the-thao__faq-toggle {
    font-size: 20px;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }
  
  /* Ensure all content containers are responsive */
  .page-the-thao__hero-section,
  .page-the-thao__intro-section,
  .page-the-thao__sports-types-section,
  .page-the-thao__betting-guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-the-thao__content-area,
  .page-the-thao__promo-content,
  .page-the-thao__cta-buttons,
  .page-the-thao__icon-boxes,
  .page-the-thao__guide-steps,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}