.page-affiliates {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

/* --- Hero Section --- */
.page-affiliates__hero-section {
  position: relative;
  padding: 80px 20px;
  background: linear-gradient(135deg, #007bff, #0056b3); /* Darker blue gradient */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fallback for header offset */
  overflow: hidden;
}

.page-affiliates__hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-affiliates__hero-content {
  flex: 1;
  max-width: 55%;
}

.page-affiliates__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffc107; /* Gold for emphasis */
  line-height: 1.2;
}

.page-affiliates__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-affiliates__hero-cta {
  margin-top: 30px;
}

.page-affiliates__btn-primary {
  display: inline-block;
  background: #ffc107; /* Auxiliary color for primary button */
  color: #000000; /* Black text for contrast on yellow */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-affiliates__btn-primary:hover {
  background: #e0a800; /* Darker yellow on hover */
  transform: translateY(-3px);
}

.page-affiliates__btn-secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid #007bff; /* Main color border */
  margin-left: 20px;
  cursor: pointer;
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-affiliates__btn-secondary:hover {
  background: #007bff; /* Main color background on hover */
  transform: translateY(-3px);
  border-color: #007bff;
}

.page-affiliates__hero-image-wrapper {
  flex: 1;
  text-align: right;
  max-width: 45%;
}

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

/* --- General Section Styles --- */
.page-affiliates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-affiliates__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff; /* Default for dark sections */
}

.page-affiliates__section-title--gold {
  color: #ffc107; /* Gold for specific titles */
}

.page-affiliates__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
  opacity: 0.8;
}

.page-affiliates__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast with body */
  padding: 80px 0;
}

/* --- Benefits Section --- */
.page-affiliates__benefits-section {
  padding: 80px 0;
}

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

.page-affiliates__benefit-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-affiliates__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-affiliates__benefit-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff; /* Main brand color for icon background */
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliates__benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-affiliates__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffc107; /* Gold for titles */
}

.page-affiliates__benefit-text {
  font-size: 16px;
  opacity: 0.85;
}

/* --- Commission Section --- */
.page-affiliates__commission-section {
  padding: 80px 0;
  background-color: #000;
}

.page-affiliates__commission-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.page-affiliates__commission-details {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-affiliates__commission-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #007bff; /* Main color accent */
  padding: 25px;
  border-radius: 8px;
}

.page-affiliates__commission-subtitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffc107;
}

.page-affiliates__commission-text {
  font-size: 16px;
  opacity: 0.85;
}

.page-affiliates__commission-table-wrapper {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #ffc107; /* Auxiliary color accent */
  padding: 25px;
  border-radius: 8px;
}

.page-affiliates__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 15px;
}

.page-affiliates__commission-table th,
.page-affiliates__commission-table td {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 15px;
  text-align: left;
  color: #ffffff;
}

.page-affiliates__commission-table th {
  background-color: #007bff; /* Main color for table headers */
  font-weight: bold;
}

.page-affiliates__commission-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.03); /* Subtle striping */
}