/* style/dai-ly.css */
.page-dai-ly {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.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: #FFB04D; /* Glow */
  line-height: 1.2;
}

.page-dai-ly__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #FFF3E6;
}

/* Hero Section */
.page-dai-ly__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding for header offset */
  padding-bottom: 60px;
  background-color: #0D0E12; /* Background */
}

.page-dai-ly__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-dai-ly__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

.page-dai-ly__hero-main-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-dai-ly__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-dai-ly__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: #FF8C1A;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-dai-ly__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

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

.page-dai-ly__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 132, 26, 0.4);
}

.page-dai-ly__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  box-shadow: 0 6px 20px rgba(255, 132, 26, 0.6);
}

.page-dai-ly__btn-secondary {
  background-color: transparent;
  color: #FF8C1A;
  border: 2px solid #FF8C1A; /* Border color */
}

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

/* Intro Section */
.page-dai-ly__intro-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
}

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

.page-dai-ly__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-dai-ly__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #FF8C1A; /* Main color */
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

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

.page-dai-ly__feature-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-dai-ly__feature-text {
  color: #FFF3E6;
  font-size: 1em;
}

/* Commission Section */
.page-dai-ly__commission-section {
  background-color: #0D0E12; /* Background */
  padding: 60px 0;
}

.page-dai-ly__commission-table {
  margin-top: 40px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.page-dai-ly__table-header {
  display: flex;
  background-color: #FF8C1A; /* Main color */
  font-weight: 700;
  color: #ffffff;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #A84F0C;
}

.page-dai-ly__table-row {
  display: flex;
  background-color: #17191F; /* Card BG */
  padding: 15px;
  border-bottom: 1px solid #A84F0C; /* Border */
}

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

.page-dai-ly__table-cell {
  flex: 1;
  padding: 5px 10px;
  text-align: center;
  font-size: 0.95em;
  color: #FFF3E6;
}

.page-dai-ly__table-header .page-dai-ly__table-cell {
  color: #ffffff;
}

.page-dai-ly__note-text {
  text-align: center;
  font-size: 0.9em;
  color: #FFB04D; /* Glow */
  margin-top: 20px;
}

/* Benefits Section */
.page-dai-ly__benefits-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
}

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

.page-dai-ly__benefit-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-dai-ly__benefit-icon {
  width: 100%;
  max-width: 400px; /* Adjust max-width for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-dai-ly__benefit-title {
  font-size: 1.6em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

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

/* Guide Section */
.page-dai-ly__guide-section {
  background-color: #0D0E12; /* Background */
  padding: 60px 0;
}

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

.page-dai-ly__step-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-dai-ly__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid #FFB04D; /* Glow */
}

.page-dai-ly__step-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow */
  margin-bottom: 10px;
}

.page-dai-ly__step-text {
  color: #FFF3E6;
  font-size: 1em;
}

.page-dai-ly__guide-cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-dai-ly__faq-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
}

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

.page-dai-ly__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #A84F0C; /* Border */
}

.page-dai-ly__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

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

.page-dai-ly__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: #FFA53A;
  margin-left: 15px;
}

.page-dai-ly__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF3E6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-dai-ly__faq-item[open] .page-dai-ly__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
}

/* CTA Bottom Section */
.page-dai-ly__cta-bottom-section {
  background-color: #0D0E12; /* Background */
  padding: 60px 0;
  text-align: center;
}

/* General Image Styling (for content images) */
.page-dai-ly img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-dai-ly__hero-main-image {
    width: 90%;
  }

  .page-dai-ly__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-dai-ly__intro-section .page-dai-ly__container,
  .page-dai-ly__commission-section .page-dai-ly__container,
  .page-dai-ly__benefits-section .page-dai-ly__container,
  .page-dai-ly__guide-section .page-dai-ly__container,
  .page-dai-ly__faq-section .page-dai-ly__container,
  .page-dai-ly__cta-bottom-section .page-dai-ly__container {
    padding-left: 25px;
    padding-right: 25px;
  }
}

@media (max-width: 768px) {
  .page-dai-ly {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }

  .page-dai-ly__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

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

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

  .page-dai-ly__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
    margin-bottom: 15px !important;
  }

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

  .page-dai-ly__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-dai-ly__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-dai-ly__container {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Module 1: Intro Section (feature grid) */
  .page-dai-ly__feature-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-dai-ly__icon-box-media {
    width: 180px !important;
    height: 180px !important;
    margin-bottom: 15px !important;
    border-width: 3px !important;
  }

  .page-dai-ly__feature-title {
    font-size: 1.3em !important;
  }

  /* Commission Section */
  .page-dai-ly__commission-table {
    overflow-x: auto !important; /* Allow horizontal scroll for table */
    -webkit-overflow-scrolling: touch;
    border-radius: 5px !important;
  }

  .page-dai-ly__commission-table > div {
    min-width: 600px; /* Ensure table content is wide enough to scroll */
  }

  .page-dai-ly__table-header,
  .page-dai-ly__table-row {
    padding: 10px !important;
  }

  .page-dai-ly__table-cell {
    font-size: 0.85em !important;
  }

  /* Benefits Section */
  .page-dai-ly__benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-dai-ly__benefit-icon {
    max-width: 80% !important;
    margin-bottom: 15px !important;
  }

  .page-dai-ly__benefit-title {
    font-size: 1.4em !important;
  }

  /* Guide Section */
  .page-dai-ly__guide-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-dai-ly__step-item {
    padding: 50px 20px 20px !important;
  }

  .page-dai-ly__step-number {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5em !important;
    top: -15px !important;
  }

  .page-dai-ly__step-title {
    font-size: 1.2em !important;
  }

  /* FAQ Section */
  .page-dai-ly__faq-question {
    padding: 15px 20px !important;
    font-size: 1.1em !important;
  }

  .page-dai-ly__faq-toggle {
    font-size: 1.3em !important;
  }

  .page-dai-ly__faq-answer {
    padding: 0 20px 15px !important;
  }

  /* CTA Bottom Section */
  .page-dai-ly__cta-bottom-section .page-dai-ly__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  /* Universal image and container responsive styles */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Special handling for circular images to maintain aspect ratio */
  .page-dai-ly__icon-box-media img {
    height: 100% !important; /* Override height:auto for circular images */
    object-fit: cover !important;
  }
}