/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#1a1a1a) */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #017439; /* Brand primary color for hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}

.page-promotions__hero-content {
    max-width: 700px;
    color: #ffffff; /* White text on brand primary background */
    flex: 1 1 50%;
    min-width: 300px;
}

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

.page-promotions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__btn-register,
.page-promotions__btn-deposit,
.page-promotions__btn-view-promos,
.page-promotions__btn-learn-more {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button doesn't overflow container */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

.page-promotions__hero-image-wrapper {
    flex: 1 1 40%;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

/* General Section Styles */
.page-promotions__section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: #1a1a1a; /* Dark background from shared.css */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff; /* Light text for dark background */
}

.page-promotions__section-title {
    font-size: 2.2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.05em;
    color: #e0e0e0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Cards Grid */
.page-promotions__cards-grid,
.page-promotions__steps-grid,
.page-promotions__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions__card,
.page-promotions__step-card,
.page-promotions__feature-card {
    background-color: #2a2a2a; /* Slightly lighter dark for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card-image,
.page-promotions__step-image,
.page-promotions__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    object-fit: cover;
}

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__feature-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text,
.page-promotions__step-text,
.page-promotions__feature-text {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to take up available space */
}

.page-promotions__card-button,
.page-promotions__btn-register,
.page-promotions__btn-deposit,
.page-promotions__btn-view-promos,
.page-promotions__btn-learn-more {
    margin-top: auto; /* Push button to bottom */
    background-color: #017439; /* Brand primary color for card buttons */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    border-radius: 5px;
}

.page-promotions__card-button:hover,
.page-promotions__btn-register:hover,
.page-promotions__btn-deposit:hover,
.page-promotions__btn-view-promos:hover,
.page-promotions__btn-learn-more:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Specific button colors for steps */
.page-promotions__btn-register,
.page-promotions__btn-deposit {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border-color: #C30808;
}
.page-promotions__btn-register:hover,
.page-promotions__btn-deposit:hover {
    background-color: #a00606;
    border-color: #a00606;
}


/* Terms and Conditions Section */
.page-promotions__terms {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-promotions__terms-content {
    padding: 20px;
}

.page-promotions__terms-list {
    list-style: disc;
    margin-left: 25px;
    padding: 0;
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__terms-item strong {
    color: #ffffff;
}

.page-promotions__terms-link {
    color: #FFFF00; /* Yellow for links on dark background for visibility */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions__terms-link:hover {
    color: #ffffff;
}

.page-promotions__terms-note {
    margin-top: 30px;
    font-size: 1em;
    color: #f0f0f0;
}

/* Why Choose Section (features) - similar to cards */
.page-promotions__features-grid {
    margin-top: 30px;
}

/* FAQ Section */
.page-promotions__faq {
    background-color: #2a2a2a; /* Darker background for FAQ section */
    color: #ffffff;
}

.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: #1a1a1a; /* Even darker for individual FAQ items */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand primary for question background */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #005a2e;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promotions__faq-answer {
    padding: 15px 25px 25px;
    font-size: 0.95em;
    color: #e0e0e0;
    background-color: #1a1a1a; /* Dark background for answer */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide default details marker */
.page-promotions__faq-item summary {
    list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-promotions__hero-content,
    .page-promotions__hero-image-wrapper {
        flex: 1 1 100%;
        min-width: unset;
    }

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

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button,
    .page-promotions__btn-register,
    .page-promotions__btn-deposit,
    .page-promotions__btn-view-promos,
    .page-promotions__btn-learn-more {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section {
        margin: 20px auto;
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }
}