.page-doi-tac {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text on light body background */
  background: #FFFFFF; /* Default body background */
}

.page-doi-tac__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-doi-tac__hero-section {
  text-align: center;
  padding: 10px 0 50px;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-doi-tac__hero-image-container {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
}

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

.page-doi-tac__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-top: 30px; /* Space below image, not overlapping */
  padding: 0 15px;
}

.page-doi-tac__main-title {
  font-size: 3.2em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
  max-width: 100%;
}

.page-doi-tac__description {
  font-size: 1.2em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-doi-tac__cta-button--register {
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-doi-tac__cta-button--register:hover {
  background: #e01c1c;
  border-color: #e01c1c;
  transform: translateY(-2px);
}

.page-doi-tac__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 20px;
  color: #017439;
}

.page-doi-tac__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

.page-doi-tac__benefits-section {
  padding: 60px 0;
  background: #f9f9f9;
}

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

.page-doi-tac__benefit-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-doi-tac__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-doi-tac__benefit-icon {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
  display: block;
}

.page-doi-tac__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-doi-tac__card-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

.page-doi-tac__how-to-join-section {
  padding: 60px 0;
}

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

.page-doi-tac__step-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-doi-tac__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #017439;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(1, 116, 57, 0.3);
}

.page-doi-tac__step-link {
  display: inline-block;
  margin-top: 20px;
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.page-doi-tac__step-link:hover {
  color: #005f2f;
  border-color: #005f2f;
}

.page-doi-tac__cta-button--join {
  margin-top: 50px;
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-doi-tac__cta-button--join:hover {
  background: #005f2f;
  border-color: #005f2f;
  transform: translateY(-2px);
}

.page-doi-tac__faq-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.page-doi-tac__faq-list {
  margin-top: 40px;
}

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-doi-tac__faq-item summary.page-doi-tac__faq-question:hover {
  background: #f5f5f5;
}

.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}

.page-doi-tac__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-doi-tac__faq-answer p {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.page-doi-tac__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, #005f2f, #017439);
  color: #FFFFFF;
}

.page-doi-tac__cta-bottom-section .page-doi-tac__section-title {
  color: #FFFFFF;
}

.page-doi-tac__cta-bottom-section .page-doi-tac__description {
  color: #f0f0f0;
}

.page-doi-tac__cta-button--final {
  margin-top: 30px;
  background: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-doi-tac__cta-button--final:hover {
  background: #e01c1c;
  border-color: #e01c1c;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac__main-title {
    font-size: 2.8em;
  }

  .page-doi-tac__section-title {
    font-size: 2em;
  }

  .page-doi-tac__benefits-grid, .page-doi-tac__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-doi-tac__hero-section {
    padding: 10px 0 30px;
  }

  .page-doi-tac__hero-content {
    margin-top: 20px;
  }

  .page-doi-tac__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-doi-tac__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-doi-tac__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-doi-tac__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
  }

  .page-doi-tac__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-doi-tac__benefits-section, .page-doi-tac__how-to-join-section, .page-doi-tac__faq-section, .page-doi-tac__cta-bottom-section {
    padding: 40px 0;
  }

  .page-doi-tac__benefits-grid, .page-doi-tac__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-doi-tac__benefit-card, .page-doi-tac__step-card {
    padding: 25px;
  }

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

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

  details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
    padding: 15px;
  }

  .page-doi-tac__faq-qtext {
    font-size: 15px;
  }

  .page-doi-tac__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image specific rules */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__container,
  .page-doi-tac__hero-content,
  .page-doi-tac__benefits-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__faq-list,
  .page-doi-tac__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure button containers also adapt */
  .page-doi-tac__cta-button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Fixed header padding logic for main content */
.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}