/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Auxiliary */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F; /* Body background */
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Body background from shared.css is var(--bg-color). Assuming it's dark like --color-background */
/* Text colors are set to light colors to ensure contrast on dark backgrounds */
.page-promotions {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Light text on dark background */
    background-color: var(--color-background); /* Explicitly set for main content area if needed, but body takes precedence */
    line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--color-deep-green); /* A darker shade for the hero background */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image container */
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin: 0 10px 15px; /* Spacing between buttons */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--color-gold); /* Gold text */
    border: 2px solid var(--color-gold);
}

.page-promotions__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-background); /* Dark text on gold hover */
}

/* General Section Styling */
.page-promotions__section {
    padding: 60px 0;
    background-color: var(--color-background);
}

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

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions__paragraph {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

/* Promo Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-promotions__promo-card {
    background-color: var(--color-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-main); /* Light text on dark card */
}

.page-promotions__promo-card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-promotions__card-title {
    font-size: 1.7rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
    text-align: justify;
}

/* Steps Grid */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

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

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

/* Advantage List */
.page-promotions__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.page-promotions__advantage-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-promotions__advantage-heading {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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;
    color: var(--color-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Slightly different dark background for question */
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

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

.page-promotions__faq-question:hover {
    background-color: var(--color-deep-green);
    filter: brightness(1.2); /* Slight hover effect */
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-promotions__faq-answer {
    padding: 0 25px 15px;
    font-size: 1rem;
    color: var(--color-text-secondary);
    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 {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 15px;
}

.page-promotions__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    padding-bottom: 80px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        max-width: 700px;
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__advantage-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles header offset, this is just for visual spacing */
        padding-bottom: 30px;
    }

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

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

    .page-promotions__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 0 15px !important; /* Stack buttons vertically */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__hero-content .page-promotions__cta-button {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .page-promotions__container {
        padding: 0 15px !important; /* Add padding for mobile containers */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-promotions__paragraph {
        font-size: 0.95rem;
    }

    /* Images responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Card and image containers */
    .page-promotions__section,
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__advantage-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-promotions__promo-card, .page-promotions__step-card, .page-promotions__advantage-item {
        padding: 20px; /* Adjust card padding for smaller screens */
    }

    .page-promotions__promo-grid,
    .page-promotions__steps-grid,
    .page-promotions__advantage-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-promotions__card-title,
    .page-promotions__step-title,
    .page-promotions__advantage-heading {
        font-size: 1.4rem;
    }

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

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

/* Ensure no CSS filters are used on images */
.page-promotions img {
    filter: none !important;
}

/* Min image size enforcement for content area images */
.page-promotions__promo-card-image,
.page-promotions__step-card img { /* Assuming step cards might have images too */
    min-width: 200px;
    min-height: 200px;
}
/* For any img within .page-promotions (if not specifically targeted) */
.page-promotions img:not(.page-promotions__hero-image) { /* Exclude hero as it's large by design */
    min-width: 200px;
    min-height: 200px;
}