/* style/promotions.css */

/* Base Styles for page-promotions */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
}

/* Fixed Header Offset */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    padding-bottom: 60px;
    background-color: #26A9E0; /* Primary brand color for hero */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* For image positioning */
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; /* For z-index over hero image */
    z-index: 2;
}

.page-promotions__main-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

.page-promotions__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-promotions__btn-primary:hover {
    background-color: #d46a00;
    border-color: #d46a00;
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Blend with background color */
    z-index: 1;
}

/* General Section Styling */
.page-promotions__overview-section,
.page-promotions__details-section,
.page-promotions__how-to-claim-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom-section {
    padding: 60px 0;
}

.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333;
}

.page-promotions__dark-bg {
    background-color: #26A9E0; /* Brand color dark background */
    color: #ffffff;
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: inherit; /* Inherit from parent section */
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

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

.page-promotions__promo-card {
    background-color: #f8f8f8; /* Light background for cards */
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    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.15);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px;
    color: #26A9E0; /* Brand color for titles */
}
.page-promotions__card-title a {
    color: #26A9E0; /* Link color */
    text-decoration: none;
}
.page-promotions__card-title a:hover {
    text-decoration: underline;
}


.page-promotions__card-description {
    font-size: 0.95em;
    margin: 0 15px 20px;
    color: #555555;
}

.page-promotions__card-button {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 30px); /* Account for padding */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background-color: #1e87b3;
}

/* Promotion Details Section */
.page-promotions__content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-promotions__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-promotions__text-content {
    flex: 1;
    min-width: 300px;
    color: inherit;
}

.page-promotions__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
    color: inherit;
}

.page-promotions__detail-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-promotions__btn-details {
    margin-top: 20px;
    max-width: 100%;
}

/* Categories Section */
.page-promotions__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-promotions__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-promotions__category-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-promotions__category-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-promotions__category-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
    transition: border-color 0.3s ease;
}

.page-promotions__category-link:hover {
    border-color: #EA7C07; /* Highlight on hover */
}

/* How to Claim Section */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__step-item {
    background-color: #f8f8f8;
    color: #333333;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__step-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-promotions__step-description {
    font-size: 1em;
    color: #555555;
}
.page-promotions__step-description a {
    color: #EA7C07; /* Promotion link color */
    text-decoration: none;
    font-weight: bold;
}
.page-promotions__step-description a:hover {
    text-decoration: underline;
}

/* Why Choose Section */
.page-promotions__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-promotions__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-promotions__faq-item {
    background-color: #f8f8f8;
    color: #333333;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #e0e0e0;
    color: #333333;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: inherit;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 0.95em;
    color: #555555;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color dark background */
    color: #ffffff;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.5em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__content-wrapper {
        flex-direction: column;
    }
    .page-promotions__content-wrapper--reverse {
        flex-direction: column-reverse;
    }
    .page-promotions__detail-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-promotions__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-promotions__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__card-button,
    .page-promotions__btn-details,
    .page-promotions__btn-large,
    .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;
    }

    .page-promotions__promotions-grid,
    .page-promotions__category-grid,
    .page-promotions__steps-list,
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promo-card,
    .page-promotions__category-card,
    .page-promotions__step-item,
    .page-promotions__feature-item {
        padding: 20px;
    }

    .page-promotions__promo-image {
        height: 200px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
    }

    .page-promotions__section-description {
        font-size: 0.95em;
    }

    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        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 */
    }
    /* Specific override for CTA group flex-direction for mobile */
    .page-promotions__cta-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-promotions__cta-group > * {
        width: 100%;
    }
    .page-promotions__content-wrapper {
      gap: 30px;
    }
    .page-promotions__faq-question {
      padding: 15px 20px;
    }
    .page-promotions__faq-answer {
      padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
      padding: 10px 20px;
      padding-top: 0;
    }
}