/* 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;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-promotions {
    background-color: var(--color-background); /* #08160F */
    color: var(--color-text-main); /* #F2FFF6 for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    color: var(--color-gold); /* #F2C14E */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-promotions__section-description {
    font-size: clamp(16px, 1.5vw, 20px);
    color: var(--color-text-secondary); /* #A7D9B8 */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px; /* General padding, body handles header offset */
    padding-top: 10px; /* Small top padding as per requirement */
    overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

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

.page-promotions__main-title {
    font-size: clamp(32px, 4.5vw, 60px); /* Using clamp as required */
    color: var(--color-gold); /* #F2C14E */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-promotions__description {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--color-text-secondary); /* #A7D9B8 */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    min-width: 200px;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
    background: var(--color-button-gradient-start); /* fallback */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* #F2FFF6 */
    border: 2px solid transparent;
    box-shadow: 0 0 15px var(--color-glow); /* #57E38D */
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--color-glow);
    opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    color: var(--color-text-main); /* #F2FFF6 */
}

/* Current Promotions Section */
.page-promotions__current-promotions {
    padding: 80px 0;
    background-color: var(--color-background); /* #08160F */
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg); /* #11271B */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--color-text-main); /* #F2FFF6 */
    border: 1px solid var(--color-border); /* #2E7A4E */
}

.page-promotions__promotion-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-glow); /* #57E38D */
}

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

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    margin: 20px 20px 10px 20px;
    line-height: 1.3;
    color: var(--color-gold); /* #F2C14E */
}

.page-promotions__card-title a {
    color: var(--color-gold); /* #F2C14E */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: var(--color-text-main); /* #F2FFF6 */
}

.page-promotions__card-text {
    font-size: 16px;
    color: var(--color-text-secondary); /* #A7D9B8 */
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-promotions__card-button {
    margin: 0 20px 20px 20px;
    width: auto; /* Allow button to size based on content */
    align-self: flex-start; /* Align button to start */
}


/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
    background-color: var(--color-background); /* #08160F */
    color: var(--color-text-main); /* #F2FFF6 */
}

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

.page-promotions__step-item {
    background-color: var(--color-card-bg); /* #11271B */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--color-border); /* #2E7A4E */
}

.page-promotions__step-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-promotions__step-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--color-gold); /* #F2C14E */
    margin-bottom: 15px;
}

.page-promotions__step-text {
    font-size: 16px;
    color: var(--color-text-secondary); /* #A7D9B8 */
}

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

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* #0A4B2C */
    color: var(--color-text-main); /* #F2FFF6 */
}

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

.page-promotions__faq-item {
    background-color: var(--color-card-bg); /* #11271B */
    border: 1px solid var(--color-border); /* #2E7A4E */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-gold); /* #F2C14E */
    cursor: pointer;
    background-color: var(--color-card-bg); /* #11271B */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(17, 39, 27, 0.8); /* Slightly lighter version of card_bg */
}

.page-promotions__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-glow); /* #57E38D */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--color-text-secondary); /* #A7D9B8 */
    line-height: 1.8;
}

/* CTA Section at bottom */
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: var(--color-background); /* #08160F */
    text-align: center;
}

.page-promotions__cta-content {
    max-width: 800px;
}

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

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 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;
    }

    /* Image containers */
    .page-promotions__hero-image-wrapper,
    .page-promotions__promotion-card,
    .page-promotions__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-promotions__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-promotions__hero-image {
        height: 300px;
        margin-bottom: 30px;
    }

    .page-promotions__main-title {
        font-size: 32px;
    }

    .page-promotions__description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to buttons container */
    }

    /* Buttons responsiveness */
    .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: 12px 20px !important; /* Adjust padding for mobile */
        font-size: 16px !important;
    }

    .page-promotions__promotions-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

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

    .page-promotions__card-title {
        font-size: 20px;
        margin: 15px 15px 8px 15px;
    }

    .page-promotions__card-text {
        font-size: 15px;
        padding: 0 15px 15px 15px;
    }

    .page-promotions__card-button {
        margin: 0 15px 15px 15px;
    }

    .page-promotions__step-item {
        padding: 25px;
    }

    .page-promotions__step-image {
        max-width: 250px;
        margin-bottom: 20px;
    }

    .page-promotions__step-title {
        font-size: 22px;
    }

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

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

    .page-promotions__section-title {
        font-size: 28px;
    }

    .page-promotions__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

/* Ensure no filter is used for images */
.page-promotions img {
    filter: none !important; /* Explicitly disable any potential filter */
}

/* Content area image CSS dimensions lower bound check */
.page-promotions__promotion-card .page-promotions__card-image,
.page-promotions__how-to-claim .page-promotions__step-image {
    min-width: 200px;
    min-height: 200px;
}