/* style/affiliate-program.css */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Black */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f1f3f5;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

.page-affiliate-program {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-light); /* Default text color for sections on dark body background */
    background-color: var(--secondary-color); /* Body background is dark */
}

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

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

/* HERO Section */
.page-affiliate-program__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust for fixed header */
    background: var(--secondary-color);
    color: var(--text-light);
}

.page-affiliate-program__hero-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-affiliate-program__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-affiliate-program__main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-affiliate-program__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-affiliate-program__main-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-affiliate-program__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

.page-affiliate-program__cta-button:hover {
    background: linear-gradient(135deg, #FFA500, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-affiliate-program__section-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__text-block {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

/* Why Join Section */
.page-affiliate-program__why-join-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-affiliate-program__why-join-section .page-affiliate-program__section-title {
    color: var(--primary-color);
}

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

.page-affiliate-program__card {
    background: var(--card-background);
    color: var(--text-dark);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-affiliate-program__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__card-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 25px;
    object-fit: contain;
}

.page-affiliate-program__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-affiliate-program__card-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* How It Works Section */
.page-affiliate-program__how-it-works-section {
    background-color: #0d0d0d;
    color: var(--text-light);
}

.page-affiliate-program__how-it-works-section .page-affiliate-program__section-title {
    color: var(--primary-color);
}

.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-card {
    background: var(--card-background);
    color: var(--text-dark);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-affiliate-program__step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-affiliate-program__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    color: var(--text-dark);
    font-size: 32px;
    font-weight: bold;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__step-title {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-affiliate-program__step-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    flex-grow: 1;
    margin-bottom: 25px;
}

.page-affiliate-program__step-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.page-affiliate-program__step-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Games to Promote Section */
.page-affiliate-program__games-to-promote-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-affiliate-program__games-to-promote-section .page-affiliate-program__section-title {
    color: var(--secondary-color);
}

.page-affiliate-program__games-to-promote-section .page-affiliate-program__text-block {
    color: var(--text-dark);
}

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

.page-affiliate-program__game-card-item {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-affiliate-program__game-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-affiliate-program__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.page-affiliate-program__game-card-item h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
    color: var(--primary-color);
}

.page-affiliate-program__game-item-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-affiliate-program__game-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.page-affiliate-program__game-button:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-affiliate-program__faq-section {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.page-affiliate-program__faq-section .page-affiliate-program__section-title {
    color: var(--primary-color);
}

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

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

.page-affiliate-program__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #2a2a2a;
  color: #f0f0f0;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-affiliate-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #3a3a3a;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-affiliate-program__faq-question:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

.page-affiliate-program__faq-question:active {
  background: #5a5a5a;
}

.page-affiliate-program__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Question text in brand color */
  pointer-events: none;
}

.page-affiliate-program__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-affiliate-program__faq-item.active .page-affiliate-program__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or similar for active */
}

.page-affiliate-program__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #f0f0f0;
    margin: 0;
}

/* Join CTA Section */
.page-affiliate-program__join-cta-section {
    background: linear-gradient(135deg, var(--primary-color), #FFA500);
    padding: 80px 20px;
    color: var(--text-dark);
}

.page-affiliate-program__join-cta-section .page-affiliate-program__section-title {
    color: var(--secondary-color);
    text-shadow: none;
}

.page-affiliate-program__join-cta-section .page-affiliate-program__text-block {
    color: var(--text-dark);
}

.page-affiliate-program__join-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-affiliate-program__main-title {
        font-size: 42px;
    }
    .page-affiliate-program__section-title {
        font-size: 34px;
    }
    .page-affiliate-program__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-affiliate-program__card-icon {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .page-affiliate-program__hero-section {
        padding-top: 160px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-affiliate-program__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-affiliate-program__main-description {
        font-size: 16px;
    }
    .page-affiliate-program__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-affiliate-program__section {
        padding: 40px 15px;
    }
    .page-affiliate-program__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-affiliate-program__text-block {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-affiliate-program__grid, .page-affiliate-program__steps-grid, .page-affiliate-program__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-affiliate-program__card, .page-affiliate-program__step-card, .page-affiliate-program__game-card-item {
        padding: 25px;
    }
    .page-affiliate-program__card-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    .page-affiliate-program__card-title, .page-affiliate-program__step-title {
        font-size: 20px;
    }
    .page-affiliate-program__card-text, .page-affiliate-program__step-description, .page-affiliate-program__game-item-description {
        font-size: 15px;
    }
    .page-affiliate-program__step-number {
        width: 50px;
        height: 50px;
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-affiliate-program__step-button, .page-affiliate-program__game-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .page-affiliate-program__game-image {
        height: 180px;
    }
    .page-affiliate-program__faq-question {
        padding: 15px 20px;
    }
    .page-affiliate-program__faq-question h3 {
        font-size: 16px;
    }
    .page-affiliate-program__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-affiliate-program__faq-item.active .page-affiliate-program__faq-answer {
        padding: 15px !important;
    }
    .page-affiliate-program__faq-answer p {
        font-size: 14px;
    }
    .page-affiliate-program__join-cta-section {
        padding: 60px 15px;
    }
    .page-affiliate-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-affiliate-program__container, .page-affiliate-program__card, .page-affiliate-program__section, .page-affiliate-program__hero-section, .page-affiliate-program__faq-list, .page-affiliate-program__join-cta-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-affiliate-program__hero-image img {
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .page-affiliate-program__main-title {
        font-size: 28px;
    }
    .page-affiliate-program__section-title {
        font-size: 24px;
    }
    .page-affiliate-program__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-affiliate-program__card-title, .page-affiliate-program__step-title {
        font-size: 18px;
    }
    .page-affiliate-program__game-image {
        height: 160px;
    }
}