/* style/promotions.css */

:root {
    --primary-color: #004D99;
    --secondary-color: #FFD700;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --background-dark: #121212;
    --card-background-dark: rgba(255, 255, 255, 0.1);
    --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-promotions {
    color: var(--text-color-light); /* Light text on dark body background */
    background-color: var(--background-dark);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

.page-promotions__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
    font-size: 18px;
    text-align: center;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__section-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 120px 20px 80px; /* Adjusted padding-top for fixed header */
    background: url('[GALLERY:hero:8kbet,promotions,banner]') no-repeat center center/cover;
    text-align: center;
    color: var(--text-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    box-shadow: inset 0 -100px 100px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-promotions__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-promotions__hero-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

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

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-promotions__cta-button--primary {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    border: 2px solid var(--secondary-color);
}

.page-promotions__cta-button--primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-promotions__cta-button--secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions List Section */
.page-promotions__promotions-list {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.page-promotions__promotion-card {
    background-color: var(--card-background-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color-dark);
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-promotions__card-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-text a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--primary-color);
}

.page-promotions__card-button:hover {
    background-color: #003366;
    transform: translateY(-2px);
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--card-background-dark);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 5px solid var(--secondary-color);
}

.page-promotions__step-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.page-promotions__step-content h3 {
    font-size: 22px;
    color: var(--text-color-light);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-promotions__step-content p {
    font-size: 16px;
    color: #cccccc;
}

.page-promotions__step-content p a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-promotions__terms-list {
    list-style: disc;
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 30px;
    padding-left: 40px;
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
}

.page-promotions__terms-note {
    text-align: center;
    font-style: italic;
    color: #cccccc;
    font-size: 16px;
}

.page-promotions__terms-note a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-promotions__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-background-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color-dark);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-promotions__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-light);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-promotions__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

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

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.03);
    color: #cccccc;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to accommodate any content */
    padding: 20px 25px !important;
    opacity: 1;
}

.page-promotions__faq-answer p {
    margin: 0;
    font-size: 16px;
}

.page-promotions__faq-answer p a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    text-align: center;
    color: var(--text-color-light);
}

.page-promotions__final-cta-container {
    max-width: 800px;
}

.page-promotions__final-cta-section .page-promotions__section-title {
    color: var(--secondary-color);
}

.page-promotions__final-cta-section .page-promotions__section-description {
    color: var(--text-color-light);
}

.page-promotions__final-cta-section .page-promotions__section-description a {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 42px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 32px;
    }
    .page-promotions__section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: 100px !important; /* Mobile fixed header adjustment */
        padding-bottom: 60px;
        min-height: 400px;
    }
    .page-promotions__hero-container,
    .page-promotions__container,
    .page-promotions__card-grid,
    .page-promotions__steps-list,
    .page-promotions__terms-list,
    .page-promotions__faq-list,
    .page-promotions__final-cta-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions__main-title {
        font-size: 36px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 16px;
        padding: 12px 25px;
    }

    .page-promotions__section-title {
        font-size: 28px;
    }
    .page-promotions__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-promotions__promotions-list,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section {
        padding: 60px 0;
    }

    .page-promotions__promotion-card {
        margin-bottom: 20px;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-text {
        font-size: 15px;
    }

    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .page-promotions__step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-promotions__step-content h3 {
        font-size: 20px;
    }
    .page-promotions__step-content p {
        font-size: 15px;
    }

    .page-promotions__terms-list {
        font-size: 15px;
        padding-left: 25px;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px !important;
    }
    .page-promotions__faq-answer p {
        font-size: 15px;
    }

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

    .page-promotions__promotion-card,
    .page-promotions__hero-section,
    .page-promotions__hero-container,
    .page-promotions__promotions-list,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta-section,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 30px;
    }
    .page-promotions__section-title {
        font-size: 24px;
    }
    .page-promotions__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__step-number {
        font-size: 30px;
    }
    .page-promotions__step-content h3 {
        font-size: 18px;
    }
    .page-promotions__faq-question h3 {
        font-size: 15px;
    }
    .page-promotions__faq-toggle {
        font-size: 22px;
    }
}