/* General styles for page-dai-ly */
.page-dai-ly {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set body background for context */
}

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

.page-dai-ly__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.page-dai-ly__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-dai-ly__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 40px;
  background: #FFFFFF; /* Light background */
}

.page-dai-ly__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

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

.page-dai-ly__hero-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-dai-ly__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #555555;
}

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

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

.page-dai-ly__btn-primary,
.page-dai-ly__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  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: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-dai-ly__btn-primary:hover {
  background: #1e87b7;
  border-color: #1e87b7;
}

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

.page-dai-ly__btn-secondary:hover {
  background: #e0f2f7;
}

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

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

/* Benefits Section */
.page-dai-ly__benefits-section {
  background-color: #FFFFFF;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-dai-ly__benefit-item {
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  color: #333333;
}

.page-dai-ly__icon-box-media {
  width: 200px;
  height: 200px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  box-sizing: border-box;
}

.page-dai-ly__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-dai-ly__benefit-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-dai-ly__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* How to Join Section */
.page-dai-ly__how-to-join-section {
  background: #26A9E0;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-dai-ly__how-to-join-section .page-dai-ly__section-title,
.page-dai-ly__how-to-join-section .page-dai-ly__section-description {
  color: #ffffff;
}

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

.page-dai-ly__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.page-dai-ly__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff;
  color: #26A9E0;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 15px;
}

.page-dai-ly__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-dai-ly__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-dai-ly__image-wrapper {
  text-align: center;
  margin-top: 30px;
}

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

/* Commission Structure Section */
.page-dai-ly__commission-structure-section {
  background-color: #FFFFFF;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-dai-ly__commission-table {
  overflow-x: auto;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-dai-ly__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is wide enough for content */
}

.page-dai-ly__table th,
.page-dai-ly__table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.page-dai-ly__table th {
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.page-dai-ly__table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.page-dai-ly__table tbody tr:hover {
  background-color: #f0f8ff;
}

/* Support Section */
.page-dai-ly__support-section {
  background: #26A9E0;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-dai-ly__support-section .page-dai-ly__section-title,
.page-dai-ly__support-section .page-dai-ly__section-description {
  color: #ffffff;
}

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

.page-dai-ly__support-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
}

.page-dai-ly__support-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-dai-ly__support-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-dai-ly__faq-section {
  background-color: #FFFFFF;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-dai-ly__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-dai-ly__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-dai-ly__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background: #eaf6fc;
  list-style: none;
  user-select: none;
}

.page-dai-ly__faq-question::-webkit-details-marker {
  display: none;
}

.page-dai-ly__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-dai-ly__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
}

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

/* CTA Section */
.page-dai-ly__cta-section {
  background: #EA7C07; /* Using Login color for CTA for emphasis */
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

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

.page-dai-ly__cta-section .page-dai-ly__btn-primary {
  background: #ffffff;
  color: #EA7C07;
  border-color: #ffffff;
}

.page-dai-ly__cta-section .page-dai-ly__btn-primary:hover {
  background: #f0f0f0;
  color: #d16b06;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-dai-ly__hero-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-dai-ly__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-dai-ly__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
  .page-dai-ly__hero-container {
    flex-direction: column;
    padding: 30px 15px !important;
    gap: 20px;
  }
  .page-dai-ly__hero-content {
    flex: 1 1 100%;
    order: 2;
    text-align: center;
  }
  .page-dai-ly__hero-image {
    flex: 1 1 100%;
    order: 1;
  }
  .page-dai-ly__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px;
  }
  .page-dai-ly__hero-description {
    font-size: 1em !important;
    margin-bottom: 25px;
  }
  .page-dai-ly__cta-buttons {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  .page-dai-ly__btn-primary,
  .page-dai-ly__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* General Section Titles & Descriptions */
  .page-dai-ly__section-title {
    font-size: 1.8em !important;
    margin-bottom: 15px !important;
  }
  .page-dai-ly__section-description {
    font-size: 0.95em !important;
    margin-bottom: 30px !important;
  }
  .page-dai-ly__container {
    padding: 30px 15px !important;
  }

  /* Benefits Section */
  .page-dai-ly__benefits-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-dai-ly__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-dai-ly__benefit-item {
    padding: 25px;
  }
  .page-dai-ly__icon-box-media {
    width: 150px !important;
    height: 150px !important;
    margin-bottom: 15px;
  }

  /* How to Join Section */
  .page-dai-ly__how-to-join-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-dai-ly__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  /* Commission Structure Section */
  .page-dai-ly__commission-structure-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-dai-ly__commission-table {
    margin-bottom: 30px;
  }
  .page-dai-ly__table th,
  .page-dai-ly__table td {
    padding: 10px;
    font-size: 0.9em;
  }

  /* Support Section */
  .page-dai-ly__support-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-dai-ly__support-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ Section */
  .page-dai-ly__faq-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  .page-dai-ly__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-dai-ly__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* CTA Section */
  .page-dai-ly__cta-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Universal Image and Container Adaptations */
  .page-dai-ly img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-dai-ly__section,
  .page-dai-ly__card,
  .page-dai-ly__container,
  .page-dai-ly__cta-buttons,
  .page-dai-ly__commission-table {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-dai-ly__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-dai-ly__cta-buttons--center {
    flex-direction: column;
  }
}