/* style/ththao.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-ththao {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark background */
  background-color: var(--black-color); /* Inherited or set to ensure dark background */
  line-height: 1.6;
}

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

.page-ththao__section-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Responsive font size for H2 */
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-ththao__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
}

/* Hero Section */
.page-ththao__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for desktop hero */
  overflow: hidden;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 8px;
  margin-top: 20px;
}

.page-ththao__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Responsive font size for H1 */
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-ththao__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
}

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

.page-ththao__btn-primary,
.page-ththao__btn-secondary,
.page-ththao__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-ththao__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-ththao__btn-primary:hover {
  background-color: #1a7bb7;
  border-color: #1a7bb7;
}

.page-ththao__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-ththao__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-ththao__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 16px;
}

.page-ththao__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* About Section */
.page-ththao__about-section {
  background-color: #1a1a1a; /* Darker background for contrast */
  padding: 60px 0;
}

.page-ththao__dark-section {
  background-color: #1a1a1a; /* Consistent dark background for sections */
  color: #ffffff;
}

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

.page-ththao__feature-item {
  background-color: rgba(255, 255, 255, 0.08); /* Subtle light background for cards */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__feature-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-ththao__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Sports Options Section */
.page-ththao__sports-options-section {
  background-color: var(--black-color);
  padding: 60px 0;
}

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

.page-ththao__sport-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ththao__sport-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-ththao__sport-title {
  font-size: 22px;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

.page-ththao__sport-description {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-ththao__sport-card .page-ththao__btn-link {
  margin: 0 15px 20px;
}

/* Cockfighting Section */
.page-ththao__cockfighting-section {
  padding: 60px 0;
}

.page-ththao__cockfighting-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ththao__cockfighting-image {
  width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-ththao__cockfighting-text {
  width: 50%;
}

/* Promotions Section */
.page-ththao__promotions-section {
  background-color: var(--black-color);
  padding: 60px 0;
}

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

.page-ththao__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-ththao__promotion-image {
  width: 100%;
  height: 200px; /* Consistent height for promotion images */
  object-fit: cover;
  display: block;
}

.page-ththao__promotion-title {
  font-size: 22px;
  color: #26A9E0;
  margin: 20px 15px 10px;
}

.page-ththao__promotion-description {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-ththao__promotion-card .page-ththao__btn-link {
  margin: 0 15px 20px;
}

/* Guide Section */
.page-ththao__guide-section {
  padding: 60px 0;
}

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

.page-ththao__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-ththao__step-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-ththao__step-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* Support Section */
.page-ththao__support-section {
  background-color: var(--black-color);
  padding: 60px 0;
}

.page-ththao__support-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-ththao__support-text {
  width: 50%;
}

.page-ththao__support-image {
  width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 60px 0;
}

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

.page-ththao__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none;
}

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

.page-ththao__faq-question:hover {
  color: #26A9E0;
}

.page-ththao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-ththao__faq-answer {
  padding: 0 20px 20px;
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-ththao__hero-content {
    max-width: 700px;
  }

  .page-ththao__cockfighting-content,
  .page-ththao__support-content {
    flex-direction: column;
    text-align: center;
  }

  .page-ththao__cockfighting-image,
  .page-ththao__cockfighting-text,
  .page-ththao__support-image,
  .page-ththao__support-text {
    width: 100%;
  }

  .page-ththao__cockfighting-image,
  .page-ththao__support-image {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-ththao__container {
    padding: 20px 15px !important;
  }

  /* HERO Section */
  .page-ththao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px !important;
  }

  .page-ththao__main-title {
    font-size: clamp(28px, 8vw, 40px) !important;
    margin-bottom: 15px !important;
  }

  .page-ththao__hero-description {
    font-size: 16px !important;
    margin-bottom: 20px !important;
  }

  .page-ththao__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px !important;
  }

  /* Buttons */
  .page-ththao__btn-primary,
  .page-ththao__btn-secondary,
  .page-ththao__btn-link,
  .page-ththao a[class*="button"],
  .page-ththao 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: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Section Titles */
  .page-ththao__section-title {
    font-size: clamp(24px, 7vw, 36px) !important;
    margin-bottom: 30px !important;
  }

  .page-ththao__text-block {
    font-size: 16px !important;
  }

  /* Feature Grid */
  .page-ththao__feature-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ththao__feature-item {
    padding: 20px !important;
  }

  .page-ththao__feature-title {
    font-size: 20px !important;
  }

  /* Sports Grid */
  .page-ththao__sports-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ththao__sport-image {
    height: 180px !important;
  }

  .page-ththao__sport-title {
    font-size: 20px !important;
  }

  /* Cockfighting Section */
  .page-ththao__cockfighting-content,
  .page-ththao__support-content {
    gap: 20px !important;
  }

  .page-ththao__cockfighting-image,
  .page-ththao__support-image {
    margin-bottom: 20px !important;
  }

  /* Promotions Grid */
  .page-ththao__promotions-grid {
    grid-template-columns: 1fr !important;
  }

  .page-ththao__promotion-image {
    height: 160px !important;
  }

  .page-ththao__promotion-title {
    font-size: 20px !important;
  }

  /* Guide Steps */
  .page-ththao__guide-steps {
    grid-template-columns: 1fr !important;
  }

  .page-ththao__step-title {
    font-size: 20px !important;
  }

  /* FAQ Section */
  .page-ththao__faq-question {
    padding: 15px !important;
    font-size: 16px !important;
  }

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

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

  /* Universal image and container rules for mobile */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}