/* style/affiliates.css */
.page-affiliates {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-affiliates__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #f8f8f8; /* Light background for hero */
  position: relative;
  overflow: hidden;
}

.page-affiliates__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7); /* Darken image slightly for text readability, but no color change */
}

.page-affiliates__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff; /* White text over darkened hero image */
}

.page-affiliates__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-affiliates__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #e0e0e0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-affiliates__hero-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight blue text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliates__hero-cta-button:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-3px);
}

/* General Section Styling */
.page-affiliates__section-title {
  font-size: 2.5em;
  color: #000080; /* Midnight blue for section titles */
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
}

.page-affiliates__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #555555;
}

/* Why Partner Section */
.page-affiliates__why-partner-section {
  background-color: #ffffff;
  padding: 60px 0;
}

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

.page-affiliates__feature-card {
  background-color: #f0f8ff; /* Light blue background for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliates__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-affiliates__feature-title {
  font-size: 1.6em;
  color: #000080; /* Midnight blue for feature titles */
  margin-bottom: 15px;
}

.page-affiliates__feature-description {
  font-size: 1em;
  color: #666666;
}

/* Commission Section */
.page-affiliates__commission-section {
  background-color: #000080; /* Midnight blue background */
  color: #ffffff; /* White text */
  padding: 80px 0;
}

.page-affiliates__commission-section .page-affiliates__section-title {
  color: #FFD700; /* Gold title */
}

.page-affiliates__commission-section .page-affiliates__section-intro {
  color: #e0e0e0;
}

.page-affiliates__commission-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-affiliates__commission-tier {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-affiliates__tier-title {
  font-size: 1.8em;
  color: #FFD700; /* Gold for tier titles */
  margin-bottom: 15px;
}

.page-affiliates__tier-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-affiliates__commission-image {
  display: block;
  margin: 50px auto 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliates__commission-note {
  text-align: center;
  font-style: italic;
  color: #cccccc;
  margin-top: 20px;
}

/* Marketing Tools Section */
.page-affiliates__marketing-tools-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-affiliates__tool-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliates__tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-affiliates__tool-title {
  font-size: 1.6em;
  color: #000080;
  margin-bottom: 15px;
}

.page-affiliates__tool-description {
  font-size: 1em;
  color: #666666;
}

.page-affiliates__tools-image {
  display: block;
  margin: 50px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* How to Join Section */
.page-affiliates__how-to-join-section {
  background-color: #ffffff;
  padding: 80px 0;
}

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

.page-affiliates__step-card {
  background-color: #fffacd; /* Light gold tint for steps */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-affiliates__step-title {
  font-size: 1.8em;
  color: #000080;
  margin-bottom: 15px;
}

.page-affiliates__step-description {
  font-size: 1em;
  color: #555555;
}

.page-affiliates__join-cta-button {
  display: inline-block;
  background-color: #000080; /* Midnight blue button */
  color: #FFD700; /* Gold text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-top: 50px;
}

.page-affiliates__join-cta-button:hover {
  background-color: #000066; /* Darker blue on hover */
  transform: translateY(-3px);
}

/* FAQ Section */
.page-affiliates__faq-section {
  background-color: #f0f8ff;
  padding: 60px 0;
}

.page-affiliates__faq-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-affiliates__faq-question {
  font-size: 1.4em;
  color: #000080;
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
  padding-right: 30px;
}

.page-affiliates__faq-answer {
  font-size: 1em;
  color: #666666;
  display: none; /* Hidden by default, toggled by JS */
  padding-top: 10px;
  border-top: 1px solid #eee;
  margin-top: 10px;
}

/* Final CTA Section */
.page-affiliates__final-cta-section {
  background-color: #000080; /* Midnight blue background */
  color: #ffffff; /* White text */
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-affiliates__final-cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-affiliates__final-cta-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-affiliates__final-cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  position: relative;
  z-index: 1;
  color: #e0e0e0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.page-affiliates__final-cta-button {
  display: inline-block;
  background-color: #FFD700; /* Gold button */
  color: #000080; /* Midnight blue text */
  padding: 18px 35px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.page-affiliates__final-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-affiliates__hero-title {
    font-size: 2.2em;
  }

  .page-affiliates__hero-description {
    font-size: 1em;
  }

  .page-affiliates__hero-cta-button {
    font-size: 1em;
    padding: 12px 25px;
  }

  .page-affiliates__section-title {
    font-size: 1.8em;
  }

  .page-affiliates__section-intro {
    font-size: 0.95em;
  }

  .page-affiliates__features-grid,
  .page-affiliates__commission-details,
  .page-affiliates__tools-grid,
  .page-affiliates__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-affiliates__final-cta-title {
    font-size: 2em;
  }

  .page-affiliates__final-cta-description {
    font-size: 1em;
  }

  .page-affiliates__final-cta-button {
    font-size: 1.2em;
    padding: 15px 30px;
  }

  /* Mobile image overflow prevention */
  .page-affiliates img {
    max-width: 100%;
    height: auto;
  }
  .page-affiliates {
    overflow-x: hidden;
  }
}