/* style/promotions.css */
: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;
}

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

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

.page-promotions__section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-promotions__sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promotions__intro-text {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-secondary);
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

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

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

.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(-2px);
}

/* Section Backgrounds for Contrast */
.page-promotions__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__light-bg {
    background-color: #f0f2f5;
    color: #333333;
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__sub-title {
    color: var(--color-deep-green);
}

.page-promotions__light-bg .page-promotions__intro-text,
.page-promotions__light-bg p {
    color: #333333;
}

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin-top: 80px; /* To push content below the hero image slightly */
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
}

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

/* Overview Section */
.page-promotions__overview-section {
    padding: 60px 0;
}

.page-promotions__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-promotions__image-block img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Promotion Types Section */
.page-promotions__types-section {
    padding: 60px 0;
}

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

.page-promotions__card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 0 15px 10px 15px;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    padding: 0 15px 20px 15px;
    flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 60px 0;
}

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

.page-promotions__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
}

.page-promotions__step-item .page-promotions__step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-promotions__step-item p {
    color: #555555;
    margin-bottom: 25px;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
}

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

.page-promotions__term-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-promotions__term-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.page-promotions__term-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Why Choose Us Section */
.page-promotions__why-choose-us {
    padding: 60px 0;
}

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

.page-promotions__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__feature-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-promotions__feature-item p {
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__feature-item .page-promotions__btn-secondary {
    margin-top: auto;
    align-self: center;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    user-select: none;
    background-color: var(--color-deep-green);
}

.page-promotions__faq-question:hover {
    background-color: var(--color-primary);
}

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

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

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

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

.page-promotions__faq-item summary {
    list-style: none;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding: 60px 0 80px 0;
    text-align: center;
}

.page-promotions__cta-final {
    margin-top: 40px;
    font-size: 1.3rem;
    padding: 15px 35px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions__content-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-promotions__content-grid .page-promotions__text-block {
        order: 1; /* Text first on desktop */
    }
    .page-promotions__content-grid .page-promotions__image-block {
        order: 2;
    }
    .page-promotions__hero-content {
        padding: 80px 40px;
    }
}

@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2.2rem, 5vw, 3.8rem);
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-content {
        padding: 40px 15px;
        margin-top: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        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;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-promotions__hero-content .page-promotions__btn-primary {
        margin-top: 20px;
    }

    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__why-choose-us,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__section-title {
        margin-bottom: 30px;
    }

    .page-promotions__sub-title {
        font-size: 1.5rem;
    }

    .page-promotions__intro-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-promotions__card-title {
        font-size: 1.3rem;
    }

    .page-promotions__card-description {
        font-size: 0.95rem;
    }

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

    .page-promotions__step-title,
    .page-promotions__feature-title {
        font-size: 1.4rem;
    }

    .page-promotions__term-title {
        font-size: 1.2rem;
    }

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

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

    /* Mobile image responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__image-block,
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__term-item,
    .page-promotions__feature-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__promotion-cards,
    .page-promotions__step-list,
    .page-promotions__terms-grid,
    .page-promotions__feature-list {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Ensure all images and their containers are responsive and don't cause overflow */
    .page-promotions__image-responsive {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-promotions__card-image {
        max-width: 100% !important;
        height: auto !important;
    }
}