.page-dai-ly__hero-section {
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
  color: #333333;
}

.page-dai-ly__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 16px;
}

.page-dai-ly__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: #333333;
}

.page-dai-ly__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Use clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #E53935;
}

.page-dai-ly__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.page-dai-ly__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-dai-ly__btn-primary,
.page-dai-ly__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-dai-ly__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-dai-ly__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-dai-ly__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-dai-ly__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-dai-ly__hero-image {
  flex: 1 1 40%;
  text-align: center;
  min-width: 300px;
}

.page-dai-ly__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-dai-ly__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-dai-ly__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935;
}

.page-dai-ly__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-dai-ly__light-bg {
  background: #FFFFFF;
  color: #333333;
}

.page-dai-ly__dark-bg {
  background: #E53935;
  color: #ffffff;
}

.page-dai-ly__dark-bg .page-dai-ly__section-title,
.page-dai-ly__dark-bg .page-dai-ly__section-description {
  color: #ffffff;
}

/* Why Join Section */
.page-dai-ly__why-join-section {
  padding: 60px 0;
}

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

.page-dai-ly__feature-item {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-dai-ly__feature-item:hover {
  transform: translateY(-5px);
}

.page-dai-ly__feature-icon {
  width: 100%; /* Ensure images fill their container */
  height: auto;
  max-width: 250px; /* Adjust max-width for content images */
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
}

.page-dai-ly__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

.page-dai-ly__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

/* Commission Section */
.page-dai-ly__commission-section {
  padding: 60px 0;
}

.page-dai-ly__commission-table {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
  color: #ffffff;
}

.page-dai-ly__table-header,
.page-dai-ly__table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-dai-ly__table-header {
  background: rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.page-dai-ly__table-cell {
  padding: 15px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.page-dai-ly__table-cell:last-child {
  border-right: none;
}

.page-dai-ly__table-row:last-child {
  border-bottom: none;
}

.page-dai-ly__note {
  text-align: center;
  margin-top: 30px;
  font-size: 0.95rem;
  opacity: 0.9;
  color: #ffffff;
}

/* How It Works Section */
.page-dai-ly__how-it-works-section {
  padding: 60px 0;
}

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

.page-dai-ly__step-item {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-dai-ly__step-item:hover {
  transform: translateY(-5px);
}

.page-dai-ly__step-icon {
  width: 100%; /* Ensure images fill their container */
  height: auto;
  max-width: 250px; /* Adjust max-width for content images */
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
}

.page-dai-ly__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

.page-dai-ly__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.page-dai-ly__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-dai-ly__faq-section {
  padding: 60px 0;
  background: #F5F7FA;
  color: #333333;
}

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

.page-dai-ly__faq-item {
  background: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-dai-ly__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #333333;
  list-style: none; /* For details tag */
}

.page-dai-ly__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details tag */
}

.page-dai-ly__faq-qtext {
  flex-grow: 1;
  color: #E53935;
}

.page-dai-ly__faq-toggle {
  font-size: 1.5rem;
  font-weight: 600;
  width: 30px;
  text-align: center;
  color: #E53935;
}

.page-dai-ly__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
}

.page-dai-ly__faq-answer p {
  margin: 0;
}

/* CTA Bottom Section */
.page-dai-ly__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-dai-ly__cta-bottom-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-dai-ly__cta-bottom-content .page-dai-ly__section-title,
.page-dai-ly__cta-bottom-content .page-dai-ly__section-description {
  color: #ffffff;
}

/* General image styling for content sections */
.page-dai-ly img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-dai-ly__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-dai-ly__hero-content,
  .page-dai-ly__hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-dai-ly__cta-buttons {
    justify-content: center;
  }

  .page-dai-ly__feature-item,
  .page-dai-ly__step-item {
    padding: 25px;
  }

  .page-dai-ly__section-title {
    font-size: 2rem;
  }

  .page-dai-ly__section-description {
    font-size: 1rem;
  }

  .page-dai-ly__main-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .page-dai-ly__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-dai-ly__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

  .page-dai-ly__main-title {
    font-size: 2rem !important;
    margin-bottom: 15px;
  }

  .page-dai-ly__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-dai-ly__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px; /* Add padding to container */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-dai-ly__btn-primary,
  .page-dai-ly__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-dai-ly__side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-dai-ly__container {
    padding: 30px 15px;
  }

  .page-dai-ly__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px;
  }

  .page-dai-ly__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-dai-ly__features-grid,
  .page-dai-ly__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-dai-ly__feature-icon,
  .page-dai-ly__step-icon {
    max-width: 200px !important; /* Minimum size for content images */
    width: 100% !important;
    height: auto !important;
  }

  .page-dai-ly__feature-title,
  .page-dai-ly__step-title {
    font-size: 1.3rem;
  }

  .page-dai-ly__feature-text,
  .page-dai-ly__step-text {
    font-size: 0.9rem;
  }

  .page-dai-ly__commission-table {
    overflow-x: auto; /* Allow horizontal scroll for table if needed */
    -webkit-overflow-scrolling: touch;
  }

  .page-dai-ly__table-header,
  .page-dai-ly__table-row {
    grid-template-columns: minmax(120px, 1fr) minmax(80px, 1fr) minmax(100px, 1fr); /* Ensure cells have min width */
  }

  .page-dai-ly__table-cell {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  .page-dai-ly__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-dai-ly__faq-qtext {
    font-size: 1rem;
  }

  .page-dai-ly__faq-toggle {
    font-size: 1.3rem;
    width: 25px;
  }

  .page-dai-ly__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

  .page-dai-ly__cta-bottom-section {
    padding: 60px 0;
  }

  /* General content images for mobile */
  .page-dai-ly img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Ensure all content containers are responsive */
  .page-dai-ly__section, .page-dai-ly__card, .page-dai-ly__container, .page-dai-ly__features-grid, .page-dai-ly__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}