/* style/promotions.css */
/* Base styles and variables */
:root {
    --primary-color: #11A84E; /* Main Green */
    --secondary-color: #22C768; /* Auxiliary Green */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --max-content-width: 1200px;
}

/* Ensure body padding-top is handled by shared.css */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color); /* Main background for the page */
    line-height: 1.6;
    font-size: 16px;
}

.page-promotions__container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding-bottom: 40px; /* Space below content */
    background-color: var(--deep-green); /* Fallback/base color */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    margin-bottom: 20px; /* Space between image and content */
}

.page-promotions__hero-content {
    text-align: center;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: rgba(34, 199, 104, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.page-promotions__btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Sections */
.page-promotions__intro-section,
.page-promotions__promo-types-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__cta-final-section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__section-title--light {
    color: var(--text-main);
    text-shadow: none;
}

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

.page-promotions__text-block--light {
    color: var(--text-main);
}

.page-promotions__link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__link:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-promotions__link--gold {
    color: var(--gold-color);
}

/* Promotion Grid */
.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 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions__promo-card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    padding: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__promo-card-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
    text-align: justify;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Guide Section */
.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__guide-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-promotions__guide-step-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__guide-item p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.page-promotions__guide-item .page-promotions__btn-primary,
.page-promotions__guide-item .page-promotions__btn-secondary {
    margin-top: 15px;
}

/* Terms Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-promotions__terms-item {
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.page-promotions__terms-item::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2em;
    line-height: 1;
}

.page-promotions__terms-item strong {
    color: var(--text-main);
}

/* Why Choose Section */
.page-promotions__reason-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-promotions__reason-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 25px;
    color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    position: relative;
    padding-left: 55px;
}

.page-promotions__reason-item::before {
    content: "✅"; /* Use an emoji for a checkmark */
    font-size: 1.5rem;
    position: absolute;
    left: 15px;
    top: 20px;
    color: var(--secondary-color);
}

.page-promotions__reason-item strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 5px;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
    background-color: var(--card-bg); /* Ensure background for summary */
    border-bottom: 1px solid var(--divider-color);
}

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: justify;
}

/* Final CTA Section */
.page-promotions__cta-final-section .page-promotions__container {
    background-color: var(--deep-green);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

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

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

    .page-promotions__hero-section {
        padding-bottom: 30px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-promotions__hero-image {
        max-height: 300px;
        margin-bottom: 15px;
    }

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

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 100% !important; /* Mobile button responsiveness */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__btn-large {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .page-promotions__intro-section,
    .page-promotions__promo-types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding: 40px 0;
    }

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

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

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__promo-card-image {
        height: 180px;
    }

    .page-promotions__promo-card-title {
        font-size: 1.3rem;
        padding: 15px;
    }

    .page-promotions__promo-card-description {
        padding: 0 15px 15px;
    }

    .page-promotions__promo-card .page-promotions__btn-secondary {
        margin: 0 15px 15px;
        width: calc(100% - 30px);
    }

    .page-promotions__guide-item,
    .page-promotions__terms-list,
    .page-promotions__reason-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

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

    .page-promotions__reason-list {
        grid-template-columns: 1fr;
    }

    .page-promotions__reason-item {
        padding-left: 45px;
    }

    .page-promotions__reason-item::before {
        left: 10px;
        top: 15px;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    .page-promotions__cta-final-section .page-promotions__container {
        padding: 30px;
    }

    /* Images 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;
    }
    
    /* Fixed header spacing for hero section - small top padding only */
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-image {
        max-height: 250px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-promotions__section-title {
        font-size: 1.6rem;
    }
    .page-promotions__promo-card-image {
        height: 150px;
    }
}