/* style/promotions.css */

/* Custom Color Variables */
:root {
    --f79-primary: #11A84E; /* Main Color */
    --f79-secondary: #22C768; /* Auxiliary Color */
    --f79-button-gradient-start: #2AD16F;
    --f79-button-gradient-end: #13994A;
    --f79-card-bg: #11271B;
    --f79-background: #08160F;
    --f79-text-main: #F2FFF6;
    --f79-text-secondary: #A7D9B8;
    --f79-border: #2E7A4E;
    --f79-glow: #57E38D;
    --f79-gold: #F2C14E;
    --f79-divider: #1E3A2A;
    --f79-deep-green: #0A4B2C;
}

.page-promotions {
    background-color: var(--f79-background); /* Body background from shared.css is var(--bg-color), which should resolve to #08160F based on custom palette */
    color: var(--f79-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* 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; /* General padding */
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px; /* Space between image and content */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    color: var(--f79-text-main); /* Light text */
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--f79-gold); /* Gold color for main title */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-promotions__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--f79-text-secondary); /* Secondary text color */
}

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

/* General Section Styling */
.page-promotions__section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-promotions__section--highlight {
    background-color: var(--f79-deep-green); /* A slightly different dark background for contrast */
    border-radius: 12px;
    margin-bottom: 40px;
    padding: 80px 40px;
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    color: var(--f79-gold); /* Gold for section titles */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--f79-text-secondary);
}

/* Grid for Cards */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__card {
    background: var(--f79-card-bg); /* Dark card background */
    border: 1px solid var(--f79-border); /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--f79-text-main); /* Light text on dark card */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px var(--f79-glow);
}

.page-promotions__card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--f79-text-main); /* Light text */
}

.page-promotions__card-text {
    font-size: 1em;
    color: var(--f79-text-secondary); /* Secondary text */
    flex-grow: 1; /* Make text take available space */
    margin-bottom: 20px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--f79-button-gradient-start) 0%, var(--f79-button-gradient-end) 100%);
    color: #ffffff; /* White text on primary button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--f79-button-gradient-end) 0%, var(--f79-button-gradient-start) 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6), 0 0 25px var(--f79-glow);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--f79-primary); /* Primary color text on secondary button */
    border: 2px solid var(--f79-primary);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--f79-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.3);
}

.page-promotions__btn--small {
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: auto; /* Push button to bottom of card */
}

.page-promotions__btn--large {
    padding: 16px 32px;
    font-size: 1.2em;
}

/* How to Join Section */
.page-promotions__section--join {
    background-color: var(--f79-background); /* Body background color */
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-promotions__step-item {
    background: var(--f79-card-bg); /* Dark card background */
    border: 1px solid var(--f79-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--f79-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-promotions__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--f79-gold);
}

.page-promotions__step-text {
    font-size: 1em;
    color: var(--f79-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 60px;
}

/* FAQ Section */
.page-promotions__section--faq {
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-promotions__faq-item {
    background: var(--f79-card-bg); /* Dark card background */
    border: 1px solid var(--f79-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--f79-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--f79-card-bg); /* Same as item background */
    color: var(--f79-text-main);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
    background-color: var(--f79-deep-green); /* Slightly darker on hover */
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--f79-text-main);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--f79-gold);
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--f79-text-secondary);
    line-height: 1.8;
    /* For details tag, browser handles show/hide */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section--highlight {
        padding: 60px 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 4vw, 2.4em);
    }
}

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

    /* Images Responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__hero-section,
    .page-promotions__section,
    .page-promotions__grid,
    .page-promotions__card,
    .page-promotions__steps-grid,
    .page-promotions__step-item,
    .page-promotions__faq-list,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
        padding-bottom: 40px !important;
    }

    .page-promotions__hero-content {
        padding: 0;
    }

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

    /* Buttons Responsive */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .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: 15px !important; /* Ensure padding inside button */
        padding-right: 15px !important; /* Ensure padding inside button */
        text-align: center;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__card,
    .page-promotions__step-item {
        padding: 25px 20px;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 18px 20px;
    }
    
    .page-promotions__step-icon {
        width: 150px; /* Adjust for smaller screens */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__hero-description,
    .page-promotions__section-description {
        font-size: 1em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-promotions__btn--large {
        font-size: 1.1em;
        padding: 14px 28px;
    }
}