/* style/promotions.css */

/* Custom Colors */
:root {
    --pg9-primary-color: #11A84E;
    --pg9-secondary-color: #22C768;
    --pg9-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --pg9-card-bg: #11271B;
    --pg9-background: #08160F;
    --pg9-text-main: #F2FFF6;
    --pg9-text-secondary: #A7D9B8;
    --pg9-border-color: #2E7A4E;
    --pg9-glow-color: #57E38D;
    --pg9-gold-color: #F2C14E;
    --pg9-divider-color: #1E3A2A;
    --pg9-deep-green: #0A4B2C;

    /* For contrast checking - assuming shared.css body background is dark */
    --body-bg-is-dark: var(--pg9-background); /* Example: #08160F is dark */
    --default-text-color: var(--pg9-text-main); /* F2FFF6 for dark background */
    --default-link-color: var(--pg9-gold-color); /* F2C14E for contrast */
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--default-text-color); /* Default text color for the page */
    background-color: var(--pg9-background); /* Page specific background */
}

/* Typography */
.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 */
    font-weight: 700;
    line-height: 1.2;
    color: var(--pg9-gold-color); /* Gold for main title */
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--pg9-text-main);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-promotions__hero-description,
.page-promotions__text-block,
.page-promotions__card-description,
.page-promotions__step-description,
.page-promotions__faq-answer p,
.page-promotions__terms-list li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--pg9-text-secondary);
    margin-bottom: 15px;
}

.page-promotions__terms-list strong {
    color: var(--pg9-text-main);
}

/* Layout Containers */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 0; /* Adjust padding as needed */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--pg9-background);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px; /* Space between image and content */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

/* CTA Buttons */
.page-promotions__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--pg9-button-gradient);
    color: var(--pg9-text-main); /* F2FFF6 */
    border: none;
}

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

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--pg9-gold-color); /* F2C14E */
    border: 2px solid var(--pg9-gold-color);
}

.page-promotions__btn-secondary:hover {
    background: var(--pg9-gold-color);
    color: var(--pg9-background); /* 08160F */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 80px 0;
    background-color: var(--pg9-background);
}

/* Promotion Grid Section */
.page-promotions__promotion-grid {
    padding: 80px 0;
    background-color: var(--pg9-card-bg); /* Darker background for contrast */
}

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

.page-promotions__promo-card {
    background-color: var(--pg9-background); /* Card background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

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

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--pg9-gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-description {
    flex-grow: 1;
    margin-bottom: 20px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--pg9-background);
}

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

.page-promotions__step-card {
    background-color: var(--pg9-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--pg9-button-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--pg9-text-main);
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--pg9-gold-color);
    margin-bottom: 10px;
}

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

/* Terms Summary Section */
.page-promotions__terms-summary-section {
    padding: 80px 0;
    background-color: var(--pg9-deep-green); /* Lighter green for contrast */
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-left: 20px;
}

.page-promotions__terms-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--pg9-text-secondary);
}

.page-promotions__terms-list li::before {
    content: '•'; /* Bullet point */
    position: absolute;
    left: 0;
    color: var(--pg9-gold-color);
    font-size: 1.5rem;
    line-height: 1;
}


/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--pg9-background);
}

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

.page-promotions__faq-item {
    background-color: var(--pg9-card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    color: var(--pg9-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--pg9-deep-green);
    border-bottom: 1px solid var(--pg9-divider-color);
    color: var(--pg9-text-main);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--pg9-divider-color);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--pg9-text-main);
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1;
    margin-left: 15px;
    color: var(--pg9-gold-color);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X-like on open */
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--pg9-text-secondary);
    background-color: var(--pg9-card-bg);
}

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


/* Final CTA Section */
.page-promotions__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--pg9-card-bg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-promotions__hero-section {
        padding: 40px 0;
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 30px;
    }
    .page-promotions__grid-wrapper {
        gap: 25px;
    }
    .page-promotions__promo-card {
        margin: 0 auto; /* Center cards if they don't fill the grid */
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual padding */
        padding-bottom: 40px;
    }
    .page-promotions__container {
        padding: 0 15px !important;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 25px;
    }
    .page-promotions__hero-description,
    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__faq-answer p,
    .page-promotions__terms-list li {
        font-size: 1rem;
        line-height: 1.5;
    }
    .page-promotions__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 25px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__promo-card {
        width: 100%; /* Full width cards */
    }
    .page-promotions__promo-image {
        height: 200px; /* Adjust image height for mobile */
    }
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__promo-card .page-promotions__card-content a,
    .page-promotions__how-to-claim-section .page-promotions__cta-bottom a,
    .page-promotions__terms-summary-section .page-promotions__cta-bottom a {
        width: auto !important; /* Allow these buttons to be auto width if needed, or specify 100% */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-card,
    .page-promotions__promo-card .page-promotions__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-summary-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding: 40px 0;
    }
    .page-promotions__overview-section {
        padding: 40px 0;
    }
    .page-promotions__promo-card .page-promotions__card-content {
        padding: 15px;
    }
    .page-promotions__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
    .page-promotions__steps-grid {
        gap: 20px;
    }
    .page-promotions__step-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }
    .page-promotions__hero-description {
        font-size: 0.95rem;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
    }
}

/* Color Contrast Enforcement (based on dark body background) */
/* All text is already set to --pg9-text-main or --pg9-text-secondary, which are light colors. */
/* Backgrounds are --pg9-background, --pg9-card-bg, --pg9-deep-green, all dark. */
/* Buttons use gradient and gold border, with light text. */
/* This ensures good contrast for the chosen color scheme on a dark background. */