/* style/th-thao-live-scores.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: #001f4d; /* Darker blue for contrast */
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
}

.page-th-thao-live-scores {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--bg-light);
}

.page-th-thao-live-scores-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-th-thao-live-scores-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-th-thao-live-scores-section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-th-thao-live-scores-section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-th-thao-live-scores h1,
.page-th-thao-live-scores h2,
.page-th-thao-live-scores h3 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-th-thao-live-scores h1 {
  font-size: 2.8em;
  color: var(--text-color-light);
}

.page-th-thao-live-scores h2 {
  font-size: 2.2em;
  color: var(--primary-color);
}

.page-th-thao-live-scores h3 {
  font-size: 1.6em;
  color: var(--text-color-dark);
}

.page-th-thao-live-scores p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-th-thao-live-scores p a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-th-thao-live-scores p a:hover {
  text-decoration: underline;
}

.page-th-thao-live-scores .highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Hero Section */
.page-th-thao-live-scores-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--bg-dark));
  color: var(--text-color-light);
  padding: 80px 0;
  text-align: center;
}

.page-th-thao-live-scores-hero .page-th-thao-live-scores-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-th-thao-live-scores-hero-content {
  max-width: 800px;
}

.page-th-thao-live-scores-hero-content h1 {
  margin-bottom: 20px;
  font-size: 3.5em;
  line-height: 1.2;
}

.page-th-thao-live-scores-hero-content p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.page-th-thao-live-scores-hero-content p a {
  color: var(--secondary-color);
}

.page-th-thao-live-scores-hero-content p a:hover {
  text-decoration: underline;
}

.page-th-thao-live-scores-hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-th-thao-live-scores-cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-color-light);
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-th-thao-live-scores-cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

.page-th-thao-live-scores-link-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 15px;
}

.page-th-thao-live-scores-link-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Content Grids */
.page-th-thao-live-scores-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-th-thao-live-scores-grid-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-th-thao-live-scores-grid-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px; /* Enforce minimum image size */
}

.page-th-thao-live-scores-grid-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-th-thao-live-scores-grid-item p {
  text-align: left;
  font-size: 1em;
  flex-grow: 1;
}

/* Benefits Grid */
.page-th-thao-live-scores-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-th-thao-live-scores-benefit-card {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-th-thao-live-scores-benefit-card h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-th-thao-live-scores-benefit-card p {
  font-size: 1em;
  color: var(--text-color-dark);
  text-align: left;
}

/* Guide List */
.page-th-thao-live-scores-guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-th-thao-live-scores-guide-list li {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 25px;
}

.page-th-thao-live-scores-guide-list li h3 {
  text-align: left;
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-th-thao-live-scores-guide-list li p {
  text-align: left;
  font-size: 1.05em;
  color: var(--text-color-dark);
}

/* FAQ Section */
.page-th-thao-live-scores-faq h2 {
  margin-bottom: 40px;
}

.faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--card-bg);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--card-bg);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  text-align: left;
  flex-grow: 1;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--text-color-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 20px;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 5px 5px;
}

.faq-item.active .faq-answer p {
  text-align: left;
  margin-bottom: 0;
}

/* News Section */
.page-th-thao-live-scores-news h2 {
  margin-bottom: 40px;
}

.page-th-thao-live-scores-news p {
  text-align: center;
  margin-bottom: 30px;
}

.page-th-thao-live-scores-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-th-thao-live-scores-news-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-th-thao-live-scores-news-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce minimum image size */
  min-height: 200px; /* Enforce minimum image size */
}

.page-th-thao-live-scores-news-card h3 {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  text-align: left;
  flex-grow: 1;
}

.page-th-thao-live-scores-news-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-th-thao-live-scores-news-card h3 a:hover {
  text-decoration: underline;
}

.page-th-thao-live-scores-news-card p {
  font-size: 0.95em;
  color: #666;
  padding: 0 15px 15px;
  text-align: left;
  margin-bottom: 0;
}

.page-th-thao-live-scores-news .page-th-thao-live-scores-cta-button {
  margin-top: 40px;
}

/* Final CTA */
.page-th-thao-live-scores-final-cta {
  background: linear-gradient(90deg, var(--primary-color), var(--bg-dark));
  color: var(--text-color-light);
  text-align: center;
}

.page-th-thao-live-scores-cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-th-thao-live-scores-cta-text h2 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-th-thao-live-scores-cta-text p {
  font-size: 1.2em;
  color: var(--text-color-light);
}

.page-th-thao-live-scores-cta-button.large-button {
  padding: 18px 40px;
  font-size: 1.4em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-th-thao-live-scores-hero-content h1 {
    font-size: 2.8em;
  }
  .page-th-thao-live-scores h2 {
    font-size: 1.8em;
  }
  .page-th-thao-live-scores h3 {
    font-size: 1.4em;
  }
  .page-th-thao-live-scores-cta-button.large-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }
}

@media (max-width: 768px) {
  .page-th-thao-live-scores-section {
    padding: 40px 0;
  }
  .page-th-thao-live-scores-hero-content h1 {
    font-size: 2.2em;
  }
  .page-th-thao-live-scores-hero-content p {
    font-size: 1.1em;
  }
  .page-th-thao-live-scores-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-th-thao-live-scores-grid-item,
  .page-th-thao-live-scores-benefit-card,
  .page-th-thao-live-scores-news-card {
    padding: 20px;
  }
  .page-th-thao-live-scores-grid-item p,
  .page-th-thao-live-scores-benefit-card p,
  .page-th-thao-live-scores-guide-list li p,
  .page-th-thao-live-scores-news-card p {
    font-size: 0.95em;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .page-th-thao-live-scores-cta-flex {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-th-thao-live-scores-container {
    padding: 15px;
  }
  .page-th-thao-live-scores h1 {
    font-size: 1.8em;
  }
  .page-th-thao-live-scores h2 {
    font-size: 1.6em;
  }
  .page-th-thao-live-scores h3 {
    font-size: 1.2em;
  }
  .page-th-thao-live-scores p {
    font-size: 0.9em;
  }
  .page-th-thao-live-scores-hero .page-th-thao-live-scores-container {
    flex-direction: column;
  }
  .page-th-thao-live-scores-hero-image img {
    margin-top: 20px;
  }
  .page-th-thao-live-scores-cta-button.large-button {
    font-size: 1.1em;
    padding: 10px 20px;
  }
  .faq-question {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
  }
  .faq-question h3 {
    margin-bottom: 5px;
  }
  .faq-toggle {
    align-self: flex-end;
    margin-top: -30px; /* Adjust to position correctly */
  }
  .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}