/* Body background is #140C0C (dark), so main text color should be #FFF1E8 */
.page-the-thao-ca-cuoc-esports {
  color: #FFF1E8; /* Main text color for dark background */
  background: #140C0C; /* Overall page background */
}

.page-the-thao-ca-cuoc-esports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao-ca-cuoc-esports__section {
  padding: 60px 0;
}

.page-the-thao-ca-cuoc-esports__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F3C54D; /* Gold accent for titles */
  line-height: 1.2;
}

/* Hero Section */
.page-the-thao-ca-cuoc-esports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-the-thao-ca-cuoc-esports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-the-thao-ca-cuoc-esports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image slightly for text readability */
}

.page-the-thao-ca-cuoc-esports__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao-ca-cuoc-esports__main-title {
  font-size: 52px;
  font-weight: 900;
  color: #FFF1E8;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-the-thao-ca-cuoc-esports__intro-text {
  font-size: 20px;
  color: #FFF1E8;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

.page-the-thao-ca-cuoc-esports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao-ca-cuoc-esports__btn-primary,
.page-the-thao-ca-cuoc-esports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao-ca-cuoc-esports__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-the-thao-ca-cuoc-esports__btn-primary:hover {
  background: linear-gradient(180deg, #FFC570 0%, #E57A20 100%);
  transform: translateY(-2px);
}

.page-the-thao-ca-cuoc-esports__btn-secondary {
  background: transparent;
  color: #F3C54D;
  border: 2px solid #F3C54D;
  box-shadow: 0 4px 15px rgba(243, 197, 77, 0.2);
}

.page-the-thao-ca-cuoc-esports__btn-secondary:hover {
  background: rgba(243, 197, 77, 0.1);
  color: #FFF1E8;
  border-color: #FFF1E8;
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-the-thao-ca-cuoc-esports__why-choose {
  background: #140C0C;
}

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

.page-the-thao-ca-cuoc-esports__feature-card {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao-ca-cuoc-esports__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao-ca-cuoc-esports__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-the-thao-ca-cuoc-esports__feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

/* How To Bet Section */
.page-the-thao-ca-cuoc-esports__how-to-bet {
  background: #140C0C;
}

.page-the-thao-ca-cuoc-esports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-the-thao-ca-cuoc-esports__step-card {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-the-thao-ca-cuoc-esports__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao-ca-cuoc-esports__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #FFF1E8;
  font-size: 28px;
  font-weight: 900;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.5);
}

.page-the-thao-ca-cuoc-esports__step-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-the-thao-ca-cuoc-esports__step-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-the-thao-ca-cuoc-esports__step-card p a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: 600;
}

.page-the-thao-ca-cuoc-esports__step-card p a:hover {
  text-decoration: underline;
}

/* Featured Games Section */
.page-the-thao-ca-cuoc-esports__featured-games {
  background: #140C0C;
}

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

.page-the-thao-ca-cuoc-esports__game-card {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao-ca-cuoc-esports__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao-ca-cuoc-esports__game-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-the-thao-ca-cuoc-esports__game-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-the-thao-ca-cuoc-esports__game-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

/* Betting Tips Section */
.page-the-thao-ca-cuoc-esports__betting-tips {
  background: #140C0C;
}

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

.page-the-thao-ca-cuoc-esports__tip-item {
  background: #2A1212;
  border: 1px solid #6A1E1E;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao-ca-cuoc-esports__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-the-thao-ca-cuoc-esports__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-the-thao-ca-cuoc-esports__tip-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

.page-the-thao-ca-cuoc-esports__tip-item p a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: 600;
}

.page-the-thao-ca-cuoc-esports__tip-item p a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-the-thao-ca-cuoc-esports__faq-section {
  background: #140C0C;
}

.page-the-thao-ca-cuoc-esports__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-the-thao-ca-cuoc-esports__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #6A1E1E;
  overflow: hidden;
  background: #2A1212;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

details.page-the-thao-ca-cuoc-esports__faq-item summary.page-the-thao-ca-cuoc-esports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF1E8;
}

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

details.page-the-thao-ca-cuoc-esports__faq-item summary.page-the-thao-ca-cuoc-esports__faq-question:hover {
  background: #2A1212;
  filter: brightness(1.2);
}

.page-the-thao-ca-cuoc-esports__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3C54D;
}

.page-the-thao-ca-cuoc-esports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D;
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-the-thao-ca-cuoc-esports__faq-item .page-the-thao-ca-cuoc-esports__faq-answer {
  padding: 0 25px 25px;
  background: #140C0C;
  border-radius: 0 0 12px 12px;
}

details.page-the-thao-ca-cuoc-esports__faq-item .page-the-thao-ca-cuoc-esports__faq-answer p {
  font-size: 16px;
  line-height: 1.6;
  color: #FFF1E8;
}

details.page-the-thao-ca-cuoc-esports__faq-item .page-the-thao-ca-cuoc-esports__faq-answer p a {
  color: #F3C54D;
  text-decoration: none;
  font-weight: 600;
}

details.page-the-thao-ca-cuoc-esports__faq-item .page-the-thao-ca-cuoc-esports__faq-answer p a:hover {
  text-decoration: underline;
}

/* Conclusion Section */
.page-the-thao-ca-cuoc-esports__conclusion {
  background: #140C0C;
  text-align: center;
  padding-bottom: 80px;
}

.page-the-thao-ca-cuoc-esports__conclusion-text {
  font-size: 18px;
  line-height: 1.6;
  color: #FFF1E8;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao-ca-cuoc-esports__main-title {
    font-size: 44px;
  }
  .page-the-thao-ca-cuoc-esports__intro-text {
    font-size: 18px;
  }
  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: 34px;
  }
  .page-the-thao-ca-cuoc-esports__feature-title,
  .page-the-thao-ca-cuoc-esports__step-title,
  .page-the-thao-ca-cuoc-esports__game-title,
  .page-the-thao-ca-cuoc-esports__tip-title {
    font-size: 22px;
  }
  .page-the-thao-ca-cuoc-esports__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  .page-the-thao-ca-cuoc-esports__hero-image {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
  }
  .page-the-thao-ca-cuoc-esports__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding-top: 20px;
  }
  .page-the-thao-ca-cuoc-esports__hero-image-wrapper {
    max-height: none;
  }
  .page-the-thao-ca-cuoc-esports__hero-section {
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-the-thao-ca-cuoc-esports__section {
    padding: 40px 0;
  }
  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-the-thao-ca-cuoc-esports__main-title {
    font-size: clamp(32px, 8vw, 42px);
    margin-bottom: 15px;
  }
  .page-the-thao-ca-cuoc-esports__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-the-thao-ca-cuoc-esports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-the-thao-ca-cuoc-esports__btn-primary,
  .page-the-thao-ca-cuoc-esports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and container responsive styles */
  .page-the-thao-ca-cuoc-esports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao-ca-cuoc-esports__container,
  .page-the-thao-ca-cuoc-esports__hero-content,
  .page-the-thao-ca-cuoc-esports__cta-buttons,
  .page-the-thao-ca-cuoc-esports__game-cards-grid,
  .page-the-thao-ca-cuoc-esports__tips-list,
  .page-the-thao-ca-cuoc-esports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-the-thao-ca-cuoc-esports__features-grid,
  .page-the-thao-ca-cuoc-esports__steps-grid,
  .page-the-thao-ca-cuoc-esports__game-cards-grid,
  .page-the-thao-ca-cuoc-esports__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao-ca-cuoc-esports__feature-title,
  .page-the-thao-ca-cuoc-esports__step-title,
  .page-the-thao-ca-cuoc-esports__game-title,
  .page-the-thao-ca-cuoc-esports__tip-title {
    font-size: 20px;
  }
  .page-the-thao-ca-cuoc-esports__feature-card,
  .page-the-thao-ca-cuoc-esports__step-card,
  .page-the-thao-ca-cuoc-esports__game-card,
  .page-the-thao-ca-cuoc-esports__tip-item {
    padding: 25px;
  }

  details.page-the-thao-ca-cuoc-esports__faq-item summary.page-the-thao-ca-cuoc-esports__faq-question {
    padding: 15px 20px;
  }
  .page-the-thao-ca-cuoc-esports__faq-qtext {
    font-size: 16px;
  }
  .page-the-thao-ca-cuoc-esports__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-the-thao-ca-cuoc-esports__faq-item .page-the-thao-ca-cuoc-esports__faq-answer {
    padding: 0 20px 20px;
  }

  .page-the-thao-ca-cuoc-esports__conclusion-text {
    font-size: 16px;
    padding: 0 15px;
  }

  /* Products Grid mobile specific for this context (if it were a products section) */
  /* If this page had a products-grid like homepage, it would be handled here: */
  /* .page-the-thao-ca-cuoc-esports__products-grid { */
  /*   grid-template-columns: repeat(2, 1fr) !important; */
  /*   overflow-x: hidden; */
  /* } */
  /* .page-the-thao-ca-cuoc-esports__products-section { */
  /*   overflow-x: hidden; */
  /* } */
}

@media (max-width: 480px) {
  .page-the-thao-ca-cuoc-esports__main-title {
    font-size: clamp(28px, 7vw, 36px);
  }
  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: 24px;
  }
  .page-the-thao-ca-cuoc-esports__feature-title,
  .page-the-thao-ca-cuoc-esports__step-title,
  .page-the-thao-ca-cuoc-esports__game-title,
  .page-the-thao-ca-cuoc-esports__tip-title {
    font-size: 18px;
  }
  .page-the-thao-ca-cuoc-esports__feature-card,
  .page-the-thao-ca-cuoc-esports__step-card,
  .page-the-thao-ca-cuoc-esports__game-card,
  .page-the-thao-ca-cuoc-esports__tip-item {
    padding: 20px;
  }
  .page-the-thao-ca-cuoc-esports__step-number {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}