/* style/promotions.css */

/* Custom Properties based on provided color palette */
:root {
    --page-promotions-bg: #08160F; /* Background */
    --page-promotions-card-bg: #11271B; /* Card BG */
    --page-promotions-text-main: #F2FFF6; /* Text Main */
    --page-promotions-text-secondary: #A7D9B8; /* Text Secondary */
    --page-promotions-border: #2E7A4E; /* Border */
    --page-promotions-glow: #57E38D; /* Glow */
    --page-promotions-gold: #F2C14E; /* Gold */
    --page-promotions-divider: #1E3A2A; /* Divider */
    --page-promotions-deep-green: #0A4B2C; /* Deep Green */
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
}

.page-promotions {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main);
    font-family: 'Arial', sans-serif; /* Placeholder font */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom for content */
}

/* Ensure body padding-top is handled by shared.css, this page only adds decorative top padding */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small decorative top padding */
    padding-bottom: 40px;
    box-sizing: border-box;
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is behind text if any overlay (but we avoid overlay) */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
}

.page-promotions__hero-content {
    position: relative; /* Not absolute, to follow image */
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
    margin-top: -80px; /* Pull content up slightly to overlap with image bottom */
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency for subtle overlay effect */
    border-radius: 10px;
    padding-bottom: 40px;
    border: 1px solid var(--page-promotions-border);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: var(--page-promotions-glow);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main); /* White text for primary button */
    border: none;
}

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

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

.page-promotions__btn-secondary:hover {
    background: var(--page-promotions-glow);
    color: var(--page-promotions-bg); /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-promotions-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    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(--page-promotions-glow);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.05em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__highlight {
    color: var(--page-promotions-glow);
    font-weight: 700;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--page-promotions-deep-green); /* Use deep green for contrast */
}

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

/* Featured Promotions Section */
.page-promotions__featured-section {
    padding: 60px 0;
}

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

.page-promotions__promotion-card.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%; /* Ensure card responsiveness */
    box-sizing: border-box;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 220px; /* Fixed height for card images */
    object-fit: cover;
    display: block;
    max-width: 100%;
}

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

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

.page-promotions__card-description {
    font-size: 0.95em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

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

.page-promotions__step-description a {
    color: var(--page-promotions-glow);
    text-decoration: none;
}

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

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

.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__benefit-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-promotions__benefit-title {
    font-size: 1.3em;
    color: var(--page-promotions-glow);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__benefit-description {
    font-size: 1em;
    color: var(--page-promotions-text-secondary);
}

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

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-promotions-text-main);
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
    transition: color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
    color: var(--page-promotions-glow);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--page-promotions-glow);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-promotions-text-secondary);
    border-top: 1px solid var(--page-promotions-divider);
    margin-top: -1px; /* Overlap border to make it look continuous */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -60px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-content {
        margin-top: -40px;
        padding: 20px;
        max-width: 95%;
    }

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

    .page-promotions__description {
        font-size: 1em;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Force full width for mobile buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__container {
        padding: 0 15px; /* Add side padding for mobile */
    }

    .page-promotions__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__benefit-description {
        font-size: 0.95em;
    }

    .page-promotions__promotions-grid,
    .page-promotions__steps-list,
    .page-promotions__benefits-list {
        grid-template-columns: 1fr; /* Single column layout for cards on mobile */
    }

    .page-promotions__promotion-card.page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__benefit-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 25px; /* Adjust padding for mobile cards */
    }

    .page-promotions__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }

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

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

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

    /* Ensure all image containers are responsive */
    .page-promotions__hero-image-wrapper,
    .page-promotions__promotions-grid,
    .page-promotions__promotion-card,
    .page-promotions__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video related (if any, although not included for this page) */
    .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; /* Ensure small top padding */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-promotions__hero-section {
        padding-bottom: 20px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.95em;
        padding: 10px 15px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.4em, 7vw, 1.8em);
    }
}