.page-affiliate {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
}

.page-affiliate__hero-section {
  background-color: #f8f8f8;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.page-affiliate__hero-container {
  position: relative;
  max-width: 1920px; /* Max width for the hero content container */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-affiliate__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-affiliate__hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
  color: #ffffff; /* White text over darkened image */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-affiliate__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-transform: uppercase;
  font-weight: bold;
}

.page-affiliate__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.page-affiliate__cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #8B0000; /* Dark red text */
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-affiliate__cta-button:hover {
  background-color: #8B0000; /* Dark red on hover */
  color: #FFD700; /* Gold text on hover */
  border-color: #FFD700;
}

.page-affiliate__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
}

.page-affiliate__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-affiliate__section-title {
  font-size: 2.8em;
  color: #8B0000; /* Dark red for section titles */
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-affiliate__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  border-radius: 2px;
}

.page-affiliate__why-partner-section {
  background-color: #ffffff;
}

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

.page-affiliate__benefit-card {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-affiliate__benefit-icon {
  width: 250px; /* Ensure images are not too small */
  height: 167px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-affiliate__benefit-title {
  font-size: 1.5em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-affiliate__benefit-text {
  font-size: 1em;
  color: #555;
}

.page-affiliate__how-it-works-section {
  background-color: #fdf6e3; /* Light gold background */
}

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

.page-affiliate__step-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate__step-image {
  width: 350px;
  height: 263px;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
  border: 2px solid #FFD700; /* Gold border */
}

.page-affiliate__step-title {
  font-size: 1.8em;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-affiliate__step-text {
  font-size: 1em;
  color: #555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-affiliate__step-button {
  display: inline-block;
  background-color: #8B0000;
  color: #FFD700;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #8B0000;
}

.page-affiliate__step-button:hover {
  background-color: #FFD700;
  color: #8B0000;
  border-color: #FFD700;
}

.page-affiliate__commission-section {
  background-color: #f8f8f8;
}

.page-affiliate__commission-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: #444;
}

.page-affiliate__commission-table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}

.page-affiliate__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.page-affiliate__commission-table th,
.page-affiliate__commission-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.page-affiliate__commission-table th {
  background-color: #8B0000; /* Dark red header */
  color: #FFD700; /* Gold text */
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.1em;
}

.page-affiliate__commission-table tr:last-child td {
  border-bottom: none;
}

.page-affiliate__commission-table tbody tr:nth-child(even) {
  background-color: #fdf6e3; /* Light gold stripe */
}

.page-affiliate__commission-table tbody tr:hover {
  background-color: #ffe899; /* Lighter gold on hover */
}

.page-affiliate__commission-note {
  text-align: center;
  font-size: 0.9em;
  color: #777;
  margin-top: 20px;
}

.page-affiliate__faq-section {
  background-color: #ffffff;
}

.page-affiliate__faq-item {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 25px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-affiliate__faq-question {
  font-size: 1.4em;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-affiliate__faq-answer {
  font-size: 1em;
  color: #555;
}

.page-affiliate__join-cta-section {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-affiliate__join-cta-section .page-affiliate__section-title {
  color: #FFD700; /* Gold title */
}

.page-affiliate__join-cta-section .page-affiliate__section-title::after {
  background-color: #FFD700;
}

.page-affiliate__join-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-affiliate__contact-button {
  display: inline-block;
  background-color: transparent;
  color: #FFD700;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-left: 20px;
}

.page-affiliate__contact-button:hover {
  background-color: #FFD700;
  color: #8B0000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-affiliate__hero-title {
    font-size: 2.8em;
  }
  .page-affiliate__hero-description {
    font-size: 1.1em;
  }
  .page-affiliate__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-affiliate__hero-content {
    padding: 60px 15px;
  }
  .page-affiliate__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-affiliate__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-affiliate__cta-button,
  .page-affiliate__contact-button {
    font-size: 1em;
    padding: 12px 25px;
    margin-left: 0;
    margin-top: 15px; /* Add margin for stacked buttons */
  }
  .page-affiliate__contact-button {
    margin-left: 0;
  }
  .page-affiliate__content-area {
    padding: 40px 15px;
  }
  .page-affiliate__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }
  .page-affiliate__benefit-icon,
  .page-affiliate__step-image {
    max-width: 100%; /* Ensure images are responsive and don't overflow */
    height: auto;
  }
  /* Ensure all content images are not too small for mobile */
  .page-affiliate img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum size for content images */
    min- /* Minimum height, maintaining aspect ratio */
    object-fit: cover;
  }
  .page-affiliate__commission-table th,
  .page-affiliate__commission-table td {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-affiliate__faq-question {
    font-size: 1.2em;
  }
  .page-affiliate__join-cta-section {
    padding: 60px 15px;
  }
  .page-affiliate__join-description {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-affiliate__hero-title {
    font-size: 1.8em;
  }
  .page-affiliate__section-title {
    font-size: 1.8em;
  }
  .page-affiliate__benefits-grid,
  .page-affiliate__steps-grid {
    grid-template-columns: 1fr;
  }
  .page-affiliate__cta-button,
  .page-affiliate__contact-button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }
  .page-affiliate__contact-button {
    margin-left: 0;
  }
  .page-affiliate__benefit-icon,
  .page-affiliate__step-image {
    width: 100%;
    height: auto;
    max-width: 400px; /* Constrain max width for better appearance on very small screens */
    margin-left: auto;
    margin-right: auto;
  }
}