/* style/promotions.css */

/* Base styles for the promotions page content */
.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 */
}

/* Fixed header spacing for desktop and mobile */
.page-promotions__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 80px;
    background-color: #017439; /* Brand color as background */
    color: #ffffff;
    overflow: hidden; /* For image positioning */
}

.page-promotions__hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
    padding: 0 20px; /* Add padding for content */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    z-index: 1;
}

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

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

.page-promotions__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button,
.page-promotions__vip-button,
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-promotions__btn-primary {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00; /* Yellow text for contrast */
    border: 2px solid #C30808;
}

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

.page-promotions__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand green text */
    border: 2px solid #017439;
}

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

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-section {
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
    padding: 60px 20px;
}

.page-promotions__guide-section,
.page-promotions__faq-section {
    background-color: #121212; /* Dark background */
    color: #ffffff;
    padding: 60px 20px;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFF00;
}

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

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

.page-promotions__card {
    background-color: #2a2a2a; /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

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

.page-promotions__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
}

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

.page-promotions__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
    color: #f0f0f0;
}

.page-promotions__card-button {
    background-color: #017439; /* Brand green */
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: fit-content; /* Adjust width to content */
    margin-top: auto; /* Push button to bottom */
}

.page-promotions__card-button:hover {
    background-color: #005a2d;
}

.page-promotions__vip-promo-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #017439; /* Brand green background */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-promotions__vip-image {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
}

.page-promotions__vip-content {
    flex: 1;
}

.page-promotions__vip-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-promotions__vip-text {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.page-promotions__vip-button {
    background-color: #C30808; /* Register/Login red */
    color: #FFFF00;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-promotions__vip-button:hover {
    background-color: #a30606;
}

.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-promotions__step-item {
    background-color: #2a2a2a; /* Dark card background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-promotions__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #017439; /* Brand green */
    color: #ffffff;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-promotions__step-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00;
}

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

.page-promotions__step-text a {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
}

.page-promotions__step-text a:hover {
    color: #fff;
}

.page-promotions__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 40px auto 0 auto;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
}

.page-promotions__terms-list {
    list-style: disc inside;
    padding-left: 20px;
    margin-top: 30px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-promotions__terms-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-promotions__terms-list li a {
    color: #FFFF00; /* Yellow for links */
    text-decoration: underline;
}

.page-promotions__terms-list li a:hover {
    color: #fff;
}

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

.page-promotions__faq-item {
    background-color: #2a2a2a; /* Dark card background */
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: #ffffff;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand green for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-question {
    background-color: #005a2d; /* Slightly darker green when active */
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #2a2a2a; /* Dark card background */
}

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

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

.page-promotions__cta-section {
    text-align: center;
    padding: 50px 15px;
    background-color: #017439; /* Brand green */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.page-promotions__cta-container {
    position: relative;
    z-index: 2;
}

.page-promotions__cta-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFF00;
}

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

.page-promotions__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
    z-index: 1;
    border-radius: 12px; /* Match container border-radius */
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 2.8em;
    }
    .page-promotions__vip-promo-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-promotions__vip-image {
        max-width: 80%;
    }
}

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

    /* Fixed header spacing for mobile, if shared.css doesn't handle body padding */
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .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__card-button,
    .page-promotions__vip-button,
    .page-promotions__cta-button {
        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;
    }

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

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

    .page-promotions__cards-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__card,
    .page-promotions__step-item {
        padding: 25px;
    }

    .page-promotions__vip-promo-wrapper {
        flex-direction: column;
        padding: 30px;
    }
    .page-promotions__vip-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .page-promotions__vip-title {
        font-size: 1.8em;
    }

    .page-promotions__faq-question {
        padding: 18px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 1.1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 18px 20px;
    }

    .page-promotions__cta-title {
        font-size: 2.2em;
    }
    .page-promotions__cta-description {
        font-size: 1em;
    }
    .page-promotions__cta-section {
        padding: 40px 15px;
    }

    /* Images and containers mobile overflow prevention */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__types-section,
    .page-promotions__guide-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-section,
    .page-promotions__vip-promo-wrapper,
    .page-promotions__hero-buttons,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }
    .page-promotions__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__cta-container {
        padding-left: 0;
        padding-right: 0;
    }

    /* Ensure multiple buttons wrap */
    .page-promotions__hero-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8em;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
    }
    .page-promotions__card-title,
    .page-promotions__step-title {
        font-size: 1.5em;
    }
    .page-promotions__faq-question h3 {
        font-size: 1em;
    }
    .page-promotions__cta-title {
        font-size: 1.8em;
    }
}