/* style/promotions.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --site-bg-dark: #08160F; /* Assuming body background will be this or similar dark from shared.css */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-promotions {
    background-color: var(--site-bg-dark); /* Apply the dark background */
    color: var(--text-main); /* Default text color for the page content */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 60px; /* Space above footer */
}

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

/* 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;
    padding-top: 10px; /* Small fixed padding-top, body handles header offset */
    background-color: var(--deep-green); /* A slightly different dark background for hero */
    overflow: hidden; /* Ensure no image overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure it takes full width within max-width */
}

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

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-promotions__main-title {
    color: var(--text-main);
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Using clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 0;
    text-align: center;
}

.page-promotions__section-title {
    color: var(--gold-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-promotions__section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-promotions__intro-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 900px;
    margin: 20px auto;
}

/* Highlights Section - Dark Background */
.page-promotions__highlights-section {
    background-color: var(--deep-green);
    padding: 80px 0;
}

.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(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main); /* Ensure light text on dark card background */
}

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

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

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

.page-promotions__card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-promotions__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


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

.page-promotions__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
    text-align: left;
    counter-reset: step-counter;
}

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

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

.page-promotions__guide-step-title {
    color: var(--gold-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.page-promotions__guide-step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: var(--primary-color);
    color: var(--text-main);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-promotions__guide-list p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 50px; /* Align with title text */
}

/* Terms Section */
.page-promotions__terms-section {
    background-color: var(--deep-green);
    padding: 80px 0;
}

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

.page-promotions__terms-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main);
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
    background: var(--deep-green); /* Slightly lighter dark for hover */
}

.page-promotions__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main);
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 25px 20px;
    background: var(--deep-green); /* Slightly different background for answer */
    border-radius: 0 0 10px 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.page-promotions__copyright {
    background-color: var(--deep-green);
    color: var(--text-secondary);
    text-align: center;
    padding: 20px 15px;
    font-size: 0.9rem;
    border-top: 1px solid var(--divider-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    .page-promotions__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

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

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

    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100% !important; /* Force full width on mobile */
        max-width: 300px !important; /* Limit max width for a cleaner look */
        margin-left: auto;
        margin-right: auto;
    }

    .page-promotions__section {
        padding: 40px 0;
    }

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

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

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

    .page-promotions__card {
        padding: 20px;
        text-align: center; /* Center text in cards for mobile */
    }
    
    .page-promotions__card-image {
        height: 160px;
    }

    .page-promotions__card-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .page-promotions__card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 250px !important; /* Limit max width for a cleaner look */
        margin-left: auto;
        margin-right: auto;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .page-promotions__guide-list li {
        padding: 20px;
    }

    .page-promotions__guide-step-title {
        font-size: 1.1rem;
    }

    .page-promotions__guide-step-title::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        margin-right: 10px;
    }

    .page-promotions__guide-list p {
        font-size: 0.9rem;
        padding-left: 40px;
    }

    .page-promotions__terms-list li {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    details.page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px 20px;
    }

    .page-promotions__faq-qtext {
        font-size: 1rem;
    }

    .page-promotions__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

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

    /* Mobile image overflow fix */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-promotions__hero-section,
    .page-promotions__highlights-section .page-promotions__container,
    .page-promotions__guide-section .page-promotions__container,
    .page-promotions__terms-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}