/* style/promotions.css */

/* Custom Color Variables - based on provided color scheme */
:root {
    --page-promotions-bg: #08160F;
    --page-promotions-card-bg: #11271B;
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-btn-gradient-start: #2AD16F;
    --page-promotions-btn-gradient-end: #13994A;
    --page-promotions-border: #2E7A4E;
    --page-promotions-glow: #57E38D;
    --page-promotions-gold: #F2C14E;
    --page-promotions-divider: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with body background */
/* Assuming body background is dark (var(--background) from shared.css, likely dark based on provided custom colors) */
.page-promotions {
    background-color: var(--page-promotions-bg); /* Use custom background color */
    color: var(--page-promotions-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions h1,
.page-promotions h2,
.page-promotions h3,
.page-promotions h4 {
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size clamp, not fixed large */
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-promotions h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--page-promotions-gold); /* Using gold for section titles for emphasis */
}

.page-promotions h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.page-promotions p {
    margin-bottom: 15px;
    color: var(--page-promotions-text-secondary); /* Secondary text color */
}

.page-promotions a {
    color: var(--page-promotions-glow); /* Link color */
    text-decoration: none;
}

.page-promotions a:hover {
    text-decoration: underline;
}

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

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

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Added padding for content */
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    background-color: var(--page-promotions-deep-green); /* Background for hero section */
    overflow: hidden; /* Ensure no overflow */
}

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px; /* Slightly rounded corners */
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 15px; /* Ensure content has padding */
    box-sizing: border-box;
}

.page-promotions__hero-title {
    color: var(--page-promotions-gold); /* Gold for hero title */
    margin-bottom: 20px;
}

.page-promotions__hero-description {
    color: var(--page-promotions-text-main); /* Main text color for description */
    font-size: 1.15rem;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%; /* Ensure container takes full width for flex-wrap */
    max-width: 600px; /* Limit width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex; /* Use inline-flex for button-like links */
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box;
    min-width: 180px; /* Minimum width for buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--page-promotions-btn-gradient-start) 0%, var(--page-promotions-btn-gradient-end) 100%);
    color: var(--page-promotions-text-main); /* Light text on dark/gradient button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-glow); /* Glow color for secondary text */
    border: 2px solid var(--page-promotions-glow);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-glow);
    color: var(--page-promotions-bg); /* Dark text on glow background */
    transform: translateY(-2px);
}

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

.page-promotions__promo-card {
    background-color: var(--page-promotions-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-promotions-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-promotions__card-title {
    color: var(--page-promotions-gold); /* Gold for card titles */
    margin-bottom: 10px;
    font-size: 1.3rem;
}

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

/* How-to-Join Section */
.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__list-item {
    background-color: var(--page-promotions-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-promotions-border);
}

.page-promotions__list-title {
    color: var(--page-promotions-glow);
    margin-bottom: 10px;
}

.page-promotions__list-description {
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
}

/* Terms & Conditions Section */
.page-promotions__list {
    list-style: disc;
    padding-left: 20px;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__list strong {
    color: var(--page-promotions-text-main);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--page-promotions-deep-green); /* Darker background for question */
    color: var(--page-promotions-text-main);
    font-weight: bold;
    border-bottom: 1px solid var(--page-promotions-divider);
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid var(--page-promotions-border);
}

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

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    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;
}

/* Conclusion Section */
.page-promotions__conclusion {
    background-color: var(--page-promotions-deep-green); /* Use deep green for conclusion */
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__conclusion .page-promotions__section-title {
    color: var(--page-promotions-gold);
}

.page-promotions__conclusion .page-promotions__text-block {
    color: var(--page-promotions-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* --- Responsive Design --- */
/* Mobile First Approach, then override for larger screens */

/* Ensure content areas have padding on mobile */
@media (max-width: 768px) {
    .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-promotions__hero-content {
        padding: 0 15px !important;
    }

    .page-promotions__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for smaller screens */
    }

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

    .page-promotions__section {
        padding: 40px 0; /* Adjust section padding */
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Buttons responsiveness */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px !important; /* Add padding to button container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .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: 12px 20px !important; /* Adjust button padding */
        font-size: 0.95rem;
    }

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

    .page-promotions__promo-card {
        padding: 20px;
    }

    .page-promotions__promo-image {
        height: 180px; /* Adjust image height for mobile cards */
    }

    .page-promotions__list-item {
        padding: 20px;
    }

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

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

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: clamp(2.8rem, 4vw, 3.2rem);
    }

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

    .page-promotions__promo-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablets */
    }
}

/* Desktop adjustments */
@media (min-width: 1025px) {
    .page-promotions__hero-section {
        padding-top: 10px; /* Small top padding */
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 40px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusted for more flexible desktop grid */
    }
}