/* style/promotions.css */

/* Custom Properties based on color scheme */
:root {
    --page-promotions-bg-dark: #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-color: #2E7A4E; /* Border */
    --page-promotions-glow-color: #57E38D; /* Glow */
    --page-promotions-gold-color: #F2C14E; /* Gold */
    --page-promotions-divider-color: #1E3A2A; /* Divider */
    --page-promotions-deep-green: #0A4B2C; /* Deep Green */
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --page-promotions-primary-color: #11A84E; /* Main color */
    --page-promotions-secondary-color: #22C768; /* Auxiliary color */
}

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image block first, then content block */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-promotions-deep-green); /* Darker background for hero */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image wrapper */
    margin-bottom: 30px; /* Space between image and text */
    text-align: center;
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 1200px; /* Display width in desktop */
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--page-promotions-text-main); /* Ensure light text on dark background */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--page-promotions-gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions__description {
    font-size: 1.1rem;
    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 buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-gold-color);
    border: 2px solid var(--page-promotions-gold-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

/* Sections */
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__how-to-section,
.page-promotions__terms-section,
.page-promotions__benefits-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--page-promotions-divider-color);
}

.page-promotions__intro-section,
.page-promotions__how-to-section,
.page-promotions__benefits-section,
.page-promotions__cta-bottom-section {
    background-color: var(--page-promotions-bg-dark); /* Dark background */
    color: var(--page-promotions-text-main);
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
    background-color: var(--page-promotions-deep-green); /* Slightly lighter dark background */
    color: var(--page-promotions-text-main);
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-promotions-gold-color);
    line-height: 1.3;
}

.page-promotions__text-block {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-promotions-text-secondary);
}

/* Promo Grid & Cards */
.page-promotions__promo-grid,
.page-promotions__steps-grid,
.page-promotions__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--page-promotions-card-bg); /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--page-promotions-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-promotions-glow-color);
}

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Display width for card images */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

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

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

/* Terms and Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__list-item strong {
    color: var(--page-promotions-gold-color);
}

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

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

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

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

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

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

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

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__cta-bottom-content {
    max-width: 800px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }
    .page-promotions__description {
        font-size: 1rem;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
}

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

    .page-promotions__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 15px;
    }

    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    .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;
        padding-left: 15px; /* Ensure padding for text */
        padding-right: 15px; /* Ensure padding for text */
    }

    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__how-to-section,
    .page-promotions__terms-section,
    .page-promotions__benefits-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 50px 0;
    }

    .page-promotions__container {
        padding: 0 15px; /* Add padding to main container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-promotions__text-block {
        font-size: 1rem;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-promotions__card {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-promotions__card-description {
        font-size: 0.95rem;
    }

    .page-promotions__list-item {
        padding: 15px 20px;
        font-size: 1rem;
    }

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

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

@media (max-width: 480px) {
    .page-promotions__hero-section {
        padding: 30px 0;
        padding-top: 10px !important;
    }
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__how-to-section,
    .page-promotions__terms-section,
    .page-promotions__benefits-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }
}