.page-affiliate-program {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but explicitly set for scope */
}

/* Header offset for main content */
.page-affiliate-program__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-affiliate-program__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-affiliate-program__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-affiliate-program__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly darker background for hero */
  position: relative;
  overflow: hidden;
}

.page-affiliate-program__hero-content {
  max-width: 600px;
  text-align: left;
  z-index: 1;
  padding: 0 20px;
}

.page-affiliate-program__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-affiliate-program__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-affiliate-program__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-affiliate-program__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15; /* Subtly blend with background */
  filter: grayscale(80%) brightness(50%); /* Desaturate for background effect */
}

/* Buttons */
.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.page-affiliate-program__btn-primary {
  background-color: #C30808; /* Specific color for Register/Login */
  color: #FFFF00; /* Specific font color for Register/Login */
  border: 2px solid #C30808;
}

.page-affiliate-program__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-affiliate-program__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color for text */
  border: 2px solid #017439;
}

.page-affiliate-program__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Dark Section */
.page-affiliate-program__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  padding: 80px 0;
}

/* Why Join Section */
.page-affiliate-program__why-join-section {
  padding: 80px 0;
}

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

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

.page-affiliate-program__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-affiliate-program__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-affiliate-program__feature-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-affiliate-program__feature-text {
  color: #cccccc;
  font-size: 1em;
}