/* style/promotions.css */

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

.page-promotions {
    color: var(--page-promotions-text-main); /* Light text on dark body background */
    background-color: var(--page-promotions-bg); /* Ensure consistency if body bg is not shared */
    font-family: Arial, sans-serif; /* Example font */
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-promotions-deep-green); /* A darker shade for hero background */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for image container */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--page-promotions-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

.page-promotions__cta-button {
    display: inline-block;
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

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

.page-promotions__cta-button--large {
    padding: 18px 50px;
    font-size: 1.3rem;
}

.page-promotions__cta-button--centered {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    display: table; /* To center an inline-block with margin auto */
}

/* General Section Styling */
.page-promotions__section {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--page-promotions-bg);
}

.page-promotions__dark-section {
    background-color: var(--page-promotions-deep-green);
    color: var(--page-promotions-text-main);
}

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

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--page-promotions-gold);
    margin-bottom: 40px;
    font-weight: 700;
}

.page-promotions__text-block {
    font-size: 1.1rem;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text-block a {
    color: var(--page-promotions-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-promotions__text-block a:hover {
    color: var(--page-promotions-glow);
}

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

.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 15px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as a block element */
}

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    line-height: 1.5;
}

/* VIP Section */
.page-promotions__vip-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-promotions__vip-text {
    flex: 1;
    min-width: 300px;
}

.page-promotions__vip-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__btn-primary {
    display: inline-block;
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.page-promotions__btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--page-promotions-gold);
    border: 2px solid var(--page-promotions-gold);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-gold);
    color: var(--page-promotions-deep-green); /* Darker text on gold hover */
    transform: translateY(-2px);
}


/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-item strong {
    color: var(--page-promotions-text-main);
}

/* How to Claim Section */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__step-card {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--page-promotions-btn-gradient);
    color: var(--page-promotions-text-main);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.page-promotions__image-and-cta {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-promotions__claim-guide-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-promotions-text-main);
    cursor: pointer;
    background-color: var(--page-promotions-deep-green); /* Slightly darker for question */
    border-bottom: 1px solid var(--page-promotions-divider);
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
    filter: brightness(1.1);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    color: var(--page-promotions-gold);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-promotions__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--page-promotions-text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--page-promotions-divider);
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-answer a {
    color: var(--page-promotions-gold);
    text-decoration: underline;
}
.page-promotions__faq-answer a:hover {
    color: var(--page-promotions-glow);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding-bottom: 80px;
}

.page-promotions__conclusion-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
    }
    .page-promotions__section {
        padding: 60px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-promotions__vip-content {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-text,
    .page-promotions__vip-image-wrapper {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .page-promotions__cta-button--large {
        padding: 15px 40px;
        font-size: 1.1rem;
    }

    /* Mobile image, video, button, container specific rules */
    .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-image-wrapper,
    .page-promotions__vip-image-wrapper,
    .page-promotions__claim-guide-image,
    .page-promotions__conclusion-image,
    .page-promotions__image-and-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Button specific mobile rules */
    .page-promotions__cta-button,
    .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; /* Ensure buttons take full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-promotions__cta-button--centered {
        display: block !important; /* Override table display for full width */
    }

    /* If multiple buttons are in a group, make them stack */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: 150px;
    }
    .page-promotions__terms-item,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section,
    .page-promotions__section {
        padding: 20px 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem);
    }
    .page-promotions__cta-button {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    .page-promotions__cta-button--large {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__hero-description,
    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__faq-answer {
        font-size: 0.9rem;
    }
    .page-promotions__card-title,
    .page-promotions__step-title,
    .page-promotions__faq-qtext {
        font-size: 1.2rem;
    }
    .page-promotions__step-card,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        padding: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 15px;
    }
}

/* Color Contrast Enforcement */
/* Default text color for the page content, assuming a dark background from shared.css */
.page-promotions {
  color: var(--page-promotions-text-main); /* #F2FFF6 */
}

/* Ensure all links have appropriate contrast */
.page-promotions a {
  color: var(--page-promotions-gold); /* #F2C14E */
}
.page-promotions a:hover {
  color: var(--page-promotions-glow); /* #57E38D */
}

/* Card and container backgrounds are dark, so text should be light */
.page-promotions__card,
.page-promotions__terms-item,
.page-promotions__step-card,
.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg); /* #11271B */
  color: var(--page-promotions-text-secondary); /* #A7D9B8 */
}

.page-promotions__card-title,
.page-promotions__step-title,
.page-promotions__faq-qtext {
  color: var(--page-promotions-text-main); /* #F2FFF6 */
}

/* Buttons already defined with gradient and light text, ensuring contrast */
/* .page-promotions__cta-button, .page-promotions__btn-primary */
/* .page-promotions__btn-secondary has gold border/text on dark bg, which should be fine */

/* Specific dark sections should have light text */
.page-promotions__dark-section {
  background-color: var(--page-promotions-deep-green); /* #0A4B2C */
  color: var(--page-promotions-text-main); /* #F2FFF6 */
}

/* FAQ question background is deep green, text is main text color */
.page-promotions__faq-question {
    background-color: var(--page-promotions-deep-green); /* #0A4B2C */
    color: var(--page-promotions-text-main); /* #F2FFF6 */
}
.page-promotions__faq-toggle {
    color: var(--page-promotions-gold); /* #F2C14E */
}