/* style/promotions.css */

/* Base Styles for the page-promotions */
.page-promotions {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-promotions__section {
    padding: 60px 20px;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

.page-promotions__section-title {
    font-size: 2.8em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Using brand color for hero background */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6; /* Slightly transparent to let text stand out */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: #FFFF00; /* Yellow for title for high contrast */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    background-color: #017439; /* Brand green */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-promotions__btn-primary:hover {
    background-color: #005f2f; /* Darker green on hover */
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Brand green */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
}

.page-promotions__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2f;
    transform: translateY(-2px);
}

/* Specific button styles for Register/Login from custom colors */
.page-promotions__hero-cta,
.page-promotions__cta-button--register {
    background-color: #C30808; /* Custom red for register */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #FFFF00;
}

.page-promotions__hero-cta:hover,
.page-promotions__cta-button--register:hover {
    background-color: #a00606; /* Darker red on hover */
    border-color: #ffd700;
}

.page-promotions__cta-button--login {
    background-color: #C30808; /* Custom red for login */
    color: #FFFF00; /* Custom yellow for font */
    border: 2px solid #FFFF00;
    margin-left: 20px;
}

.page-promotions__cta-button--login:hover {
    background-color: #a00606; /* Darker red on hover */
    border-color: #ffd700;
}

/* Current Promotions Section */
.page-promotions__promotion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promotion-card {
    background-color: #2a2a2a; /* Dark background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card content */
}

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

.page-promotions__promotion-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for card titles */
    line-height: 1.3;
}

.page-promotions__card-title a {
    color: #FFFF00; /* Yellow for linked titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: #ffffff; /* White on hover */
}

.page-promotions__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-promotions__card-cta {
    padding: 10px 20px;
    font-size: 0.9em;
    background-color: #C30808; /* Red for card CTA */
    color: #FFFF00; /* Yellow text */
    border: 1px solid #FFFF00;
}

.page-promotions__card-cta:hover {
    background-color: #a00606;
    border-color: #ffd700;
}


/* How to Claim Section */
.page-promotions__how-to-claim-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent background for steps */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #FFFF00; /* Yellow step number */
    color: #017439; /* Green text */
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.page-promotions__step-text h3 {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for step titles */
    margin-top: 0;
    margin-bottom: 5px;
}

.page-promotions__step-text p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__step-text a {
    color: #FFFF00; /* Yellow links */
    text-decoration: underline;
}

.page-promotions__step-text a:hover {
    color: #ffffff;
}

.page-promotions__steps-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}


/* Terms and Conditions Section */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.page-promotions__terms-item {
    background-color: #2a2a2a; /* Dark background for terms items */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-promotions__terms-item h3 {
    font-size: 1.4em;
    color: #FFFF00; /* Yellow for terms titles */
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__terms-item p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__terms-cta {
    display: block;
    margin: 0 auto;
    text-align: center;
    max-width: 300px;
    background-color: #017439; /* Brand green */
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__terms-cta:hover {
    background-color: #005f2f;
    border-color: #FFFF00;
    color: #FFFF00;
}

/* FAQ Section */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-promotions__faq-item {
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent dark background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-promotions__faq-question:hover {
    background-color: #005f2f;
}

.page-promotions__faq-question h3 {
    margin: 0;
    color: #FFFF00; /* Yellow for FAQ question text */
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Yellow toggle icon */
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Rotate to form 'x' or use '−' */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2a2a2a; /* Darker background for answer */
    color: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 20px 25px;
}

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

.page-promotions__faq-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Call to Action Section */
.page-promotions__cta-section {
    text-align: center;
    background-color: #121212; /* Darkest background for CTA */
    padding: 80px 20px;
}

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

.page-promotions__cta-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__how-to-claim-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-promotions__steps-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        min-height: 400px;
        padding: 60px 15px;
    }
    .page-promotions__hero-content {
        padding: 30px;
    }
    .page-promotions__hero-title {
        font-size: 2.5em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-promotions__promotion-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__promotion-image {
        height: 200px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__how-to-claim-content {
        flex-direction: column;
    }
    .page-promotions__steps-image {
        max-width: 100%;
        margin-top: 30px;
    }
    .page-promotions__step-item {
        padding: 15px;
    }
    .page-promotions__step-number {
        width: 35px;
        height: 35px;
        font-size: 1.3em;
        margin-right: 15px;
    }
    .page-promotions__step-text h3 {
        font-size: 1.2em;
    }
    .page-promotions__terms-item {
        padding: 20px;
    }
    .page-promotions__terms-item h3 {
        font-size: 1.2em;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__cta-button--login {
        margin-left: 0;
    }

    /* Mobile specific overrides for images and containers */
    .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,
    .page-promotions__hero-section,
    .page-promotions__how-to-claim-content,
    .page-promotions__cta-section,
    .page-promotions__promotion-grid,
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Ensure padding-top is set on main content for mobile as well */
    .page-promotions {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-promotions__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .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;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 0.95em;
    }
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}