/* style/promotions.css */
/* Base styles for the promotions page, ensuring dark background and light text for contrast */
.page-promotions {
    background-color: var(--background-color, #08160F); /* Deep Green background */
    color: var(--text-main, #F2FFF6); /* Light text for contrast */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Ensure all links within the main content are visible against the dark background */
.page-promotions a {
    color: var(--gold, #F2C14E);
    text-decoration: none;
}

.page-promotions a:hover {
    text-decoration: underline;
    color: var(--glow, #57E38D);
}

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

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    margin-top: 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main, #F2FFF6);
    line-height: 1.2;
}

.page-promotions__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__cta-buttons--center {
    justify-content: center;
}

.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: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main, #F2FFF6);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--glow, #57E38D);
    color: var(--background-color, #08160F);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-promotions__overview-section,
.page-promotions__promotions-list-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--card-bg, #11271B); /* Card background for sections */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--gold, #F2C14E);
    margin-bottom: 30px;
    text-align: center;
}

.page-promotions__text-block {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: center;
}

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

.page-promotions__feature-card {
    background-color: var(--background-color, #08160F);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__feature-icon {
    width: 100%; /* Ensure images take full width of card */
    height: auto;
    max-height: 200px; /* Limit height for feature icons */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-promotions__feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
}

.page-promotions__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-promotions__promotion-card {
    background-color: var(--background-color, #08160F);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--divider, #1E3A2A);
    display: flex;
    flex-direction: column;
}

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

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

.page-promotions__promotion-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__promotion-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How To Claim Steps */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions__step-card {
    background-color: var(--background-color, #08160F);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--glow, #57E38D);
    margin-bottom: 15px;
    background-color: var(--deep-green, #0A4B2C);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-promotions__step-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 0.9rem;
    color: var(--text-secondary, #A7D9B8);
}

/* Terms & Conditions */
.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    color: var(--text-secondary, #A7D9B8);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
}

.page-promotions__faq-item {
    background-color: var(--background-color, #08160F);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-item summary { /* For details tag */
    list-style: none; /* Hide default marker */
    cursor: pointer;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C);
    border-bottom: 1px solid var(--divider, #1E3A2A);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #1a5e3d; /* Slightly lighter deep green on hover */
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--glow, #57E38D);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    background-color: var(--background-color, #08160F);
}

/* Active state for div-based FAQ (if details not used) */
.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px; /* Large enough to show content */
    transition: max-height 0.5s ease-in-out;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

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

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4vw, 2.4rem);
    }

    .page-promotions__overview-section,
    .page-promotions__promotions-list-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        margin: 30px auto;
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    /* Mobile specific overrides with !important */
    .page-promotions__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

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

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

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

    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .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: 12px 20px;
        font-size: 1rem;
    }

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

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

    .page-promotions__overview-section,
    .page-promotions__promotions-list-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        margin: 20px auto;
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images and containers responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__feature-card,
    .page-promotions__promotion-card,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__promotion-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-promotions__feature-icon {
        max-height: 150px; /* Adjust height for mobile */
    }

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

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