/* Base styles for the affiliate page */
.page-dai-ly {
  background-color: #140C0C; /* Custom background color */
  color: #FFF1E8; /* Custom main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Container for content sections */
.page-dai-ly__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
  box-sizing: border-box;
}

/* Hero Section */
.page-dai-ly__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  background-color: #140C0C;
  text-align: center;
  position: relative;
}

.page-dai-ly__hero-image {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

.page-dai-ly__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-dai-ly__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px 60px;
  box-sizing: border-box;
}

.page-dai-ly__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #F3C54D; /* Gold for main title */
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-dai-ly__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF1E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Titles */
.page-dai-ly__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #F3C54D; /* Gold for section titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

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

.page-dai-ly__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  color: #F3C54D;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-dai-ly__text-block {
  margin-bottom: 20px;
  color: #FFF1E8;
  font-size: 1em;
}

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

/* Buttons */
.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;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-dai-ly__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Custom button gradient */
  color: #FFF1E8; /* Text Main color for buttons */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-dai-ly__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

/* Cards */
.page-dai-ly__card {
  background-color: #2A1212; /* Custom Card BG */
  border: 1px solid #6A1E1E; /* Custom Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  color: #FFF1E8; /* Text Main color for cards */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-dai-ly__card-icon {
  width: 100%;
  max-width: 250px; /* Limit icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-dai-ly__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #F3C54D; /* Gold for card titles */
  margin-bottom: 15px;
}

.page-dai-ly__card-text {
  font-size: 0.95em;
  color: #FFF1E8;
}

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

/* Commission Table */
.page-dai-ly__commission-mechanism-section {
  background-color: #0f0000; /* Slightly different dark background */
  padding: 60px 0;
}

.page-dai-ly__dark-section {
  background-color: #140C0C; /* Main background color for dark sections */
  color: #FFF1E8; /* White text for dark sections */
  padding: 60px 0;
}

.page-dai-ly__table-wrapper {
  overflow-x: auto; /* Enable horizontal scroll on small screens */
  margin-top: 30px;
}

.page-dai-ly__commission-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-dai-ly__commission-table th,
.page-dai-ly__commission-table td {
  border: 1px solid #6A1E1E; /* Custom Border color */
  padding: 12px 15px;
  text-align: left;
  color: #FFF1E8;
}

.page-dai-ly__commission-table th {
  background-color: #7E0D0D; /* Deep Red for table headers */
  font-weight: 600;
  color: #FFF1E8;
}

.page-dai-ly__commission-table tr:nth-child(even) {
  background-color: #2A1212; /* Custom Card BG for even rows */
}
.page-dai-ly__commission-table tr:nth-child(odd) {
  background-color: #1a0f0f; /* Slightly lighter dark for odd rows */
}


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

.page-dai-ly__step-card {
  padding: 30px;
}

.page-dai-ly__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #F3C54D; /* Gold for step numbers */
  color: #140C0C; /* Dark text on gold */
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-dai-ly__faq-list {
  margin-top: 40px;
}

.page-dai-ly__faq-item {
  margin-bottom: 15px;
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  background-color: #2A1212;
  color: #FFF1E8;
  padding: 0; /* Reset padding for details element */
  overflow: hidden;
}

.page-dai-ly__faq-item summary {
  display: block; /* For custom arrow control */
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  position: relative;
  color: #F3C54D;
  list-style: none; /* Hide default marker */
}

.page-dai-ly__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-dai-ly__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #F3C54D;
}

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

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

.page-dai-ly__faq-item[open] .page-dai-ly__faq-toggle {
  transform: rotate(45deg); /* Change to X when open */
}

.page-dai-ly__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: #FFF1E8;
}

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

/* Final CTA Section */
.page-dai-ly__cta-final-section {
  text-align: center;
  padding: 80px 15px;
  background-color: #140C0C;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-dai-ly__hero-content {
    padding-bottom: 40px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-dai-ly__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-dai-ly__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px;
  }
  .page-dai-ly__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-dai-ly__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* General Section Titles */
  .page-dai-ly__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-dai-ly__section-description {
    margin-bottom: 30px;
  }
  .page-dai-ly__sub-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-dai-ly__text-block {
    font-size: 0.95em;
  }

  /* Buttons and Containers */
  .page-dai-ly__cta-button,
  .page-dai-ly__btn-primary {
    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-dai-ly__cta-center {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Image responsiveness */
  .page-dai-ly img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-dai-ly__section,
  .page-dai-ly__card,
  .page-dai-ly__container,
  .page-dai-ly__table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Grid layouts */
  .page-dai-ly__benefits-grid,
  .page-dai-ly__tools-grid,
  .page-dai-ly__process-steps {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  /* Table */
  .page-dai-ly__commission-table {
    min-width: unset; /* Allow table to shrink */
  }
  .page-dai-ly__table-wrapper {
    overflow-x: scroll; /* Keep scroll for tables */
  }

  /* FAQ */
  .page-dai-ly__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-dai-ly__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-dai-ly__hero-content {
    padding-bottom: 20px;
  }
  .page-dai-ly__main-title {
    font-size: 1.8em;
  }
  .page-dai-ly__section-title {
    font-size: 1.6em;
  }
}