/* style/promotions.css */

/* Custom Color Variables */
:root {
    --page-promotions-color-primary: #11A84E;
    --page-promotions-color-secondary: #22C768;
    --page-promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-promotions-card-bg: #11271B;
    --page-promotions-bg: #08160F;
    --page-promotions-text-main: #F2FFF6;
    --page-promotions-text-secondary: #A7D9B8;
    --page-promotions-border: #2E7A4E;
    --page-promotions-glow: #57E38D;
    --page-promotions-gold: #F2C14E;
    --page-promotions-divider: #1E3A2A;
    --page-promotions-deep-green: #0A4B2C;

    /* For light sections (e.g., why choose section) */
    --page-promotions-light-bg-text: #333333; /* Dark text for light background */
    --page-promotions-light-bg: #ffffff; /* Default light background */
}

/* Base styles for the page content area */
.page-promotions {
    background-color: var(--page-promotions-bg);
    color: var(--page-promotions-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Container for max-width and centering */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-promotions__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Use clamp for H2 */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-promotions-text-main); /* Default for dark background */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-promotions-text-secondary);
}

/* Text color classes based on background */
.page-promotions__text-main {
    color: var(--page-promotions-text-main);
}

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

.page-promotions__dark-text {
    color: var(--page-promotions-light-bg-text); /* For light backgrounds */
}

/* Background color classes */
.page-promotions__dark-bg {
    background-color: var(--page-promotions-bg);
}

.page-promotions__light-bg {
    background-color: var(--page-promotions-light-bg);
    color: var(--page-promotions-light-bg-text); /* Ensure contrast */
}

.page-promotions__card-bg {
    background-color: var(--page-promotions-card-bg);
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    padding: 60px 0;
    padding-top: 10px; /* Small decorative top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Max width for image container */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-promotions__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Clamp for H1 to prevent oversized text on mobile */
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--page-promotions-text-main);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-promotions-text-secondary);
}

.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: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-promotions__btn-primary {
    background: var(--page-promotions-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--page-promotions-color-primary);
    border-color: var(--page-promotions-color-primary);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--page-promotions-color-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Button specific for cards */
.page-promotions__card-button {
    width: auto; /* Override max-width for card buttons on desktop */
    margin-top: 15px;
}

/* --- Promotions List Section --- */
.page-promotions__promotions-list {
    padding: 80px 0;
}

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

.page-promotions__promo-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
    border: 1px solid var(--page-promotions-border);
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent image display */
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1; /* Allow content to grow and fill space */
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-promotions__card-description {
    font-size: 1em;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to grow */
}

/* --- Why Choose Section --- */
.page-promotions__why-choose {
    padding: 80px 0;
}

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

.page-promotions__feature-item {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background-color: var(--page-promotions-light-bg); /* Use light background for features */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Light border for light background */
}

.page-promotions__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__feature-icon {
    width: 100%; /* Make feature image responsive within its container */
    max-width: 250px; /* Max width for feature icons */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__feature-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-promotions__feature-text {
    font-size: 1em;
    line-height: 1.5;
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
    padding: 80px 0;
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--page-promotions-color-primary);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--page-promotions-card-bg);
    transition: background-color 0.3s ease;
    color: var(--page-promotions-text-main);
    list-style: none; /* Remove default marker for details summary */
}

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

.page-promotions__faq-item:not([open]) .page-promotions__faq-question:hover {
    background-color: var(--page-promotions-deep-green); /* Slightly lighter hover for closed items */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-promotions-color-primary);
    margin-left: 15px;
}

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

/* --- Final CTA Section --- */
.page-promotions__cta-bottom {
    padding: 60px 0;
    text-align: center;
}

/* --- Copyright Info --- */
.page-promotions__copyright-info {
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
    background-color: var(--page-promotions-deep-green); /* A slightly different dark background for footer */
    color: var(--page-promotions-text-secondary);
    border-top: 1px solid var(--page-promotions-divider);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(2.2em, 4.5vw, 3.5em);
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-promotions__container,
    .page-promotions__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__promotions-list,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom,
    .page-promotions__promo-card,
    .page-promotions__feature-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Video section top padding (body handles --header-offset) */
    .page-promotions__video-section {
        padding-top: 10px !important; 
    }

    /* Button responsiveness */
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    .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 !important;
        padding-right: 15px !important;
    }

    .page-promotions__hero-section,
    .page-promotions__promotions-list,
    .page-promotions__why-choose,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom {
        padding: 40px 0;
    }

    .page-promotions__cards-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr; /* Single column layout for cards and features */
    }

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

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

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 7vw, 2em);
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* No CSS filters allowed for images */
.page-promotions img {
    filter: none !important; /* Ensure no filters are applied */
}