/* style/promotions.css */

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

/* Base styles for the promotions page */
.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Light text for dark body background */
    font-family: Arial, sans-serif;
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.page-promotions__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

/* Hero Section */
.page-promotions__hero-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for decoration */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual effect, but not text on image */
    background-color: var(--color-card-bg); /* Dark background for content */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px); /* Lift content up */
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-promotions__description {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid var(--color-button-gradient-start);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-button-gradient-start), 0.4);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--color-primary), 0.4);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size */
    color: var(--color-gold);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

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

.page-promotions__text-block a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: bold;
}

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

.page-promotions__highlight {
    color: var(--color-gold);
    font-weight: bold;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
    background-color: var(--color-card-bg);
    padding-bottom: 80px;
}

.page-promotions__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 450px; /* Ensure cards have a minimum height */
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
    display: block;
}

.page-promotions__card-title {
    font-size: 1.4em;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--color-text-secondary);
    flex-grow: 1;
    text-align: justify;
}

/* Featured Promotions Section */
.page-promotions__featured-promotions {
    background-color: var(--color-background);
}

.page-promotions__promotion-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-promotions__promotion-title {
    font-size: 1.8em;
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.page-promotions__promotion-image {
    width: 100%;
    height: auto;
    max-height: 400px; /* Limit height for promotion images */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

/* Guide Section */
.page-promotions__guide-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--color-primary);
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
    background-color: var(--color-background);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--color-gold);
}

.page-promotions__terms-subtitle {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__terms-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-promotions__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-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;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    cursor: pointer;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--color-deep-green);
    color: var(--color-gold);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--color-gold);
}

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

/* Conclusion Section */
.page-promotions__conclusion-section {
    background-color: var(--color-background);
    padding-bottom: 80px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -50px;
        transform: translateY(-25px);
    }
}

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

    .page-promotions__hero-content {
        padding: 30px 15px;
        margin-top: -30px;
        transform: translateY(-15px);
    }

    .page-promotions__main-title {
        font-size: 2em;
    }

    .page-promotions__description {
        font-size: 0.95em;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }

    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.9em;
        line-height: 1.5;
    }

    .page-promotions__grid-container {
        grid-template-columns: 1fr;
    }

    .page-promotions__card {
        min-height: auto;
    }

    .page-promotions__promotion-title {
        font-size: 1.5em;
    }

    .page-promotions__step-title,
    .page-promotions__terms-subtitle {
        font-size: 1.2em;
    }

    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    
    /* Mobile specific overrides for images, videos, buttons */
    .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,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container,
    .page-promotions__promotion-item,
    .page-promotions__step-item,
    .page-promotions__terms-item,
    .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 horizontal scroll */
    }

    .page-promotions__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .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__hero-section {
        padding-top: 10px !important;
    }
}