/* style/promotions.css */

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

.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for visual separation, not for header offset */
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

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

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

.page-promotions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__dark-section {
    background-color: var(--color-card-bg);
}

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

.page-promotions__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    color: var(--color-gold);
    margin-bottom: 40px;
    font-weight: bold;
}

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

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

.page-promotions__feature-item {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--color-border);
}

.page-promotions__feature-icon {
    width: 200px; /* Min size 200x200px */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promotions__feature-title {
    font-size: 1.4em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__feature-description {
    color: var(--color-text-secondary);
    font-size: 0.95em;
}

.page-promotions__promo-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: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be scaled down for mobile */
    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.3em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-promotions__card-title a:hover {
    text-decoration: underline;
}

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

.page-promotions__card-button {
    margin-top: auto; /* Push button to the bottom */
    width: 100%;
}

.page-promotions__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

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

.page-promotions__step-title {
    font-size: 1.3em;
    color: var(--color-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-promotions__step-description a {
    color: var(--color-glow);
    text-decoration: none;
}

.page-promotions__step-description a:hover {
    text-decoration: underline;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background-color: var(--color-background);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--color-text-secondary);
    border-left: 3px solid var(--color-divider);
    font-size: 1em;
}

.page-promotions__terms-item a {
    color: var(--color-glow);
    text-decoration: none;
}

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

.page-promotions__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-deep-green);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
    background-color: var(--color-primary);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-promotions__faq-answer {
    padding: 20px;
    background-color: var(--color-background);
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-border);
    font-size: 1em;
}

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

.page-promotions__faq-answer a {
    color: var(--color-glow);
    text-decoration: none;
}

.page-promotions__faq-answer a:hover {
    text-decoration: underline;
}

.page-promotions__cta-section {
    background-color: var(--color-deep-green);
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__cta-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__container,
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__promo-grid,
    .page-promotions__feature-list,
    .page-promotions__step-list,
    .page-promotions__terms-list,
    .page-promotions__faq-list,
    .page-promotions__cta-buttons {
        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 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions video, /* Ensure video styles are consistent if added */
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__video-section, /* Ensure video container styles are consistent if added */
    .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;
        padding-top: 10px !important; /* Small top padding for visual separation */
    }

    .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; /* Ensure padding inside button for text */
    }

    .page-promotions__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    .page-promotions__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
    }

    .page-promotions__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }

    .page-promotions__feature-list,
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card-image {
        height: auto; /* Allow image to scale with width */
    }

    .page-promotions__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }

    .page-promotions__faq-answer {
        padding: 15px;
    }
    
    .page-promotions__feature-icon {
        width: 150px; /* Adjusted to be > 200px visually for mobile while maintaining min 200px source */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section,
    .page-promotions__section,
    .page-promotions__cta-section {
        padding: 20px 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.3em, 8vw, 2em);
    }
    .page-promotions__section-title {
        font-size: clamp(1.2em, 7vw, 1.8em);
    }
    .page-promotions__description,
    .page-promotions__text-block,
    .page-promotions__card-description,
    .page-promotions__step-description,
    .page-promotions__terms-item,
    .page-promotions__faq-answer p {
        font-size: 0.9em;
    }
}