/* style/promotions.css */

/* Base styles for the page content */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #1a7bbd); /* Using brand color */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

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

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

/* Call to Action Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.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, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* Section Common Styles */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* Video Section */
.page-promotions__video-section {
    position: relative;
    padding: 60px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-promotions__video-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    cursor: pointer;
}

.page-promotions__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
    background: transparent; /* Invisible overlay */
}

/* Current Offers Grid */
.page-promotions__current-offers {
    background-color: #0a0a0a;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark bg */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Light text for card content */
}

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

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Enforce min size */
    width: 100%; /* Fill card width */
}

.page-promotions__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

.page-promotions__card-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
    color: #EA7C07;
    text-decoration: underline;
}

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

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: #1a1a1a;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-promotions__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border: 3px solid #26A9E0;
    border-radius: 50%;
    display: inline-block;
}

.page-promotions__step-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 10px;
}

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

.page-promotions__step-text a {
    color: #26A9E0;
    text-decoration: none;
}
.page-promotions__step-text a:hover {
    text-decoration: underline;
}

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

/* Promotion Types Section */
.page-promotions__promotion-types {
    background-color: #0a0a0a;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-promotions__type-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-promotions__type-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    background-color: #1a1a1a;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-promotions__full-terms {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__link-text {
    color: #26A9E0;
    text-decoration: none;
}
.page-promotions__link-text:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: #0a0a0a;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1em; /* Adjust to fit question text better */
}

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

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

.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; /* Sufficiently large */
    padding: 15px 25px 25px 25px;
}

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


/* Final Call to Action Section */
.page-promotions__cta-section {
    background-color: #26A9E0; /* Brand color background */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

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

.page-promotions__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* --- Responsive Adjustments --- */

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

    /* Fixed header spacing for mobile, controlled by shared.css variable */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px);
        padding-bottom: 40px;
        min-height: 400px;
    }

    .page-promotions__hero-title {
        font-size: 2em;
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 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.95em;
        margin-bottom: 30px;
    }

    .page-promotions__content-wrapper {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Image responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-promotions__card-image {
        min-height: 200px !important; /* Ensure minimum size */
        width: 100% !important;
    }

    /* Video responsive rules */
    .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;
    }

    /* Card adjustments */
    .page-promotions__card,
    .page-promotions__step-item,
    .page-promotions__type-card,
    .page-promotions__faq-item {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions__card-title {
        font-size: 1.4em;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-promotions__faq-question h3 {
        font-size: 1em;
    }

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

    .page-promotions__cta-title {
        font-size: 2em;
    }

    .page-promotions__cta-description {
        font-size: 1em;
    }
}

/* Tablet adjustments (min-width: 769px and max-width: 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__hero-description {
        font-size: 1.2em;
    }
    .page-promotions__section-title {
        font-size: 2.2em;
    }
    .page-promotions__section-description {
        font-size: 1em;
    }
    .page-promotions__offers-grid,
    .page-promotions__steps-grid,
    .page-promotions__types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ensure content area images are not smaller than 200px (desktop) */
.page-promotions__content-wrapper img,
.page-promotions__offers-grid img,
.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific color contrast rules (from prompt) */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep dark background, ensure light text */
}

.page-promotions__light-bg {
  color: #333333; /* Light background for cards, ensure dark text */
  background: #ffffff;
}

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

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

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