/* 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;
}

/* Base styles for the page content */
.page-promotions {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main);
    font-family: 'Arial', sans-serif; /* Placeholder font */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

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

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* To ensure the image can scale */
    margin-bottom: 30px;
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-promotions__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size clamp */
    color: var(--page-promotions-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

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

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: rgba(var(--page-promotions-glow), 0.1);
    border-color: var(--page-promotions-glow);
    transform: translateY(-2px);
}

.page-promotions__btn-primary--small {
    padding: 10px 20px;
    font-size: 1rem;
}

.page-promotions__btn-primary--large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

.page-promotions__cta-buttons--center {
    margin-top: 40px;
}

/* Section titles */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-promotions-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-promotions__section-title--light {
    color: var(--page-promotions-text-main);
}

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

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

/* Introduction Section */
.page-promotions__introduction-section {
    padding: 60px 0;
    background-color: var(--page-promotions-bg);
}

/* Types Section (Dark Background) */
.page-promotions__types-section {
    padding: 80px 0;
    background-color: var(--page-promotions-card-bg); /* Darker background for contrast */
}

.page-promotions__card-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: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--page-promotions-text-secondary); /* Text color for card */
}

.page-promotions__card:hover {
    transform: translateY(-8px);
    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: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it respects max-width: 100% */
}

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

.page-promotions__card-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Guide Section */
.page-promotions__guide-section {
    padding: 80px 0;
    background-color: var(--page-promotions-bg);
}

.page-promotions__guide-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    margin-top: 40px;
}

.page-promotions__guide-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-promotions__guide-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.page-promotions__guide-list li strong {
    color: var(--page-promotions-glow);
}

/* Terms Section (Dark Background) */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: var(--page-promotions-card-bg);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 20px;
    color: var(--page-promotions-text-secondary);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1rem;
}

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

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--page-promotions-bg);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 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;
    color: var(--page-promotions-text-secondary);
}

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

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid transparent; /* Remove border when open to avoid double line */
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or rotate */
}

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

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

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-promotions-deep-green);
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-promotions__guide-content {
        flex-direction: column;
        align-items: center;
    }
    .page-promotions__guide-image {
        max-width: 100%;
    }
    .page-promotions__guide-list {
        width: 100%;
    }
}

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

    .page-promotions__hero-section {
        padding-bottom: 40px;
    }

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

    .page-promotions__hero-description {
        font-size: 1rem;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container padding for images/videos/buttons */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__introduction-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section,
    .page-promotions__cta-buttons,
    .page-promotions__card-grid,
    .page-promotions__guide-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-promotions__card-image {
        height: auto; /* Allow height to adjust on mobile */
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }
}

/* Ensure body background color compatibility for text */
/* Body background is #08160F (dark), so text should be light #F2FFF6 or #A7D9B8 */
.page-promotions p,
.page-promotions li,
.page-promotions span {
    color: var(--page-promotions-text-secondary); /* Default text color */
}

.page-promotions h1,
.page-promotions h2,
.page-promotions h3,
.page-promotions h4,
.page-promotions h5,
.page-promotions h6 {
    color: var(--page-promotions-text-main); /* Headings are main text color */
}

/* Specific contrast adjustments */
.page-promotions__types-section .page-promotions__text-block,
.page-promotions__types-section .page-promotions__terms-list li {
    color: var(--page-promotions-text-secondary);
}
.page-promotions__types-section .page-promotions__section-title {
    color: var(--page-promotions-text-main);
}
.page-promotions__terms-section .page-promotions__text-block,
.page-promotions__terms-section .page-promotions__terms-list li {
    color: var(--page-promotions-text-secondary);
}
.page-promotions__terms-section .page-promotions__section-title {
    color: var(--page-promotions-text-main);
}
.page-promotions__cta-bottom-section .page-promotions__text-block,
.page-promotions__cta-bottom-section .page-promotions__section-title {
    color: var(--page-promotions-text-main);
}