/* style/ththao.css */

/* Base styles for the Thể Thao page */
.page-ththao {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-ththao__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-ththao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: #F2FFF6;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #08160F;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-ththao__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-ththao__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-ththao__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-ththao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.2);
}

.page-ththao__btn-secondary:hover {
  background-color: #2AD16F;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

/* About Section */
.page-ththao__about-section {
  padding: 80px 0;
  background-color: #08160F;
}

/* Sports Showcase Section */
.page-ththao__sports-showcase {
  padding: 80px 0;
  background-color: #11271B; /* Card BG, but used for section background */
  color: #F2FFF6; /* Main Text */
}

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

.page-ththao__sport-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__sport-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-ththao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-ththao__card-title {
  font-size: 1.8em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-ththao__card-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-ththao__card-button {
  padding: 10px 20px;
  font-size: 0.95em;
}

/* Betting Guide Section */
.page-ththao__betting-guide {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-ththao__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-ththao__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-ththao__step-title {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-ththao__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

.page-ththao__guide-cta {
  text-align: center;
  margin-top: 60px;
}

/* Promotions Section */
.page-ththao__promotions-section {
  padding: 80px 0;
  background-color: #11271B;
  color: #F2FFF6;
}

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

.page-ththao__promo-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-ththao__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

/* Security Section */
.page-ththao__security-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-ththao__security-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-ththao__security-list li {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  display: flex;
  align-items: flex-start;
  text-align: left;
}

.page-ththao__list-icon {
  color: #2AD16F;
  font-size: 1.4em;
  margin-right: 10px;
  line-height: 1;
}

.page-ththao__security-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 80px 0;
  background-color: #11271B;
  color: #F2FFF6;
}

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

.page-ththao__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Main Text */
  background-color: #0A4B2C;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}

.page-ththao__faq-question:hover {
  background-color: #11A84E;
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  color: #F2C14E; /* Gold */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  transform: rotate(45deg);
}

.page-ththao__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  background-color: #0A4B2C;
  line-height: 1.5;
}

/* Download App Section */
.page-ththao__download-app-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-ththao__download-app-section .page-ththao__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

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

.page-ththao__app-image {
  flex-shrink: 0;
  width: 400px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

/* Color Contrast Fixes for Light Backgrounds */
.page-ththao__light-bg .page-ththao__section-title,
.page-ththao__light-bg .page-ththao__text-block,
.page-ththao__light-bg .page-ththao__card-title,
.page-ththao__light-bg .page-ththao__card-description,
.page-ththao__light-bg .page-ththao__faq-qtext,
.page-ththao__light-bg .page-ththao__faq-answer {
  color: #F2FFF6; /* Ensure light text on light-ish background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-ththao__section-title {
    font-size: 2em;
  }
  .page-ththao__app-image {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 0 15px;
  }
  .page-ththao__hero-section,
  .page-ththao__about-section,
  .page-ththao__sports-showcase,
  .page-ththao__betting-guide,
  .page-ththao__promotions-section,
  .page-ththao__security-section,
  .page-ththao__faq-section,
  .page-ththao__download-app-section {
    padding: 40px 0;
  }

  .page-ththao__hero-image {
    margin-bottom: 20px;
  }

  .page-ththao__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-ththao__cta-buttons,
  .page-ththao__download-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-ththao__btn-primary,
  .page-ththao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-ththao__text-block {
    font-size: 0.95em;
  }

  .page-ththao__sports-grid,
  .page-ththao__guide-steps,
  .page-ththao__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-ththao__card-image {
    height: 180px;
  }

  .page-ththao__sport-card,
  .page-ththao__promo-card,
  .page-ththao__step-item {
    padding: 20px;
  }

  .page-ththao__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-ththao__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-ththao__app-image {
    width: 100%;
    max-width: 250px;
    margin: 30px auto 0;
  }
  .page-ththao__download-app-section .page-ththao__container {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile image responsiveness */
  .page-ththao img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__hero-section,
  .page-ththao__about-section,
  .page-ththao__sports-showcase,
  .page-ththao__betting-guide,
  .page-ththao__promotions-section,
  .page-ththao__security-section,
  .page-ththao__faq-section,
  .page-ththao__download-app-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-ththao__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-ththao__download-content {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-ththao__main-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }
  .page-ththao__section-title {
    font-size: 1.6em;
  }
}

/* Color Contrast Specifics */
.page-ththao__dark-section {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-ththao__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-ththao__light-bg {
  background-color: #11271B;
  color: #F2FFF6;
}

.page-ththao__text-contrast-fix {
  color: #F2FFF6;
}

.page-ththao__card {
  background-color: #11271B;
  color: #F2FFF6;
}

.page-ththao__faq-item {
  background-color: #0A4B2C;
}

.page-ththao__faq-question {
  background-color: #0A4B2C;
  border-bottom-color: #1E3A2A;
}

.page-ththao__faq-answer {
  background-color: #0A4B2C;
}

.page-ththao__faq-question:hover {
  background-color: #11A84E;
}

.page-ththao__list-icon {
  color: #2AD16F;
}