/* style/promotions.css */

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

/* Base styles for the page content */
.page-promotions {
    background-color: var(--page-promotions-background); /* Dark background */
    color: var(--page-promotions-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Section styling */
.page-promotions__section {
    padding: 60px 0;
    position: relative;
}

.page-promotions__section--highlight {
    background-color: var(--page-promotions-deep-green);
}

.page-promotions__section--alt-bg {
    background-color: var(--page-promotions-card-bg);
}

.page-promotions__section--call-to-action {
    text-align: center;
    padding-bottom: 80px;
    padding-top: 80px;
}

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

.page-promotions__container--center-text {
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Prevent content overflow */
    background-color: var(--page-promotions-deep-green); /* Add a background to the section */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 1920px; /* Use full requested width */
    height: 1080px; /* Use full requested height */
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    display: block;
    object-fit: cover;
}

.page-promotions__hero-content-below {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: 30px; /* Standard margin between image and content */
    background: var(--page-promotions-card-bg); /* Use a solid background */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--page-promotions-border);
}

/* Titles */
.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--page-promotions-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--page-promotions-primary);
    text-align: center;
    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(--page-promotions-gold);
    border-radius: 2px;
}

.page-promotions__card-title {
    font-size: 1.8em;
    color: var(--page-promotions-gold);
    margin-bottom: 15px;
    text-align: center;
}

/* Text elements */
.page-promotions__intro-text {
    font-size: 1.2em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__paragraph {
    font-size: 1.1em;
    color: var(--page-promotions-text-main);
    margin-bottom: 20px;
}

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

/* Links */
.page-promotions__link {
    color: var(--page-promotions-secondary);
    text-decoration: none;
    font-weight: bold;
}

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

/* Buttons */
.page-promotions__cta-button {
    display: inline-block;
    background: var(--page-promotions-button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-promotions__cta-button--secondary {
    background: var(--page-promotions-deep-green);
    border: 2px solid var(--page-promotions-primary);
}

.page-promotions__cta-button--secondary:hover {
    background: var(--page-promotions-primary);
}

/* Image styling */
.page-promotions__image-wrapper {
    margin: 40px 0;
    text-align: center;
}

.page-promotions__image-wrapper--center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Promo 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(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__card-text {
    color: var(--page-promotions-text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-promotions__card-button {
    display: inline-block;
    background: var(--page-promotions-button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Push button to bottom */
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Lists */
.page-promotions__benefits-list,
.page-promotions__terms-list,
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-promotions__list-item {
    background-color: var(--page-promotions-card-bg);
    border-left: 5px solid var(--page-promotions-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: var(--page-promotions-text-main);
    font-size: 1.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-item strong {
    color: var(--page-promotions-gold);
}

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

.page-promotions__faq-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-promotions-primary);
    cursor: pointer;
    background-color: var(--page-promotions-card-bg);
    border-bottom: 1px solid var(--page-promotions-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
    background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-promotions-text-secondary);
    /* For JS-based accordion */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* For details tag, the answer is always visible by default */
.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 1000px; /* Sufficiently large value */
    transition: max-height 0.5s ease-in;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content-below {
        margin-top: 20px;
        padding: 30px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

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

    .page-promotions__intro-text {
        font-size: 1.1em;
    }

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

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

    .page-promotions__card-title {
        font-size: 1.6em;
    }

    .page-promotions__card-text {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-content-below {
        margin-top: 20px !important;
        padding: 25px 15px;
        width: calc(100% - 30px) !important; /* Adjust for padding */
    }

    .page-promotions__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-promotions__intro-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

    .page-promotions__container {
        padding: 0 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,
    .page-promotions__hero-section,
    .page-promotions__image-wrapper,
    .page-promotions__promo-grid,
    .page-promotions__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    /* Mobile button responsiveness */
    .page-promotions__cta-button,
    .page-promotions__card-button {
        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;
        text-align: center;
    }

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

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

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

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

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

    .page-promotions__cta-button-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* Ensure contrast for various elements */
.page-promotions p,
.page-promotions li {
    color: var(--page-promotions-text-main); /* Ensure main text is light */
}

.page-promotions__faq-answer p {
    color: var(--page-promotions-text-secondary); /* FAQ answer text */
}

/* Contrast fix classes (if needed) */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}