/* style/promotions.css */
.page-promotions {
    font-family: Arial, sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000000; /* Assuming body background is black from shared.css */
}

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

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Slightly transparent to allow text to stand out */
}

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

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

.page-promotions__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* General Section Styling */
.page-promotions__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-promotions__subsection-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: left;
}

.page-promotions__section-description {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

.page-promotions__dark-bg {
    background-color: #003366; /* Main brand color */
    color: #ffffff;
}

.page-promotions__light-bg {
    background-color: #0d0d0d; /* Slightly lighter dark for contrast */
    color: #ffffff;
}

/* Buttons */
.page-promotions__btn-primary {
    display: inline-block;
    background-color: #FFD700; /* Gold accent color */
    color: #003366; /* Dark blue text on gold */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
    background-color: #e0b800;
    transform: translateY(-2px);
}

.page-promotions__btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: #FFD700; /* Gold text */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
    border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
    background-color: #FFD700;
    color: #003366;
    transform: translateY(-2px);
}

.page-promotions__btn-container {
    text-align: center;
    margin-top: 40px;
    padding-bottom: 60px;
}

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

.page-promotions__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__grid--reverse {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Cards */
.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    border-radius: 12px;
    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;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.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;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
    object-fit: cover;
}

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

.page-promotions__card-description {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card--gold {
    background-color: #FFD700;
    color: #003366; /* Dark text on gold */
}

.page-promotions__card--gold .page-promotions__card-title {
    color: #003366;
}

.page-promotions__card--gold .page-promotions__btn-primary {
    background-color: #003366;
    color: #FFD700;
    border-color: #003366;
}

.page-promotions__card--gold .page-promotions__btn-primary:hover {
    background-color: #0a4d8c;
    color: #FFD700;
}

/* Lists */
.page-promotions__benefits-list,
.page-promotions__vip-benefits-list,
.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 900px;
}

.page-promotions__benefits-item,
.page-promotions__vip-benefits-item,
.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.5;
    color: #ffffff;
}

/* FAQ Section */
.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: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

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

.page-promotions__faq-question:hover {
    background-color: #0a4d8c;
}

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1.05em;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-promotions__faq-answer p {
    margin: 0;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3em;
    }

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

    .page-promotions__grid--reverse {
        grid-template-columns: 1fr; /* Stack on smaller screens */
    }

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 450px;
    }

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

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

    .page-promotions__section-title {
        font-size: 1.8em;
        padding-top: 40px;
    }

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

    .page-promotions__card {
        padding: 20px;
    }

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

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        font-size: 1em;
    }

    .page-promotions__btn-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__grid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__grid--3-cols {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .page-promotions__overview-section,
    .page-promotions__welcome-bonus-section,
    .page-promotions__rebate-section,
    .page-promotions__special-events-section,
    .page-promotions__vip-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Images responsive rules */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important; /* Enforce min size even on mobile */
    }
    
    .page-promotions__container,
    .page-promotions__grid,
    .page-promotions__btn-container,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* FAQ specific mobile styles */
    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-promotions__faq-answer {
        padding: 0 15px;
        font-size: 0.95em;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px;
    }
}

/* Ensure no image filter */
.page-promotions img {
    filter: none;
}