/* style/promotions.css */

/* Custom Colors */
: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;
}

.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for the page content */
    background-color: var(--color-background); /* Main background color */
    line-height: 1.6;
}

.page-promotions__container {
    max-width: 1200px;
    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;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-deep-green);
}

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-promotions__subtitle {
    font-size: clamp(1em, 1.8vw, 1.3em);
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__btn-small {
    padding: 8px 20px;
    font-size: 0.9em;
    background: var(--color-button-gradient-start);
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
}

.page-promotions__btn-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Section Titles and Text Blocks */
.page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__text-block {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

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

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide in cards */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Featured Promos Section */
.page-promotions__featured-promos {
    padding: 80px 0;
    background-color: var(--color-deep-green);
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .page-promotions__promo-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on larger screens */
    }
}

.page-promotions__promo-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.page-promotions__promo-image {
    width: 100%;
    height: 280px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__promo-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-promotions__promo-title {
    font-size: 1.6em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-promotions__promo-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-promotions__promo-features li {
    color: var(--color-text-main);
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.page-promotions__promo-features li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.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-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
}

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

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker for details */
}

.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Webkit marker */
}

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

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

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

/* Final CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-green);
    border-top: 1px solid var(--color-divider);
}

.page-promotions__cta-title {
    font-size: clamp(2em, 4vw, 3em);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__cta-description {
    font-size: clamp(1em, 1.8vw, 1.2em);
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__overview-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

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

    .page-promotions__subtitle {
        font-size: 1em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 350px; /* Constrain button group width */
        margin-left: auto;
        margin-right: auto;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: 2em;
        padding-top: 30px;
    }

    .page-promotions__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-promotions__overview-section,
    .page-promotions__featured-promos,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 0;
    }

    .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 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__card-image {
        max-width: 100% !important;
    }

    .page-promotions__promo-image {
        height: auto; /* Allow height to adjust for smaller screens */
    }

    .page-promotions__promo-item {
        flex-direction: column; /* Stack image and content */
    }

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

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

    .page-promotions__cta-description {
        font-size: 1em;
    }

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

    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }
}