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

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #0a0a0a; /* Explicitly dark background for hero */
    color: #ffffff;
    overflow: hidden; /* For image */
}

.page-promotions__hero-content {
    max-width: 900px;
    z-index: 1;
    margin-bottom: 40px;
}

.page-promotions__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for title */
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

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

.page-promotions__hero-buttons {
    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: 0;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* General section styling */
.page-promotions__promo-overview,
.page-promotions__claim-steps,
.page-promotions__terms-conditions,
.page-promotions__faq-section,
.page-promotions__cta-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    background-color: #0a0a0a; /* Inherit dark body background */
    color: #ffffff; /* Light text for dark background */
}

.page-promotions__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for section titles */
    font-weight: bold;
}

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

/* Promotion Cards */
.page-promotions__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background for cards on dark body */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* Light text for card */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.page-promotions__promo-card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-promotions__promo-card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for card titles */
    font-weight: bold;
}

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

.page-promotions__promo-card-title a:hover {
    color: #4ac1f7; /* Slightly lighter brand color on hover */
}

.page-promotions__promo-card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

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

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

.page-promotions__step-icon-wrapper {
    width: 100px;
    height: 100px;
    background-color: #26A9E0; /* Brand color background for icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(38, 169, 224, 0.5);
}

.page-promotions__step-icon {
    width: 60px; /* Icon size */
    height: 60px;
    object-fit: contain;
}

.page-promotions__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
}

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

/* Terms and Conditions */
.page-promotions__terms-conditions {
    text-align: left;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent background for list items */
    border-left: 4px solid #26A9E0; /* Brand color accent */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-promotions__faq-section {
    text-align: left;
}

.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); /* Semi-transparent light background */
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: rgba(255, 255, 255, 0.12);
    border-bottom: none;
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question text */
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
    line-height: 1;
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

/* Call to Action Section */
.page-promotions__cta-section {
    padding-bottom: 80px;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
    background-color: #1e87b8; /* Darker shade on hover */
    border-color: #1e87b8;
    transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-promotions__btn-small {
    background-color: #EA7C07; /* Login button color for small buttons */
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 8px 18px;
    font-size: 0.95em;
    border-radius: 6px;
}

.page-promotions__btn-small:hover {
    background-color: #c96806;
    border-color: #c96806;
    transform: translateY(-1px);
}

/* Image/Video responsiveness */
.page-promotions img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promo-card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header */
    }
    .page-promotions__hero-title {
        font-size: 2.2em;
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1em;
    }

    .page-promotions__promo-overview,
    .page-promotions__claim-steps,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__cta-section {
        padding: 40px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-promotions__promo-cards,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promo-card-image {
        height: 160px;
    }

    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    /* Enforce image responsiveness with !important */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-promotions__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}