/* style/promotions.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --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;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

.page-promotions__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 675px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for H1 */
    color: var(--gold-color);
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 20px;
}

.page-promotions__intro-text {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--card-bg);
    transform: translateY(-2px);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    margin-top: 15px;
}

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

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

.page-promotions__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-promotions__offer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

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

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

.page-promotions__offer-title {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.3;
}

.page-promotions__offer-card p {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Terms & Conditions */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    text-align: left;
}

.page-promotions__terms-list li {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.6;
}

.page-promotions__terms-list li strong {
    color: var(--gold-color);
}

.page-promotions__disclaimer {
    font-size: 0.9em;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 30px;
    line-height: 1.5;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

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

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

/* CTA Bottom */
.page-promotions__cta-bottom .page-promotions__container {
    background: var(--deep-green);
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__dark-section .page-promotions__section-title {
    color: var(--gold-color);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        max-height: 500px;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__intro-text {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
    }
    .page-promotions__grid-cards,
    .page-promotions__offer-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card,
    .page-promotions__offer-card {
        padding: 20px;
    }
    .page-promotions__offer-image {
        height: 180px;
    }
    .page-promotions__terms-list li {
        padding: 15px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__cta-bottom .page-promotions__container {
        padding: 30px 20px;
    }

    /* Mobile responsive image adaptation */
    .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__hero-image-wrapper,
    .page-promotions__offer-card,
    .page-promotions__cta-bottom .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }

    /* Button specific mobile adaptation */
    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Force vertical stacking for buttons */
        gap: 15px !important;
    }
    .page-promotions__cta-buttons > a {
        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;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-image-wrapper {
        max-height: 250px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__intro-text {
        font-size: 0.95em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-promotions__card-title,
    .page-promotions__offer-title {
        font-size: 1.2em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 10px;
    }
}