:root {
    /* Custom Colors */
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
}

/* Base styles for the page content, assuming body background is dark from shared.css */
.page-promotions {
    background-color: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions h1,
.page-promotions h2,
.page-promotions h3 {
    color: var(--color-text-main);
    margin-bottom: 1em;
    line-height: 1.2;
}

.page-promotions h1 {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: bold;
    letter-spacing: -0.02em;
}

.page-promotions h2 {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: bold;
}

.page-promotions h3 {
    font-size: clamp(1.4em, 2.5vw, 1.8em);
    font-weight: 600;
}

.page-promotions p {
    color: var(--color-text-secondary);
    margin-bottom: 1em;
}

.page-promotions a {
    color: var(--color-glow); /* Links in content */
    text-decoration: none;
}

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

/* Button styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.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); /* White text on green button */
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-button-gradient-start); /* Green text on transparent button */
    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 4px 15px rgba(17, 168, 78, 0.2);
}

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

.page-promotions__section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-glow), transparent);
    border-radius: 5px;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--color-deep-green); /* Fallback background for hero */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

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

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

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

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

.page-promotions__feature-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

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

.page-promotions__feature-image {
    width: 100%;
    max-width: 400px; /* Ensure images in cards are not too wide */
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

/* Detailed Promotions Section */
.page-promotions__detailed-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column for default */
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.page-promotions__promo-image {
    width: 100%;
    height: 350px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Min size for images */
    min-height: 200px;
}

.page-promotions__promo-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-promotions__promo-content .page-promotions__card-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.page-promotions__promo-content .page-promotions__card-description {
    flex-grow: 1;
    margin-bottom: 25px;
    color: var(--color-text-secondary);
}

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

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

.page-promotions__step-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.page-promotions__step-number {
    font-size: 3em;
    font-weight: bold;
    color: rgba(87, 227, 141, 0.2); /* Semi-transparent glow color */
    position: absolute;
    top: 10px;
    right: 15px;
    line-height: 1;
}

.page-promotions__step-card .page-promotions__card-title {
    margin-top: 20px;
    color: var(--color-gold);
}

.page-promotions__cta-buttons--center {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

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

.page-promotions__reason-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-promotions__reason-card .page-promotions__card-title {
    color: var(--color-gold);
}

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

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-question::marker {
    display: none;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--color-primary);
    border-bottom-color: transparent;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: '−';
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    color: var(--color-text-secondary);
}

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

/* Call to Action Bottom Section */
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-green);
}

.page-promotions__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions__cta-content .page-promotions__section-title {
    margin-bottom: 20px;
}

.page-promotions__cta-content .page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 40px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); /* Two columns on larger screens */
    }

    .page-promotions__promo-card {
        flex-direction: row; /* Horizontal layout for promo cards */
    }

    .page-promotions__promo-image {
        width: 350px; /* Fixed width for image in horizontal layout */
        height: auto; /* Height auto to maintain aspect ratio */
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .page-promotions h1 {
        font-size: 2em;
    }

    .page-promotions h2 {
        font-size: 1.6em;
    }

    .page-promotions h3 {
        font-size: 1.3em;
    }

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

    .page-promotions__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px;
        box-sizing: border-box !important;
        margin: 0; /* Remove horizontal margin for full width */
    }
    
    .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;
    }

    .page-promotions__section-title {
        margin-bottom: 30px;
    }

    .page-promotions__overview-section,
    .page-promotions__detailed-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }

    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image {
        height: auto; /* Allow hero image height to be auto */
        max-height: 50vh;
    }

    .page-promotions__feature-image,
    .page-promotions__promo-image {
        height: auto; /* Allow card images height to be auto */
        max-height: 250px;
    }

    /* All containers that hold images, videos, buttons */
    .page-promotions__container,
    .page-promotions__feature-card,
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__reason-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Specific overrides for padding inside cards for mobile */
    .page-promotions__feature-card,
    .page-promotions__step-card,
    .page-promotions__reason-card,
    .page-promotions__promo-content {
        padding: 20px;
    }
    
    .page-promotions__promo-card {
        flex-direction: column; /* Stack vertically on mobile */
    }

    .page-promotions__promo-image {
        width: 100%;
        height: auto;
    }

    /* Ensure video-section top padding is small, not header-offset */
    .page-promotions__video-section { /* If there was a video section, this would apply */
        padding-top: 10px !important; 
    }
}