/* style/promotions.css */
.page-promotions {
    color: #ffffff; /* Body background is dark, so text is light */
    background-color: var(--background-color, #121212);
}

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

.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: #017439; /* Primary brand color for hero background */
    color: #FFFFFF;
}

.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 readability */
}

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

.page-promotions__hero-description {
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Use primary color for section titles on light background */
}

.page-promotions__main-content {
    padding: 60px 0;
    background-color: #FFFFFF; /* Light background for main content */
    color: #333333;
}

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

.page-promotions__promo-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

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

.page-promotions__card-list {
    text-align: left;
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 15px;
}

.page-promotions__card-list li {
    margin-bottom: 8px;
}

.page-promotions__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login type buttons */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
}

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

.page-promotions__btn-small {
    font-size: 0.9em;
    padding: 10px 20px;
}

.page-promotions__btn-large {
    font-size: 1.3em;
    padding: 15px 30px;
}

.page-promotions__game-specific-promos {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.page-promotions__game-promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.page-promotions__game-promo-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-promotions__game-promo-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-promotions__game-promo-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-promotions__game-promo-item p {
    font-size: 0.95em;
    line-height: 1.5;
}

.page-promotions__terms-conditions,
.page-promotions__maximization-tips {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.page-promotions__text-block {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #333333;
}

.page-promotions__terms-list,
.page-promotions__tips-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-promotions__terms-list li,
.page-promotions__tips-list li {
    background-color: #e6f7ed; /* Light green background for list items */
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333333;
    border-left: 5px solid #017439;
}

.page-promotions__terms-list li strong,
.page-promotions__tips-list li strong {
    color: #017439;
}

.page-promotions__faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.page-promotions__faq-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    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-out, padding 0.3s ease-out;
}

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

.page-promotions__faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555555;
}

.page-promotions__call-to-action {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__call-to-action .page-promotions__section-title {
    color: #FFFFFF;
}

.page-promotions__call-to-action .page-promotions__text-block {
    color: #f0f0f0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__highlight {
    color: #FFFF00; /* Custom highlight color for keywords */
    font-weight: bold;
}

.page-promotions__highlight-link {
  color: #FFFF00; /* Custom highlight color for links within text */
  text-decoration: underline;
}

.page-promotions__highlight-link:hover {
  color: #f0f000;
}

/* Dark background for sections where text should be white */
.page-promotions__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

/* Light background for sections where text should be dark */
.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Ensure contrast for text blocks on light background */
.page-promotions__main-content .page-promotions__text-block {
  color: #333333;
}

.page-promotions__main-content .page-promotions__terms-list li,
.page-promotions__main-content .page-promotions__tips-list li {
  color: #333333;
}

.page-promotions__main-content .page-promotions__faq-item .page-promotions__faq-answer p {
  color: #555555;
}

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

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

    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
        padding-bottom: 40px;
    }

    .page-promotions__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__game-promo-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__promo-card,
    .page-promotions__game-promo-item,
    .page-promotions__faq-item {
        padding: 15px;
        margin-bottom: 10px;
    }

    .page-promotions__card-image,
    .page-promotions__game-promo-image {
        height: 200px;
    }

    .page-promotions__btn-primary,
    .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;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }

    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__game-promo-item,
    .page-promotions__call-to-action {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__faq-question {
        padding: 15px 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: 10px 20px;
    }
}