/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #FFFFFF;
    --background-dark: #26A9E0;
    --border-color: #e0e0e0;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Body background is light */
}

/* Fixed Header Offset */
.page-promotions__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply offset to the first content section */
}

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 60px;
    gap: 40px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #e0f7fa, #ffffff);
}

.page-promotions__hero-content {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
}

.page-promotions__main-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 900;
}

.page-promotions__intro-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.7;
}

.page-promotions__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.page-promotions__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
    background-color: #1e87c6;
    transform: translateY(-2px);
}

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

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

.page-promotions__center-button {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

/* Video Section */
.page-promotions__video-section {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__video-section .page-promotions__section-title {
    color: var(--text-light);
}

.page-promotions__video-section .page-promotions__video-description {
    color: #e0e0e0;
    font-size: 1.1rem;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    cursor: pointer;
}

/* Featured Promotions */
.page-promotions__featured-promotions {
    padding: 80px 20px;
    background-color: var(--background-light);
}

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

.page-promotions__promo-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0 20px 15px;
    font-weight: bold;
}

.page-promotions__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: #1e87c6;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 20px 25px;
    line-height: 1.5;
    flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__cta-button {
    margin: 0 20px;
    width: calc(100% - 40px);
}

/* How to Claim */
.page-promotions__how-to-claim {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-subtitle {
    color: var(--text-light);
}

.page-promotions__steps-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-promotions__step-title {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.page-promotions__image-right {
    margin-top: 60px;
    width: 100%;
    max-width: 800px;
}

.page-promotions__how-to-claim-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Promotion Types */
.page-promotions__promotion-types {
    padding: 80px 20px;
    background-color: var(--background-light);
}

.page-promotions__type-card {
    background-color: var(--secondary-color);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.page-promotions__type-description {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-subtitle {
    color: var(--text-light);
}

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

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05rem;
    color: #e0e0e0;
    line-height: 1.6;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 20px;
    background-color: var(--background-light);
}

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

.page-promotions__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Final CTA Section */
.page-promotions__final-cta {
    background-color: var(--background-dark);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__final-cta .page-promotions__section-title,
.page-promotions__final-cta .page-promotions__intro-description {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 3rem;
    }
    .page-promotions__hero-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-promotions__hero-section {
        flex-direction: column;
        padding-bottom: 40px;
        gap: 30px;
    }

    .page-promotions__hero-content {
        order: 2;
        text-align: center;
        padding: 0 15px;
    }
    
    .page-promotions__hero-image-wrapper {
        order: 1;
        min-width: unset;
        width: 100%;
        padding: 0 15px;
    }

    .page-promotions__main-title {
        font-size: 2.2rem;
    }

    .page-promotions__intro-description {
        font-size: 1rem;
    }

    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__center-button {
        max-width: 100%;
        width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-promotions__section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-promotions__container {
        padding: 0 15px;
    }

    /* Images responsive */
    .page-promotions img {
        max-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__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensures video section is not hidden by header on mobile */
    }
    .page-promotions__video-section, .page-promotions__featured-promotions, .page-promotions__how-to-claim, .page-promotions__promotion-types, .page-promotions__terms-conditions, .page-promotions__faq-section, .page-promotions__final-cta {
        padding: 40px 0; /* Adjust vertical padding */
    }

    /* Video responsive */
    .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: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-promotions__video-wrapper {
        padding-bottom: 56.25% !important;
    }

    .page-promotions__steps-container {
        flex-direction: column;
        align-items: center;
    }

    .page-promotions__step-item {
        width: 100%;
        max-width: 100%;
    }

    .page-promotions__promo-card .page-promotions__cta-button {
        width: calc(100% - 40px) !important;
    }

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

    .page-promotions__faq-title {
        font-size: 1.1rem;
    }

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

    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-promotions__terms-list {
        padding: 0 15px;
    }
    .page-promotions__terms-item {
        font-size: 0.95rem;
    }

    .page-promotions__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.8rem;
    }
    .page-promotions__section-title {
        font-size: 1.5rem;
    }
    .page-promotions__promo-card {
        padding-bottom: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__step-title {
        font-size: 1.4rem;
    }
    .page-promotions__type-title {
        font-size: 1.5rem;
    }
}