/* style/ththao.css */
/* Base styles for the Thể Thao page */
.page-ththao {
  background-color: var(--page-bg, #0A0A0A); /* Default to very dark for dark mode */
  color: var(--text-main, #FFF6D6); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* --- Hero Section --- */
.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  overflow: hidden; /* Ensure no overflow issues */
}

.page-ththao__hero-container {
  position: relative;
  max-width: 1920px; /* Max width for hero container */
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-ththao__hero-image-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); /* Subtle shadow for depth */
}

.page-ththao__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  margin-top: 30px; /* Space between image and content */
}

.page-ththao__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-main, #FFF6D6);
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-ththao__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-ththao__cta-button:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-ththao__cta-button--large {
  font-size: 20px;
  padding: 18px 50px;
}

.page-ththao__cta-button--secondary {
  background: none;
  border: 2px solid var(--glow-color, #FFD36B);
  color: var(--glow-color, #FFD36B);
  box-shadow: none;
}

.page-ththao__cta-button--secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* --- General Sections & Containers --- */
.page-ththao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-ththao__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--primary-color, #F2C14E); /* Using primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.page-ththao__section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-ththao__dark-section {
  background-color: var(--card-bg, #111111); /* Darker background for contrast */
  padding: 60px 0;
  border-top: 1px solid var(--border-color, #3A2A12);
  border-bottom: 1px solid var(--border-color, #3A2A12);
}

.page-ththao__text-block p {
  margin-bottom: 15px;
  color: var(--text-main, #FFF6D6);
}

/* --- Intro Section --- */
.page-ththao__intro-section {
  padding: 60px 0;
}

.page-ththao__content-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ththao__content-image {
  flex: 1;
  min-width: 300px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__image-left {
  order: 0; /* Default order */
}

.page-ththao__text-block {
  flex: 2;
  min-width: 300px;
  color: var(--text-main, #FFF6D6);
}

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

.page-ththao__sport-card {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #3A2A12);
}

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

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

.page-ththao__sport-card-content {
  padding: 20px;
}

.page-ththao__card-title {
  font-size: 1.5rem;
  color: var(--primary-color, #F2C14E);
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: center;
}

.page-ththao__card-description {
  font-size: 0.95rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
  text-align: center;
}

.page-ththao__sport-card .page-ththao__btn-secondary {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  text-align: center;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
}

/* --- Why Choose Section --- */
.page-ththao__why-choose-section {
  padding: 60px 0;
}

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

.page-ththao__feature-item {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color, #3A2A12);
}

.page-ththao__feature-title {
  font-size: 1.4rem;
  color: var(--primary-color, #F2C14E);
  margin-bottom: 15px;
}

.page-ththao__feature-description {
  font-size: 1rem;
  color: var(--text-main, #FFF6D6);
}

/* --- CTA Bottom Section --- */
.page-ththao__cta-bottom-content {
  text-align: center;
}

.page-ththao__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

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

details.page-ththao__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #3A2A12);
  overflow: hidden;
  background-color: var(--card-bg, #111111);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-ththao__faq-item summary.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #FFF6D6); /* Text color for question */
  font-weight: bold;
}

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

details.page-ththao__faq-item summary.page-ththao__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Subtle hover effect using primary color */
}

.page-ththao__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.5;
  text-align: left;
}

.page-ththao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-ththao__faq-item .page-ththao__faq-answer {
  padding: 0 20px 20px;
  background-color: rgba(17, 17, 17, 0.8); /* Slightly lighter dark background for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-main, #FFF6D6);
}

.page-ththao__faq-answer p {
  margin: 0;
  padding-top: 10px;
}

/* --- Latest News Section --- */
.page-ththao__latest-news-section {
  padding: 60px 0;
}

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

.page-ththao__news-card {
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-ththao__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-ththao__news-card img {
  width: 100%;
  height: 220px; /* Consistent image height for news cards */
  object-fit: cover;
  display: block;
}

.page-ththao__news-card-content {
  padding: 20px;
}

.page-ththao__news-title {
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-ththao__news-title a {
  color: var(--primary-color, #F2C14E);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ththao__news-title a:hover {
  color: var(--glow-color, #FFD36B);
}

.page-ththao__news-date {
  font-size: 0.85rem;
  color: #888888; /* Slightly lighter grey for date */
  margin-bottom: 10px;
}

.page-ththao__news-excerpt {
  font-size: 0.95rem;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 20px;
}

.page-ththao__read-more {
  display: inline-block;
  color: var(--primary-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-ththao__read-more:hover {
  color: var(--glow-color, #FFD36B);
  text-decoration: underline;
}

.page-ththao__view-all-news {
  text-align: center;
  margin-top: 40px;
}

/* --- General Image & Button Responsiveness (Global overrides for this page) --- */
.page-ththao img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-ththao__content-wrapper img,
.page-ththao__sports-grid img,
.page-ththao__news-grid img {
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-ththao__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-ththao__image-left {
    order: -1; /* Image above text on smaller screens */
  }
  .page-ththao__content-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-ththao__hero-image-main {
    border-radius: 4px;
  }

  .page-ththao__main-title {
    font-size: 2rem; /* Adjusted for mobile */
  }

  .page-ththao__hero-description {
    font-size: 1rem; /* Adjusted for mobile */
  }

  .page-ththao__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__cta-button--large {
    font-size: 18px;
    padding: 15px 40px;
  }

  .page-ththao__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ththao__container {
    padding: 15px;
  }

  .page-ththao__section-title {
    font-size: 1.8rem;
  }

  .page-ththao__section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-ththao__dark-section {
    padding: 40px 0;
  }

  .page-ththao__intro-section,
  .page-ththao__why-choose-section,
  .page-ththao__faq-section,
  .page-ththao__latest-news-section {
    padding: 40px 0;
  }

  .page-ththao__sports-grid,
  .page-ththao__feature-grid,
  .page-ththao__news-grid {
    grid-template-columns: 1fr; /* Single column layout for mobile */
    gap: 20px;
  }

  .page-ththao__sport-card img {
     /* Slightly smaller image height for mobile cards */
  }

  .page-ththao__news-card img {
    
  }

  .page-ththao__faq-qtext {
    font-size: 1rem;
  }
  .page-ththao__faq-toggle {
    font-size: 20px;
    width: 24px;
  }

  /* Image responsiveness enforcement for mobile */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-ththao__section,
  .page-ththao__card,
  .page-ththao__container,
  .page-ththao__content-wrapper,
  .page-ththao__sports-grid,
  .page-ththao__feature-grid,
  .page-ththao__news-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all links within text blocks have proper color and hover states */
.page-ththao a {
  color: var(--primary-color, #F2C14E);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-ththao a:hover {
  color: var(--glow-color, #FFD36B);
  text-decoration: underline;
}

/* Specific text color for paragraphs and list items to ensure contrast on dark background */
.page-ththao p,
.page-ththao li {
  color: var(--text-main, #FFF6D6);
}

/* Contrast fix for specific elements if needed (as per prompt) */
.page-ththao__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-ththao__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}