/* style/promotions.css */

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

/* Base styles for the page content, ensuring light text on dark body background */
.page-promotions {
    background-color: var(--color-bg); /* Dark background */
    color: var(--color-text-main); /* Light text for main content */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.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 above text */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--color-deep-green); /* A slightly different dark background for hero */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive H1 font size */
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Section Titles */
.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-gold); /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    font-weight: bold;
}

/* Text Blocks */
.page-promotions__text-block {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

/* Card Grid */
.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions__card {
    background-color: var(--color-card-bg); /* Dark card background */
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-glow);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    min-height: 200px; /* Enforce minimum size */
}

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

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* Light text on dark gradient */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 15px var(--color-glow);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-primary); /* Brand green text */
    border: 2px solid var(--color-primary);
    margin-left: 15px; /* Spacing for multiple buttons */
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

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

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

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

/* FAQ Section */
.page-promotions__faq-section {
    padding-bottom: 60px;
}

.page-promotions__faq-list {
    margin-top: 30px;
    max-width: 800px;
    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-item[open] {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--color-glow);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    color: var(--color-text-main);
    font-weight: bold;
    cursor: pointer;
    background-color: var(--color-card-bg); /* Ensure summary background is dark */
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--color-deep-green); /* Slightly darker when open */
    color: var(--color-gold);
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-gold);
    min-width: 20px;
    text-align: center;
}

/* Hide default details marker */
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-promotions__faq-item summary::marker {
    display: none;
}

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

.page-promotions__faq-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-promotions__faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    min-height: 200px; /* Enforce minimum size */
}

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

.page-promotions__benefits-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__benefits-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-glow);
}

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

.page-promotions__benefits-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.page-promotions__cta-final {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px dashed var(--color-divider);
}

.page-promotions__cta-text {
    font-size: 1.2rem;
    color: var(--color-text-main);
    margin-bottom: 30px;
    font-weight: bold;
}


/* --- Responsive Design --- */

/* Tablet (max-width: 1024px) */
@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__card-grid,
    .page-promotions__steps-list,
    .page-promotions__benefits-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* General content padding */
    .page-promotions__container,
    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Fixed header spacing - body already handles padding-top */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding for hero */
        padding-bottom: 40px;
    }

    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
        max-height: 300px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__faq-answer p,
    .page-promotions__benefits-description {
        font-size: 0.9rem;
    }

    /* Images 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-section,
    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__why-choose-section {
        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__card-image {
        height: 150px; /* Adjust height for mobile cards */
    }

    /* Buttons responsiveness */
    .page-promotions__cta-button,
    .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;
        margin-left: 0 !important; /* Remove left margin for stacked buttons */
    }
    
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        overflow: hidden !important;
    }

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

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

    .page-promotions__faq-image {
        min-height: 200px; /* Maintain minimum size for mobile */
    }
}