/* style/promotions.css */

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

.page-promotions {
    color: var(--text-main); /* Body background is dark, so text is light */
    background-color: var(--background-color);
    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;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small padding, body handles header offset */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.6);
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
    max-width: 900px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
}

.page-promotions__btn-secondary {
    background-color: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-color: var(--primary-color);
}

/* Sections */
.page-promotions__overview-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-conditions-section,
.page-promotions__faq-section,
.page-promotions__final-cta-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions__overview-section {
    background-color: var(--deep-green);
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

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

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

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

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-promotions__card-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Lists */
.page-promotions__numbered-list,
.page-promotions__bullet-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-promotions__numbered-list {
    counter-reset: promotion-step;
}

.page-promotions__list-item {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-promotions__numbered-list .page-promotions__list-item::before {
    counter-increment: promotion-step;
    content: counter(promotion-step) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.page-promotions__bullet-list .page-promotions__list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2em;
    top: 0;
}

.page-promotions__list-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-promotions__list-item a:hover {
    text-decoration: underline;
}

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

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    list-style: none; /* For details/summary */
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

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

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

.page-promotions__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__final-cta-section .page-promotions__cta-button {
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 60px 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-content {
        padding: 40px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__overview-section,
    .page-promotions__types-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__promotion-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__list-item,
    .page-promotions__text-block {
        font-size: 1em;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 15px;
    }

    /* Mobile specific overrides for images, videos, and buttons */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .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__hero-content .page-promotions__cta-button {
        margin-top: 20px;
    }

    .page-promotions__final-cta-section .page-promotions__cta-button {
        margin-top: 20px;
    }

    .page-promotions__faq-item[open] .page-promotions__faq-toggle {
        transform: rotate(45deg) !important; /* Ensure rotation on mobile */
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
    .page-promotions__card-title {
        font-size: 1.2em;
    }
    .page-promotions__card-description {
        font-size: 0.9em;
    }
    .page-promotions__list-item,
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
    }
}