/* style/promotions.css */

/* Custom Colors */
:root {
    --promotions-bg: #08160F; /* Background */
    --promotions-card-bg: #11271B; /* Card BG */
    --promotions-text-main: #F2FFF6; /* Text Main */
    --promotions-text-secondary: #A7D9B8; /* Text Secondary */
    --promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --promotions-border: #2E7A4E; /* Border */
    --promotions-glow: #57E38D; /* Glow */
    --promotions-gold: #F2C14E; /* Gold */
    --promotions-divider: #1E3A2A; /* Divider */
    --promotions-deep-green: #0A4B2C; /* Deep Green */
}

.page-promotions {
    background-color: var(--promotions-bg); /* Dark background */
    color: var(--promotions-text-main); /* Light text for contrast */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px; /* Adjust padding for desktop */
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure no overflow from images */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-promotions__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above any background elements if present */
    padding: 20px;
    background-color: rgba(17, 39, 27, 0.8); /* Semi-transparent dark card background */
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    margin-top: -80px; /* Overlap slightly with image for visual interest, but not text on image */
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size */
    color: var(--promotions-gold); /* Gold color for main title */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 8px var(--promotions-glow); /* Soft glow */
}

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

.page-promotions__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    max-width: 100%; /* Ensure buttons don't overflow */
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--promotions-button-gradient);
    color: #ffffff; /* White text on dark gradient button */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--promotions-text-main); /* Light text on transparent button */
    border: 2px solid var(--promotions-border);
}

.page-promotions__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Light transparent background on hover */
    border-color: var(--promotions-glow);
    color: var(--promotions-glow);
}

/* Content Area */
.page-promotions__content-area {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px 20px;
    background-color: var(--promotions-bg); /* Ensure content area also uses dark background */
    border-radius: 10px;
}

.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--promotions-text-main);
    font-weight: 700;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--promotions-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 25px;
    text-align: justify;
}

.page-promotions__image-in-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    object-fit: cover;
}

/* Promotion Cards */
.page-promotions__promotion-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--promotions-card-bg); /* Dark card background */
    color: var(--promotions-text-main); /* Light text on card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid var(--promotions-divider);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--promotions-gold);
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-promotions__card-button {
    display: inline-block;
    background: var(--promotions-button-gradient);
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    align-self: flex-start; /* Align button to start of flex item */
    transition: background 0.3s ease, transform 0.3s ease;
}

.page-promotions__card-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
}

/* Guide List */
.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__guide-list li {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-divider);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-promotions__guide-list li:hover {
    transform: translateX(5px);
}

.page-promotions__guide-step-title {
    font-size: 1.3rem;
    color: var(--promotions-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

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

/* Terms List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__terms-list li {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-divider);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.page-promotions__list-item-text {
    font-size: 1rem;
    color: var(--promotions-text-secondary);
}

.page-promotions__list-item-text strong {
    color: var(--promotions-gold);
}

/* Tips List */
.page-promotions__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__tips-list li {
    background-color: var(--promotions-card-bg);
    border: 1px solid var(--promotions-divider);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

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

.page-promotions__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--promotions-text-main);
    background-color: var(--promotions-deep-green); /* Darker background for summary */
    border-bottom: 1px solid var(--promotions-divider);
    list-style: none; /* Hide default marker */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary:hover {
    background-color: var(--promotions-border);
    color: var(--promotions-glow);
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--promotions-text-main);
}

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

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

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

/* CTA Bottom Section */
.page-promotions__cta-bottom-section {
    background-color: var(--promotions-deep-green); /* Deep Green background */
    padding: 80px 20px;
    text-align: center;
    margin-top: 60px;
    border-radius: 10px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.page-promotions__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-promotions__cta-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--promotions-gold);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-promotions__cta-description {
    font-size: 1.1rem;
    color: var(--promotions-text-secondary);
    margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure button group takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to button container */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-promotions__content-area {
        padding: 30px 15px;
    }

    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__guide-step-description,
    .page-promotions__list-item-text,
    .page-promotions__faq-answer p {
        font-size: 0.95rem;
    }

    .page-promotions__image-in-content,
    .page-promotions__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__promotion-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card {
        padding: 25px;
    }

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

    .page-promotions__guide-list li,
    .page-promotions__terms-list li,
    .page-promotions__tips-list li,
    .page-promotions__faq-item {
        padding: 20px 15px;
    }
    
    .page-promotions__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }

    .page-promotions__cta-bottom-section {
        padding: 60px 15px;
    }

    .page-promotions__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-promotions__cta-description {
        font-size: 1rem;
    }
    
    /* Ensure all containing elements for images/videos/buttons are constrained */
    .page-promotions__hero-image-wrapper,
    .page-promotions__content-area,
    .page-promotions__promotion-cards,
    .page-promotions__card,
    .page-promotions__guide-list,
    .page-promotions__guide-list li,
    .page-promotions__terms-list,
    .page-promotions__terms-list li,
    .page-promotions__tips-list,
    .page-promotions__tips-list li,
    .page-promotions__faq-list,
    .page-promotions__faq-item,
    .page-promotions__cta-bottom-section,
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content sections to prevent edge-to-edge content */
        /* Removed explicit left/right padding here as sections below handle it */
    }
    /* Specific override for elements that already have padding and should not double up */
    .page-promotions__hero-section,
    .page-promotions__content-area,
    .page-promotions__cta-bottom-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }
    .page-promotions__faq-item summary,
    .page-promotions__faq-answer {
        padding-left: 20px;
        padding-right: 20px;
    }
}