/* style/promotions.css */

/* Base styles and color contrast */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Light text for dark body background */
    background-color: #140C0C; /* Main background color */
}

.page-promotions__light-bg {
    background-color: #FFF1E8; /* Light background for specific sections */
    color: #333333; /* Dark text for light background */
}

.page-promotions__dark-bg {
    background-color: #140C0C; /* Dark background for specific sections */
    color: #FFF1E8; /* Light text for dark background */
}

.page-promotions__card {
    background-color: #2A1212; /* Card background */
    color: #FFF1E8; /* Light text for card background */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Typography */
.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 size */
    font-weight: bold;
    color: #F3C54D; /* Gold color for main title */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    color: #F3C54D;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-promotions__video-title,
.page-promotions__feature-title,
.page-promotions__offer-title,
.page-promotions__step-title,
.page-promotions__term-heading,
.page-promotions__faq-qtext {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: #FFF1E8;
    margin-bottom: 15px;
}

.page-promotions__light-bg .page-promotions__feature-title,
.page-promotions__light-bg .page-promotions__step-title,
.page-promotions__light-bg .page-promotions__faq-qtext {
    color: #C61F1F; /* Red for titles on light background */
}

.page-promotions__hero-description,
.page-promotions__video-description,
.page-promotions__section-description,
.page-promotions__feature-description,
.page-promotions__offer-description,
.page-promotions__step-description,
.page-promotions__term-text,
.page-promotions__faq-answer p {
    font-size: 1.1rem;
    color: #FFF1E8;
    margin-bottom: 15px;
}

.page-promotions__light-bg .page-promotions__hero-description,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__feature-description,
.page-promotions__light-bg .page-promotions__offer-description,
.page-promotions__light-bg .page-promotions__step-description,
.page-promotions__light-bg .page-promotions__term-text,
.page-promotions__light-bg .page-promotions__faq-answer p {
    color: #333333; /* Dark text for light background */
}

/* Links */
.page-promotions a {
    color: #F3C54D; /* Gold for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions a:hover {
    color: #FFB04A; /* Lighter gold on hover */
    text-decoration: underline;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure button responsiveness */
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
    color: #FFF1E8;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 176, 74, 0.4);
}

.page-promotions__btn-primary:hover {
    background: linear-gradient(180deg, #FFC06A 0%, #E87A24 100%);
    box-shadow: 0 6px 15px rgba(255, 176, 74, 0.6);
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #F3C54D;
    border: 2px solid #F3C54D;
    margin-left: 20px;
}

.page-promotions__btn-secondary:hover {
    background-color: #F3C54D;
    color: #140C0C;
    transform: translateY(-2px);
}

/* Sections Layout */
.page-promotions__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding */
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px; /* Space between image and content */
}

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

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

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

.page-promotions__video-section {
    padding: 80px 20px;
    text-align: center;
    padding-top: 10px; /* Small top padding */
}

.page-promotions__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-promotions__features-section,
.page-promotions__current-offers,
.page-promotions__how-to-claim,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__features-grid,
.page-promotions__offers-grid,
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

.page-promotions__feature-card,
.page-promotions__step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
}

.page-promotions__feature-icon,
.page-promotions__step-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-promotions__offer-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    padding: 0;
}

.page-promotions__offer-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.page-promotions__offer-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__offer-title {
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__offer-title a {
    color: #F3C54D;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 600;
}

.page-promotions__offer-title a:hover {
    color: #FFB04A;
}

.page-promotions__offers-grid .page-promotions__btn-primary {
    margin-top: 20px;
    width: 100%;
}

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

.page-promotions__term-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
}

.page-promotions__term-heading {
    color: #F3C54D;
    margin-top: 0;
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-promotions__faq-item {
    background-color: #2A1212; /* Card background */
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__light-bg .page-promotions__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #F3C54D;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__light-bg .page-promotions__faq-question {
    color: #C61F1F;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__light-bg .page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: #F3C54D;
}

.page-promotions__light-bg .page-promotions__faq-toggle {
    color: #C61F1F;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #FFF1E8;
}

.page-promotions__light-bg .page-promotions__faq-answer {
    color: #333333;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        max-height: 60vh;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 40px;
        min-height: unset;
    }

    .page-promotions__hero-image-wrapper {
        margin-bottom: 30px;
        max-height: 50vh;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-promotions__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
    }

    .page-promotions__video-title,
    .page-promotions__feature-title,
    .page-promotions__offer-title,
    .page-promotions__step-title,
    .page-promotions__term-heading,
    .page-promotions__faq-qtext {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .page-promotions__hero-description,
    .page-promotions__video-description,
    .page-promotions__section-description,
    .page-promotions__feature-description,
    .page-promotions__offer-description,
    .page-promotions__step-description,
    .page-promotions__term-text,
    .page-promotions__faq-answer p {
        font-size: 1rem;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0; /* Remove margin for stacked buttons */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding: 40px 15px;
    }

    .page-promotions__video-wrapper {
        padding: 0;
        border-radius: 8px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__features-section,
    .page-promotions__current-offers,
    .page-promotions__how-to-claim,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 15px;
    }

    .page-promotions__features-grid,
    .page-promotions__offers-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-promotions__offer-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    .page-promotions__offer-content {
        padding: 20px;
    }

    .page-promotions__offer-title a {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }

    .page-promotions__term-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Image responsiveness for all img tags */
    .page-promotions img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    @media (max-width: 768px) {
        .page-promotions img {
            max-width: 100% !important;
            width: 100% !important;
            height: auto !important;
        }
        
        .page-promotions__section,
        .page-promotions__card,
        .page-promotions__container,
        .page-promotions__hero-section,
        .page-promotions__video-section,
        .page-promotions__features-section,
        .page-promotions__current-offers,
        .page-promotions__how-to-claim,
        .page-promotions__terms-section,
        .page-promotions__faq-section,
        .page-promotions__cta-section,
        .page-promotions__hero-image-wrapper,
        .page-promotions__video-wrapper,
        .page-promotions__features-grid,
        .page-promotions__offers-grid,
        .page-promotions__steps-grid,
        .page-promotions__cta-buttons {
            max-width: 100% !important;
            width: 100% !important;
            box-sizing: border-box !important;
            padding-left: 15px;
            padding-right: 15px;
        }
    }
}