/* style/promotions.css */

/* Root variables for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-bg-card: #11271B;
    --color-bg-main: #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;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page, assuming dark body background */
    background-color: var(--color-bg-main); /* Assuming body background is dark */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--color-bg-main);
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of hero image wrapper */
    overflow: hidden;
    position: relative;
}

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

.page-promotions__hero-content {
    position: relative; /* Ensure content is above image wrapper if z-index is used, but per rules, it should be below in DOM */
    padding: 40px 20px;
    max-width: 800px;
    margin-top: -100px; /* Adjust to bring content closer to the image, without overlapping text on image */
    background: rgba(8, 22, 15, 0.9); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-promotions__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-promotions__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-bg-main);
}

/* General Section Styling */
.page-promotions__intro-section, 
.page-promotions__how-to-claim-section, 
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: var(--color-bg-main);
}

.page-promotions__types-section, 
.page-promotions__terms-section, 
.page-promotions__cta-final-section {
    padding: 60px 0;
    background-color: var(--color-bg-card); /* Darker background for contrast */
}

.page-promotions__dark-bg {
    background-color: var(--color-bg-card);
    color: var(--color-text-main);
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.5);
}

.page-promotions__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Feature List */
.page-promotions__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__feature-item-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    text-align: center;
}

.page-promotions__feature-list p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    text-align: center;
}

/* Promotion Cards */
.page-promotions__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

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

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

.page-promotions__card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How-To Steps */
.page-promotions__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__step-item {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-divider);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 15px var(--color-glow);
}

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

.page-promotions__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.page-promotions__step-description a {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-description a:hover {
    text-decoration: underline;
}

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

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__faq-item {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-divider);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-bg-card);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

details.page-promotions__faq-item > summary {
    list-style: none;
}
details.page-promotions__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question:hover {
    background-color: var(--color-deep-green);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-primary);
}

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

/* Final CTA Section */
.page-promotions__cta-final-section {
    text-align: center;
    padding: 80px 0;
}

.page-promotions__cta-final-section .page-promotions__text-block {
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }
    .page-promotions__main-title {
        font-size: 2.8rem;
    }
    .page-promotions__section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        border-radius: 8px;
    }
    .page-promotions__main-title {
        font-size: 2.2rem;
    }
    .page-promotions__subtitle {
        font-size: 1rem;
    }
    .page-promotions__btn-primary, .page-promotions__btn-secondary {
        width: 100% !important;
        max-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__promotion-cards, .page-promotions__steps, .page-promotions__feature-list {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-content {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
    }
    .page-promotions__text-block {
        font-size: 1rem;
    }
    .page-promotions__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile image and container responsiveness */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section,
    .page-promotions__card,
    .page-promotions__step-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;
        overflow-x: hidden;
    }
    .page-promotions__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8rem;
    }
    .page-promotions__section-title {
        font-size: 1.6rem;
    }
    .page-promotions__btn-primary {
        font-size: 1rem;
        padding: 12px 25px;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 12px 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 12px 15px;
    }
    .page-promotions__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}