.page-the-thao-esports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main);
  background-color: var(--Deep-Navy);
}

.page-the-thao-esports__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-the-thao-esports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--Text-Main);
}

.page-the-thao-esports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--Text-Secondary);
}

/* Hero Section */
.page-the-thao-esports__hero-section {
  padding-top: 10px; /* Adjusted for shared header offset */
  padding-bottom: 80px;
  background-color: var(--Deep-Navy);
  color: var(--Text-Main);
}

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

.page-the-thao-esports__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-the-thao-esports__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--Gold);
}

.page-the-thao-esports__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--Text-Secondary);
}

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

.page-the-thao-esports__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-the-thao-esports__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-the-thao-esports__btn-primary,
.page-the-thao-esports__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-the-thao-esports__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao-esports__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao-esports__btn-secondary {
  background: #ffffff;
  color: var(--Main-Color);
  border: 2px solid var(--Main-Color);
}

.page-the-thao-esports__btn-secondary:hover {
  background: var(--Main-Color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-the-thao-esports__intro-section {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-the-thao-esports__intro-section .page-the-thao-esports__section-title {
  color: var(--Deep-Navy);
}

.page-the-thao-esports__intro-section .page-the-thao-esports__section-description {
  color: #555555;
}

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

.page-the-thao-esports__feature-item {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-the-thao-esports__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--Auxiliary-Color);
  box-shadow: 0 0 0 5px var(--Glow);
}

.page-the-thao-esports__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-the-thao-esports__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--Main-Color);
}

.page-the-thao-esports__feature-text {
  color: #666666;
}

/* Esports Games Section */
.page-the-thao-esports__esports-games-section {
  background-color: var(--Deep-Navy);
  padding: 60px 0;
}

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

.page-the-thao-esports__game-card {
  background-color: var(--Card-BG);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--Text-Main);
}

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

.page-the-thao-esports__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for cards */
  object-fit: cover;
  display: block;
}

.page-the-thao-esports__game-card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 15px 10px;
}

.page-the-thao-esports__game-card-title a {
  color: var(--Gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-the-thao-esports__game-card-title a:hover {
  color: var(--Glow);
}

.page-the-thao-esports__game-card-text {
  font-size: 0.95em;
  color: var(--Text-Secondary);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-the-thao-esports__cta-buttons.page-the-thao-esports__center {
  justify-content: center;
  margin-top: 40px;
}

/* Bet Types Section */
.page-the-thao-esports__bet-types-section {
  background-color: #ffffff;
  padding: 60px 0;
  color: #333333;
}

.page-the-thao-esports__bet-types-section .page-the-thao-esports__section-title {
  color: var(--Deep-Navy);
}

.page-the-thao-esports__bet-types-section .page-the-thao-esports__section-description {
  color: #555555;
}

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

.page-the-thao-esports__bet-type-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-the-thao-esports__bet-type-item:hover {
  transform: translateY(-5px);
}

.page-the-thao-esports__bet-type-image {
  width: 100%;
  height: 220px; /* Fixed height for bet type images */
  object-fit: cover;
  display: block;
}

.page-the-thao-esports__bet-type-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 15px 10px;
  color: var(--Main-Color);
}

.page-the-thao-esports__bet-type-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

/* Why Choose Section */
.page-the-thao-esports__why-choose-section {
  background-color: var(--Deep-Navy);
  padding: 60px 0;
}

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

.page-the-thao-esports__benefit-item {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--Card-BG);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid var(--Border-Color);
}

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

.page-the-thao-esports__benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  object-fit: contain;
  display: block;
}

.page-the-thao-esports__benefit-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--Gold);
}

.page-the-thao-esports__benefit-text {
  font-size: 0.95em;
  color: var(--Text-Secondary);
}

/* Guide Section */
.page-the-thao-esports__guide-section {
  background-color: #ffffff;
  padding: 60px 0;
  color: #333333;
}

.page-the-thao-esports__guide-section .page-the-thao-esports__section-title {
  color: var(--Deep-Navy);
}

.page-the-thao-esports__guide-section .page-the-thao-esports__section-description {
  color: #555555;
}

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

.page-the-thao-esports__guide-step-item {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-the-thao-esports__step-number {
  width: 50px;
  height: 50px;
  background: var(--Main-Color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 0 5px rgba(var(--Main-Color-rgb), 0.3);
}

.page-the-thao-esports__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--Main-Color);
}

.page-the-thao-esports__step-text {
  color: #666666;
  margin-bottom: 25px;
}

.page-the-thao-esports__step-cta {
  width: fit-content;
  margin-top: auto; /* Push to bottom */
}

/* Tips Section */
.page-the-thao-esports__tips-section {
  background-color: var(--Deep-Navy);
  padding: 60px 0;
}

