/* style/affiliate-program.css */

/* General page styles */
.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-affiliate-program__title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-affiliate-program__subtitle {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

.page-affiliate-program__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-affiliate-program__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-affiliate-program__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF; /* Border color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-affiliate-program__btn-secondary:hover {
  background: #f0f5ff;
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
  background-color: #F4F7FB; /* Background */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-affiliate-program__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 40px;
  padding-bottom: 60px;
}

.page-affiliate-program__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__hero-description {
  font-size: 20px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Why Join Section */
.page-affiliate-program__why-join-section {
  padding: 80px 20px;
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-affiliate-program__image-center {
  text-align: center;
  margin: 40px auto;
  max-width: 1000px; /* Adjust as needed */
}

.page-affiliate-program__section-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.page-affiliate-program__features-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__features-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.page-affiliate-program__features-list li {
  background: #F4F7FB; /* Background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.page-affiliate-program__features-list li:hover {
  transform: translateY(-3px);
}

.page-affiliate-program__features-list .page-affiliate-program__feature-title {
  font-size: 20px;
  text-align: left;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-affiliate-program__features-list .page-affiliate-program__feature-description {
  font-size: 16px;
  text-align: left;
  color: #1F2D3D;
}

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
  padding: 80px 20px;
}

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

.page-affiliate-program__step-item {
  background: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border color */
}

.page-affiliate-program__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-affiliate-program__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
}

.page-affiliate-program__step-description {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

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

/* Commission Section */
.page-affiliate-program__commission-section {
  padding: 80px 20px;
  background: #F4F7FB; /* Background */
}

.page-affiliate-program__commission-details {
  background: #ffffff; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-top: 40px;
}

.page-affiliate-program__commission-details p {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-affiliate-program__commission-table {
  width: 100%;
  overflow-x: auto; /* For mobile table overflow */
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-affiliate-program__commission-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px; /* Ensure table is not too narrow on desktop */
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  border: 1px solid #D6E2FF; /* Border color */
  padding: 15px;
  text-align: left;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

.page-affiliate-program__commission-table thead th {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  font-weight: 700;
}

.page-affiliate-program__commission-table tbody tr:nth-child(even) {
  background: #F4F7FB; /* Background */
}

.page-affiliate-program__commission-table tbody tr:hover {
  background: #e9efff;
}

/* Support and Resources Section */
.page-affiliate-program__support-resources-section {
  padding: 80px 20px;
  background: #ffffff; /* Card BG */
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.page-affiliate-program__resources-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-affiliate-program__resources-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.page-affiliate-program__resources-list li {
  background: #F4F7FB; /* Background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.page-affiliate-program__resources-list li:hover {
  transform: translateY(-3px);
}

.page-affiliate-program__resources-list .page-affiliate-program__resource-title {
  font-size: 20px;
  text-align: left;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-affiliate-program__resources-list .page-affiliate-program__resource-description {
  font-size: 16px;
  text-align: left;
  color: #1F2D3D;
}

/* FAQ Section */
.page-affiliate-program__faq-section {
  padding: 80px 20px;
}

details.page-affiliate-program__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #fff; /* Card BG */
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-affiliate-program__faq-item summary.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-affiliate-program__faq-item summary.page-affiliate-program__faq-question::-webkit-details-marker {
  display: none;
}
details.page-affiliate-program__faq-item summary.page-affiliate-program__faq-question:hover {
  background: #f5f5f5;
}
.page-affiliate-program__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-affiliate-program__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-affiliate-program__faq-item .page-affiliate-program__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
}

/* Final CTA Section */
.page-affiliate-program__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #2F6BFF; /* Main color */
  color: #ffffff;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.3);
}

.page-affiliate-program__final-cta-section .page-affiliate-program__title,
.page-affiliate-program__final-cta-section .page-affiliate-program__subtitle {
  color: #ffffff;
}

.page-affiliate-program__final-cta-section .page-affiliate-program__btn-primary {
  background: #ffffff;
  color: #2F6BFF;
  box-shadow: none;
}