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

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

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

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

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

.page-affiliates__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-affiliates__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-affiliates__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
  overflow: hidden;
}

.page-affiliates__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-affiliates__btn-primary,
.page-affiliates__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-affiliates__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-affiliates__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

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

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

.page-affiliates__dark-section {
  background-color: #1a1a1a;
  padding: 80px 0;
  color: #ffffff;
}

.page-affiliates__dark-bg-text {
  color: #ffffff;
}

.page-affiliates__why-partner .page-affiliates__section-title,
.page-affiliates__how-to-join .page-affiliates__section-title,
.page-affiliates__contact-cta .page-affiliates__section-title {
  color: #ffffff;
}

.page-affiliates__why-partner .page-affiliates__section-intro,
.page-affiliates__how-to-join .page-affiliates__section-intro,
.page-affiliates__contact-cta .page-affiliates__section-intro {
  color: #f0f0f0;
}

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