/* style/promotions.css */

/* Custom Properties based on brand colors */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --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;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-background);
    color: var(--color-text-main); /* Default text color for the page */
    line-height: 1.6;
    padding-top: 0; /* body padding-top handles header offset */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles main offset */
    box-sizing: border-box;
    overflow: hidden;
}

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

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

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

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--color-gold); /* Using gold for H1 to stand out */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    box-shadow: 0 0 15px var(--color-glow);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start);
    border: 2px solid var(--color-button-gradient-start);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: var(--color-text-main);
    box-shadow: 0 0 15px var(--color-glow);
    transform: translateY(-2px);
}

.page-promotions__btn-large {
    min-width: 250px;
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-promotions__inline-link {
    color: var(--color-secondary);
    text-decoration: underline;
    padding: 0;
    border: none;
    background: none;
    font-weight: normal;
}
.page-promotions__inline-link:hover {
    color: var(--color-gold);
    text-decoration: none;
}


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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-gold);
    line-height: 1.3;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

.page-promotions__dark-section {
    background-color: var(--color-deep-green); /* Using deep green for contrast */
    padding: 80px 0;
    color: var(--color-text-main);
}

.page-promotions__light-section {
    background-color: var(--color-card-bg); /* Using card bg for a slightly lighter dark section */
    padding: 80px 0;
    color: var(--color-text-main);
}

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

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

.page-promotions__card {
    background-color: var(--color-card-bg); /* Card background */
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

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

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Max width for card images */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

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

.page-promotions__card-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Make text block grow to push button to bottom */
}

.page-promotions__card-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 15px; /* Space from text */
}

/* Why Choose Section */
.page-promotions__reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__reason-item {
    background-color: var(--color-background); /* Slightly darker background for reasons */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

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

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

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

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

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    box-sizing: border-box;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-button-gradient-start);
    color: var(--color-text-main);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(42, 209, 111, 0.5);
}

.page-promotions__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 15px;
}

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

.page-promotions__how-to-cta {
    text-align: center;
    margin-top: 50px;
}

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

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    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: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
    position: relative;
}
.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-question::marker {
    display: none;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--color-deep-green);
}

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__categories-section,
    .page-promotions__why-choose-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container */
        box-sizing: border-box;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        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__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }


    /* Image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper { /* Ensure image containers are also responsive */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__card-image {
        padding-left: 0;
        padding-right: 0;
    }

    /* Video responsiveness (if any, though none currently in HTML) */
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__grid,
    .page-promotions__reason-grid,
    .page-promotions__steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card,
    .page-promotions__reason-item,
    .page-promotions__step-item {
        padding: 20px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
}