/* style/the-thao-ca-cuoc-esports.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient-start: #FFB04A;
  --button-gradient-end: #D86A14;
  --card-bg: #2A1212;
  --background-color: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
  --light-text-color: #FFF1E8;
  --dark-text-color: #333333;
  --white-bg: #ffffff;
}

.page-the-thao-ca-cuoc-esports {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for dark body background */
  background-color: var(--background-color); /* Ensure consistency if shared.css doesn't apply to main */
}

/* General container and section styles */
.page-the-thao-ca-cuoc-esports__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-the-thao-ca-cuoc-esports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao-ca-cuoc-esports__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--light-text-color);
}

/* Background color handling for sections */
.page-the-thao-ca-cuoc-esports__dark-bg {
  background-color: var(--background-color);
  color: var(--light-text-color);
}

.page-the-thao-ca-cuoc-esports__light-bg {
  background-color: var(--white-bg);
  color: var(--dark-text-color);
}

.page-the-thao-ca-cuoc-esports__light-bg .page-the-thao-ca-cuoc-esports__section-title,
.page-the-thao-ca-cuoc-esports__light-bg .page-the-thao-ca-cuoc-esports__section-description,
.page-the-thao-ca-cuoc-esports__light-bg p {
  color: var(--dark-text-color);
}

/* Buttons */
.page-the-thao-ca-cuoc-esports__btn-primary,
.page-the-thao-ca-cuoc-esports__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao-ca-cuoc-esports__btn-primary {
  background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
  color: var(--light-text-color);
  border: none;
}

.page-the-thao-ca-cuoc-esports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao-ca-cuoc-esports__btn-secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-the-thao-ca-cuoc-esports__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--background-color);
  transform: translateY(-2px);
}

.page-the-thao-ca-cuoc-esports__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Image styles */
.page-the-thao-ca-cuoc-esports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* HERO Section */
.page-the-thao-ca-cuoc-esports__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  background-color: var(--deep-red-color); /* A solid background for the hero section */
  position: relative;
  overflow: hidden;
}

.page-the-thao-ca-cuoc-esports__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-the-thao-ca-cuoc-esports__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--light-text-color);
  text-align: left;
}

.page-the-thao-ca-cuoc-esports__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Using clamp for responsive H1 font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--gold-color);
}

.page-the-thao-ca-cuoc-esports__hero-description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-the-thao-ca-cuoc-esports__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao-ca-cuoc-esports__hero-image-wrapper {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao-ca-cuoc-esports__hero-image {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-the-thao-ca-cuoc-esports__intro-section {
  padding: 60px 0;
}

/* Games Section */
.page-the-thao-ca-cuoc-esports__games-section {
  padding: 60px 0;
}

.page-the-thao-ca-cuoc-esports__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao-ca-cuoc-esports__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: var(--light-text-color);
}

.page-the-thao-ca-cuoc-esports__light-bg .page-the-thao-ca-cuoc-esports__game-card {
  background-color: var(--white-bg);
  color: var(--dark-text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao-ca-cuoc-esports__light-bg .page-the-thao-ca-cuoc-esports__game-card .page-the-thao-ca-cuoc-esports__game-title,
.page-the-thao-ca-cuoc-esports__light-bg .page-the-thao-ca-cuoc-esports__game-card .page-the-thao-ca-cuoc-esports__game-description {
  color: var(--dark-text-color);
}

.page-the-thao-ca-cuoc-esports__game-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.page-the-thao-ca-cuoc-esports__light-bg .page-the-thao-ca-cuoc-esports__game-image {
  border-bottom: 1px solid #e0e0e0;
}

.page-the-thao-ca-cuoc-esports__game-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--gold-color);
}

.page-the-thao-ca-cuoc-esports__game-description {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0 15px 20px;
  color: var(--light-text-color);
}

/* Why Choose Section */
.page-the-thao-ca-cuoc-esports__why-choose-section {
  padding: 60px 0;
}

.page-the-thao-ca-cuoc-esports__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao-ca-cuoc-esports__feature-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao-ca-cuoc-esports__feature-icon {
  width: 300px; /* Minimum 200px, using 300px */
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-the-thao-ca-cuoc-esports__feature-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-the-thao-ca-cuoc-esports__feature-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--light-text-color);
}

/* Guide Section */
.page-the-thao-ca-cuoc-esports__guide-section {
  padding: 60px 0;
}

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

