/* style/promotions.css */

/* --- Base Styles & Variables --- */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Auxiliary */
    --color-background: #08160F; /* Background */
    --color-card-bg: #11271B; /* Card BG */
    --color-text-main: #F2FFF6; /* Text Main */
    --color-text-secondary: #A7D9B8; /* Text Secondary */
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */

    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    background-color: var(--color-background); /* Body background is handled by shared.css, this is for main content area */
    color: var(--color-text-main);
    line-height: 1.6;
    font-family: 'Arial', sans-serif; /* Example font */
}

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

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--color-deep-green); /* Fallback background */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

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

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

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

.page-promotions__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* --- General Buttons --- */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-details,
.page-promotions__btn-register,
.page-promotions__btn-deposit,
.page-promotions__btn-view-promotions,
.page-promotions__btn-support {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: var(--color-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3), 0 0 10px var(--color-glow);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 15px var(--color-glow);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-promotions__btn-details,
.page-promotions__btn-register,
.page-promotions__btn-deposit,
.page-promotions__btn-view-promotions,
.page-promotions__btn-support {
    background: var(--button-gradient);
    color: var(--color-text-main);
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 5px;
}

.page-promotions__btn-details:hover,
.page-promotions__btn-register:hover,
.page-promotions__btn-deposit:hover,
.page-promotions__btn-view-promotions:hover,
.page-promotions__btn-support:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-1px);
}

/* --- Section Titles & Text --- */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-promotions__text-content {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text-content a {
    color: var(--color-gold);
    text-decoration: underline;
}

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

/* --- Benefits Section --- */
.page-promotions__benefits-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-promotions__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__benefit-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-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;
    align-items: center;
    min-height: 400px; /* Ensure minimum height for content */
}

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

.page-promotions__benefit-icon {
    width: 100%; /* Occupy card width */
    max-width: 250px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-promotions__benefit-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    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;
}

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

.page-promotions__promotion-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-promotions__promotion-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allow content to grow */
}

.page-promotions__promotion-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__promotion-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

/* --- How-To-Claim Section --- */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--color-background);
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.page-promotions__step-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__btn-register,
.page-promotions__btn-deposit,
.page-promotions__btn-view-promotions,
.page-promotions__btn-support {
    width: fit-content;
    margin-top: auto; /* Push button to bottom */
}


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

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 40px;
    color: var(--color-text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1rem;
}

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

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    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 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-gold);
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

.page-promotions__faq-question:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

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

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

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

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
}

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

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

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

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

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-details,
    .page-promotions__btn-register,
    .page-promotions__btn-deposit,
    .page-promotions__btn-view-promotions,
    .page-promotions__btn-support {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__text-content {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-promotions__benefits-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 50px 0;
    }

    .page-promotions__benefits-grid,
    .page-promotions__promotion-grid,
    .page-promotions__step-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promotion-image {
        height: 200px; /* Adjust height for mobile */
    }

    .page-promotions__promotion-title {
        font-size: 1.2rem;
    }

    .page-promotions__promotion-description {
        font-size: 0.9rem;
    }

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

    .page-promotions__step-description {
        font-size: 0.9rem;
    }

    .page-promotions__terms-list {
        padding-left: 20px;
    }

    .page-promotions__terms-item {
        font-size: 0.95rem;
    }

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

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

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Mobile image responsiveness */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-promotions__hero-section,
    .page-promotions__benefits-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__container,
    .page-promotions__benefit-card,
    .page-promotions__promotion-card,
    .page-promotions__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-promotions__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Ensure content images are at least 200px */
.page-promotions__benefit-icon,
.page-promotions__promotion-image {
    min-width: 200px;
    min-height: 200px;
}