/* style/promotions.css */

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

/* Base styles for the page content, assuming body has a background from shared.css */
.page-promotions {
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Override if body background is not dark enough */
    font-family: Arial, sans-serif;
}

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

/* Section common styles */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: bold;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles top padding */
    background-color: var(--color-deep-green);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    order: 1;
}

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

.page-promotions__hero-content {
    order: 2;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-promotions__hero-title {
    font-weight: bold;
    color: var(--color-gold);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-glow);
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.3rem;
}

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

/* Promotion Types Section */
.page-promotions__promotion-types {
    padding: 80px 0;
    background-color: var(--color-card-bg);
}

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

.page-promotions__promo-card {
    background-color: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-glow);
}

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

.page-promotions__promo-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-gold);
    padding: 20px 20px 10px 20px;
    line-height: 1.3;
}

.page-promotions__promo-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 0 20px 20px 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    margin: 0 20px 20px 20px;
    text-align: center;
    transition: background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: calc(100% - 40px); /* Account for padding */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

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

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

.page-promotions__how-to-claim .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__step-item {
    background-color: #ffffff;
    border: 1px solid var(--color-divider);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

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

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-deep-green);
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
}

.page-promotions__centered-cta {
    text-align: center;
    margin-top: 60px;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 800px;
}

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__text-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    color: var(--color-gold);
    text-decoration: underline;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-promotions__text-link:hover {
    color: var(--color-glow);
}

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

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--color-deep-green);
}

.page-promotions__faq-section .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__faq-item {
    background-color: #ffffff;
    border: 1px solid var(--color-divider);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-item summary {
    list-style: none;
}

.page-promotions__faq-item::-webkit-details-marker {
    display: none;
}

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

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-button-gradient);
}

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: #666666;
    line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-promotions__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-promotions__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-promotions__cta-button, .page-promotions__cta-button--large {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px !important;
        font-size: 1rem !important;
    }

    .page-promotions__centered-cta, .page-promotions__final-cta-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__promo-card {
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__promo-image {
        height: 200px;
    }

    .page-promotions__promo-title,
    .page-promotions__promo-text,
    .page-promotions__card-button {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-promotions__card-button {
        max-width: calc(100% - 30px) !important; /* Adjust for padding */
    }

    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }

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

    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-promotions__faq-toggle {
        font-size: 1.5rem;
    }

    .page-promotions__faq-answer {
        padding: 15px;
    }

    .page-promotions__overview-section,
    .page-promotions__promotion-types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: clamp(1.5rem, 9vw, 2.2rem);
    }

    .page-promotions__hero-description {
        font-size: 0.9rem;
    }

    .page-promotions__cta-button {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .page-promotions__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}