/* style/promotions.css */

/* Root variables for 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 */
.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions__section {
    padding: 60px 20px;
    border-bottom: 1px solid var(--color-divider);
}

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

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

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px 60px;
    z-index: 1;
}

.page-promotions__main-title {
    color: var(--color-gold);
    font-size: clamp(2em, 5vw, 3.5em);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-promotions__subtitle {
    color: var(--color-text-main);
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* CTA Button */
.page-promotions__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--wide {
    min-width: 280px;
}

.page-promotions__cta-button--secondary {
    background: none;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    margin-left: 20px;
    box-shadow: none;
}

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

/* Section Titles and Descriptions */
.page-promotions__section-title {
    color: var(--color-gold);
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    color: var(--color-text-secondary);
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Promotion Categories */
.page-promotions__promotion-categories {
    background-color: var(--color-card-bg);
}

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

.page-promotions__category-card {
    background-color: var(--color-deep-green);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-promotions__card-title {
    color: var(--color-primary);
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-promotions__card-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-promotions__card-button:hover {
    background-color: var(--color-secondary);
}

/* Current Promotions List */
.page-promotions__current-promotions {
    background-color: var(--color-background);
}

.page-promotions__promotion-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__promotion-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

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

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

.page-promotions__promotion-title {
    color: var(--color-primary);
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promotion-text {
    color: var(--color-text-secondary);
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__promotion-button {
    display: inline-block;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-promotions__promotion-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__button-group {
    text-align: center;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: var(--color-deep-green);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 900px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-content {
    text-align: left;
}

.page-promotions__step-title {
    color: var(--color-gold);
    font-size: 1.6em;
    margin-bottom: 8px;
}

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

.page-promotions__step-text a {
    color: var(--color-secondary);
    text-decoration: underline;
}

.page-promotions__step-text a:hover {
    color: var(--color-gold);
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--color-background);
}

.page-promotions__faq-list {
    margin-top: 40px;
    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: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-primary);
    list-style: none;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question:hover {
    background-color: rgba(var(--color-primary), 0.1);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: rgba(var(--color-primary), 0.1);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--color-gold);
}

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

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

/* Bottom CTA Section */
.page-promotions__cta-bottom {
    background-color: var(--color-deep-green);
    text-align: center;
    padding-bottom: 80px;
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--color-text-main);
}

.page-promotions__cta-bottom .page-promotions__section-description {
    color: var(--color-text-secondary);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions__promotion-item {
        flex-direction: row;
    }

    .page-promotions__promotion-image {
        width: 40%;
        height: auto;
    }

    .page-promotions__promotion-content {
        width: 60%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 10px 0 30px;
    }

    .page-promotions__hero-image {
        margin-bottom: 20px;
    }

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

    .page-promotions__main-title {
        font-size: 2em;
    }

    .page-promotions__subtitle {
        font-size: 1em;
    }

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 0.9em;
        margin-bottom: 10px; /* For stacked buttons */
    }

    .page-promotions__cta-button--secondary {
        margin-left: 0;
    }

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

    .page-promotions__section-title {
        font-size: 2em;
    }

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

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

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

    .page-promotions__promotion-title {
        font-size: 1.4em;
    }

    .page-promotions__promotion-text {
        font-size: 0.9em;
    }

    .page-promotions__promotion-button {
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .page-promotions__button-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-promotions__step-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .page-promotions__step-number {
        margin: 0 auto 15px auto;
    }

    .page-promotions__step-title {
        font-size: 1.4em;
    }

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

    /* Mobile image and video responsive overrides */
    .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__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promotion-item,
    .page-promotions__category-card,
    .page-promotions__faq-item,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    .page-promotions__video-section {
        padding-top: 10px !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__button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Adjust gap for stacked buttons */
    }
}