/* style/promotions.css */

/* Custom colors from prompt */
:root {
    --bayvip-primary: #11A84E;
    --bayvip-secondary: #22C768;
    --bayvip-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bayvip-card-bg: #11271B;
    --bayvip-background: #08160F;
    --bayvip-text-main: #F2FFF6;
    --bayvip-text-secondary: #A7D9B8;
    --bayvip-border: #2E7A4E;
    --bayvip-glow: #57E38D;
    --bayvip-gold: #F2C14E;
    --bayvip-divider: #1E3A2A;
    --bayvip-deep-green: #0A4B2C;
}

.page-promotions {
    font-family: Arial, sans-serif;
    background-color: var(--bayvip-background); /* Use custom background color */
    color: var(--bayvip-text-main); /* Default text color for the page */
    line-height: 1.6;
}

/* Base styles for sections and containers */
.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: 2.5em;
    color: var(--bayvip-gold); /* Use gold for main titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions__text-block {
    font-size: 1.1em;
    color: var(--bayvip-text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--bayvip-deep-green); /* Ensure a background color for contrast */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to prevent excessive stretching */
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-promotions__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    text-align: center;
    z-index: 1; /* Ensure content is above any potential background layers */
    color: var(--bayvip-text-main);
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1, not fixed large value */
    color: var(--bayvip-gold);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
    max-width: 100%; /* Ensure H1 does not overflow */
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--bayvip-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to 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;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    min-width: 180px; /* Ensure minimum button width */
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--bayvip-button-gradient);
    color: var(--bayvip-text-main); /* White text for primary button */
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--bayvip-glow);
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--bayvip-gold); /* Gold text for secondary button */
    border: 2px solid var(--bayvip-gold);
}

.page-promotions__btn-secondary:hover {
    background: var(--bayvip-gold);
    color: var(--bayvip-background); /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-center {
    margin-top: 40px;
}

/* Featured Promotions Grid */
.page-promotions__featured-promos {
    background-color: var(--bayvip-background); /* Dark background */
    color: var(--bayvip-text-main);
}

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

.page-promotions__promo-card {
    background-color: var(--bayvip-card-bg); /* Dark card background */
    border-radius: 12px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

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

.page-promotions__card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    filter: none; /* Ensure no filter is applied */
    display: block; /* Ensure image is block level */
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--bayvip-gold); /* Gold for card titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__card-description {
    font-size: 1em;
    color: var(--bayvip-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__promo-card .page-promotions__btn-primary,
.page-promotions__promo-card .page-promotions__btn-secondary {
    margin-top: auto; /* Push buttons to the bottom */
    width: 100%;
    text-align: center;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: var(--bayvip-deep-green); /* A different green shade */
    color: var(--bayvip-text-main);
}

.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: var(--bayvip-card-bg);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-promotions__step-image {
    width: 100%;
    max-width: 300px; /* Limit width for step images */
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter is applied */
    display: block;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: var(--bayvip-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions__step-description {
    font-size: 1em;
    color: var(--bayvip-text-secondary);
    margin-bottom: 15px;
}

.page-promotions__text-link {
    color: var(--bayvip-gold); /* Gold for internal links */
    text-decoration: underline;
}

.page-promotions__text-link:hover {
    color: var(--bayvip-glow);
}

/* Terms & Conditions Section */
.page-promotions__dark-section {
    background-color: var(--bayvip-deep-green); /* Darker background for contrast */
    color: var(--bayvip-text-main);
}

.page-promotions__terms-conditions .page-promotions__section-title {
    color: var(--bayvip-gold);
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 900px;
    text-align: left;
}

.page-promotions__list-item {
    background-color: var(--bayvip-card-bg);
    border-left: 5px solid var(--bayvip-gold);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1em;
    color: var(--bayvip-text-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-promotions__faq {
    background-color: var(--bayvip-background);
    color: var(--bayvip-text-main);
}

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

.page-promotions__faq-item {
    background-color: var(--bayvip-card-bg);
    border: 1px solid var(--bayvip-border);
    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: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--bayvip-gold);
    cursor: pointer;
    background-color: var(--bayvip-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-promotions__faq-question:hover {
    background-color: var(--bayvip-deep-green);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--bayvip-glow);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    content: "−"; /* Change to minus when open for details/summary */
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--bayvip-text-secondary);
    line-height: 1.6;
    max-height: 0; /* For JS based accordion */
    overflow: hidden; /* For JS based accordion */
    transition: max-height 0.3s ease-out; /* For JS based accordion */
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px; /* Sufficient height for content, for JS based accordion */
    transition: max-height 0.5s ease-in; /* For JS based accordion */
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
    max-height: none; /* For details/summary */
    overflow: visible; /* For details/summary */
    padding-top: 10px;
}


/* Conclusion Section */
.page-promotions__conclusion {
    background-color: var(--bayvip-deep-green);
    color: var(--bayvip-text-main);
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-description {
        font-size: 1.1em;
    }
    .page-promotions__promo-card {
        padding: 20px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__hero-content {
        padding: 30px 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust H1 for mobile */
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout for cards/steps */
    }
    .page-promotions__promo-card,
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__card-image,
    .page-promotions__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__promo-card .page-promotions__btn-primary,
    .page-promotions__promo-card .page-promotions__btn-secondary {
        width: 100% !important;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    /* Ensure all images are responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Ensure all video containers are responsive */
    .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: 10px !important;
    }
    .page-promotions__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    /* Ensure button groups wrap correctly */
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
      flex-direction: column !important; /* Stack buttons */
      gap: 10px; /* Space between stacked buttons */
      padding-left: 15px;
      padding-right: 15px;
    }
}