.page-affiliates {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text on dark body background */
  background-color: #0d1117; /* Matches body background from shared.css */
}

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

.page-affiliates__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold accent color for titles */
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-affiliates__section-intro {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

/* Buttons */
.page-affiliates__btn-primary {
  display: inline-block;
  background: linear-gradient(90deg, #FFD700, #FFA500); /* Gold to Orange gradient */
  color: #1A202C; /* Dark text on gold button for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  white-space: nowrap;
  word-wrap: normal;
}

.page-affiliates__btn-primary:hover {
  background: linear-gradient(90deg, #FFA500, #FFD700);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-affiliates__btn-large {
    padding: 18px 35px;
    font-size: 20px;
}

/* Hero Section */
.page-affiliates__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding */
  padding-bottom: 80px;
  padding-left: 0;
  padding-right: 0;
  margin-top: 0;
  overflow: hidden;
}

.page-affiliates__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-affiliates__light-bg {
  background-color: #0d1117; /* Slightly lighter than body bg for contrast */
  color: #f0f0f0;
}

.page-affiliates__hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
  gap: 50px;
}

.page-affiliates__hero-content {
  flex: 1;
  text-align: left;
  z-index: 1;
}

.page-affiliates__hero-title {
  font-size: 52px;
  font-weight: 900;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-affiliates__hero-description {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 30px;
  line-height: 1.7;
}

.page-affiliates__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
}

.page-affiliates__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Why Partner Section */
.page-affiliates__why-partner-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-affiliates__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-affiliates__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-affiliates__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjust max-width for feature icons */
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 8px;
}

.page-affiliates__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-affiliates__feature-description {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* Commission Section */
.page-affiliates__commission-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-affiliates__commission-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-affiliates__commission-heading {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-affiliates__commission-text {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-affiliates__commission-image {
  display: block;
  margin: 50px auto 0 auto;
  width: 100%;
  height: auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* How to Join Section */
.page-affiliates__how-to-join-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-affiliates__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-affiliates__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #FFD700; /* Gold circle */
  color: #1A202C; /* Dark text on gold */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-affiliates__step-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-affiliates__step-description {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

.page-affiliates__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

.page-affiliates__process-image {
  display: block;
  margin: 50px auto 0 auto;
  width: 100%;
  height: auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Marketing Tools Section */
.page-affiliates__marketing-tools-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-affiliates__tool-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-affiliates__tool-item:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-affiliates__tool-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjust max-width for tool icons */
  margin-bottom: 20px;
  object-fit: cover;
  border-radius: 8px;
}

.page-affiliates__tool-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-affiliates__tool-description {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
}

/* FAQ Section */
.page-affiliates__faq-section {
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-affiliates__faq-list {
  margin-top: 40px;
}

.page-affiliates__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for FAQ item */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-affiliates__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A202C; /* Dark background for question */
  color: #FFD700; /* Gold text for question */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid transparent; /* No border-bottom initially */
}

.page-affiliates__faq-item.active .page-affiliates__faq-question {
  border-bottom-color: rgba(255, 215, 0, 0.3); /* Add border-bottom when active */
  border-radius: 8px 8px 0 0;
}

.page-affiliates__faq-question:hover {
  background: #2a2f3b;
}

.page-affiliates__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold text for question title */
}

.page-affiliates__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-affiliates__faq-item.active .page-affiliates__faq-toggle {
  transform: rotate(45deg); /* Rotate to 'X' or '-' */
  color: #ffffff;
}