/* style/promotions-referral.css */

:root {
    --page-promotions-referral-primary-color: #0A192F;
    --page-promotions-referral-secondary-color: #FFD700;
    --page-promotions-referral-text-light: #EEEEEE;
    --page-promotions-referral-text-dark: #333333;
    --page-promotions-referral-background-dark: #0A192F;
    --page-promotions-referral-background-light: #F8F8F8;
    --page-promotions-referral-accent-gold: #FFD700;
}

.page-promotions-referral {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-promotions-referral-text-light); /* Default text color on dark background */
    background-color: var(--page-promotions-referral-background-dark);
}

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

.page-promotions-referral-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-promotions-referral-section:nth-of-type(even) {
    background-color: #1a2a47; /* Slightly lighter dark background for contrast */
}

.page-promotions-referral-title,
.page-promotions-referral-heading {
    font-size: 3em;
    color: var(--page-promotions-referral-accent-gold);
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-promotions-referral-subtitle,
.page-promotions-referral-text {
    font-size: 1.1em;
    color: var(--page-promotions-referral-text-light);
    margin-bottom: 25px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions-referral-hero {
    background: linear-gradient(135deg, var(--page-promotions-referral-primary-color) 0%, #1a2a47 100%);
    padding: 100px 0 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-promotions-referral-hero-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-promotions-referral-btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 10px;
}

.page-promotions-referral-btn-primary {
    background-color: var(--page-promotions-referral-accent-gold);
    color: var(--page-promotions-referral-primary-color);
    border: 2px solid var(--page-promotions-referral-accent-gold);
}

.page-promotions-referral-btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions-referral-btn-secondary {
    background-color: #28a745; /* A vibrant green for secondary CTA */
    color: var(--page-promotions-referral-text-light);
    border: 2px solid #28a745;
}

.page-promotions-referral-btn-secondary:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(40, 167, 69, 0.4);
}

.page-promotions-referral-btn-outline {
    background-color: transparent;
    color: var(--page-promotions-referral-accent-gold);
    border: 2px solid var(--page-promotions-referral-accent-gold);
}

.page-promotions-referral-btn-outline:hover {
    background-color: var(--page-promotions-referral-accent-gold);
    color: var(--page-promotions-referral-primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions-referral-btn-large {
    padding: 18px 45px;
    font-size: 1.25em;
}

/* How It Works Section */
.page-promotions-referral-how-it-works {
    background-color: var(--page-promotions-referral-background-dark);
}

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

.page-promotions-referral-step-item {
    background-color: #1a2a47;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-referral-step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-icon-box {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--page-promotions-referral-accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-promotions-referral-step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--page-promotions-referral-primary-color);
    color: var(--page-promotions-referral-accent-gold);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1em;
}

.page-promotions-referral-step-icon {
    width: 50px;
    height: 50px;
    filter: invert(1);
}

.page-promotions-referral-step-title {
    font-size: 1.5em;
    color: var(--page-promotions-referral-accent-gold);
    margin-bottom: 10px;
}

.page-promotions-referral-step-description {
    font-size: 0.95em;
    color: var(--page-promotions-referral-text-light);
}

.page-promotions-referral-cta-block {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Rewards Details Section */
.page-promotions-referral-rewards-details {
    background-color: #1a2a47;
}

.page-promotions-referral-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions-referral-list li {
    background-color: var(--page-promotions-referral-primary-color);
    padding: 20px;
    margin-bottom: 15px;
    border-left: 5px solid var(--page-promotions-referral-accent-gold);
    border-radius: 8px;
    font-size: 1.05em;
    color: var(--page-promotions-referral-text-light);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions-referral-list li strong {
    color: var(--page-promotions-referral-accent-gold);
}

.page-promotions-referral-image-full-width {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Terms & Conditions Section */
.page-promotions-referral-terms {
    background-color: var(--page-promotions-referral-background-dark);
}

/* Why HB88 Section */
.page-promotions-referral-why-hb88 {
    background-color: #1a2a47;
}

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

.page-promotions-referral-grid-item {
    background-color: var(--page-promotions-referral-primary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-referral-grid-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions-referral-grid-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: invert(1) brightness(1.5); /* Make icons golden */
}

.page-promotions-referral-grid-title {
    font-size: 1.6em;
    color: var(--page-promotions-referral-accent-gold);
    margin-bottom: 10px;
}

.page-promotions-referral-grid-description {
    font-size: 0.95em;
    color: var(--page-promotions-referral-text-light);
}

.page-promotions-referral-text-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-promotions-referral-faq {
    background-color: var(--page-promotions-referral-background-dark);
}

.page-promotions-referral-faq-item {
    background-color: #1a2a47;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.page-promotions-referral-faq-question {
    font-size: 1.3em;
    color: var(--page-promotions-referral-accent-gold);
    padding: 20px;
    cursor: pointer;
    margin: 0;
    position: relative;
    transition: background-color 0.3s ease;
}

.page-promotions-referral-faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-promotions-referral-faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-promotions-referral-faq-answer {
    font-size: 1em;
    color: var(--page-promotions-referral-text-light);
    padding: 0 20px 20px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-promotions-referral-faq-answer.open {
    max-height: 200px; /* Adjust as needed */
    padding: 0 20px 20px;
}

/* Final CTA Section */
.page-promotions-referral-final-cta {
    background: linear-gradient(45deg, var(--page-promotions-referral-primary-color) 0%, #1a2a47 100%);
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-promotions-referral-title {
        font-size: 2.5em;
    }
    .page-promotions-referral-heading {
        font-size: 2.2em;
    }
    .page-promotions-referral-steps,
    .page-promotions-referral-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions-referral-title {
        font-size: 2em;
    }
    .page-promotions-referral-heading {
        font-size: 1.8em;
    }
    .page-promotions-referral-subtitle,
    .page-promotions-referral-text {
        font-size: 1em;
    }
    .page-promotions-referral-btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-promotions-referral-btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-promotions-referral-hero-image,
    .page-promotions-referral-image-full-width {
        max-width: 100%;
    }
    .page-promotions-referral-steps,
    .page-promotions-referral-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-promotions-referral-title {
        font-size: 1.8em;
    }
    .page-promotions-referral-heading {
        font-size: 1.6em;
    }
    .page-promotions-referral-section {
        padding: 40px 0;
    }
    .page-promotions-referral-btn {
        width: 100%;
        margin: 10px 0;
    }
}