/* style/promotions.css */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #121212; /* Ensure consistency with body background */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1A202C; /* Main brand color for hero background */
    min-height: 500px;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    filter: none; /* Ensure no CSS filter changes image color */
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Accent color for title */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-promotions__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Section Styling */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Accent color for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

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

.page-promotions__dark-bg {
    background-color: #1A202C; /* Main brand color for dark sections */
    color: #ffffff;
    padding: 80px 0;
}

.page-promotions__light-bg {
    background-color: #f0f0f0;
    color: #333333;
    padding: 80px 0;
}

/* Grid for Overview Section */
.page-promotions__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Light text for card content */
}

.page-promotions__card-title {
    font-size: 1.6em;
    color: #FFD700; /* Accent color for card titles */
    margin-bottom: 15px;
}

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-promotions__btn-primary {
    background-color: #FFD700; /* Accent color for primary button */
    color: #1A202C; /* Dark text for accent background */
    border: 2px solid #FFD700;
}

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

.page-promotions__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Accent color for secondary button text */
    border: 2px solid #FFD700;
}

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

/* Featured Promotions Section */
.page-promotions__featured-promotions {
    padding: 80px 0;
    background-color: #121212; /* Body background color */
}

.page-promotions__promotion-cards {
    display: flex;
    flex-direction: column; /* Stack cards by default */
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Default stack on mobile */
}

.page-promotions__promotion-card-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no CSS filter changes image color */
    min-width: 200px; /* Minimum image size */
}

.page-promotions__promotion-card-content {
    padding: 30px;
    color: #ffffff;
}

.page-promotions__promotion-card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-promotions__promotion-card-text {
    font-size: 1.05em;
    margin-bottom: 25px;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    padding: 80px 0;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-promotions__step-number {
    font-size: 2em;
    font-weight: bold;
    color: #FFD700;
    margin-right: 20px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #FFD700;
    border-radius: 50%;
}

.page-promotions__step-content {
    flex-grow: 1;
}

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

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

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

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: #121212;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    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);
    transition: background-color 0.3s ease;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    font-size: 1.3em;
    color: #ffffff;
}

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    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: #e0e0e0;
}

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

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-promotions__final-cta {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-promotions__promotion-card {
        flex-direction: row; /* Side-by-side on larger screens */
        align-items: center;
    }

    .page-promotions__promotion-card:nth-child(even) {
        flex-direction: row-reverse; /* Alternate image/text layout */
    }

    .page-promotions__promotion-card-image {
        width: 50%;
        height: 300px; /* Fixed height for consistency */
    }

    .page-promotions__promotion-card-content {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-title {
        font-size: 2.2em;
    }

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

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

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

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

    .page-promotions__promotion-card-title {
        font-size: 1.5em;
    }

    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-promotions__step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    
    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile button responsiveness */
    .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;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    
    .page-promotions__hero-cta,
    .page-promotions__cta-buttons-wrapper {
        flex-direction: column;
        gap: 10px; /* Reduce gap for stacked buttons */
        padding: 0 15px; /* Add padding to container */
    }

    /* General container padding for mobile */
    .page-promotions__container,
    .page-promotions__hero-content,
    .page-promotions__grid,
    .page-promotions__promotion-cards,
    .page-promotions__steps-list,
    .page-promotions__faq-list {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__hero-section {
      padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile hero */
    }
    .page-promotions__overview-section,
    .page-promotions__featured-promotions,
    .page-promotions__how-to-claim,
    .page-promotions__faq-section,
    .page-promotions__final-cta {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure images don't have filters */
.page-promotions img {
    filter: none;
}

/* Ensure content area images meet minimum size requirements */
.page-promotions__promotion-card-image {
  min-width: 200px;
  min-height: 200px;
}
.page-promotions__hero-image {
  min-width: 200px;
  min-height: 200px;
}