/* style/promotions.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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 {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main);
    background-color: var(--color-background);
    line-height: 1.6;
}

/* Ensure body padding-top is handled by shared.css */

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, header offset is on body */
    padding-bottom: 60px;
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__intro-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    color: var(--color-text-secondary);
}

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

.page-promotions__introduction,
.page-promotions__how-to-claim,
.page-promotions__conclusion {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-promotions__offers-list,
.page-promotions__faq-section {
    background-color: #111e17; /* Slightly lighter dark background for contrast */
    color: var(--color-text-main);
}

.page-promotions__dark-bg {
    background-color: var(--color-deep-green);
    color: var(--color-text-main);
}

.page-promotions__light-bg {
    background-color: #111e17;
    color: var(--color-text-main);
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.page-promotions__highlight {
    color: var(--color-gold);
    font-weight: bold;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
    margin: 10px 10px 10px 0;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--color-button-gradient-start), 0.4);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--color-gold), 0.2);
}

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

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

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

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

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

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

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

/* How-To-Claim List */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    border-left: 5px solid var(--color-gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
}

/* Terms & Conditions Checklist */
.page-promotions__checklist {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__checklist-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--color-text-secondary);
}

.page-promotions__checklist-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-glow);
    font-weight: bold;
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

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

.page-promotions__faq-item[open] {
    background-color: var(--color-deep-green);
    border-color: var(--color-glow);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

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

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--color-gold);
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

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

.page-promotions__conclusion .page-promotions__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    }

    .page-promotions__intro-text {
        font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

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

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

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

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

    .page-promotions__intro-text {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__paragraph,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__checklist-item,
    .page-promotions__faq-answer p {
        font-size: 1rem;
    }

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

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

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 1rem;
        padding: 12px 20px;
    }

    .page-promotions__card .page-promotions__btn-secondary {
        margin-bottom: 5px;
    }

    .page-promotions__card-content {
        padding: 20px;
    }

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

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

    /* Image, Video, Button Responsive Adaptations */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-promotions__cta-button,
    .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__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}