/* style/promotions-referral-program.css */
:root {
    --primary-color: #0A2463;
    --secondary-color: #E3B505;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
    --background-dark: #0d0d0d;
    --border-color: #e0e0e0;
}

.page-promotions-referral-program {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--text-light); /* Body background is dark, so default text is light */
    background-color: var(--background-dark); /* Ensure overall page background is dark */
}

.page-promotions-referral-program__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Ensure first section has padding-top to avoid fixed header overlap */
.page-promotions-referral-program__intro-section {
    padding-top: 120px; /* Desktop padding for fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--background-dark));
    color: var(--text-light);
}

.page-promotions-referral-program__intro-section .page-promotions-referral-program__container {
    background: transparent; /* Container inside intro section should be transparent if section has background */
    box-shadow: none;
    padding-top: 0; /* Reset container padding-top */
}

.page-promotions-referral-program__light-bg {
    background: var(--background-light);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions-referral-program__dark-bg {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions-referral-program__main-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.3;
}

.page-promotions-referral-program__intro-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-promotions-referral-program__section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.page-promotions-referral-program__section-title--light {
    color: var(--text-light);
}

.page-promotions-referral-program__description-text {
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-dark);
}

.page-promotions-referral-program__description-text--light {
    color: var(--text-light);
}

.page-promotions-referral-program__highlight {
    color: var(--secondary-color);
}

.page-promotions-referral-program a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions-referral-program a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions-referral-program__cta-button {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    padding: 15px 35px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-promotions-referral-program__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.page-promotions-referral-program__btn-primary:hover {
    background: #FFC107; /* Slightly brighter yellow */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-program__btn-secondary {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-promotions-referral-program__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-program__closing-text {
    font-size: 17px;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-dark);
}

.page-promotions-referral-program__closing-text--light {
    color: var(--text-light);
}

/* How it works section */
.page-promotions-referral-program__how-it-works-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-promotions-referral-program__how-it-works-section .page-promotions-referral-program__container {
    background: transparent;
    box-shadow: none;
}

.page-promotions-referral-program__how-it-works-section .page-promotions-referral-program__section-title {
    color: var(--text-light);
}

.page-promotions-referral-program__how-it-works-section .page-promotions-referral-program__description-text {
    color: var(--text-light);
}

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

.page-promotions-referral-program__step-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-referral-program__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions-referral-program__step-icon {
    width: 150px; /* Minimum size 200x200px. This is an icon for steps, so it's a content image. */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-promotions-referral-program__step-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-dark);
}

/* Benefits section */
.page-promotions-referral-program__benefits-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-promotions-referral-program__benefits-section .page-promotions-referral-program__container {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions-referral-program__benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--text-light);
}

.page-promotions-referral-program__benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-promotions-referral-program__benefit-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-promotions-referral-program__benefit-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* Terms and Conditions section */
.page-promotions-referral-program__terms-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-promotions-referral-program__terms-section .page-promotions-referral-program__container {
    background: var(--background-light);
}

.page-promotions-referral-program__terms-section .page-promotions-referral-program__section-title {
    color: var(--primary-color);
}

.page-promotions-referral-program__terms-section .page-promotions-referral-program__description-text {
    color: var(--text-dark);
}

.page-promotions-referral-program__terms-list {
    list-style: disc inside;
    text-align: left;
    margin: 0 auto;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
}

.page-promotions-referral-program__terms-list li {
    margin-bottom: 10px;
}

/* Why Us section */
.page-promotions-referral-program__why-us-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-promotions-referral-program__why-us-section .page-promotions-referral-program__container {
    background: transparent;
    box-shadow: none;
}

.page-promotions-referral-program__why-us-section .page-promotions-referral-program__section-title {
    color: var(--text-light);
}

.page-promotions-referral-program__why-us-section .page-promotions-referral-program__description-text {
    color: var(--text-light);
}

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

