/* style/affiliate-program.css */

/* --- General Styles for page-affiliate-program --- */
.page-affiliate-program {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-color); /* Body background from shared */
  line-height: 1.6;
}

.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; /* Using em for relative sizing */
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-affiliate-program__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__text-main {
  color: var(--text-main);
}

.page-affiliate-program__text-secondary {
  color: var(--text-secondary);
}

/* --- Hero Section --- */
.page-affiliate-program__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  box-sizing: border-box;
  background-color: var(--bg-color);
}

.page-affiliate-program__hero-image {
  width: 100%;
  max-width: 1200px; /* Adjust based on container width */
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-affiliate-program__main-title {
  /* No hardcoded large font-size. Rely on weight, line-height, etc. */
  font-weight: bold;
  color: var(--gold); /* Using gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-affiliate-program__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* --- 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;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-affiliate-program__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main); /* White-ish text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__btn-secondary {
  background: transparent;
  color: var(--text-main); /* White-ish text for secondary button */
  border: 2px solid var(--deep-green); /* Border matches deep green */
  box-shadow: none;
}

.page-affiliate-program__btn-secondary:hover {
  background: var(--deep-green);
  color: #ffffff;
  transform: translateY(-2px);
}

/* --- Section Styles --- */
.page-affiliate-program__benefits-section,
.page-affiliate-program__how-it-works-section,
.page-affiliate-program__commission-structure-section,
.page-affiliate-program__faq-section,
.page-affiliate-program__contact-cta-section {
  padding: 80px 0;
  box-sizing: border-box;
}

.page-affiliate-program__dark-section {
  background-color: var(--bg-color); /* Using the deep background color */
  color: var(--text-main);
}

.page-affiliate-program__benefits-section .page-affiliate-program__section-title,
.page-affiliate-program__commission-structure-section .page-affiliate-program__section-title,
.page-affiliate-program__contact-cta-section .page-affiliate-program__section-title {
  color: var(--text-main);
}

/* --- Cards --- */
.page-affiliate-program__card {
  background-color: var(--card-bg); /* Card background from custom palette */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main); /* Text color for cards */
  border: 1px solid var(--border-color); /* Border color for cards */
}

.page-affiliate-program__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-affiliate-program__card-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-affiliate-program__card-icon {
  width: 100%; /* Ensure images are responsive within cards */
  max-width: 200px; /* Example max-width, ensure > 200px */
  height: auto;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px; /* Slightly rounded corners for card images */
}

/* --- Benefits Grid --- */
.page-affiliate-program__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* --- How It Works Steps --- */
.page-affiliate-program__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-affiliate-program__step-card {
  padding: 40px;
}

.page-affiliate-program__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --- Commission Table --- */
.page-affiliate-program__commission-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
  margin-bottom: 30px;
  border-radius: 10px;
  background-color: var(--card-bg);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid var(--divider); /* Divider color */
  color: var(--text-secondary);
}

.page-affiliate-program__commission-table th {
  background-color: var(--deep-green); /* Deep green for table headers */
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
}

.page-affiliate-program__commission-table tbody tr:last-child td {
  border-bottom: none;
}

.page-affiliate-program__commission-table tbody tr:nth-child(even) {
  background-color: rgba(var(--deep-green-rgb), 0.2); /* Slightly lighter row background */
}

/* --- FAQ Section --- */
.page-affiliate-program__faq-list {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.page-affiliate-program__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}