/* style/promotions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.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 */
    padding-top: var(--header-offset, 120px); /* Fixed header offset for desktop */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    color: #f0f0f0;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #1a7bb0); /* Gradient for hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

.page-promotions__hero-section .page-promotions__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-promotions__hero-cta {
    margin-top: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%; /* For responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-promotions__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
}

.page-promotions__btn-primary:hover {
    background-color: #1a7bb0;
    border-color: #1a7bb0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 60px 0;
}

/* Card Grid Sections */
.page-promotions__welcome-bonus-section,
.page-promotions__existing-member-section,
.page-promotions__why-choose-section {
    padding: 60px 0;
}

.page-promotions__card-grid,
.page-promotions__features-grid,
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card,
.page-promotions__feature-item,
.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible on dark body bg */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for cards on dark background */
}

.page-promotions__card:hover,
.page-promotions__feature-item:hover,
.page-promotions__step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

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

.page-promotions__card-text,
.page-promotions__feature-text,
.page-promotions__step-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow text to take up space */
}

.page-promotions__card .page-promotions__btn-primary {
    margin-top: auto; /* Push button to bottom */
    width: auto;
    align-self: stretch; /* Make button fill card width */
    margin-top: 20px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 60px 0;
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Video Section */
.page-promotions__video-section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video */
    margin: 30px auto 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    cursor: pointer;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.page-promotions__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(0,0,0,0); /* Transparent overlay */
    transition: background 0.3s ease;
}

.page-promotions__video-overlay-link:hover {
    background: rgba(0,0,0,0.2); /* Slight overlay on hover */
}


/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible on dark body bg */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #ffffff; /* Light text for FAQ items */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.15); /* Subtle brand color */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
    font-weight: bold;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFFFF;
    transition: transform 0.3s ease;
    line-height: 1;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value for content */
    padding: 15px 25px;
}

.page-promotions__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Space at the end of answer */
    color: #f0f0f0;
}

/* Why Choose Section */
.page-promotions__feature-icon {
    width: 80px; /* Increased size from typical icon */
    height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Light background for contrast */
    padding: 30px;
    border-radius: 12px;
    color: #ffffff;
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a7bb0, #26A9E0); /* Gradient for hero background */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.page-promotions__cta-final-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

.page-promotions__cta-final-section .page-promotions__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-promotions__cta-final-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Color Contrast Fixes */
.page-promotions__dark-bg {
    background-color: #0d1117; /* Dark background from shared.css body */
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    color: #333333;
}
/* Overwrite for text in light-bg sections */
.page-promotions__light-bg .page-promotions__section-title {
    color: #26A9E0;
}
.page-promotions__light-bg .page-promotions__text-block {
    color: #333333;
}
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__feature-title,
.page-promotions__light-bg .page-promotions__step-title {
    color: #26A9E0;
}
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__feature-text,
.page-promotions__light-bg .page-promotions__step-text {
    color: #333333;
}
.page-promotions__light-bg .page-promotions__card {
    background-color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.page-promotions__light-bg .page-promotions__feature-item {
    background-color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.page-promotions__light-bg .page-promotions__step-item {
    background-color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.page-promotions__light-bg .page-promotions__faq-item {
    background-color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.page-promotions__light-bg .page-promotions__faq-question {
    background-color: #e0f2f7; /* Light blue for question */
    border-bottom: 1px solid #d0e7ed;
}
.page-promotions__light-bg .page-promotions__faq-question h3 {
    color: #26A9E0;
}
.page-promotions__light-bg .page-promotions__faq-toggle {
    color: #26A9E0;
}
.page-promotions__light-bg .page-promotions__faq-answer p {
    color: #333333;
}


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

@media (max-width: 768px) {
    .page-promotions {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 60px 0;
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important; /* Remove margin for stacked buttons */
    }
    .page-promotions__cta-final-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }
    .page-promotions__card-grid,
    .page-promotions__features-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 0 15px; /* Add padding to container for cards */
    }
    .page-promotions__card,
    .page-promotions__feature-item,
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__card-image,
    .page-promotions__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        display: block !important;
        object-fit: cover !important; /* Ensure image covers space */
    }
    .page-promotions__video-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__intro-section .page-promotions__container,
    .page-promotions__welcome-bonus-section .page-promotions__container,
    .page-promotions__existing-member-section .page-promotions__container,
    .page-promotions__how-to-claim-section .page-promotions__container,
    .page-promotions__why-choose-section .page-promotions__container,
    .page-promotions__cta-final-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}