.page-promotions-referral-program__feature-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-referral-program__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions-referral-program__feature-icon {
    width: 150px; /* Minimum size 200x200px. This is an icon for features, so it's a content image. */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-promotions-referral-program__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions-referral-program__feature-card.page-promotions-referral-program__light-bg .page-promotions-referral-program__feature-title {
    color: var(--primary-color);
}

.page-promotions-referral-program__feature-card.page-promotions-referral-program__light-bg .page-promotions-referral-program__feature-description {
    color: var(--text-dark);
}

/* FAQ section */
.page-promotions-referral-program__faq-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-promotions-referral-program__faq-section .page-promotions-referral-program__container {
    background: var(--background-light);
}

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

.page-promotions-referral-program__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-referral-program__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions-referral-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;
  padding: 0 15px;
  opacity: 0;
}

.page-promotions-referral-program__faq-item.active .page-promotions-referral-program__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-promotions-referral-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions-referral-program__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions-referral-program__faq-question:active {
  background: #eeeeee;
}

.page-promotions-referral-program__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-promotions-referral-program__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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: 28px;
  height: 28px;
}

.page-promotions-referral-program__faq-item.active .page-promotions-referral-program__faq-toggle {
  color: var(--primary-color);
}

.page-promotions-referral-program__faq-answer p {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
}

/* Bottom CTA section */
.page-promotions-referral-program__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--background-dark);
}

.page-promotions-referral-program__cta-bottom-section .page-promotions-referral-program__container {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-promotions-referral-program__cta-bottom-section .page-promotions-referral-program__section-title {
    color: var(--text-light);
}

.page-promotions-referral-program__cta-bottom-section .page-promotions-referral-program__description-text {
    color: var(--text-light);
}

.page-promotions-referral-program__cta-bottom-section .page-promotions-referral-program__cta-button {
    margin-bottom: 15px;
}

/* Global image responsive styles */
.page-promotions-referral-program img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-promotions-referral-program__container {
        padding: 30px 15px;
    }

    .page-promotions-referral-program__main-title {
        font-size: 32px;
    }

    .page-promotions-referral-program__intro-text {
        font-size: 16px;
    }

    .page-promotions-referral-program__section-title {
        font-size: 28px;
    }

    .page-promotions-referral-program__cta-button {
        padding: 12px 30px;
        font-size: 16px;
    }

    .page-promotions-referral-program__terms-list {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .page-promotions-referral-program__intro-section {
        padding-top: 100px !important; /* Mobile padding for fixed header */
    }

    .page-promotions-referral-program__main-title {
        font-size: 28px;
    }

    .page-promotions-referral-program__intro-text {
        font-size: 15px;
    }

    .page-promotions-referral-program__section-title {
        font-size: 24px;
    }

    .page-promotions-referral-program__description-text,
    .page-promotions-referral-program__closing-text {
        font-size: 14px;
    }

    .page-promotions-referral-program__step-card,
    .page-promotions-referral-program__benefit-item,
    .page-promotions-referral-program__feature-card {
        padding: 20px;
    }

    .page-promotions-referral-program__step-title,
    .page-promotions-referral-program__benefit-title,
    .page-promotions-referral-program__feature-title {
        font-size: 18px;
    }

    .page-promotions-referral-program__step-description,
    .page-promotions-referral-program__benefit-description,
    .page-promotions-referral-program__feature-description {
        font-size: 14px;
    }

    .page-promotions-referral-program__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-promotions-referral-program__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-promotions-referral-program__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-promotions-referral-program__faq-answer {
        padding: 0 15px;
    }
    
    .page-promotions-referral-program__faq-item.active .page-promotions-referral-program__faq-answer {
        padding: 15px !important;
    }

    /* Enforce image responsiveness */
    .page-promotions-referral-program img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions-referral-program__section,
    .page-promotions-referral-program__card,
    .page-promotions-referral-program__container,
    .page-promotions-referral-program__steps-grid,
    .page-promotions-referral-program__benefits-grid,
    .page-promotions-referral-program__features-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions-referral-program__step-icon,
    .page-promotions-referral-program__feature-icon {
        min-width: unset; /* Allow smaller images on mobile if needed, but still >= 200px */
        min-height: unset;
        width: 100%; /* Ensure they fill their container */
        max-width: 250px; /* Cap max width for smaller screens */
        height: auto;
    }
}