/* style/promotions.css */

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

/* Sections */
.page-promotions__section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.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%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: #08160F; /* Ensure dark background for hero */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit hero image height */
}

.page-promotions__hero-content {
    position: relative; /* Ensure content is below image in normal flow */
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.2em); /* Responsive font size for H1 */
    color: #F2C14E; /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-promotions__description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 255, 0, 0.3);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 15px rgba(0, 255, 0, 0.5);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Gold color for secondary button text */
    border: 2px solid #F2C14E; /* Gold border */
}

.page-promotions__btn-secondary:hover {
    background-color: #F2C14E;
    color: #08160F; /* Dark text on gold hover */
}

.page-promotions__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Section titles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.page-promotions__intro-section {
    background-color: var(--bg-color, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-promotions__description-secondary {
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.05em;
}

/* Dark section for contrast */
.page-promotions__dark-section {
    background-color: var(--card-bg, #11271B); /* Darker background from custom palette */
    color: var(--text-main, #F2FFF6);
}

/* Promotion grid and cards */
.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, #11271B); /* Card background from custom palette */
    border: 1px solid var(--border-color, #2E7A4E); /* Border from custom palette */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--text-main, #F2FFF6);
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: #F2C14E; /* Gold for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__promotion-card p {
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 15px;
}

.page-promotions__promotion-card .page-promotions__btn-primary,
.page-promotions__promotion-card .page-promotions__btn-secondary {
    margin-top: 20px;
    align-self: flex-start;
    width: auto; /* Override max-width for card buttons */
    max-width: 100%;
}

/* Images within content */
.page-promotions__image-content {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-promotions__image-cta {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 40px auto 0 auto;
    max-width: 800px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Ordered list for steps */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-promotions__steps-list li {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main, #F2FFF6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-promotions__steps-list li strong {
    color: #F2C14E; /* Gold for strong text */
    font-size: 1.1em;
}

.page-promotions__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: #22C768; /* Auxiliary color */
    color: #08160F;
    width: 35px;
    height: 35px;
    min-width: 35px; /* Ensure number doesn't shrink */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

/* Unordered list for terms */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-promotions__terms-list li {
    background-color: rgba(34, 199, 104, 0.1); /* Light green tint for terms */
    border-left: 4px solid #22C768; /* Auxiliary color as border */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--text-secondary, #A7D9B8);
}

.page-promotions__terms-list li:last-child {
    margin-bottom: 0;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--bg-color, #08160F);
    color: var(--text-main, #F2FFF6);
    padding-bottom: 80px;
}

.page-promotions__faq-list {
    margin-top: 40px;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #F2C14E; /* Gold for FAQ questions */
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(34, 199, 104, 0.1); /* Light green tint on hover */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #22C768; /* Auxiliary color */
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05em;
    color: var(--text-secondary, #A7D9B8);
    /* For <details> tag, content is shown/hidden by default */
}

/* Styling for <details> tag */
.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: rgba(17, 168, 78, 0.2); /* Slightly darker when open */
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
}

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

/* Call to action at bottom */
.page-promotions__cta-section {
    background-color: var(--card-bg, #11271B);
    color: var(--text-main, #F2FFF6);
    text-align: center;
    padding: 80px 0;
}

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

/* Links within content */
.page-promotions a {
    color: #22C768; /* Auxiliary color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: #57E38D; /* Glow color on hover */
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2em, 6vw, 3em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promotions__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__steps-list li {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 15px 20px;
        gap: 10px;
    }
    .page-promotions__steps-list li::before {
        margin-bottom: 5px;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
    /* Mobile image/video responsive rules */
    .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 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__video-section {
        padding-top: 10px !important;
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-promotions__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Already handled by .page-promotions__container */
        padding-right: 0; /* Already handled by .page-promotions__container */
        flex-wrap: wrap !important;
        gap: 10px;
    }
}