.page-the-thao-esports__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao-esports__tip-item {
  background-color: var(--Card-BG);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 5px solid var(--Auxiliary-Color);
  color: var(--Text-Secondary);
}

.page-the-thao-esports__tip-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--Gold);
}

.page-the-thao-esports__tip-item p {
  color: var(--Text-Secondary);
}

/* FAQ Section */
.page-the-thao-esports__faq-section {
  background-color: #ffffff;
  padding: 60px 0;
  color: #333333;
}

.page-the-thao-esports__faq-section .page-the-thao-esports__section-title {
  color: var(--Deep-Navy);
}

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

.page-the-thao-esports__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-the-thao-esports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--Main-Color);
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
}

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

.page-the-thao-esports__faq-question:hover {
  background-color: #e5e5e5;
}

.page-the-thao-esports__faq-qtext {
  flex-grow: 1;
  pointer-events: none; /* Prevents text selection from interfering with toggle */
}

.page-the-thao-esports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none;
}

.page-the-thao-esports__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-the-thao-esports__faq-item[open] .page-the-thao-esports__faq-question {
  background-color: #e5e5e5;
}

.page-the-thao-esports__text-main { color: var(--Text-Main); }
.page-the-thao-esports__text-secondary { color: var(--Text-Secondary); }
.page-the-thao-esports__dark-bg { background-color: var(--Deep-Navy); }
.page-the-thao-esports__light-bg { background-color: #ffffff; }
.page-the-thao-esports__medium-bg { background-color: var(--Auxiliary-Color); }

/* General image responsiveness */
.page-the-thao-esports img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

@media (max-width: 768px) {
  .page-the-thao-esports__container,
  .page-the-thao-esports__hero-container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-the-thao-esports__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 40px !important;
  }

  .page-the-thao-esports__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }

  .page-the-thao-esports__hero-description {
    font-size: 1em !important;
  }

  .page-the-thao-esports__btn-primary,
  .page-the-thao-esports__btn-secondary,
  .page-the-thao-esports a[class*="button"],
  .page-the-thao-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 !important;
    padding-right: 15px !important;
  }

  .page-the-thao-esports__hero-cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
  }

  .page-the-thao-esports__section-title {
    font-size: 2em !important;
  }

  .page-the-thao-esports__section-description {
    font-size: 1em !important;
  }

  /* Module 1 (Intro Section) 3-column square images */
  .page-the-thao-esports__icon-box-media {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto 15px !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 3px var(--Glow) !important;
  }

  .page-the-thao-esports__feature-title {
    font-size: 1.3em !important;
  }

  /* Game List and Bet Type Grid */
  .page-the-thao-esports__game-list,
  .page-the-thao-esports__bet-type-grid,
  .page-the-thao-esports__benefits-grid,
  .page-the-thao-esports__guide-steps,
  .page-the-thao-esports__tips-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-the-thao-esports__game-card-image,
  .page-the-thao-esports__bet-type-image {
    height: 180px !important; /* Adjust fixed height for mobile */
  }

  .page-the-thao-esports__benefit-icon {
    width: 60px !important;
    height: 60px !important;
  }

  .page-the-thao-esports__step-number {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5em !important;
  }

  .page-the-thao-esports__guide-step-item {
    padding: 20px !important;
  }

  .page-the-thao-esports__faq-question {
    padding: 15px 20px !important;
    font-size: 1em !important;
  }

  .page-the-thao-esports__faq-answer {
    padding: 10px 20px !important;
    font-size: 0.9em !important;
  }

  /* General image and container responsiveness for content areas */
  .page-the-thao-esports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao-esports__section,
  .page-the-thao-esports__card,
  .page-the-thao-esports__container,
  .page-the-thao-esports__game-card,
  .page-the-thao-esports__bet-type-item,
  .page-the-thao-esports__benefit-item,
  .page-the-thao-esports__guide-step-item,
  .page-the-thao-esports__tip-item,
  .page-the-thao-esports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific override for hero content text alignment on mobile */
  .page-the-thao-esports__hero-content {
    text-align: center !important;
  }
  .page-the-thao-esports__hero-image {
    order: -1; /* Image appears above text on mobile */
  }
}

/* Define custom properties for colors */
:root {
  --Main-Color: #113B7A;
  --Auxiliary-Color: #1D5FD1;
  --Button-Gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --Card-BG: #10233F;
  --Text-Main: #F3F8FF;
  --Text-Secondary: #AFC4E8;
  --Border-Color: #244D84;
  --Glow: #4FA8FF;
  --Gold: #F2C14E;
  --Divider: #1B3357;
  --Deep-Navy: #08162B;
  --Main-Color-rgb: 17, 59, 122; /* RGB for #113B7A */
}