.page-the-thao-ca-cuoc-esports__guide-item {
  background-color: var(--white-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--dark-text-color);
}

.page-the-thao-ca-cuoc-esports__guide-icon {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-the-thao-ca-cuoc-esports__guide-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao-ca-cuoc-esports__guide-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--dark-text-color);
}

/* FAQ Section */
.page-the-thao-ca-cuoc-esports__faq-section {
  padding: 60px 0;
}

.page-the-thao-ca-cuoc-esports__faq-list {
  margin-top: 40px;
}

.page-the-thao-ca-cuoc-esports__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--light-text-color);
  border: 1px solid var(--border-color);
}

.page-the-thao-ca-cuoc-esports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: var(--gold-color);
  list-style: none; /* Hide default marker for details summary */
}

.page-the-thao-ca-cuoc-esports__faq-question::-webkit-details-marker {
  display: none;
}

.page-the-thao-ca-cuoc-esports__faq-qtext {
  flex-grow: 1;
}

.page-the-thao-ca-cuoc-esports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-the-thao-ca-cuoc-esports__faq-item[open] .page-the-thao-ca-cuoc-esports__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao-ca-cuoc-esports__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--light-text-color);
}

/* Call to Action Section */
.page-the-thao-ca-cuoc-esports__call-to-action-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao-ca-cuoc-esports__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao-ca-cuoc-esports__hero-content {
    text-align: center;
  }

  .page-the-thao-ca-cuoc-esports__hero-cta-buttons {
    justify-content: center;
  }

  .page-the-thao-ca-cuoc-esports__hero-image {
    max-width: 80%;
  }

  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: 2em;
  }

  .page-the-thao-ca-cuoc-esports__section-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* General mobile styles */
  .page-the-thao-ca-cuoc-esports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao-ca-cuoc-esports__container {
    padding: 20px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }

  .page-the-thao-ca-cuoc-esports__section-description {
    font-size: 0.95em !important;
    margin-bottom: 25px;
  }

  /* HERO Section (Mobile Checklist Item 1) */
  .page-the-thao-ca-cuoc-esports__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body padding-top */
    padding-bottom: 30px;
  }

  .page-the-thao-ca-cuoc-esports__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

  .page-the-thao-ca-cuoc-esports__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px;
  }

  .page-the-thao-ca-cuoc-esports__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px;
  }

  .page-the-thao-ca-cuoc-esports__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons (Mobile Checklist Item 6) */
  .page-the-thao-ca-cuoc-esports__btn-primary,
  .page-the-thao-ca-cuoc-esports__btn-secondary,
  .page-the-thao-ca-cuoc-esports a[class*="button"],
  .page-the-thao-ca-cuoc-esports 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-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao-ca-cuoc-esports__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Content Sections (Mobile Checklist Item 4) */
  .page-the-thao-ca-cuoc-esports__intro-section,
  .page-the-thao-ca-cuoc-esports__games-section,
  .page-the-thao-ca-cuoc-esports__why-choose-section,
  .page-the-thao-ca-cuoc-esports__guide-section,
  .page-the-thao-ca-cuoc-esports__faq-section,
  .page-the-thao-ca-cuoc-esports__call-to-action-section {
    padding: 30px 0 !important;
  }

  .page-the-thao-ca-cuoc-esports__game-list,
  .page-the-thao-ca-cuoc-esports__features-list,
  .page-the-thao-ca-cuoc-esports__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao-ca-cuoc-esports__game-card,
  .page-the-thao-ca-cuoc-esports__feature-item,
  .page-the-thao-ca-cuoc-esports__guide-item {
    padding: 20px;
  }

  .page-the-thao-ca-cuoc-esports__game-image,
  .page-the-thao-ca-cuoc-esports__feature-icon,
  .page-the-thao-ca-cuoc-esports__guide-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* General image responsive rule (Mobile Checklist Item 5) */
  }

  .page-the-thao-ca-cuoc-esports__game-title,
  .page-the-thao-ca-cuoc-esports__feature-title,
  .page-the-thao-ca-cuoc-esports__guide-title {
    font-size: 1.3em;
  }

  /* FAQ (Mobile Checklist Item 4) */
  .page-the-thao-ca-cuoc-esports__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-the-thao-ca-cuoc-esports__faq-answer p {
    font-size: 0.9em;
    padding: 0 15px 15px;
  }

  .page-the-thao-ca-cuoc-esports__faq-toggle {
    font-size: 1.3em;
  }
}