/* style/the-thao.css */

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

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-page); /* Assumed light background from shared.css */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  background: var(--primary-color);
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

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

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

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

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

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  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;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--glow-color);
}

.page-the-thao__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 4px 15px var(--glow-color);
}

.page-the-thao__btn-text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
  transition: color 0.3s ease;
}

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

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.page-the-thao__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-the-thao__intro-section {
  background-color: var(--background-page);
}

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

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

.page-the-thao__feature-item:hover {
  transform: translateY(-10px);
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  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%; /* Ensure image is also round */
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-the-thao__feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
}

.page-the-thao__content-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__content-section .page-the-thao__section-title,
.page-the-thao__content-section .page-the-thao__section-description {
  color: #ffffff;
}

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

.page-the-thao__sport-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__sport-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-the-thao__sport-text {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0 15px;
  color: #e0e0e0;
}

.page-the-thao__types-of-bets-section {
  background-color: var(--background-page);
}

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

.page-the-thao__bet-type-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-the-thao__bet-type-card:hover {
  transform: translateY(-8px);
}

.page-the-thao__card-image {
  width: 100%;
  height: 220px; /* Consistent height for card images */
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 20px 20px 10px;
  color: var(--text-dark);
}

.page-the-thao__card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--text-main);
}

.page-the-thao__read-more-btn-container {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__promo-section {
  background-color: var(--primary-color);
}

.page-the-thao__promo-section .page-the-thao__section-title,
.page-the-thao__promo-section .page-the-thao__section-description {
  color: #ffffff;
}

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

.page-the-thao__promo-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-the-thao__promo-card .page-the-thao__card-title {
  color: #ffffff;
}

.page-the-thao__promo-card .page-the-thao__card-text {
  color: #e0e0e0;
}

.page-the-thao__guide-section {
  background-color: var(--background-page);
}

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

.page-the-thao__step-item {
  background: var(--card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-the-thao__step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao__step-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-the-thao__step-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-the-thao__tips-section {
  background-color: var(--primary-color);
}

.page-the-thao__tips-section .page-the-thao__section-title,
.page-the-thao__tips-section .page-the-thao__section-description {
  color: #ffffff;
}

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

.page-the-thao__tip-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-the-thao__tip-card .page-the-thao__card-title {
  color: #ffffff;
}

.page-the-thao__tip-card .page-the-thao__card-text {
  color: #e0e0e0;
}

.page-the-thao__faq-section {
  background-color: var(--background-page);
}

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

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

.page-the-thao__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  background-color: #f8f8f8;
  border-bottom: 1px solid var(--border-color);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--primary-color);
  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: 15px 25px 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
}

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

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

.page-the-thao__contact-cta-section {
  background-color: var(--primary-color);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-the-thao__contact-cta-content {
  padding: 0;
}

.page-the-thao__contact-cta-section .page-the-thao__section-title {
  color: #ffffff;
  margin-bottom: 15px;
}

.page-the-thao__contact-cta-section .page-the-thao__section-description {
  color: #e0e0e0;
  margin-bottom: 40px;
}

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

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

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

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

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

  .page-the-thao__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }

  .page-the-thao__hero-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;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__cta-button {
    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__hero-image {
    flex: 1 1 100%;
    margin-top: 30px;
  }

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

  .page-the-thao__content-area {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  /* Module 1: Three-column intro with round images */
  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 3px;
  }

  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }

  /* Sport List (similar to cards) */
  .page-the-thao__sport-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__sport-image {
    height: 150px;
  }

  /* Bet Types Grid (similar to cards) */
  .page-the-thao__bet-types-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-the-thao__card-title {
    font-size: 1.2rem;
  }

  /* Promo Cards */
  .page-the-thao__promo-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Guide Steps */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__step-image {
    height: 150px;
  }

  .page-the-thao__step-title {
    font-size: 1.2rem;
  }

  /* Tips Grid */
  .page-the-thao__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* FAQ */
  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  .page-the-thao__contact-cta-section {
    padding: 60px 15px;
  }

  /* General image and container rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__sport-item,
  .page-the-thao__bet-type-card,
  .page-the-thao__promo-card,
  .page-the-thao__step-item,
  .page-the-thao__tip-card,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Adjustments for elements that should not have padding-left/right if they are full-width containers */
  .page-the-thao__hero-section,
  .page-the-thao__content-section,
  .page-the-thao__promo-section,
  .page-the-thao__tips-section,
  .page-the-thao__contact-cta-section {
    padding-left: 0;
    padding-right: 0;
  }

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