/* style/promotions.css */

/* Variables (if needed, but direct use of HEX is fine as per prompt) */
:root {
    --page-promotions-primary-color: #2F6BFF;
    --page-promotions-secondary-color: #6FA3FF;
    --page-promotions-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-promotions-card-bg: #FFFFFF;
    --page-promotions-bg: #F4F7FB;
    --page-promotions-text-main: #1F2D3D;
    --page-promotions-text-black: #000000;
    --page-promotions-border-color: #D6E2FF;
    --page-promotions-glow-color: #A5C4FF;
    /* This var should be defined in shared.css for body padding-top */
    /* --header-offset: 122px; */ 
}

.page-promotions {
    padding-top: 10px; /* Small top padding for the first section, body handles --header-offset */
    background-color: var(--page-promotions-bg); /* Background color for the entire page content */
    color: var(--page-promotions-text-main);
    font-family: Arial, sans-serif; /* Example font */
}

.page-promotions__container {
    max-width: 1280px; /* Aligns with 1200-1390px range */
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: var(--page-promotions-primary-color); /* Fallback background */
    display: flex; /* Enforce top-image, bottom-content */
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 40px; /* Padding for content below image */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
}

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

.page-promotions__hero-content {
    max-width: 800px;
    padding: 20px;
    background-color: var(--page-promotions-primary-color); /* Match hero section background */
    color: #FFFFFF; /* White text for contrast */
    border-radius: 0 0 10px 10px; /* Rounded bottom corners */
    margin-top: -1px; /* Overlap slightly to hide border */
    position: relative; /* For z-index if needed, but no absolute positioning */
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-promotions__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* White text for H1 */
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0; /* Slightly off-white for description */
}

.page-promotions__hero-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-promotions-button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 50px; /* Ensure button is not too small */
}

.page-promotions__hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Promotions List Section */
.page-promotions__list-section {
    padding: 40px 0;
    background-color: var(--page-promotions-bg);
}

.page-promotions__list-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-promotions-text-black); /* Black for section titles */
}

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

.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.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: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-promotions__card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

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

.page-promotions__card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-promotions-text-main);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--page-promotions-button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s ease;
    align-self: flex-start; /* Align button to start of content */
    min-width: 150px; /* Ensure button is not too small */
    min-height: 40px; /* Ensure button is not too small */
}

.page-promotions__card-button:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%); /* Slightly different gradient on hover */
}

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

.page-promotions__faq-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-promotions-text-black);
}

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

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

.page-promotions__faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
}

.page-promotions__faq-answer {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-promotions-text-main);
}

.page-promotions__view-all-faq-button {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 15px 30px;
    background: var(--page-promotions-button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 200px; /* Ensure button is not too small */
    min-height: 50px; /* Ensure button is not too small */
}

.page-promotions__view-all-faq-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-promotions__container {
        padding: 15px;
    }

    .page-promotions__hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

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

    .page-promotions__hero-button,
    .page-promotions__card-button,
    .page-promotions__view-all-faq-button {
        width: 100%;
        min-width: unset;
        max-width: 300px; /* Constrain width on small screens */
        margin-left: auto;
        margin-right: auto;
    }

    .page-promotions__list-title,
    .page-promotions__faq-title {
        font-size: 1.8rem;
    }

    .page-promotions__cards-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

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

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

    .page-promotions__faq-question {
        font-size: 1.1rem;
    }

    /* Mobile content area images must use max-width: 100%; height: auto; */
    .page-promotions img {
        max-width: 100%;
        height: auto;
    }
}

/* Global image CSS constraints for content area (applied to all img within .page-promotions) */
.page-promotions img {
    min-width: 200px;
    min-height: 200px;
    /* Ensure no filter is applied to images */
    filter: none;
}

/* Specific overrides for smaller elements if necessary, ensuring min-size is respected */
.page-promotions__hero-image {
    min-width: 100%; /* Hero image should always be wide */
    min-height: 300px; /* Minimum height for hero */
}

/* Ensure no CSS filter changes image colors */
.page-promotions img {
    filter: none !important;
}

/* Ensure content images are not smaller than 200px by CSS */
/* This rule targets all img within .page-promotions */
.page-promotions img {
    /* If an image's HTML width/height is set to something smaller than 200px (which is forbidden by HTML rules),
       this CSS would try to enforce a minimum display. However, the HTML rules already prevent small images.
       This is a redundant check to ensure no CSS accidentally shrinks them. */
    min-width: 200px;
    min-height: 200px;
    width: auto; /* Allow HTML width/height to define initial size, then scale */
    height: auto;
}

/* Override for hero image specifically to take full width */
.page-promotions__hero-image {
    width: 100%; /* This will be overridden by max-width:100% and height:auto on mobile, but for desktop, it's 100% of its wrapper */
}