.page-doi-tac-dai-ly__hero-section {
  padding-top: 10px; /* Specific padding for the first section */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-doi-tac-dai-ly__dark-bg {
  background-color: #B71C1C;
  color: #FFF5E1;
}

.page-doi-tac-dai-ly__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-doi-tac-dai-ly__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-doi-tac-dai-ly__hero-content {
  text-align: center;
  margin-bottom: 40px;
}

.page-doi-tac-dai-ly__hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD86A; /* Gold color for title */
  text-shadow: 0 0 10px rgba(255, 216, 106, 0.5); /* Glow effect */
}

.page-doi-tac-dai-ly__hero-description {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-doi-tac-dai-ly__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-doi-tac-dai-ly__btn-primary,
.page-doi-tac-dai-ly__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
  min-width: 200px; /* Minimum width for buttons */
}

.page-doi-tac-dai-ly__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep red text for contrast on gold button */
  border: 2px solid #F2B544;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-doi-tac-dai-ly__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
  transform: translateY(-2px);
}

.page-doi-tac-dai-ly__btn-secondary {
  background: transparent;
  border: 2px solid #F2B544;
  color: #F2B544;
}

.page-doi-tac-dai-ly__btn-secondary:hover {
  background: #F2B544;
  color: #7A0E0E;
  transform: translateY(-2px);
}

.page-doi-tac-dai-ly__hero-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-doi-tac-dai-ly__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-doi-tac-dai-ly__why-partner-section,
.page-doi-tac-dai-ly__how-to-join-section,
.page-doi-tac-dai-ly__commission-section,
.page-doi-tac-dai-ly__faq-section,
.page-doi-tac-dai-ly__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-doi-tac-dai-ly__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #C91F17; /* Main brand color for titles */
}
.page-doi-tac-dai-ly__dark-bg .page-doi-tac-dai-ly__section-title {
  color: #FFD86A;
}


.page-doi-tac-dai-ly__section-description {
  font-size: 17px;
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-doi-tac-dai-ly__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-doi-tac-dai-ly__feature-card {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #F2B544; /* Border */
}

.page-doi-tac-dai-ly__feature-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-doi-tac-dai-ly__feature-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD86A;
}

.page-doi-tac-dai-ly__feature-text {
  font-size: 16px;
  line-height: 1.6;
}

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

.page-doi-tac-dai-ly__step-item {
  background-color: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #F2B544; /* Border */
}

.page-doi-tac-dai-ly__step-number {
  font-size: 48px;
  font-weight: 700;
  color: #FFD86A;
  margin-bottom: 15px;
  line-height: 1;
}

.page-doi-tac-dai-ly__step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD86A;
}

.page-doi-tac-dai-ly__step-text {
  font-size: 16px;
  line-height: 1.6;
}

.page-doi-tac-dai-ly__cta-bottom {
  margin-top: 60px;
}

.page-doi-tac-dai-ly__commission-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-doi-tac-dai-ly__detail-item {
  background-color: #C91F17; /* Main brand color for detail cards */
  color: #FFF5E1;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #E53935;
}

.page-doi-tac-dai-ly__detail-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD86A;
}

.page-doi-tac-dai-ly__detail-text {
  font-size: 15px;
  line-height: 1.6;
}

.page-doi-tac-dai-ly__commission-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

/* FAQ Styles - using details/summary */
details.page-doi-tac-dai-ly__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
details.page-doi-tac-dai-ly__faq-item summary.page-doi-tac-dai-ly__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-dai-ly__faq-item summary.page-doi-tac-dai-ly__faq-question::-webkit-details-marker {
  display: none;
}
details.page-doi-tac-dai-ly__faq-item summary.page-doi-tac-dai-ly__faq-question:hover {
  background: #7A0E0E; /* Deep Red on hover */
}
.page-doi-tac-dai-ly__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFD86A; /* Gold color for question text */
}
.page-doi-tac-dai-ly__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD86A; /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-doi-tac-dai-ly__faq-item .page-doi-tac-dai-ly__faq-answer {
  padding: 0 20px 20px;
  background: #7A0E0E; /* Deep Red for answer background */
  border-radius: 0 0 5px 5px;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
}
details.page-doi-tac-dai-ly__faq-item .page-doi-tac-dai-ly__faq-answer p {
  margin: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-doi-tac-dai-ly__hero-title {
    font-size: 42px;
  }
  .page-doi-tac-dai-ly__section-title {
    font-size: 34px;
  }
  .page-doi-tac-dai-ly__feature-card,
  .page-doi-tac-dai-ly__step-item,
  .page-doi-tac-dai-ly__detail-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  /* 1. top-text / hero section */
  .page-doi-tac-dai-ly__hero-section {
    padding-top: 10px !important; /* Always 10px for mobile first section */
    padding-bottom: 40px !important;
  }
  .page-doi-tac-dai-ly__hero-title {
    font-size: 32px !important;
    line-height: 1.3 !important;
  }
  .page-doi-tac-dai-ly__hero-description {
    font-size: 16px !important;
    margin-bottom: 25px !important;
  }
  .page-doi-tac-dai-ly__hero-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important; /* Add padding to container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* 4. Buttons responsive */
  .page-doi-tac-dai-ly__btn-primary,
  .page-doi-tac-dai-ly__btn-secondary,
  .page-doi-tac-dai-ly a[class*="button"],
  .page-doi-tac-dai-ly 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;
    min-width: unset !important; /* Remove min-width for full flexibility */
  }

  /* 2. Landing page two-column modules - now single column */
  .page-doi-tac-dai-ly__features-grid,
  .page-doi-tac-dai-ly__steps-grid,
  .page-doi-tac-dai-ly__commission-details {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-doi-tac-dai-ly__why-partner-section,
  .page-doi-tac-dai-ly__how-to-join-section,
  .page-doi-tac-dai-ly__commission-section,
  .page-doi-tac-dai-ly__faq-section,
  .page-doi-tac-dai-ly__cta-section {
    padding: 50px 0 !important;
  }

  .page-doi-tac-dai-ly__section-title {
    font-size: 28px !important;
  }
  .page-doi-tac-dai-ly__section-description {
    font-size: 15px !important;
    margin-bottom: 30px !important;
  }

  .page-doi-tac-dai-ly__feature-icon {
    width: 90px !important;
    height: 90px !important;
  }
  .page-doi-tac-dai-ly__feature-title {
    font-size: 20px !important;
  }
  .page-doi-tac-dai-ly__step-number {
    font-size: 40px !important;
  }
  .page-doi-tac-dai-ly__step-title {
    font-size: 18px !important;
  }
  .page-doi-tac-dai-ly__detail-title {
    font-size: 18px !important;
  }

  /* 3. Generic images and containers */
  .page-doi-tac-dai-ly img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-doi-tac-dai-ly__container,
  .page-doi-tac-dai-ly__hero-image-wrapper,
  .page-doi-tac-dai-ly__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* FAQ mobile */
  details.page-doi-tac-dai-ly__faq-item {
    padding: 0 !important;
  }
  details.page-doi-tac-dai-ly__faq-item summary.page-doi-tac-dai-ly__faq-question {
    padding: 15px !important;
  }
  .page-doi-tac-dai-ly__faq-qtext {
    font-size: 16px !important;
  }
  .page-doi-tac-dai-ly__faq-toggle {
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
  }
  details.page-doi-tac-dai-ly__faq-item .page-doi-tac-dai-ly__faq-answer {
    padding: 0 15px 15px !important;
    font-size: 15px !important;
  }
}