/* style/promotions.css */
/* Base styles and variables */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-bg: #08160F; /* Background */
    --color-card-bg: #11271B; /* Card Background */
    --color-text-main: #F2FFF6; /* Main Text */
    --color-text-secondary: #A7D9B8; /* Secondary Text */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */
    --color-dark-text: #333333; /* For light backgrounds */
    --color-light-text: #ffffff; /* For dark backgrounds */
}

/* General page styling */
.page-promotions {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions a {
    color: var(--color-gold); /* Links should stand out */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

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

/* Section titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--color-text-main);
    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: 4px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.page-promotions__category-title {
    font-size: 1.8em;
    color: var(--color-text-main);
    margin-top: 40px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-gold);
    padding-left: 15px;
}

.page-promotions__text-content {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin: 60px auto; /* Adjust margin to center content vertically */
    box-sizing: border-box;
}

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    margin: 10px; /* Spacing between buttons */
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-light-text);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Slightly different background for visual separation */
}

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-divider);
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border);
}

.page-promotions__card-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__card-title a {
    color: var(--color-gold);
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

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

/* Detailed Promotions Section */
.page-promotions__detailed-promos {
    padding: 60px 0;
    background-color: var(--color-bg);
}

.page-promotions__promo-category {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-divider);
}

.page-promotions__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px solid var(--color-border);
}

.page-promotions__feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-promotions__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-promotions__list-item::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-size: 1.2em;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--color-deep-green);
}

.page-promotions__terms-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-promotions__terms-list .page-promotions__list-item::before {
    content: '💡'; /* Lightbulb icon */
    color: var(--color-gold);
}


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

.page-promotions__step-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 70px;
    border: 1px solid var(--color-divider);
}

.page-promotions__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: var(--color-gold);
    color: var(--color-bg);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    color: var(--color-text-secondary);
}

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

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

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-divider);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    position: relative;
    list-style: none; /* For details/summary */
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 10px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 60px 20px;
        margin: 40px auto;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px; /* Smaller padding for mobile */
    }

    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-promotions__category-title {
        font-size: 1.5em;
        margin-top: 30px;
    }

    .page-promotions__text-content {
        font-size: 1em;
    }

    .page-promotions__hero-content {
        padding: 40px 15px;
        margin: 20px auto;
    }

    .page-promotions__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margins for stacked buttons */
        padding: 12px 20px;
    }
    
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-promotions__promo-card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px; /* Slightly smaller card images */
    }

    .page-promotions__step-item {
        padding: 20px 20px 20px 60px;
    }

    .page-promotions__step-item::before {
        left: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 1.1em;
    }

    .page-promotions__step-title {
        font-size: 1.3em;
    }

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

    /* Mobile image, video, and container adaptations */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__detailed-promos,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__cta-section,
    .page-promotions__faq-section,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__promo-category,
    .page-promotions__step-item,
    .page-promotions__faq-item,
    .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__hero-section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__hero-image {
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 100%;
        height: 100%;
    }

    .page-promotions__hero-content {
        margin: 20px auto; /* Centered with top/bottom margin */
        padding: 30px 15px;
    }

    .page-promotions__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__main-title {
        font-size: clamp(1.3em, 7vw, 2em);
    }
}