/* style/promotions.css */

/* Custom Color Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --bg-main: #08160F; /* Background for main sections */
    --bg-card: #11271B; /* Background for cards */
    --text-main: #F2FFF6; /* Main text color, light for dark backgrounds */
    --text-secondary: #A7D9B8; /* Secondary text color, light for dark backgrounds */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-promotions {
    background-color: var(--bg-main); /* Matches custom background color */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

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

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    border-radius: 10px;
    margin-bottom: 30px;
}

.page-promotions__hero-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any background effects if present */
}

.page-promotions__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--gold-color); /* Use gold for striking H1 */
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

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

.page-promotions__cta-button {
    display: inline-block;
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 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);
}

.page-promotions__cta-button--center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 300px; /* Limit width for centered button */
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2rem;
    max-width: 400px;
    margin: 40px auto 0 auto;
}

/* General Sections */
.page-promotions__section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions__section:last-of-type {
    border-bottom: none;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(34, 199, 104, 0.3);
}

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

/* Promotion Types Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--bg-card); /* Dark card background */
    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;
    color: var(--text-main); /* Light text on dark card */
    border: 1px solid var(--border-color);
}

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

.page-promotions__promo-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__promo-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px); /* Adjust content height based on image height */
}

.page-promotions__promo-card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__promo-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__promo-card-button {
    display: inline-block;
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    align-self: flex-start; /* Align button to start of flex container */
}

.page-promotions__promo-card-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Claim Guide */
.page-promotions__claim-guide-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-promotions__claim-guide-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__claim-guide-item strong {
    color: var(--gold-color);
    font-size: 1.15rem;
}

.page-promotions__claim-guide-item a {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__claim-guide-item a:hover {
    text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__why-choose-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-promotions__why-choose-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    font-size: 1.05rem;
    color: var(--text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__why-choose-item strong {
    color: var(--gold-color);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

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

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-image {
        max-height: 400px;
    }
    .page-promotions__promo-card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px !important;
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

    .page-promotions__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-promotions__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important; /* Enforce full width for buttons */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1rem;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .page-promotions__cta-button--center {
        max-width: 100% !important;
        width: 100% !important;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 20px;
    }

    .page-promotions__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
    }

    .page-promotions__promo-card-image {
        height: 180px;
    }

    .page-promotions__promo-card-title {
        font-size: 1.3rem;
    }

    .page-promotions__promo-card-description {
        font-size: 0.9rem;
    }

    .page-promotions__promo-card-button {
        padding: 8px 15px;
        font-size: 0.9rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__claim-guide-item,
    .page-promotions__why-choose-item,
    .page-promotions__faq-item {
        padding: 20px;
        font-size: 0.95rem;
    }

    .page-promotions__claim-guide-item strong,
    .page-promotions__why-choose-item strong {
        font-size: 1.05rem;
    }

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

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* Force responsive images and containers */
    .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__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Buttons in containers, ensure wrapping for multiple buttons */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px; /* Spacing between stacked buttons */
        align-items: center; /* Center stacked buttons */
    }
}