/* style/promotions.css */
/* Body padding-top is handled by shared.css var(--header-offset) */

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

/* General styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--bg-color); /* From custom palette: #08160F */
}

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

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
    text-align: justify;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--card-bg); /* Use a dark background for the hero section */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of the image wrapper */
    overflow: hidden;
    position: relative;
    margin-bottom: 40px;
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-promotions__main-title {
    font-weight: bold;
    line-height: 1.2;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 20px;
    /* No fixed font-size, let it scale or use clamp if needed */
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 30px;
    line-height: 1.6;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--button-gradient); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
    color: var(--text-main); /* #F2FFF6 */
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

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

/* Introduction Section */
.page-promotions__introduction-section {
    padding: 60px 0;
    background-color: var(--bg-color); /* #08160F */
}

.page-promotions__image-content {
    display: block;
    margin: 0 auto 30px auto;
    border-radius: 10px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Types Section */
.page-promotions__types-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* #11271B */
}

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

.page-promotions__card {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

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

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

.page-promotions__step-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.7;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* #11271B */
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.7;
    border-left: 5px solid var(--primary-color); /* #11A84E */
}

.page-promotions__terms-item strong {
    color: var(--text-main); /* #F2FFF6 */
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* #11A84E - Dark background */
    color: #ffffff; /* Forced white text for dark background */
}

.page-promotions__why-choose-section .page-promotions__section-title {
    color: #ffffff; /* Ensure title is white on dark background */
}

.page-promotions__why-choose-section .page-promotions__text-block {
    color: #f0f0f0; /* Lighter secondary text for dark background */
}

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

.page-promotions__feature-card {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    border: 1px solid var(--border-color); /* #2E7A4E */
}

.page-promotions__feature-title {
    font-size: 1.5rem;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__feature-description {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.7;
    margin-bottom: 20px;
}

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

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

.page-promotions__faq-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color); /* #2E7A4E */
}

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

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.7;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Initial state for closed details */
.page-promotions__faq-item:not([open]) .page-promotions__faq-answer {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* #11271B */
    text-align: center;
}

/* Ensure no CSS filters are applied to images */
.page-promotions img {
    filter: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-promotions__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

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

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

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

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Adjust clamp for smaller screens */
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-promotions__text-block,
    .page-promotions__hero-description,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__terms-item,
    .page-promotions__feature-description,
    .page-promotions__faq-answer p {
        font-size: 0.95rem;
    }

    /* Mobile image and video responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Container for images/videos/buttons */
    .page-promotions__hero-image-wrapper,
    .page-promotions__introduction-section .page-promotions__container,
    .page-promotions__types-section .page-promotions__container,
    .page-promotions__how-to-claim-section .page-promotions__container,
    .page-promotions__terms-section .page-promotions__container,
    .page-promotions__why-choose-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__conclusion-section .page-promotions__container,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container,
    .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; /* Ensure no overflow */
    }

    /* Mobile button responsiveness */
    .page-promotions__cta-button,
    .page-promotions__cta-button--large,
    .page-promotions__cta-button--final,
    .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 and right are handled by container */
        margin-top: 15px;
    }
    .page-promotions__cta-button:first-of-type {
        margin-top: 0;
    }

    .page-promotions__card-grid,
    .page-promotions__steps,
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }
    
    .page-promotions__why-choose-section {
        padding: 40px 0;
    }
}