/* style/affiliate-program.css */
.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #1a1a2e; /* From shared.css body background */
}

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

.page-affiliate-program__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background-color: #017439; /* Use brand color for hero background */
  color: #ffffff;
  overflow: hidden;
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.page-affiliate-program__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Use specific color for title for impact */
}

.page-affiliate-program__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-affiliate-program__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-size: 1.1em;
}

.page-affiliate-program__hero-cta:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

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

.page-affiliate-program__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Make background image subtle */
}

.page-affiliate-program__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Use specific color for section titles */
}

.page-affiliate-program__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

/* Benefits Section */
.page-affiliate-program__benefits-section {
  padding: 60px 0;
  background-color: #017439; /* Dark section */
  color: #ffffff;
}

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

.page-affiliate-program__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-affiliate-program__benefit-card:hover {
  transform: translateY(-5px);
}

.page-affiliate-program__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Ensure icon is not too large */
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.page-affiliate-program__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight benefit titles */
}

.page-affiliate-program__benefit-text {
  font-size: 1em;
  opacity: 0.8;
  flex-grow: 1;
}

/* How to Join Section */
.page-affiliate-program__how-to-join-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
}

.page-affiliate-program__how-to-join-section .page-affiliate-program__section-title,
.page-affiliate-program__how-to-join-section .page-affiliate-program__section-description {
  color: #333333;
}

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

.page-affiliate-program__step-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-affiliate-program__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #017439;
  position: absolute;
  top: 15px;
  left: 15px;
  opacity: 0.1;
  line-height: 1;
}

.page-affiliate-program__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439;
  padding-top: 40px; /* Space for step number */
}

.page-affiliate-program__step-text {
  font-size: 0.95em;
  color: #555555;
  flex-grow: 1;
}

.page-affiliate-program__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Commission Section */
.page-affiliate-program__commission-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-affiliate-program__commission-section .page-affiliate-program__section-title {
  color: #FFFF00;
}

.page-affiliate-program__commission-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.page-affiliate-program__commission-table th {
  background-color: rgba(0, 0, 0, 0.3);
  font-weight: bold;
  color: #FFFF00;
  font-size: 1.1em;
}

.page-affiliate-program__commission-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-affiliate-program__payment-info {
  text-align: center;
  margin-top: 30px;
  font-size: 1.1em;
  opacity: 0.9;
}

/* Why Choose Section */
.page-affiliate-program__why-choose-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

.page-affiliate-program__why-choose-section .page-affiliate-program__section-title,
.page-affiliate-program__why-choose-section .page-affiliate-program__section-description {
  color: #333333;
}