/* style/promotions.css */

/* Custom Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --body-bg: #08160F; /* This is a dark background */
    --text-main: #F2FFF6; /* Light text for dark background */
    --text-secondary: #A7D9B8; /* Secondary light text */
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-promotions {
    background-color: var(--body-bg); /* Ensure main content area matches body background */
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Section styling */
.page-promotions__hero-section,
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__guide-section,
.page-promotions__benefits-detailed-section,
.page-promotions__faq-section,
.page-promotions__cta-final {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Specific top padding for the first section, body handles header offset */
.page-promotions__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    color: var(--text-main);
}

.page-promotions__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 1px;
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Section Titles */
.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.page-promotions__section-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none; /* Remove default button border */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
}

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

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

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

.page-promotions__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* Intro Section */
.page-promotions__benefits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-promotions__benefit-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    flex: 1 1 calc(33% - 40px);
    max-width: calc(33% - 40px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

.page-promotions__benefit-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-promotions__promo-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 30px;
}

.page-promotions__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions__card-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    padding: 0 20px;
    font-weight: 600;
}

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

.page-promotions__card-button {
    margin-top: auto; /* Pushes button to the bottom */
}

/* Guide Section */
.page-promotions__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-promotions__step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: var(--text-main);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

/* Detailed Benefits Section */
.page-promotions__benefits-list-detailed {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__benefits-list-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-promotions__benefits-item-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__benefits-item-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    user-select: none; /* Prevent text selection */
}

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

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--text-main); /* Ensure text color is light */
}

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

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

/* Ensure details open/close correctly */
.page-promotions__faq-item[open] .page-promotions__faq-question {
    border-bottom: 1px solid var(--divider-color);
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding-bottom: 80px;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__benefit-item {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__benefits-detailed-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding: 40px 0;
    }

    .page-promotions__hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

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

    .page-promotions__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    
    .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;
        padding-right: 15px;
    }
    
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Ensure buttons stack vertically */
    }

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-promotions__section-text {
        font-size: 1rem;
    }

    .page-promotions__benefit-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

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

    .page-promotions__card-image {
        height: 180px;
    }

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

    .page-promotions__guide-steps {
        grid-template-columns: 1fr;
    }

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

    .page-promotions__benefits-list-item {
        padding: 25px;
    }

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

    .page-promotions__faq-answer {
        padding: 15px;
    }
    
    /* Mobile image responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}