/* style/promotions.css */

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

.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;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--color-background);
    overflow: hidden;
}

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

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    color: var(--color-text-main);
}

.page-promotions__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--color-text-main);
    max-width: 100%;
}

.page-promotions__description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

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

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

.page-promotions__btn-primary {
    background: var(--color-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

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

/* General Section Styling */
.page-promotions__overview-section,
.page-promotions__types-of-promotions,
.page-promotions__terms-conditions {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-promotions__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.page-promotions__section-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-promotions__text-main {
    color: var(--color-text-main);
}

.page-promotions__text-secondary {
    color: var(--color-text-secondary);
}

.page-promotions__text-gold {
    color: var(--color-gold);
}

/* Promotion Grid */
.page-promotions__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.page-promotions__promotion-card,
.page-promotions__category-card,
.page-promotions__exclusive-offer-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-promotions__promotion-card .page-promotions__card-image,
.page-promotions__exclusive-offer-card .page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions__promotion-card .page-promotions__card-title,
.page-promotions__category-card .page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin: 20px 20px 10px 20px;
    color: var(--color-text-main);
}

.page-promotions__promotion-card .page-promotions__card-text,
.page-promotions__category-card .page-promotions__card-text {
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0 20px 20px 20px;
    flex-grow: 1;
    color: var(--color-text-secondary);
}

.page-promotions__promotion-card .page-promotions__btn-primary {
    margin: 0 20px 20px 20px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 0;
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.page-promotions__step-item {
    text-align: center;
    color: var(--color-text-main);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-deep-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 0 15px var(--color-glow);
}

.page-promotions__step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.page-promotions__image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-promotions__guide-image,
.page-promotions__faq-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    margin: 0 auto;
}

/* Category Grid */
.page-promotions__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.page-promotions__category-card {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-card-bg);
}

.page-promotions__category-card .page-promotions__card-title {
    color: var(--color-text-main);
}

.page-promotions__category-card .page-promotions__card-text {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

.page-promotions__category-card .page-promotions__btn-secondary {
    margin: 5px auto;
    width: fit-content;
}

/* Exclusive Offer */
.page-promotions__f168-code-exclusive {
    padding: 60px 0;
}

.page-promotions__exclusive-offer-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    max-width: 1000px;
    margin: 40px auto 0 auto;
    background-color: var(--color-card-bg);
}

.page-promotions__exclusive-offer-card .page-promotions__card-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}

.page-promotions__exclusive-offer-card .page-promotions__card-content {
    padding: 30px;
    width: 50%;
}

.page-promotions__exclusive-offer-card .page-promotions__card-title {
    margin-top: 0;
    color: var(--color-text-main);
}

.page-promotions__exclusive-offer-card .page-promotions__card-text {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
    padding: 60px 0;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-promotions__terms-item {
    background-color: #f9f9f9;
    border-left: 4px solid var(--color-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.6;
    color: #444444;
}

.page-promotions__terms-item:last-child {
    margin-bottom: 0;
}

.page-promotions__terms-conditions .page-promotions__btn-secondary {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

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

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

.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: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-text-main);
    background-color: var(--color-deep-green);
    border-radius: 8px;
    list-style: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

.page-promotions__faq-section .page-promotions__image-wrapper {
    margin-top: 50px;
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--color-text-main);
}

.page-promotions__cta-bottom .page-promotions__section-description {
    color: var(--color-text-secondary);
}

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

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

@media (max-width: 768px) {
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

    .page-promotions__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid,
    .page-promotions__category-grid {
        gap: 20px;
        padding: 0 15px;
    }

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

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

    .page-promotions__exclusive-offer-card {
        flex-direction: column;
    }

    .page-promotions__exclusive-offer-card .page-promotions__card-image {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .page-promotions__exclusive-offer-card .page-promotions__card-content {
        width: 100%;
        padding: 25px;
    }

    .page-promotions__terms-item {
        font-size: 0.9em;
    }

    .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__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .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;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-promotions__video-section {
        padding-top: 10px !important;
    }
    .page-promotions__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.8em, 9vw, 2.2em);
    }

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

    .page-promotions__hero-section {
        padding: 30px 10px;
        padding-top: 10px !important;
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps-grid,
    .page-promotions__category-grid,
    .page-promotions__faq-list {
        padding: 0 10px;
    }
}