.page-doi-tac {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

.page-doi-tac__dark-bg {
  background-color: #B71C1C; /* Background */
  color: #FFF5E1;
}

.page-doi-tac__section {
  padding: 40px 0;
  text-align: center;
}

.page-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  color: #FFF5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
}

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

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

.page-doi-tac__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
}

.page-doi-tac__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold-like for emphasis */
  line-height: 1.2;
}

.page-doi-tac__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-doi-tac__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-doi-tac__btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #FFD86A;
}

.page-doi-tac__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__btn-secondary {
  background: #7A0E0E; /* Deep Red */
  color: #FFD86A; /* Gold */
  border: 2px solid #FFD86A;
}

.page-doi-tac__btn-secondary:hover {
  background: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold */
}

.page-doi-tac__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF5E1;
}

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

.page-doi-tac__card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
  color: #FFF5E1;
}

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

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

.page-doi-tac__content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  text-align: left;
}

.page-doi-tac__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FFD86A; /* Gold */
}

.page-doi-tac__paragraph {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-doi-tac__image-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-doi-tac__figure {
  margin: 0;
  background-color: #7A0E0E;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544;
}

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

.page-doi-tac__figcaption {
  padding: 15px;
  font-size: 0.9em;
  color: #FFD86A;
  text-align: center;
}

.page-doi-tac__how-to-join {
  background-color: #7A0E0E; /* Deep Red */
  padding: 60px 0;
}

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

.page-doi-tac__step-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  background-color: #D32F2F; /* Card BG */
  border: 1px solid #F2B544;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-doi-tac__step-number {
  font-size: 3em;
  font-weight: 700;
  color: #FFD86A; /* Gold */
  margin-bottom: 20px;
}

.page-doi-tac__btn-link {
  margin-top: 20px;
  background: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-doi-tac__btn-link:hover {
  background: #FFD86A;
}

.page-doi-tac__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px auto;
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1;
  border: 1px solid #F2B544;
  border-radius: 10px;
  overflow: hidden;
}

.page-doi-tac__commission-table th,
.page-doi-tac__commission-table td {
  padding: 15px;
  border: 1px solid #7A0E0E; /* Deep Red for inner borders */
  text-align: center;
}

.page-doi-tac__commission-table th {
  background-color: #7A0E0E; /* Deep Red */
  font-weight: 600;
  color: #FFD86A; /* Gold */
}

.page-doi-tac__commission-table tbody tr:nth-child(even) {
  background-color: #C91F17; /* Main Color */
}

.page-doi-tac__commission-note {
  font-size: 0.9em;
  color: #F4D34D;
  margin-top: 20px;
}

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

.page-doi-tac__cta-bottom {
  margin-top: 50px;
  text-align: center;
}

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

.page-doi-tac__faq-item {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.page-doi-tac__faq-question {
  background-color: #7A0E0E; /* Deep Red */
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFD86A; /* Gold */
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-doi-tac__faq-answer {
  padding: 20px;
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1;
  border-top: 1px solid #F2B544;
}

.page-doi-tac__final-cta .page-doi-tac__container {
  padding: 50px;
  border-radius: 15px;
  margin-top: 60px;
  background-color: #7A0E0E; /* Deep Red */
  border: 2px solid #F2B544;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-doi-tac__btn-large {
  padding: 15px 40px;
  font-size: 1.2em;
  margin-top: 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-doi-tac__hero-content {
    padding: 15px;
  }

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

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

  .page-doi-tac__content-grid {
    grid-template-columns: 1fr;
  }

  .page-doi-tac__image-block {
    margin-top: 30px;
  }

  .page-doi-tac__commission-table {
    overflow-x: auto;
    display: block;
  }

  .page-doi-tac__commission-table thead,
  .page-doi-tac__commission-table tbody,
  .page-doi-tac__commission-table th,
  .page-doi-tac__commission-table td,
  .page-doi-tac__commission-table tr {
    display: block;
  }

  .page-doi-tac__commission-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .page-doi-tac__commission-table td {
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .page-doi-tac__commission-table td:before {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: #FFD86A;
  }

  .page-doi-tac__commission-table td:nth-of-type(1):before { content: "Số Lượng Thành Viên Hoạt Động:"; }
  .page-doi-tac__commission-table td:nth-of-type(2):before { content: "Lợi Nhuận Ròng:"; }
  .page-doi-tac__commission-table td:nth-of-type(3):before { content: "Tỷ Lệ Hoa Hồng:"; }
}

@media (max-width: 768px) {
  /* 顶区标题 + 双 CTA */
  .page-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    min-height: auto;
  }

  .page-doi-tac__hero-image-wrapper {
    margin-bottom: 10px;
  }

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

  .page-doi-tac__main-title {
    font-size: clamp(1.6em, 6vw, 2em);
    margin-bottom: 10px;
  }

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

  .page-doi-tac__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* 单栏长文容器 */
  .page-doi-tac__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-doi-tac__section {
    padding: 30px 0;
  }

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

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

  .page-doi-tac__features-grid,
  .page-doi-tac__steps-grid,
  .page-doi-tac__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-doi-tac__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

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

  /* 通用图片与 figure */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-doi-tac__figure {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-doi-tac__btn,
  .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;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-doi-tac__cta-buttons {
    flex-direction: column;
  }

  .page-doi-tac__btn-large {
    padding: 12px 20px;
    font-size: 1em;
  }

  /* 注册教程与 FAQ 区块 */
  .page-doi-tac__how-to-join {
    padding: 40px 0;
  }

  .page-doi-tac__step-number {
    font-size: 2.5em;
  }

  .page-doi-tac__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-doi-tac__final-cta .page-doi-tac__container {
    padding: 30px 15px;
    margin-top: 40px;
  }
}