/* style/the-thao.css */

:root {
  --vz88-primary: #113B7A;
  --vz88-secondary: #1D5FD1;
  --vz88-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --vz88-card-bg: #10233F;
  --vz88-text-main: #F3F8FF;
  --vz88-text-secondary: #AFC4E8;
  --vz88-border: #244D84;
  --vz88-glow: #4FA8FF;
  --vz88-gold: #F2C14E;
  --vz88-divider: #1B3357;
  --vz88-deep-navy: #08162B;
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--vz88-text-main); /* Default text color for the page */
  background-color: var(--vz88-deep-navy); /* Consistent with dark theme */
}

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

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

.page-the-thao__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
  order: 2; /* Image after content on desktop */
}

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

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--vz88-text-main);
  order: 1; /* Content before image on desktop */
  text-align: left;
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--vz88-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-the-thao__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--vz88-text-secondary);
}

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

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

.page-the-thao__btn-primary {
  background: var(--vz88-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--vz88-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-the-thao__content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--vz88-text-secondary);
  margin-bottom: 30px;
  text-align: center;
}

.page-the-thao__highlight-text {
  color: var(--vz88-gold);
  font-weight: 600;
}

.page-the-thao__introduction-section,
.page-the-thao__sports-categories-section,
.page-the-thao__benefits-section,
.page-the-thao__guide-section,
.page-the-thao__promotions-section,
.page-the-thao__faq-section,
.page-the-thao__conclusion-cta-section {
  padding: 60px 0;
  background-color: var(--vz88-deep-navy);
}

.page-the-thao__introduction-section {
  background: linear-gradient(to bottom, var(--vz88-deep-navy) 0%, var(--vz88-card-bg) 100%);
}

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

.page-the-thao__feature-item {
  background-color: var(--vz88-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--vz88-border);
}

.page-the-thao__icon-box-media {
  width: 180px; /* Smaller for intro section */
  height: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--vz88-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.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.4rem;
  color: var(--vz88-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__feature-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vz88-text-secondary);
}

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

.page-the-thao__category-card,
.page-the-thao__promo-card {
  background-color: var(--vz88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--vz88-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-the-thao__card-title {
  font-size: 1.5rem;
  color: var(--vz88-gold);
  padding: 20px 25px 10px;
  font-weight: 600;
  line-height: 1.3;
}

.page-the-thao__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-the-thao__card-title a:hover {
  color: var(--vz88-gold);
  text-decoration: underline;
}

.page-the-thao__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vz88-text-secondary);
  padding: 0 25px 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-the-thao__btn-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--vz88-secondary);
  text-decoration: none;
  font-weight: 600;
  padding: 15px 25px;
  margin-top: auto; /* Push to bottom */
  transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
  color: var(--vz88-gold);
  text-decoration: underline;
}

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

.page-the-thao__benefit-item,
.page-the-thao__guide-step-item {
  background-color: var(--vz88-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--vz88-border);
  display: flex;
  flex-direction: column;
}

.page-the-thao__benefit-icon,
.page-the-thao__step-icon img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__step-icon {
  width: 100%; /* Ensure container takes full width */
  height: 200px; /* Fixed height for consistency */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-the-thao__step-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-the-thao__benefit-title,
.page-the-thao__step-title {
  font-size: 1.4rem;
  color: var(--vz88-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__benefit-description,
.page-the-thao__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vz88-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--vz88-gold);
  cursor: pointer;
  background-color: var(--vz88-card-bg);
  user-select: none;
  transition: background-color 0.3s ease;
}

.page-the-thao__faq-question:hover {
  background-color: rgba(29, 95, 209, 0.1);
}

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

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--vz88-text-secondary);
}

.page-the-thao__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

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

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

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

  .page-the-thao__hero-content {
    order: 1; /* Content first */
    text-align: center;
  }

  .page-the-thao__hero-image {
    order: 2; /* Image second */
  }

  .page-the-thao__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    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;
  }

  .page-the-thao__content-container {
    padding: 30px 15px;
  }

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

  .page-the-thao__text-block {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

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

  .page-the-thao__feature-item,
  .page-the-thao__category-card,
  .page-the-thao__promo-card,
  .page-the-thao__benefit-item,
  .page-the-thao__guide-step-item {
    padding: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px; /* Adjust size for mobile */
    height: 150px;
    margin-bottom: 15px;
    border-width: 3px;
  }

  .page-the-thao__feature-title,
  .page-the-thao__benefit-title,
  .page-the-thao__step-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .page-the-thao__feature-description,
  .page-the-thao__card-description,
  .page-the-thao__benefit-description,
  .page-the-thao__step-description {
    font-size: 0.9rem;
  }

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

  .page-the-thao__card-title {
    font-size: 1.3rem;
    padding: 15px 20px 8px;
  }

  .page-the-thao__btn-text {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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

  .page-the-thao__faq-toggle {
    font-size: 1.3rem;
  }

  .page-the-thao__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px;
  }

  /* Mobile image adaptation for all content images */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers with images */
  .page-the-thao__hero-section,
  .page-the-thao__introduction-section,
  .page-the-thao__sports-categories-section,
  .page-the-thao__benefits-section,
  .page-the-thao__guide-section,
  .page-the-thao__promotions-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-cta-section,
  .page-the-thao__content-container,
  .page-the-thao__card,
  .page-the-thao__feature-item,
  .page-the-thao__benefit-item,
  .page-the-thao__guide-step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px; /* Add padding to buttons container */
  }

  .page-the-thao__cta-center .page-the-thao__cta-buttons {
    align-items: center;
  }

  .page-the-thao__hero-content .page-the-thao__cta-buttons {
    align-items: center;
  }

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