/* style/promotions.css */

/* Custom Color Variables */
:root {
    --page-promotions-bg: #08160F;
    --page-promotions-card-bg: #11271B;
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-promotions-border: #2E7A4E;
    --page-promotions-glow: #57E38D;
    --page-promotions-gold: #F2C14E;
    --page-promotions-divider: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;
}

.page-promotions {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Add some padding at the bottom for overall page */
}

/* Ensure body padding-top from shared.css is respected */
/* No direct padding-top: var(--header-offset) here */

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background elements */
    color: var(--page-promotions-text-main); /* Light text */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--page-promotions-gold); /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-promotions__description {
    font-size: 1.1rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff; /* White text on dark gradient */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-glow); /* Light green text */
    border: 2px solid var(--page-promotions-glow);
}

.page-promotions__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1); /* Slight background on hover */
    transform: translateY(-2px);
}

.page-promotions__section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    box-sizing: border-box;
    border-radius: 12px;
    background-color: var(--page-promotions-card-bg); /* Slightly lighter dark green background */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--page-promotions-gold);
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-promotions__section-intro {
    font-size: 1.1rem;
    color: var(--page-promotions-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__card {
    background-color: var(--page-promotions-deep-green); /* Even deeper green for cards */
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-promotions-text-main);
}

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Recommended max width for card images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none; /* No filter */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--page-promotions-glow);
    margin-bottom: 15px;
}

.page-promotions__card-text {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__promotion-category {
    margin-bottom: 60px;
    border-bottom: 1px dashed var(--page-promotions-divider);
    padding-bottom: 40px;
}

.page-promotions__promotion-category:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.page-promotions__category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--page-promotions-gold);
    text-align: center;
    margin-bottom: 30px;
}

.page-promotions__category-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__category-content--reversed {
    flex-direction: row-reverse;
}

.page-promotions__category-image {
    flex: 1;
    min-width: 300px; /* Minimum width for image */
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    filter: none; /* No filter */
    min-height: 200px; /* Min size requirement */
}

.page-promotions__category-text {
    flex: 2;
    color: var(--page-promotions-text-main);
}

.page-promotions__category-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.page-promotions__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--page-promotions-text-main);
}

.page-promotions__list li::before {
    content: '✅'; /* Green checkmark icon */
    position: absolute;
    left: 0;
    color: var(--page-promotions-glow);
}

.page-promotions__how-to-claim .page-promotions__section-title {
    color: var(--page-promotions-gold);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--page-promotions-deep-green);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-promotions-text-main);
}

.page-promotions__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--page-promotions-glow);
    margin-bottom: 15px;
}

.page-promotions__step-item p {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__step-item a {
    color: var(--page-promotions-glow);
    text-decoration: underline;
}

.page-promotions__step-item a:hover {
    color: var(--page-promotions-gold);
}

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

.page-promotions__terms-conditions .page-promotions__section-title {
    color: var(--page-promotions-gold);
}

.page-promotions__content-block {
    color: var(--page-promotions-text-main);
    background-color: var(--page-promotions-deep-green);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__content-block p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__content-block a {
    color: var(--page-promotions-glow);
    text-decoration: underline;
}

.page-promotions__content-block a:hover {
    color: var(--page-promotions-gold);
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
    color: var(--page-promotions-gold);
}

.page-promotions__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-promotions__faq-item {
    background-color: var(--page-promotions-deep-green);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-promotions-glow);
    cursor: pointer;
    list-style: none; /* For details/summary */
    padding-right: 10px; /* Space for toggle icon */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-promotions-gold);
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding-top: 15px;
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--page-promotions-divider);
    margin-top: 15px;
}

/* Final CTA */
.page-promotions__final-cta {
    text-align: center;
    padding-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        max-width: 768px;
    }
    .page-promotions__section {
        margin-left: 20px;
        margin-right: 20px;
    }
    .page-promotions__category-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__category-content--reversed {
        flex-direction: column; /* Keep consistent on smaller screens */
    }
    .page-promotions__category-image {
        max-width: 100%;
    }
    .page-promotions__category-text {
        flex: none;
        width: 100%;
    }
    .page-promotions__list {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-promotions__description {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__hero-image,
    .page-promotions__card-image,
    .page-promotions__category-image,
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter is applied */
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0 !important; /* No padding for full-width elements */
        padding-right: 0 !important; /* No padding for full-width elements */
    }
    
    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
    }
    .page-promotions__category-title {
        font-size: 1.6rem;
    }
    .page-promotions__step-title {
        font-size: 1.4rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__content-block {
        padding: 20px;
    }
}