.page-affiliate-program {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-affiliate-program__hero-section {
  position: relative;
  text-align: center;
  color: #ffffff;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
}

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

.page-affiliate-program__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-affiliate-program__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-affiliate-program__hero-button {
  display: inline-block;
  background-color: #FFD700;
  color: #0A2463;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-affiliate-program__section-title {
  font-size: 2.8em;
  color: #0A2463;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-affiliate-program__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

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

.page-affiliate-program__why-partner-section,
.page-affiliate-program__how-it-works-section,
.page-affiliate-program__commission-structure-section,
.page-affiliate-program__marketing-tools-section,
.page-affiliate-program__faq-section,
.page-affiliate-program__cta-section {
  padding: 80px 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eeeeee;
}

.page-affiliate-program__why-partner-section {
  background-color: #ffffff;
}

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

.page-affiliate-program__feature-card,
.page-affiliate-program__step-card,
.page-affiliate-program__tool-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliate-program__feature-card:hover,
.page-affiliate-program__step-card:hover,
.page-affiliate-program__tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-affiliate-program__feature-icon {
  width: 250px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-affiliate-program__feature-description,
.page-affiliate-program__step-description,
.page-affiliate-program__tool-description {
  font-size: 1em;
  color: #666666;
  flex-grow: 1;
}

.page-affiliate-program__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #0A2463;
  color: #FFD700;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__how-it-works-button {
  display: inline-block;
  background-color: #0A2463;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__how-it-works-button:hover {
  background-color: #071c4a;
  transform: translateY(-3px);
}

.page-affiliate-program__commission-table-wrapper {
  overflow-x: auto;
  margin-top: 40px;
}

.page-affiliate-program__commission-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-affiliate-program__commission-table th,
.page-affiliate-program__commission-table td {
  padding: 18px 25px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}

.page-affiliate-program__commission-table th {
  background-color: #0A2463;
  color: #FFD700;
  font-weight: bold;
  font-size: 1.1em;
  text-transform: uppercase;
}

.page-affiliate-program__commission-table tbody tr:nth-child(even) {
  background-color: #f5f5f5;
}

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

.page-affiliate-program__commission-table td {
  color: #333333;
  font-size: 1em;
}

.page-affiliate-program__commission-note {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: #777777;
}

.page-affiliate-program__faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 25px 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.page-affiliate-program__faq-question {
  font-size: 1.4em;
  color: #0A2463;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: bold;
}

.page-affiliate-program__faq-answer {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-affiliate-program__cta-section {
  text-align: center;
  background-color: #0A2463;
  color: #ffffff;
  padding: 100px 20px;
}

.page-affiliate-program__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 25px;
}

.page-affiliate-program__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-affiliate-program__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-affiliate-program__cta-button {
  display: inline-block;
  padding: 18px 35px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__cta-button--primary {
  background-color: #FFD700;
  color: #0A2463;
}

.page-affiliate-program__cta-button--primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-affiliate-program__cta-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-affiliate-program__cta-button--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-3px);
}

.page-affiliate-program__responsible-gaming-note {
  margin-top: 50px;
  font-size: 0.9em;
  color: #cccccc;
}

.page-affiliate-program__responsible-gaming-note a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-affiliate-program__responsible-gaming-note a:hover {
  text-decoration: underline;
}

.page-affiliate-program__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-affiliate-program__floating-button {
  display: block;
  width: 120px;
  padding: 12px 0;
  text-align: center;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-affiliate-program__floating-button--register {
  background-color: #FFD700;
  color: #0A2463;
}

.page-affiliate-program__floating-button--register:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-affiliate-program__floating-button--login {
  background-color: #0A2463;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.page-affiliate-program__floating-button--login:hover {
  background-color: #071c4a;
  transform: translateY(-3px);
}

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

  .page-affiliate-program__section-title {
    font-size: 2.2em;
  }

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

  .page-affiliate-program__features-grid,
  .page-affiliate-program__steps-grid,
  .page-affiliate-program__tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-affiliate-program__hero-section {
    padding: 60px 15px;
    min-height: 500px;
  }

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

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

  .page-affiliate-program__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  .page-affiliate-program__section-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .page-affiliate-program__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-affiliate-program__why-partner-section,
  .page-affiliate-program__how-it-works-section,
  .page-affiliate-program__commission-structure-section,
  .page-affiliate-program__marketing-tools-section,
  .page-affiliate-program__faq-section,
  .page-affiliate-program__cta-section {
    padding: 60px 0;
  }

  .page-affiliate-program__feature-title,
  .page-affiliate-program__step-title,
  .page-affiliate-program__tool-title {
    font-size: 1.4em;
  }

  .page-affiliate-program__how-it-works-button {
    padding: 12px 25px;
    font-size: 1.1em;
    margin-top: 30px;
  }

  .page-affiliate-program__commission-table th,
  .page-affiliate-program__commission-table td {
    padding: 12px 15px;
    font-size: 0.9em;
  }

  .page-affiliate-program__faq-question {
    font-size: 1.2em;
  }

  .page-affiliate-program__cta-title {
    font-size: 2em;
  }

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

  .page-affiliate-program__cta-button {
    padding: 15px 25px;
    font-size: 1.1em;
  }

  .page-affiliate-program__floating-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .page-affiliate-program__floating-button {
    width: 100px;
    padding: 10px 0;
    font-size: 1em;
  }

  /* Ensure all content area images are responsive and do not overflow */
  .page-affiliate-program img {
    max-width: 100%;
    height: auto;
  }
  .page-affiliate-program__feature-icon {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 150px; /* Adjusted minimum height for smaller screens, maintaining aspect ratio */
  }
}

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

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

  .page-affiliate-program__hero-button {
    padding: 10px 20px;
    font-size: 1em;
  }

  .page-affiliate-program__section-title {
    font-size: 1.6em;
  }

  .page-affiliate-program__feature-title,
  .page-affiliate-program__step-title,
  .page-affiliate-program__tool-title {
    font-size: 1.2em;
  }

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

  .page-affiliate-program__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-affiliate-program__cta-button {
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-affiliate-program__floating-buttons {
    flex-direction: row;
    width: calc(100% - 30px);
    justify-content: center;
    bottom: 10px;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .page-affiliate-program__floating-button {
    width: 48%;
  }
}