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

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color: #333333;
  --heading-color: #000000;
  --dark-bg-text: #ffffff;
  --login-button-color: #EA7C07;
}

.page-the-thao-ca-cuoc-esports {
  font-family: 'Arial', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--secondary-color);
}

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

/* Hero Section */
.page-the-thao-ca-cuoc-esports__hero-section {
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), #4CAF50);
  color: var(--dark-bg-text);
}

.page-the-thao-ca-cuoc-esports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--dark-bg-text);
}

.page-the-thao-ca-cuoc-esports__description {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.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 {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao-ca-cuoc-esports__btn--primary {
  background-color: var(--login-button-color); /* Using specific login color for primary action */
  color: var(--dark-bg-text);
  border: 2px solid var(--login-button-color);
}

.page-the-thao-ca-cuoc-esports__btn--primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
  transform: translateY(-2px);
}

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

.page-the-thao-ca-cuoc-esports__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-the-thao-ca-cuoc-esports__section {
  padding: 60px 0;
  border-bottom: 1px solid #eee;
}

.page-the-thao-ca-cuoc-esports__section:last-of-type {
  border-bottom: none;
}

.page-the-thao-ca-cuoc-esports__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--heading-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-the-thao-ca-cuoc-esports__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-the-thao-ca-cuoc-esports__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-the-thao-ca-cuoc-esports__text-block a:hover {
  text-decoration: underline;
}

.page-the-thao-ca-cuoc-esports__image-wrapper {
  margin: 40px auto;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.page-the-thao-ca-cuoc-esports__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-the-thao-ca-cuoc-esports__figcaption {
  font-style: italic;
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

/* Popular Games Section */
.page-the-thao-ca-cuoc-esports__game-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao-ca-cuoc-esports__game-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.page-the-thao-ca-cuoc-esports__game-item:hover {
  transform: translateY(-5px);
}

.page-the-thao-ca-cuoc-esports__game-title {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

/* Bet Types Section */
.page-the-thao-ca-cuoc-esports__bet-type-list {
  list-style: disc;
  margin-left: 25px;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.page-the-thao-ca-cuoc-esports__bet-type-list li {
  margin-bottom: 10px;
}

.page-the-thao-ca-cuoc-esports__bet-type-list strong {
  color: var(--primary-color);
}

/* How To Bet Section */
.page-the-thao-ca-cuoc-esports__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-bottom: 40px;
}

.page-the-thao-ca-cuoc-esports__guide-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.page-the-thao-ca-cuoc-esports__guide-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: var(--dark-bg-text);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.page-the-thao-ca-cuoc-esports__guide-step-title {
  font-size: 1.3rem;
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 10px;
}

/* Advantages Section */
.page-the-thao-ca-cuoc-esports__advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-the-thao-ca-cuoc-esports__advantage-list li {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1.05rem;
}

/* Tips Section */
.page-the-thao-ca-cuoc-esports__tips-list {
  list-style: decimal;
  margin-left: 25px;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.page-the-thao-ca-cuoc-esports__tips-list li {
  margin-bottom: 10px;
}

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

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

.page-the-thao-ca-cuoc-esports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading-color);
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

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

.page-the-thao-ca-cuoc-esports__faq-item[open] .page-the-thao-ca-cuoc-esports__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

.page-the-thao-ca-cuoc-esports__faq-item[open] .page-the-thao-ca-cuoc-esports__faq-toggle {
  content: '-';
  transform: rotate(180deg); /* Rotate for minus sign effect */
}

.page-the-thao-ca-cuoc-esports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-the-thao-ca-cuoc-esports__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

.page-the-thao-ca-cuoc-esports__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* CTA Banner */
.page-the-thao-ca-cuoc-esports__cta-banner {
  background: var(--primary-color);
  color: var(--dark-bg-text);
  padding: 80px 0;
  text-align: center;
}

.page-the-thao-ca-cuoc-esports__cta-title {
  font-size: clamp(2.2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark-bg-text);
}

.page-the-thao-ca-cuoc-esports__cta-description {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-the-thao-ca-cuoc-esports__cta-banner .page-the-thao-ca-cuoc-esports__btn--primary {
  background-color: var(--login-button-color);
  border-color: var(--login-button-color);
}

.page-the-thao-ca-cuoc-esports__cta-banner .page-the-thao-ca-cuoc-esports__btn--primary:hover {
  background-color: #d16b00;
  border-color: #d16b00;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao-ca-cuoc-esports__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  }
  .page-the-thao-ca-cuoc-esports__game-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-the-thao-ca-cuoc-esports__advantage-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 1. Top Section (Hero) */
  .page-the-thao-ca-cuoc-esports__hero-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
    padding-bottom: 40px;
  }
  .page-the-thao-ca-cuoc-esports__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-the-thao-ca-cuoc-esports__description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }
  /* 4. Buttons and Button Containers */
  .page-the-thao-ca-cuoc-esports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-the-thao-ca-cuoc-esports__btn {
    max-width: 100% !important;
    width: calc(100% - 30px) !important; /* Account for padding */
    padding: 12px 15px !important;
    font-size: 1rem !important;
    margin: 0 auto;
  }
  .page-the-thao-ca-cuoc-esports__cta-buttons,
  .page-the-thao-ca-cuoc-esports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 2. Single Column Content Container */
  .page-the-thao-ca-cuoc-esports__container,
  .page-the-thao-ca-cuoc-esports__section,
  .page-the-thao-ca-cuoc-esports__article-wrap {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao-ca-cuoc-esports__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-the-thao-ca-cuoc-esports__text-block,
  .page-the-thao-ca-cuoc-esports__bet-type-list,
  .page-the-thao-ca-cuoc-esports__tips-list {
    font-size: 0.95rem;
  }
  .page-the-thao-ca-cuoc-esports__game-list,
  .page-the-thao-ca-cuoc-esports__advantage-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao-ca-cuoc-esports__game-item,
  .page-the-thao-ca-cuoc-esports__advantage-list li {
    padding: 20px;
  }
  .page-the-thao-ca-cuoc-esports__guide-list li {
    padding-left: 45px;
    margin-bottom: 25px;
  }
  .page-the-thao-ca-cuoc-esports__guide-list li::before {
    width: 30px;
    height: 30px;
    font-size: 1.1rem;
  }
  .page-the-thao-ca-cuoc-esports__guide-step-title {
    font-size: 1.2rem;
  }

  /* 3. General Images and Figures */
  .page-the-thao-ca-cuoc-esports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao-ca-cuoc-esports__image-wrapper {
    margin: 30px auto;
  }
  .page-the-thao-ca-cuoc-esports__figcaption {
    font-size: 0.85rem;
  }

  /* FAQ Section (if present) */
  .page-the-thao-ca-cuoc-esports__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-the-thao-ca-cuoc-esports__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  /* CTA Banner */
  .page-the-thao-ca-cuoc-esports__cta-banner {
    padding: 60px 0;
  }
  .page-the-thao-ca-cuoc-esports__cta-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }
  .page-the-thao-ca-cuoc-esports__cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 0 10px;
  }
}