/* style/promotions.css */

:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --card-bg-color: #111111;
    --background-color-page: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promotions {
    background-color: var(--background-color-page);
    color: var(--text-main-color);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
}

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

.page-promotions__section-title {
    font-size: 2.8em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: #000000; /* Contrast for gradient */
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual flow */
    background-color: var(--background-color-page);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-promotions__main-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 15px var(--glow-color);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-main-color);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 211, 107, 0.3);
}

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

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

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

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #000000; /* Contrast for gradient */
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #E6B52C 100%);
}

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

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__step-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__step-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #000000; /* Contrast for gradient */
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__step-button:hover {
    background: linear-gradient(180deg, #FFD36B 0%, #E6B52C 100%);
}

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

.page-promotions__benefits-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__benefit-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.page-promotions__benefit-description {
    font-size: 1em;
    color: var(--text-main-color);
    flex-grow: 1;
}

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

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

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

.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(--text-main-color);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-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 25px;
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
    background-color: var(--card-bg-color);
}

/* CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-color-page);
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 30px;
}

/* General image rules */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 3em;
    }

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

    .page-promotions__hero-content {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 20px;
    }

    .page-promotions__hero-content {
        padding: 20px 15px;
        margin-top: -50px; /* Adjust for smaller screens */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .page-promotions__main-title {
        font-size: 2.5em !important;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* General Sections & Titles */
    .page-promotions__section-title {
        font-size: 2em !important;
        margin-bottom: 20px;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Product Display / Promo Grid */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

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

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

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

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

    /* How-to Section */
    .page-promotions__steps-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-promotions__step-item {
        padding: 25px;
    }

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

    /* Benefits Section */
    .page-promotions__benefits-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-promotions__benefit-item {
        padding: 25px;
    }

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

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

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

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

    /* CTA Section */
    .page-promotions__cta-section {
        padding: 50px 0;
    }

    .page-promotions__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
        margin-top: 20px;
    }

    /* Universal Image & Container Mobile Adaptation */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__benefit-item,
    .page-promotions__faq-item,
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Buttons Mobile Adaptation */
    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions__step-button,
    .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;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }
}