/* style/promotions-referral.css */

.page-promotions-referral {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f8f9fa;
}

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

.page-promotions-referral__section-title {
    font-size: 2.5em;
    color: #007bff; /* Primary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions-referral__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #ffc107; /* Secondary color */
    border-radius: 2px;
}

.page-promotions-referral__description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 50px;
    color: #555;
}

.page-promotions-referral__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.page-promotions-referral__btn--primary {
    background-color: #007bff; /* Primary color */
    color: #ffffff;
}

.page-promotions-referral__btn--primary:hover {
    background-color: #0056b3; /* Darker primary */
    transform: translateY(-2px);
}

.page-promotions-referral__btn--secondary {
    background-color: #ffc107; /* Secondary color */
    color: #333;
    border: 1px solid #ffc107;
}

.page-promotions-referral__btn--secondary:hover {
    background-color: #e0a800; /* Darker secondary */
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions-referral__btn--center {
    display: block;
    margin: 30px auto 0 auto;
    width: fit-content;
}

.page-promotions-referral__link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions-referral__link:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-promotions-referral__hero {
    background: linear-gradient(135deg, #007bff, #3498db); /* Primary gradient */
    color: #ffffff;
    padding: 100px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-promotions-referral__hero-content {
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions-referral__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    color: #ffffff;
}

.page-promotions-referral__hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-promotions-referral__hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-promotions-referral__hero-image-wrapper {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    max-width: 600px;
    opacity: 0.2;
    z-index: 0;
}

.page-promotions-referral__hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* About Section */
.page-promotions-referral__about {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-promotions-referral__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-promotions-referral__text-content p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #444;
}

.page-promotions-referral__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* How It Works Section */
.page-promotions-referral__how-it-works {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blue background */
}

.page-promotions-referral__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions-referral__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-promotions-referral__step-card:hover {
    transform: translateY(-5px);
}

.page-promotions-referral__step-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #007bff; /* Primary color for icons */
}

.page-promotions-referral__step-title {
    font-size: 1.4em;
    color: #007bff; /* Primary color */
    margin-bottom: 15px;
}

.page-promotions-referral__step-card p {
    color: #555;
    font-size: 0.95em;
}

.page-promotions-referral__cta-text {
    text-align: center;
    font-size: 1.2em;
    margin-top: 50px;
    color: #333;
    font-weight: bold;
}

/* Rewards Section */
.page-promotions-referral__rewards {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-promotions-referral__rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions-referral__reward-card {
    background-color: #fff8e1; /* Light secondary color background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #ffc107;
}

.page-promotions-referral__reward-card:hover {
    transform: translateY(-5px);
}

.page-promotions-referral__reward-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: #ffc107; /* Secondary color for icons */
}

.page-promotions-referral__reward-title {
    font-size: 1.4em;
    color: #b38705; /* Darker shade of secondary for contrast */
    margin-bottom: 15px;
}

.page-promotions-referral__reward-card p {
    color: #666;
    font-size: 0.95em;
}

/* FAQ Section */
.page-promotions-referral__faq {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.page-promotions-referral__faq-item {
    background-color: #ffffff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions-referral__faq-question {
    font-size: 1.2em;
    color: #007bff; /* Primary color */
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-promotions-referral__faq-question::after {
    content: '+';
    font-size: 1.5em;
    font-weight: bold;
    color: #ffc107;
    transition: transform 0.3s ease;
}

.page-promotions-referral__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-promotions-referral__faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding-top: 0;
}

.page-promotions-referral__faq-answer.active {
    max-height: 200px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* Final CTA Section */
.page-promotions-referral__cta-final {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Darker primary gradient */
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-promotions-referral__cta-final .page-promotions-referral__section-title {
    color: #ffffff;
}

.page-promotions-referral__cta-final .page-promotions-referral__section-title::after {
    background-color: #ffc107;
}

.page-promotions-referral__cta-final .page-promotions-referral__description {
    color: #e0e0e0;
    margin-bottom: 40px;
}

.page-promotions-referral__cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-promotions-referral__cta-actions .page-promotions-referral__btn--secondary {
    background-color: #ffc107;
    color: #333;
}

.page-promotions-referral__cta-actions .page-promotions-referral__btn--secondary:hover {
    background-color: #e0a800;
    color: #ffffff;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .page-promotions-referral__grid {
        grid-template-columns: 1fr 1fr;
    }

    .page-promotions-referral__text-content {
        order: 1;
    }

    .page-promotions-referral__image-content {
        order: 2;
    }

    .page-promotions-referral__about .page-promotions-referral__grid:nth-child(even) .page-promotions-referral__text-content {
        order: 2;
    }

    .page-promotions-referral__about .page-promotions-referral__grid:nth-child(even) .page-promotions-referral__image-content {
        order: 1;
    }

    .page-promotions-referral__hero-image-wrapper {
        width: 30%;
    }
}

@media (max-width: 767px) {
    .page-promotions-referral__hero-title {
        font-size: 2.5em;
    }

    .page-promotions-referral__hero-subtitle {
        font-size: 1.2em;
    }

    .page-promotions-referral__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions-referral__btn {
        width: 100%;
        max-width: 300px;
    }

    .page-promotions-referral__section-title {
        font-size: 2em;
    }

    .page-promotions-referral__description {
        font-size: 1em;
    }

    .page-promotions-referral__hero-image-wrapper {
        display: none;
    }

    .page-promotions-referral__cta-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions-referral__cta-actions .page-promotions-referral__btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Ensure color contrast for all text elements */
.page-promotions-referral h1, .page-promotions-referral h2, .page-promotions-referral h3 {
    color: #007bff; /* Primary color */
}

.page-promotions-referral p, .page-promotions-referral li {
    color: #333;
}

.page-promotions-referral__hero-title, .page-promotions-referral__hero-subtitle {
    color: #ffffff;
}

.page-promotions-referral__btn--primary {
    color: #ffffff; /* White text on primary blue button */
}

.page-promotions-referral__btn--secondary {
    color: #333; /* Dark text on secondary yellow button */
}

.page-promotions-referral__cta-final .page-promotions-referral__section-title,
.page-promotions-referral__cta-final .page-promotions-referral__description {
    color: #ffffff;
}

.page-promotions-referral__reward-title {
    color: #b38705; /* Darker yellow for better contrast on light yellow background */
}

.page-promotions-referral__reward-card p {
    color: #666; /* Darker grey for better contrast on light yellow background */
}