/* style/promotions.css */

/* Custom properties for colors from the provided scheme */
:root {
    --page-promotions-primary-color: #2F6BFF;
    --page-promotions-secondary-color: #6FA3FF;
    --page-promotions-button-gradient-start: #4A8BFF;
    --page-promotions-button-gradient-end: #2F6BFF;
    --page-promotions-card-bg: #FFFFFF;
    --page-promotions-background: #F4F7FB;
    --page-promotions-text-main: #1F2D3D;
    --page-promotions-border-color: #D6E2FF;
    --page-promotions-glow-color: #A5C4FF;
}

/* Base styles for the page content, ensuring contrast with shared body background */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-promotions-text-main); /* Default text color, ensures contrast */
    background-color: var(--page-promotions-background); /* Page specific background */
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top distance as per requirement */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    margin-bottom: 30px; /* Space between image and content */
    box-sizing: border-box;
}

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

.page-promotions__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
    padding: 20px;
    background: var(--page-promotions-card-bg); /* Use white background for content to ensure contrast */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-50px); /* Overlap slightly with image for visual flow */
    margin-bottom: -50px; /* Adjust for overlap */
}

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

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

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

.page-promotions__cta-buttons--center {
    justify-content: center;
    margin-top: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--page-promotions-button-gradient-start) 0%, var(--page-promotions-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-promotions__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: var(--page-promotions-card-bg);
    color: var(--page-promotions-primary-color);
    border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-primary-color);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
    transform: translateY(-2px);
}

.page-promotions__card-button {
    background-color: var(--page-promotions-primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 5px;
    margin-top: auto; /* Push button to bottom of card */
}

.page-promotions__card-button:hover {
    background-color: var(--page-promotions-secondary-color);
}


/* Section Titles and Text */
.page-promotions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--page-promotions-primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-promotions-secondary-color);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.05rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 20px;
    text-align: justify;
}

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

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

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

.page-promotions__card {
    background: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-promotions__card-description {
    font-size: 0.95rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: var(--page-promotions-primary-color); /* Dark background */
    color: #ffffff; /* White text for contrast */
}

.page-promotions__how-to-claim .page-promotions__section-title {
    color: #ffffff; /* White title */
}

.page-promotions__how-to-claim .page-promotions__section-title::after {
    background-color: var(--page-promotions-secondary-color);
}

.page-promotions__how-to-claim .page-promotions__text-block {
    color: #f0f0f0;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.page-promotions__step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: var(--page-promotions-secondary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-content {
    text-align: left;
}

.page-promotions__step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: #f0f0f0;
}

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

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
}

.page-promotions__terms-item {
    font-size: 1rem;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
}

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

.page-promotions__faq-list {
    margin-top: 40px;
}

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

.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-primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

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

/* Initial state for max-height, managed by JS */
.page-promotions__faq-answer {
    padding: 0 25px;
    font-size: 1rem;
    color: var(--page-promotions-text-main);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    padding-bottom: 20px;
}

/* Final CTA Section */
.page-promotions__final-cta {
    padding: 80px 0;
    background-color: var(--page-promotions-primary-color); /* Dark background */
    color: #ffffff; /* White text for contrast */
    text-align: center;
}

.page-promotions__final-cta .page-promotions__section-title {
    color: #ffffff;
}

.page-promotions__final-cta .page-promotions__section-title::after {
    background-color: var(--page-promotions-secondary-color);
}

.page-promotions__final-cta .page-promotions__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        transform: translateY(-30px);
        margin-bottom: -30px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top distance as per requirement */
    }

    .page-promotions__hero-content {
        padding: 15px;
        transform: translateY(-20px);
        margin-bottom: -20px;
    }

    .page-promotions__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

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

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

    /* Mobile button responsive rules */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-promotions__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

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

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 180px;
    }

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

    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-promotions__step-number {
        margin-bottom: 15px;
    }

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

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    /* Mobile image responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter on images */
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__video-section { /* Placeholder, not used in this page */
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8rem;
    }
    .page-promotions__section-title {
        font-size: 1.6rem;
    }
    .page-promotions__hero-content {
        padding: 10px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Ensure no filter on any images globally */
.page-promotions img {
    filter: none;
}