/* style/promotions.css */

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

.page-promotions {
    background-color: var(--promotions-background); /* Dark background */
    color: var(--promotions-text-main); /* Light text for dark background */
    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 on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
}

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

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

.page-promotions__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background layers */
    color: var(--promotions-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    color: var(--promotions-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px; /* Constrain button group width */
    margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--promotions-button-gradient);
    color: #ffffff; /* White text for dark button */
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
    background: var(--promotions-gold);
    color: var(--promotions-background); /* Dark text for gold button */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Sections */
.page-promotions__section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: var(--promotions-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

.page-promotions__dark-section {
    background-color: var(--promotions-deep-green); /* A slightly different dark green */
    padding: 80px 0;
}

/* Benefits Section */
.page-promotions__benefits-section {
    padding: 80px 0;
}

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

.page-promotions__benefit-card {
    background: var(--promotions-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--promotions-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-promotions__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__benefit-icon {
    width: 100%; /* Make sure images are responsive */
    height: auto;
    max-width: 250px; /* Constrain max width for icons */
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 80px 0;
    background-color: var(--promotions-background);
}

.page-promotions__promotion-list {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for items */
    gap: 60px;
    margin-top: 40px;
}

.page-promotions__promotion-item {
    display: flex;
    flex-direction: column; /* Default to column for consistency, will change for desktop */
    align-items: center;
    background: var(--promotions-card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--promotions-border);
    box-sizing: border-box;
}

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

.page-promotions__promotion-content {
    padding: 30px;
    text-align: center;
}

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

.page-promotions__promotion-text {
    font-size: 1.05rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 25px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
}

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

.page-promotions__step-card {
    background: var(--promotions-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--promotions-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-promotions__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__step-card a {
    color: var(--promotions-gold);
    text-decoration: underline;
}

.page-promotions__step-card a:hover {
    color: var(--promotions-text-main);
}

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

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

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

.page-promotions__faq-item {
    background: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--promotions-text-main);
    background-color: var(--promotions-deep-green);
    transition: background-color 0.3s ease;
    user-select: none; /* Prevent text selection on click */
}

.page-promotions__faq-question:hover {
    background-color: #1a4d33; /* Slightly lighter deep green on hover */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: #1a4d33;
}

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    background-color: var(--promotions-card-bg);
    color: var(--promotions-text-secondary);
    border-top: 1px solid var(--promotions-border);
}

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

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

.page-promotions__cta-final-section .page-promotions__cta-buttons {
    margin-top: 40px;
}

.page-promotions__cta-final-section a {
    color: var(--promotions-gold);
    text-decoration: underline;
}

.page-promotions__cta-final-section a:hover {
    color: var(--promotions-text-main);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions__promotion-item {
        flex-direction: row; /* Horizontal layout for desktop */
        align-items: stretch; /* Ensure items stretch to fill height */
    }

    .page-promotions__promotion-item:nth-child(even) {
        flex-direction: row-reverse; /* Alternate image position */
    }

    .page-promotions__promotion-image {
        width: 50%;
        height: auto;
    }

    .page-promotions__promotion-content {
        width: 50%;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
    }

    .page-promotions__promotion-item:nth-child(even) .page-promotions__promotion-content {
        padding-left: 40px;
        padding-right: 20px;
    }
    .page-promotions__promotion-item:nth-child(odd) .page-promotions__promotion-content {
        padding-right: 40px;
        padding-left: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: row;
    }
}


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

    .page-promotions__hero-section,
    .page-promotions__benefits-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions__main-title {
        font-size: 2rem;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .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; /* Add internal padding to buttons */
        padding-right: 15px;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
    }

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

    .page-promotions__benefit-icon,
    .page-promotions__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__benefit-card,
    .page-promotions__promotion-item,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__promotion-content {
        padding: 20px;
    }

    .page-promotions__promotion-title {
        font-size: 1.5rem;
    }

    .page-promotions__promotion-text {
        font-size: 0.95rem;
    }

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

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

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

    /* Ensure content area images CSS dimensions are not smaller than 200px */
    .page-promotions__benefits-section img,
    .page-promotions__types-section img,
    .page-promotions__how-to-claim-section img {
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }
}