/* style/affiliate-program.css */

/* Base Styles */
.page-affiliate-program {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Assuming body background is black from shared.css */
}

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

.page-affiliate-program__section {
  padding: 60px 0;
  text-align: center;
}

.page-affiliate-program__section-title,
.page-affiliate-program__cta-title {
  font-size: 2.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-affiliate-program__section-description,
.page-affiliate-program__cta-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Safeguarding */
.page-affiliate-program__dark-bg {
  background-color: #000; /* Ensure dark background */
  color: #ffffff; /* Light text for dark background */
}

.page-affiliate-program__dark-section {
  background-color: #CC0000; /* Brand primary color as background */
  color: #ffffff; /* White text for primary brand color background */
}

/* Hero Section */
.page-affiliate-program__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Increased height for visual impact */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-affiliate-program__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-affiliate-program__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-affiliate-program__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-affiliate-program__hero-title {
  font-size: 3.8em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-affiliate-program__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Buttons */
.page-affiliate-program__btn-primary,
.page-affiliate-program__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-affiliate-program__btn-primary {
  background-color: #CC0000;
  color: #ffffff;
  border: 2px solid #CC0000;
}

.page-affiliate-program__btn-primary:hover {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
}

.page-affiliate-program__btn-secondary {
  background-color: #ffffff;
  color: #CC0000;
  border: 2px solid #CC0000;
}

.page-affiliate-program__btn-secondary:hover {
  background-color: #CC0000;
  color: #ffffff;
  border-color: #CC0000;
}

/* Features Grid */
.page-affiliate-program__features-grid,
.page-affiliate-program__tools-grid,
.page-affiliate-program__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-affiliate-program__feature-card,
.page-affiliate-program__step-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-affiliate-program__feature-icon {
  width: 200px; /* Min size 200px */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-affiliate-program__feature-title,
.page-affiliate-program__tool-title,
.page-affiliate-program__step-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-affiliate-program__feature-text,
.page-affiliate-program__tool-text,
.page-affiliate-program__step-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1; /* Ensure consistent card height */
}

/* Commission Table */
.page-affiliate-program__commission-table {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__table-header,
.page-affiliate-program__table-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.page-affiliate-program__table-header {
  background-color: #FFD700;
  color: #000000;
  font-weight: bold;
}

.page-affiliate-program__table-row:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-affiliate-program__table-row:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-affiliate-program__table-cell {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.page-affiliate-program__table-note {
  margin-top: 20px;
  font-size: 0.9em;
  color: #cccccc;
}

/* Marketing Tools */
.page-affiliate-program__tool-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  color: #ffffff;
}

.page-affiliate-program__marketing-image {
  width: 800px;
  height: 600px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* How to Get Started Steps */
.page-affiliate-program__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #CC0000;
  margin-bottom: 15px;
  line-height: 1;
}

.page-affiliate-program__step-card .page-affiliate-program__btn-secondary {
  margin-top: 20px;
}

/* FAQ Section */
.page-affiliate-program__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

.page-affiliate-program__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #CC0000; /* Brand primary color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-affiliate-program__faq-question:hover {
  background-color: #a00000;
}

.page-affiliate-program__faq-title {
  margin: 0;
  color: #ffffff; /* Ensure white text on red background */
}

.page-affiliate-program__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
  transform: rotate(45deg);
}

.page-affiliate-program__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0; /* Light text for answer content */
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px;
}

.page-affiliate-program__faq-answer p {
  margin: 0;
  color: #f0f0f0; /* Ensure light text for answer paragraphs */
}

/* Call to Action Section */
.page-affiliate-program__cta-section {
  padding: 80px 0;
  background-color: #CC0000; /* Brand primary color */
  color: #ffffff;
}

.page-affiliate-program__cta-section .page-affiliate-program__btn-primary {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-affiliate-program__hero-title {
    font-size: 3em;
  }
  .page-affiliate-program__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__content-area {
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-affiliate-program__hero-section {
    height: 500px;
  }

  .page-affiliate-program__hero-title {
    font-size: 2.5em;
  }

  .page-affiliate-program__hero-description {
    font-size: 1.1em;
  }

  .page-affiliate-program__btn-primary,
  .page-affiliate-program__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add space between stacked buttons */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-affiliate-program__btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 15px; /* Add padding to container */
  }

  .page-affiliate-program__features-grid,
  .page-affiliate-program__tools-grid,
  .page-affiliate-program__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-affiliate-program__feature-card,
  .page-affiliate-program__step-card,
  .page-affiliate-program__tool-item {
    padding: 20px;
  }

  .page-affiliate-program__feature-icon {
    width: 180px;
    height: 135px;
  }

  .page-affiliate-program__marketing-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-affiliate-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-affiliate-program__section,
  .page-affiliate-program__card,
  .page-affiliate-program__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-affiliate-program__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset if needed, but assuming handled by shared */
  }

  .page-affiliate-program__commission-table {
    max-width: 100%;
    overflow-x: auto; /* Allow horizontal scroll for table on small screens */
    display: block; /* Make table a block to allow scrolling */
    white-space: nowrap;
  }
  .page-affiliate-program__table-header, .page-affiliate-program__table-row {
    display: table-row; /* Change to table-row for better scroll behavior */
    width: 100%;
  }
  .page-affiliate-program__table-cell {
    display: table-cell; /* Change to table-cell */
    width: auto; /* Adjust cell width */
  }
  .page-affiliate-program__commission-table .page-affiliate-program__table-cell {
    min-width: 120px; /* Ensure cells are readable */
  }
}

@media (max-width: 480px) {
  .page-affiliate-program__hero-title {
    font-size: 2em;
  }
  .page-affiliate-program__section-title {
    font-size: 1.8em;
  }
  .page-affiliate-program__hero-section {
    height: 400px;
  }
}