:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main: #1F2D3D;
  --text-dark: #000000;
  --bg-card: #FFFFFF;
  --bg-page: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
}

.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  color: var(--dark-gray); /* Default text color for light background */
  background-color: var(--bg-page);
  line-height: 1.6;
}

.page-affiliate-program__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.page-affiliate-program__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-affiliate-program__section-title--light {
  color: var(--white);
}

.page-affiliate-program__section-description {
  font-size: 18px;
  color: var(--dark-gray);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.page-affiliate-program__section-description--light {
  color: var(--white);
}

/* Buttons */
.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-affiliate-program__btn-primary {
  background: var(--btn-gradient);
  color: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-affiliate-program__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-affiliate-program__btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.2);
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  margin-bottom: 40px;
  background-color: var(--bg-page);
}

.page-affiliate-program__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

.page-affiliate-program__hero-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-affiliate-program__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-affiliate-program__hero-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-affiliate-program__hero-description {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--dark-gray);
  margin-bottom: 30px;
  line-height: 1.5;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Choose Section */
.page-affiliate-program__why-choose-section {
  padding: 60px 0;
  background-color: var(--bg-card); /* White background for light section */
}

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

.page-affiliate-program__benefit-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-affiliate-program__benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__benefit-card img {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-affiliate-program__card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-affiliate-program__card-text {
  font-size: 16px;
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Commission Section */
.page-affiliate-program__commission-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
}

.page-affiliate-program__commission-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-affiliate-program__commission-details {
  flex: 1;
}

.page-affiliate-program__commission-subtitle {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-affiliate-program__commission-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-affiliate-program__commission-list li {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-affiliate-program__commission-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--secondary-color); /* Use a bright color for checkmark */
  font-size: 20px;
  line-height: 1;
}

.page-affiliate-program__commission-list li strong {
  color: var(--secondary-color);
}

.page-affiliate-program__commission-text {
  font-size: 18px;
  line-height: 1.6;
}

.page-affiliate-program__commission-image {
  flex: 1;
  text-align: center;
}

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

/* Join Process Section */
.page-affiliate-program__join-process-section {
  padding: 60px 0;
  background-color: var(--bg-page);
}

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

.page-affiliate-program__step-card {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-affiliate-program__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1;
}

.page-affiliate-program__step-card .page-affiliate-program__card-title {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-affiliate-program__step-card .page-affiliate-program__card-text {
  margin-bottom: 25px;
}

/* Marketing Tools Section */
.page-affiliate-program__marketing-tools-section {
  padding: 80px 0;
  background: var(--primary-color);
  color: var(--white);
}

.page-affiliate-program__tools-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-affiliate-program__tools-image {
  flex: 1;
  text-align: center;
}

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

.page-affiliate-program__tools-list {
  flex: 1;
}

.page-affiliate-program__tools-subtitle {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-affiliate-program__tools-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-affiliate-program__tools-features li {
  font-size: 18px;
  margin-bottom: 15px;
  position: relative;
  padding-left: 35px;
  line-height: 1.5;
}

.page-affiliate-program__tools-features li::before {
  content: '🚀'; /* Using an emoji for bullet */
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
}

.page-affiliate-program__tools-features li strong {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-affiliate-program__faq-section {
  padding: 60px 0;
  background-color: var(--bg-page);
}

.page-affiliate-program__faq-list {
  margin-top: 40px;
}

details.page-affiliate-program__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-affiliate-program__faq-item summary.page-affiliate-program__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-affiliate-program__faq-item summary.page-affiliate-program__faq-question::-webkit-details-marker {
  display: none;
}
details.page-affiliate-program__faq-item summary.page-affiliate-program__faq-question:hover {
  background: var(--light-gray);
}
.page-affiliate-program__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-affiliate-program__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-gray);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-affiliate-program__faq-item .page-affiliate-program__faq-answer {
  padding: 0 20px 20px;
  background: var(--light-gray);
  border-radius: 0 0 5px 5px;
  color: var(--dark-gray);
}
details.page-affiliate-program__faq-item .page-affiliate-program__faq-answer p {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}


/* --- Placeholder Styles for other common modules (as per instructions) --- */
/* Placeholder for __access-links (3-link buttons) - Not used on this page, but included as per instructions */
.page-affiliate-program__access-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}
.page-affiliate-program__access-link-button {
  flex: 1;
  max-width: 300px;
  background: var(--btn-gradient);
  color: var(--white);
  padding: 18px 25px;
  border-radius: 10px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}
.page-affiliate-program__access-link-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

/* Placeholder for __category-lobby (5-entry square, no border, no text outside image) - Not used on this page, but included as per instructions */
.page-affiliate-program__category-lobby {
  padding: 60px 0;
  background-color: var(--bg-card);
}
.page-affiliate-program__category-lobby__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.page-affiliate-program__category-card-link {
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.page-affiliate-program__category-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.page-affiliate-program__category-card-link img {
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border: none; /* No border as per requirement */
  box-shadow: none; /* No box-shadow as per requirement */
}

/* Placeholder for __blog-slider (single card visible, clickable arrows) - Not used on this page, but included as per instructions */
.page-affiliate-program__blog-slider-section {
  padding: 60px 0;
  background-color: var(--bg-page);
}
.page-affiliate-program__blog-slider-container {
  position: relative;
  margin-top: 40px;
}
.page-affiliate-program__blog-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px; /* Space for scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}
.page-affiliate-program__blog-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.page-affiliate-program__post-item {
  flex: 0 0 calc(33.333% - 13.333px); /* 3 items per row with 20px gap */
  scroll-snap-align: start;
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-affiliate-program__post-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.page-affiliate-program__post-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.page-affiliate-program__post-content {
  padding: 20px;
}
.page-affiliate-program__post-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}
.page-affiliate-program__post-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}
.page-affiliate-program__post-excerpt {
  font-size: 16px;
  color: var(--dark-gray);
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.page-affiliate-program__blog-slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none; /* Allow clicks through default */
  padding: 0 10px;
  z-index: 10;
}
.page-affiliate-program__blog-slider-prev,
.page-affiliate-program__blog-slider-next {
  background: rgba(47, 107, 255, 0.8);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: auto; /* Re-enable clicks */
  transition: background-color 0.3s ease;
}
.page-affiliate-program__blog-slider-prev:hover,
.page-affiliate-program__blog-slider-next:hover {
  background: var(--primary-color);
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-title {
    font-size: 48px;
  }
  .page-affiliate-program__section-title {
    font-size: 32px;
  }
  .page-affiliate-program__section-description {
    font-size: 17px;
  }
  .page-affiliate-program__commission-content,
  .page-affiliate-program__tools-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .page-affiliate-program__commission-image,
  .page-affiliate-program__tools-image {
    order: -1; /* Image above text on smaller screens */
  }
  .page-affiliate-program__commission-list,
  .page-affiliate-program__tools-features {
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .page-affiliate-program__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-affiliate-program__btn-cta {
    width: 80%;
    max-width: 350px;
  }
}