/* style/promo.css */

/* Ensure main content starts below the fixed header */
.page-promo {
    padding-top: var(--header-offset, 120px); /* Default for desktop, adjusted by JS */
    color: #333333; /* Dark text on default white body background */
    background-color: #FFFFFF; /* Explicitly set background for content area if needed, but shared.css usually handles body */
}

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    overflow: hidden;
    padding: 80px 20px 60px; /* Adjust padding as needed, ensuring content is not too close to edges */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #000000; /* Dark background for the hero section */
    color: #FFFFFF; /* Light text for dark background */
}

.page-promo__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6; /* Semi-transparent overlay for text readability */
}

.page-promo__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
}

.page-promo__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-promo__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FCBC45; /* Login button color for emphasis */
}

.page-promo__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #FFFFFF;
}

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

/* Buttons */
.page-promo__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    white-space: nowrap;
}

.page-promo__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for primary button */
    border: 2px solid #FCBC45;
}

.page-promo__button--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
    color: #000000;
}

.page-promo__button--secondary {
    background-color: transparent;
    color: #FFFFFF; /* Light text for secondary button */
    border: 2px solid #FFFFFF; /* White border for secondary button */
}

.page-promo__button--secondary:hover {
    background-color: #FFFFFF;
    color: #000000; /* Dark text on hover */
}

.page-promo__button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-promo__button--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-promo__button--center {
    display: block;
    margin: 40px auto 20px;
    max-width: 300px; /* Constrain width for centered buttons */
}

/* General Content Sections */
.page-promo__content-section {
    padding: 60px 20px;
    background-color: #FFFFFF; /* Light background for content sections */
    color: #333333; /* Dark text for light background */
}

.page-promo__content-section--welcome {
    background-color: #f8f8f8; /* Slightly off-white for visual separation */
}

.page-promo__container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-promo__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

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

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

/* Promo Cards */
.page-promo__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promo__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.page-promo__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.page-promo__card-title {
    font-size: 1.6em;
    color: #000000;
    margin: 0 20px 15px;
    line-height: 1.3;
}

.page-promo__card-description {
    font-size: 0.95em;
    color: #666666;
    margin: 0 20px 25px;
    line-height: 1.6;
}

/* Promo List (for deposit bonuses) */
.page-promo__promo-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.page-promo__promo-item {
    background-color: #f0f0f0;
    border-left: 5px solid #FCBC45;
    border-radius: 8px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-promo__promo-text {
    flex-grow: 1;
}

.page-promo__item-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 8px;
}

.page-promo__item-description {
    font-size: 0.9em;
    color: #555555;
    line-height: 1.5;
}

.page-promo__section-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 50px auto 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Features Grid (for cashback) */
.page-promo__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promo__feature-item {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
}

.page-promo__feature-item:hover {
    transform: translateY(-5px);
}

.page-promo__feature-title {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 15px;
}

.page-promo__feature-description {
    font-size: 0.95em;
    color: #666666;
    line-height: 1.6;
}

/* How to Claim Steps */
.page-promo__claim-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-promo__step-item {
    background-color: #f8f8f8;
    border-left: 6px solid #FCBC45;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.page-promo__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -15px; /* Adjust position to overlap border */
    top: 50%;
    transform: translateY(-50%);
    background-color: #FCBC45;
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promo__step-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
    padding-left: 35px; /* Space for the counter */
}

.page-promo__step-description {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
    padding-left: 35px; /* Space for the counter */
}

/* FAQ Section */
.page-promo__faq-items {
    margin-top: 40px;
}

.page-promo__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-promo__faq-item:hover {
    background-color: #f5f5f5;
    border-color: #FCBC45;
}

.page-promo__faq-question {
    font-size: 1.3em;
    color: #000000;
    margin-bottom: 10px;
    position: relative;
    padding-right: 30px; /* Space for an eventual icon */
}

.page-promo__faq-answer {
    font-size: 1em;
    color: #666666;
    line-height: 1.6;
    display: none; /* Hidden by default, toggled by JS */
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.page-promo__faq-item.page-promo__faq-item--active .page-promo__faq-answer {
    display: block;
}

/* Download CTA Section */
.page-promo__download-cta {
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* Light text */
    padding: 80px 20px;
    text-align: center;
}

.page-promo__download-cta-title {
    font-size: 3em;
    color: #FCBC45;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promo__download-cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promo__hero-title {
        font-size: 3em;
    }
    .page-promo__section-title {
        font-size: 2.2em;
    }
    .page-promo__download-cta-title {
        font-size: 2.5em;
    }
    .page-promo__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-promo {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
    }
    .page-promo__hero-section {
        padding: 60px 15px 40px;
    }
    .page-promo__hero-title {
        font-size: 2.5em;
    }
    .page-promo__hero-description {
        font-size: 1.1em;
    }
    .page-promo__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-promo__button {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    .page-promo__content-section {
        padding: 40px 15px;
    }
    .page-promo__section-title {
        font-size: 2em;
    }
    .page-promo__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-promo__promo-cards {
        grid-template-columns: 1fr;
    }
    .page-promo__promo-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
    }
    .page-promo__item-title {
        font-size: 1.3em;
        margin-bottom: 5px;
    }
    .page-promo__promo-text {
        margin-bottom: 15px;
    }
    .page-promo__features-grid {
        grid-template-columns: 1fr;
    }
    .page-promo__step-title {
        font-size: 1.3em;
    }
    .page-promo__faq-question {
        font-size: 1.1em;
    }
    .page-promo__download-cta {
        padding: 60px 15px;
    }
    .page-promo__download-cta-title {
        font-size: 2em;
    }
    .page-promo__download-cta-description {
        font-size: 1em;
    }

    /* Mobile image constraint */
    .page-promo img {
        max-width: 100%;
        height: auto;
    }
    /* Ensure content area images are not smaller than 200px display size */
    .page-promo__card-image,
    .page-promo__section-image {
        min-width: 200px; /* Enforce minimum display width */
        min-height: 200px; /* Enforce minimum display height */
        width: 100%; /* Allow scaling up to 100% of container */
        height: auto; /* Maintain aspect ratio */
        object-fit: cover;
    }
    /* Specific override for small buttons to prevent overriding min-width/height for images */
    .page-promo__button--small {
        min-width: unset;
        min-height: unset;
    }
}

@media (max-width: 480px) {
    .page-promo__hero-title {
        font-size: 2em;
    }
    .page-promo__section-title {
        font-size: 1.8em;
    }
    .page-promo__download-cta-title {
        font-size: 1.8em;
    }
}