/* style/promotions.css */

/* Custom Colors */
:root {
    --page-promotions-bg: #08160F;
    --page-promotions-card-bg: #11271B;
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-promotions-border: #2E7A4E;
    --page-promotions-glow: #57E38D;
    --page-promotions-gold: #F2C14E;
    --page-promotions-divider: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;
}

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

/* Base container styling */
.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(--page-promotions-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-promotions-deep-green); /* A darker background for hero section */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 40px; /* Space between image and text */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
}

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--page-promotions-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--page-promotions-gold); /* Using gold for main title for prominence */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    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 */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.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.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't exceed container */
    flex-grow: 1; /* Allow buttons to grow */
    min-width: 160px; /* Minimum width for buttons */
}

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

.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: transparent;
    color: var(--page-promotions-gold);
    border: 2px solid var(--page-promotions-gold);
}

.page-promotions__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-large {
    font-size: 1.3rem;
    padding: 18px 40px;
    min-width: 220px;
}

/* General Section Styling */
.page-promotions__intro-section,
.page-promotions__featured-promos,
.page-promotions__terms-section,
.page-promotions__how-to-claim,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: var(--page-promotions-card-bg); /* Use card BG for dark sections */
    color: var(--page-promotions-text-main);
}

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

.page-promotions__text-center {
    text-align: center;
}

.page-promotions__mt-40 {
    margin-top: 40px;
}

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

.page-promotions__promo-card,
.page-promotions__step-card {
    background-color: var(--page-promotions-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);
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

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

.page-promotions__card-title {
    font-size: 1.6rem;
    color: var(--page-promotions-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-promotions__promo-card .page-promotions__btn-primary,
.page-promotions__step-card .page-promotions__btn-primary {
    margin-top: auto; /* Push button to the bottom */
}

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__terms-list li {
    background-color: var(--page-promotions-deep-green);
    border-left: 5px solid var(--page-promotions-gold);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: var(--page-promotions-text-main);
}

.page-promotions__terms-list li strong {
    color: var(--page-promotions-gold);
}

/* How-to Steps */
.page-promotions__step-card .page-promotions__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__faq-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-promotions-gold);
    background-color: var(--page-promotions-deep-green); /* Darker background for summary */
    transition: background-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 {
    background-color: rgba(46, 122, 78, 0.3); /* Slightly lighter on hover */
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    background-color: var(--page-promotions-card-bg);
    font-size: 1.05rem;
    color: var(--page-promotions-text-secondary);
    border-top: 1px solid var(--page-promotions-border);
    text-align: justify;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    background: linear-gradient(to bottom, var(--page-promotions-deep-green), var(--page-promotions-bg));
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__featured-promos,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 60px 0;
    }

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

    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

@media (max-width: 768px) {
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__featured-promos,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }

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

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

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__btn-large {
        font-size: 1.1rem;
        padding: 15px 30px;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

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

    .page-promotions__card-description,
    .page-promotions__text-block,
    .page-promotions__terms-list li,
    .page-promotions__faq-answer p {
        font-size: 0.95rem;
    }

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

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

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Override padding for specific elements that have internal padding */
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__featured-promos,
    .page-promotions__terms-section,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.6rem;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.95rem;
    }
    .page-promotions__faq-item summary {
        font-size: 1rem;
    }
}