/* style/th-thao-sports-rules.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --background-light: #f4f4f4;
  --accent-color: #FF4500; /* OrangeRed for highlights */
  --border-color: #333333;
}

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

.page-th-thao-sports-rules__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-th-thao-sports-rules__section {
  padding: 60px 0;
}

.page-th-thao-sports-rules__section:nth-of-type(even) {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__section-title,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__feature-title,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__betting-type-title,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__step-title,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__category-title,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__tip-title {
  color: var(--primary-color);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__inline-link,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__cta-button {
  color: var(--text-dark);
  background-color: var(--primary-color);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__inline-link:hover,
.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__cta-button:hover {
  background-color: var(--accent-color);
}

.page-th-thao-sports-rules__hero-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000080 100%); /* Deep Blue */
  color: var(--text-light);
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-th-thao-sports-rules__hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('[GALLERY:hero:WIN456,sports-rules,main-banner]'); /* Background image for visual appeal */
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.page-th-thao-sports-rules__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-th-thao-sports-rules__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-th-thao-sports-rules__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-th-thao-sports-rules__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-th-thao-sports-rules__cta-button:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-th-thao-sports-rules__cta-button--small {
  padding: 10px 25px;
  font-size: 0.9em;
  margin-top: 20px;
}

.page-th-thao-sports-rules__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-th-thao-sports-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-th-thao-sports-rules__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: inherit;
}

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

.page-th-thao-sports-rules__feature-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__feature-item {
  background-color: #222222;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #3a3a3a;
}

.page-th-thao-sports-rules__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-th-thao-sports-rules__feature-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-th-thao-sports-rules__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__feature-title {
  color: var(--primary-color);
}

.page-th-thao-sports-rules__betting-type-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__betting-type-item {
  background-color: #222222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: #3a3a3a;
}

.page-th-thao-sports-rules__betting-type-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__betting-type-title {
  color: var(--primary-color);
}

.page-th-thao-sports-rules__content-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-th-thao-sports-rules__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-th-thao-sports-rules__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__step-item {
  background-color: #222222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.page-th-thao-sports-rules__step-item:hover {
  transform: translateX(10px);
}

.page-th-thao-sports-rules__step-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__step-title {
  color: var(--primary-color);
}

.page-th-thao-sports-rules__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-th-thao-sports-rules__inline-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

.page-th-thao-sports-rules__rule-category {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__rule-category {
  background-color: #222222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border-color: #3a3a3a;
}

.page-th-thao-sports-rules__category-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__category-title {
  color: var(--primary-color);
}

.page-th-thao-sports-rules__rule-list {
  list-style: disc;
  margin-left: 25px;
  padding: 0;
}

.page-th-thao-sports-rules__rule-list li {
  margin-bottom: 10px;
}

.page-th-thao-sports-rules__rule-list li strong {
  color: var(--primary-color);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__rule-list li strong {
  color: var(--primary-color);
}

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

.page-th-thao-sports-rules__tip-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__tip-card {
  background-color: #222222;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #3a3a3a;
}

.page-th-thao-sports-rules__tip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.page-th-thao-sports-rules__tip-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-th-thao-sports-rules__tip-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .page-th-thao-sports-rules__tip-title {
  color: var(--primary-color);
}

/* FAQ Styling */
.page-th-thao-sports-rules__faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-th-thao-sports-rules__section:nth-of-type(even) .faq-item {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .faq-question {
  background: #2a2a2a;
  border-color: #444444;
  color: var(--text-light);
}

.faq-question:hover {
  background: #f5f5f5;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .faq-question:hover {
  background: #3a3a3a;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: inherit;
  font-weight: bold;
}

.faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .faq-answer {
  background: #1e1e1e;
  border-color: #444444;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
  border-top: 1px solid #e0e0e0;
}

.page-th-thao-sports-rules__section:nth-of-type(even) .faq-item.active .faq-answer {
  border-top: 1px solid #444444;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-th-thao-sports-rules__main-title {
    font-size: 2.8em;
  }

  .page-th-thao-sports-rules__subtitle {
    font-size: 1.1em;
  }

  .page-th-thao-sports-rules__section-title {
    font-size: 2em;
  }

  .page-th-thao-sports-rules__text-block {
    font-size: 1em;
  }

  .page-th-thao-sports-rules__feature-item,
  .page-th-thao-sports-rules__tip-card {
    padding: 25px;
  }

  .page-th-thao-sports-rules__feature-title,
  .page-th-thao-sports-rules__tip-title {
    font-size: 1.3em;
  }

  .page-th-thao-sports-rules__betting-type-title,
  .page-th-thao-sports-rules__step-title,
  .page-th-thao-sports-rules__category-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-th-thao-sports-rules__hero-banner {
    padding: 80px 15px;
  }

  .page-th-thao-sports-rules__main-title {
    font-size: 2.2em;
  }

  .page-th-thao-sports-rules__subtitle {
    font-size: 1em;
  }

  .page-th-thao-sports-rules__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-th-thao-sports-rules__section {
    padding: 40px 0;
  }

  .page-th-thao-sports-rules__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-th-thao-sports-rules__text-block {
    margin-bottom: 30px;
  }

  .page-th-thao-sports-rules__feature-grid,
  .page-th-thao-sports-rules__tip-card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-th-thao-sports-rules__feature-item,
  .page-th-thao-sports-rules__betting-type-item,
  .page-th-thao-sports-rules__step-item,
  .page-th-thao-sports-rules__rule-category,
  .page-th-thao-sports-rules__tip-card {
    padding: 20px;
  }

  .page-th-thao-sports-rules__betting-type-title,
  .page-th-thao-sports-rules__step-title,
  .page-th-thao-sports-rules__category-title {
    font-size: 1.4em;
  }

  .faq-question {
    padding: 15px 20px;
  }

  .faq-question h3 {
    font-size: 1.1em;
  }

  .faq-toggle {
    font-size: 1.5em;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-th-thao-sports-rules__main-title {
    font-size: 1.8em;
  }

  .page-th-thao-sports-rules__subtitle {
    font-size: 0.9em;
  }

  .page-th-thao-sports-rules__cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-th-thao-sports-rules__section-title {
    font-size: 1.5em;
  }

  .page-th-thao-sports-rules__feature-title,
  .page-th-thao-sports-rules__tip-title {
    font-size: 1.2em;
  }
}