/* Base styles for .page-doi-tac, ensuring light text on dark body background */
.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--Text-Main); /* Default text color for dark background */
  background-color: var(--Deep-Navy); /* Matches body background */
}

.page-doi-tac__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--Text-Main);
  background: linear-gradient(180deg, var(--Deep-Navy) 0%, #113B7A 100%);
}

.page-doi-tac__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-doi-tac__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-doi-tac__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
}

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

.page-doi-tac__description {
  font-size: 1.1em;
  color: var(--Text-Secondary);
  margin-bottom: 30px;
}

.page-doi-tac__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--Gold);
}

.page-doi-tac__text-block {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--Text-Main);
}

/* Intro Section */
.page-doi-tac__intro-section {
  background-color: var(--Card-B-G);
  padding: 60px 0;
  color: var(--Text-Main);
}

.page-doi-tac__intro-section .page-doi-tac__section-title {
  color: var(--Gold);
}

/* Benefits Section */
.page-doi-tac__benefits-section {
  background-color: var(--Deep-Navy);
  padding: 60px 0;
  color: var(--Text-Main);
}

.page-doi-tac__benefits-section .page-doi-tac__section-title {
  color: var(--Gold);
}

.page-doi-tac__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__benefit-card {
  background-color: var(--Card-B-G);
  border: 1px solid var(--Border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-doi-tac__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-doi-tac__card-title {
  font-size: 1.5em;
  color: var(--Gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-doi-tac__card-text {
  font-size: 0.95em;
  color: var(--Text-Secondary);
  line-height: 1.7;
}

/* Join Section */
.page-doi-tac__join-section {
  background-color: var(--Card-B-G);
  padding: 60px 0;
  color: var(--Text-Main);
}

.page-doi-tac__join-section .page-doi-tac__section-title {
  color: var(--Gold);
}

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

.page-doi-tac__process-step {
  background-color: var(--Deep-Navy);
  border: 1px solid var(--Border);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
}

.page-doi-tac__step-title {
  font-size: 1.4em;
  color: var(--Gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-doi-tac__step-text {
  font-size: 0.95em;
  color: var(--Text-Secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-doi-tac__process-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 10px;
}

/* FAQ Section */
.page-doi-tac__faq-section {
  background-color: var(--Deep-Navy);
  padding: 60px 0;
  color: var(--Text-Main);
}

.page-doi-tac__faq-section .page-doi-tac__section-title {
  color: var(--Gold);
}

.page-doi-tac__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__faq-item {
  background-color: var(--Card-B-G);
  border: 1px solid var(--Border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--Text-Main);
  cursor: pointer;
  background-color: #10233F;
  border-bottom: 1px solid transparent; /* default */
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-question {
  border-bottom-color: var(--Divider); /* show border when open */
}

.page-doi-tac__faq-question::-webkit-details-marker {
  display: none;
}

.page-doi-tac__faq-toggle {
  font-size: 1.5em;
  color: var(--Gold);
  transition: transform 0.3s ease;
}

.page-doi-tac__faq-item[open] .page-doi-tac__faq-toggle {
  transform: rotate(45deg);
}

.page-doi-tac__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 0.95em;
  color: var(--Text-Secondary);
  line-height: 1.7;
}

.page-doi-tac__faq-answer p {
  margin-bottom: 0;
}

.page-doi-tac__link {
  color: var(--Glow);
  text-decoration: underline;
}

.page-doi-tac__link:hover {
  text-decoration: none;
}

/* CTA Section */
.page-doi-tac__cta-section {
  background-color: var(--Card-B-G);
  padding: 60px 0;
  text-align: center;
  color: var(--Text-Main);
}

.page-doi-tac__cta-section .page-doi-tac__section-title {
  color: var(--Gold);
}

.page-doi-tac__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
}

/* Buttons */
.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #F3F8FF; /* Text Main */
  border: none;
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

.page-doi-tac__btn-secondary {
  background: transparent;
  color: #F3F8FF; /* Text Main */
  border: 2px solid var(--Glow);
}

.page-doi-tac__btn-secondary:hover {
  background-color: var(--Glow);
  color: var(--Deep-Navy);
}

/* General image styles */
.page-doi-tac img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-doi-tac__container {
    padding: 15px;
  }

  /* HERO Section */
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-doi-tac__hero-content {
    padding: 30px 15px;
  }

  .page-doi-tac__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-doi-tac__description {
    font-size: 1em;
  }

  .page-doi-tac__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
    margin-bottom: 30px;
  }

  /* Benefits Grid */
  .page-doi-tac__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__benefit-card {
    padding: 20px;
  }

  .page-doi-tac__card-title {
    font-size: 1.3em;
  }

  .page-doi-tac__card-text {
    font-size: 0.9em;
  }

  /* Join Process Grid */
  .page-doi-tac__process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-doi-tac__process-step {
    padding: 20px;
  }

  .page-doi-tac__step-title {
    font-size: 1.2em;
  }

  .page-doi-tac__step-text {
    font-size: 0.9em;
  }

  /* FAQ Section */
  .page-doi-tac__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-doi-tac__faq-answer {
    padding: 10px 20px 20px 20px;
    font-size: 0.9em;
  }

  /* General Images */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-doi-tac__hero-image-wrapper,
  .page-doi-tac__process-image,
  .page-doi-tac__cta-image,
  .page-doi-tac__card-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons */
  .page-doi-tac__btn-primary,
  .page-doi-tac__btn-secondary,
  .page-doi-tac a[class*="button"],
  .page-doi-tac 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;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-doi-tac__hero-content .page-doi-tac__btn-primary,
  .page-doi-tac__cta-section .page-doi-tac__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  /* Button containers */
  .page-doi-tac__cta-buttons,
  .page-doi-tac__button-group,
  .page-doi-tac__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Spacing between stacked buttons */
  }

  /* If any module requires game/banner/blog sliders on non-homepage, ensure they are responsive */
  /* (Not applicable for this specific page based on instructions, but included for completeness if general check includes it) */
  /* .page-doi-tac__slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
  /* .page-doi-tac__game-slide { flex: 0 0 80%; max-width: 80%; } */
  /* .page-doi-tac__banners-top-wrapper { grid-template-columns: repeat(2, 1fr); } */
  /* .page-doi-tac__blog-masonry { grid-template-columns: 1fr; } */
  /* .page-doi-tac__blog-slider-track { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } */
  /* .page-doi-tac__blog-slide { flex: 0 0 90%; max-width: 90%; } */
}