.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-affiliate-program__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-affiliate-program__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold for titles */
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__section-intro {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  background: linear-gradient(135deg, #B22222, #801919); /* Darker red gradient for hero */
  overflow: hidden; /* Prevent content overflow */
}

.page-affiliate-program__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-affiliate-program__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.page-affiliate-program__hero-image img:hover {
  transform: scale(1.03);
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-affiliate-program__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

.page-affiliate-program__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: #B22222; /* Primary button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #FFD700; /* Gold border */
}

.page-affiliate-program__cta-button:hover {
  background: #FFD700; /* Gold on hover */
  color: #B22222; /* Red text on gold hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border-color: #B22222;
}

/* Why Join Section */
.page-affiliate-program__why-join {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
  padding-bottom: 80px;
}

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-affiliate-program__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure responsiveness */
  display: block;
}