/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
}

/* Header offset - as per shared.css, this should be applied to the main content or hero section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content isn't hidden by fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand colors for hero background */
    color: #FFFFFF; /* White text on brand color background */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden; /* Ensures image corners match container */
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum width */
    min-height: 200px; /* Minimum height */
    filter: none !important; /* Override any potential unwanted filters */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF; /* Ensure text is white on the potentially darker part of the gradient */
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Enhance readability on gradient */
}

.page-promotions__intro-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFFFFF;
}

.page-promotions__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-promotions__btn-primary:hover {
    background: #d46b06;
    border-color: #d46b06;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* General Section Styling */
.page-promotions__section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%; /* Ensure container respects max-width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-promotions__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-promotions__dark-bg {
    background-color: #26A9E0; /* Main brand color */
    color: #FFFFFF;
}

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-promotions__section-description {
    font-size: 17px;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: inherit;
}

/* Feature Grid (Overview Section) */
.page-promotions__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__feature-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-promotions__feature-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-promotions__feature-text {
    font-size: 16px;
    color: #555555;
}

/* Promo Cards (Featured Promotions Section) */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__promo-card {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
}

.page-promotions__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum width */
    min-height: 200px; /* Minimum height */
    filter: none !important; /* Override any potential unwanted filters */
}

.page-promotions__card-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-promotions__promo-card .page-promotions__cta-button {
    margin-top: auto; /* Push buttons to the bottom */
    width: auto; /* Reset width for multiple buttons in a card */
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-flex; /* Use flex for internal button alignment */
    align-items: center;
    justify-content: center;
}

/* Terms and Conditions List */
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__terms-list li {
    background: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #EA7C07;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-list li strong {
    color: #f0f0f0;
}

/* How to Claim Steps */
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__step-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-promotions__step-number {
    font-size: 48px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-promotions__step-text {
    font-size: 16px;
    color: #555555;
}

.page-promotions__step-text a {
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__step-text a:hover {
    text-decoration: underline;
}

/* Why Choose List */
.page-promotions__why-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 0 auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__why-list li {
    background: #f9f9f9;
    border-left: 5px solid #26A9E0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    color: #555555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-promotions__why-list li strong {
    color: #26A9E0;
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF; /* Light background for FAQ items in dark section */
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333;
}

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

.page-promotions__faq-question:active {
    background: #eeeeee;
}

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #333333;
}

.page-promotions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    color: #26A9E0; /* Brand color when active */
    transform: rotate(45deg); /* Plus to X/Minus */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #fcfcfc; /* Slightly off-white for answer background */
    color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
}

/* Latest News Section */
.page-promotions__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__news-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.page-promotions__news-card:hover {
    transform: translateY(-5px);
}

.page-promotions__news-title {
    font-size: 20px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.page-promotions__news-title a.page-promotions__news-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__news-title a.page-promotions__news-link:hover {
    text-decoration: underline;
}

.page-promotions__news-excerpt {
    font-size: 15px;
    color: #555555;
    margin-bottom: 15px;
}

.page-promotions__news-date {
    font-size: 13px;
    color: #999999;
    margin-top: auto;
    display: block;
}

/* Color contrast fixes if needed */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 42px;
    }
    .page-promotions__intro-description {
        font-size: 17px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
}

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

    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-promotions__intro-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-promotions__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__section {
        padding: 40px 15px;
    }
}