/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-promotions__text-center {
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #000080; /* Dark navy background for hero */
    color: #ffffff;
    padding: 80px 20px; /* Base padding, adjusted by header offset */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden; /* Prevent image overflow */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    padding: 20px;
}

.page-promotions__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    filter: none; /* Ensure no CSS filter */
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
    background-color: #FFD700;
    color: #000080; /* Dark navy text on gold button */
    border: 2px solid #FFD700;
}

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

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

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #000080;
}

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

/* Current Offers Section */
.page-promotions__current-offers {
    padding: 60px 0;
    background-color: #000080; /* Dark navy background */
    color: #ffffff;
}

.page-promotions__dark-bg {
    background-color: #000080;
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #f8f8f8; /* Light background for contrast */
    color: #333333;
}
.page-promotions__light-bg .page-promotions__section-title {
    color: #000080; /* Dark navy title on light background */
}
.page-promotions__light-bg .page-promotions__section-description {
    color: #555555;
}
.page-promotions__light-bg .page-promotions__btn-primary {
    background-color: #000080;
    color: #FFD700;
    border-color: #000080;
}
.page-promotions__light-bg .page-promotions__btn-primary:hover {
    background-color: #FFD700;
    color: #000080;
    border-color: #FFD700;
}


.page-promotions__offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__offer-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-promotions__card-image {
    width: 100%;
    max-width: 400px; /* Constrain card image width */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
    min-height: 200px; /* Minimum size for content images */
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Make text fill space */
    color: #f0f0f0;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for this section */
    color: #333333;
}
.page-promotions__how-to-claim .page-promotions__section-title {
    color: #000080;
}
.page-promotions__how-to-claim .page-promotions__section-description {
    color: #555555;
}

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

.page-promotions__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-promotions__step-icon-wrapper {
    margin-bottom: 20px;
    display: inline-block;
    background-color: #FFD700; /* Gold background for icons */
    border-radius: 50%;
    padding: 15px;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: none; /* Ensure no CSS filter */
    min-width: 60px; /* Enforce minimum size for icons */
    min-height: 60px;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: #000080; /* Navy for step titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-text {
    font-size: 0.95em;
    color: #555555;
}

.page-promotions__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 60px 0;
    background-color: #000080; /* Dark navy background */
    color: #ffffff;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-heading {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: inherit;
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    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: #f0f0f0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

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

/* Final CTA Section */
.page-promotions__cta-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    color: #333333;
}
.page-promotions__cta-section .page-promotions__section-title {
    color: #000080;
}
.page-promotions__cta-section .page-promotions__section-description {
    color: #555555;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__card-title {
        font-size: 1.4em;
    }
    .page-promotions__step-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .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;
    }

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

    .page-promotions__offer-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }

    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive (if any) - added for completeness, though no video in this page */
    .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: var(--header-offset, 120px) !important;
    }


    /* Containers for mobile overflow prevention */
    .page-promotions__container,
    .page-promotions__current-offers,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__offer-card,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        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 */
    }
    /* Special handling for sections that need padding-left/right for content within them */
    .page-promotions__hero-section,
    .page-promotions__current-offers,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__faq-question,
    .page-promotions__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}