/* style/promotions.css */

/* --- Variables (from custom colors) --- */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* --- General Styles --- */
.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* #F2FFF6 */
    background-color: var(--background); /* #08160F */
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-promotions__section-title--light {
    color: var(--text-main); /* Ensures light text on dark background */
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--text-secondary); /* #A7D9B8 */
    text-align: center;
    margin-bottom: 30px;
}

.page-promotions__description--light {
    color: var(--text-secondary); /* Ensures light text on dark background */
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: none;
}

.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-color: transparent;
    color: var(--text-main); /* #F2FFF6 */
    border: 2px solid var(--border); /* #2E7A4E */
}

.page-promotions__btn-secondary:hover {
    background-color: var(--border); /* #2E7A4E */
    color: #ffffff;
}

.page-promotions__dark-section {
    background-color: var(--card-bg); /* #11271B */
    padding: 60px 0;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background); /* #08160F */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 800;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

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

.page-promotions__card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); /* #2E7A4E */
}

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Constrain image width within card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-promotions__card-text {
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* --- VIP Section --- */
.page-promotions__vip-section .page-promotions__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-promotions__vip-content {
    flex: 1;
}

.page-promotions__vip-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-promotions__vip-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

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

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-promotions__terms-item {
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-secondary); /* #A7D9B8 */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--divider); /* #1E3A2A */
    font-size: 1em;
}

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

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

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

.page-promotions__step-card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border); /* #2E7A4E */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: 800;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    display: block;
}

.page-promotions__step-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 10px;
}

.page-promotions__step-text {
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-promotions__faq-item {
    background-color: var(--card-bg); /* #11271B */
    border: 1px solid var(--border); /* #2E7A4E */
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--text-main); /* #F2FFF6 */
}

.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main); /* #F2FFF6 */
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--gold); /* #F2C14E */
    line-height: 1;
}

.page-promotions__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 0.95em;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* --- Final CTA Section --- */
.page-promotions__cta-final-section {
    padding: 60px 0;
    text-align: center;
}

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

/* --- Image & Video Responsive (Global) --- */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-promotions video,
.page-promotions__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__vip-section .page-promotions__container {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-promotions__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Mobile specific image, video, button adaptations with !important */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions video,
    .page-promotions__video {
        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__vip-section .page-promotions__container,
    .page-promotions__terms-section .page-promotions__container,
    .page-promotions__how-to-claim-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__cta-final-section .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-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 overflow */
    }

    /* Buttons responsive */
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 8vw, 2em);
    }
    .page-promotions__card-title {
        font-size: 1.2em;
    }
    .page-promotions__step-title {
        font-size: 1.3em;
    }
    .page-promotions__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px 15px;
    }
}