/* style/promotions.css */

/* Custom Colors */
:root {
    --promotions-card-bg: #11271B;
    --promotions-background: #08160F;
    --promotions-text-main: #F2FFF6;
    --promotions-text-secondary: #A7D9B8;
    --promotions-border: #2E7A4E;
    --promotions-glow: #57E38D;
    --promotions-gold: #F2C14E;
    --promotions-divider: #1E3A2A;
    --promotions-deep-green: #0A4B2C;
    --promotions-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    background-color: var(--promotions-background); /* Dark background */
    color: var(--promotions-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

.page-promotions__section {
    padding: 60px 20px;
    text-align: center;
}

.page-promotions__dark-section, .page-promotions__dark-bg {
    background-color: var(--promotions-background);
    color: var(--promotions-text-main);
}

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

.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    padding: 10px 0 60px 0; /* body handles top padding, small decorative top padding here */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-promotions__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: 100px; /* Push content down from the top */
}

.page-promotions__main-title {
    color: var(--promotions-gold);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-promotions__hero-description {
    color: var(--promotions-text-main);
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--promotions-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
    background: var(--promotions-card-bg);
    color: var(--promotions-text-main);
    border: 2px solid var(--promotions-border);
}

.page-promotions__btn-secondary:hover {
    background: var(--promotions-deep-green);
    color: var(--promotions-gold);
    transform: translateY(-3px);
}

.page-promotions__section-title {
    color: var(--promotions-gold);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.page-promotions__section-description {
    color: var(--promotions-text-secondary);
    font-size: 1.05rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-promotions__promotions-grid,
.page-promotions__game-promos-grid,
.page-promotions__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-icon,
.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min size enforcement */
    min-height: 200px; /* Min size enforcement */
}

.page-promotions__card-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 100px;
    min-height: 100px;
}

.page-promotions__card-title {
    color: var(--promotions-gold);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-promotions__card-text {
    color: var(--promotions-text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__card-button {
    background: var(--promotions-btn-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    background: var(--promotions-deep-green);
}

.page-promotions__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

.page-promotions__content-wrapper--reverse {
    flex-direction: row-reverse;
}

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

.page-promotions__image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__content-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__paragraph {
    color: var(--promotions-text-main);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-promotions__list-item {
    color: var(--promotions-text-secondary);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    font-size: 1rem;
}

.page-promotions__list-item::before {
    content: '✓';
    color: var(--promotions-glow);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-promotions__btn-inline {
    margin-top: 20px;
}

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

.page-promotions__step-card {
    position: relative;
    padding-top: 60px;
    min-height: 250px;
}

.page-promotions__step-number {
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--promotions-btn-gradient);
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 3px solid var(--promotions-border);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-promotions__terms-list .page-promotions__list-item {
    color: var(--promotions-text-main);
    font-size: 1rem;
}

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

.page-promotions__faq-section {
    padding-bottom: 80px;
}

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

.page-promotions__faq-item {
    background: var(--promotions-card-bg);
    border: 1px solid var(--promotions-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--promotions-text-main);
    font-size: 1.15rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
    background-color: var(--promotions-deep-green);
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--promotions-gold);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--promotions-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--promotions-text-secondary);
}

.page-promotions__cta-final {
    padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: 60px;
    }
    .page-promotions__content-wrapper {
        flex-direction: column;
    }
    .page-promotions__content-wrapper--reverse {
        flex-direction: column-reverse;
    }
    .page-promotions__text-content,
    .page-promotions__image-content {
        flex: none;
        width: 100%;
    }
    .page-promotions__content-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__hero-content {
        padding: 30px 15px;
        margin-top: 40px;
    }
    .page-promotions__main-title {
        font-size: 2.2rem; /* Adjusted for smaller screens */
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 1rem;
        padding: 12px 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__section-description {
        font-size: 0.95rem;
    }
    .page-promotions__promotions-grid,
    .page-promotions__game-promos-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 25px;
    }
    .page-promotions__card-title {
        font-size: 1.2rem;
    }
    .page-promotions__card-text {
        font-size: 0.9rem;
    }
    .page-promotions__list-item {
        font-size: 0.95rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9rem;
    }

    /* Mobile image responsiveness */
    .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__hero-section,
    .page-promotions__content-wrapper,
    .page-promotions__text-content,
    .page-promotions__image-content,
    .page-promotions__cta-buttons,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scrolling */
    }
    .page-promotions__hero-section,
    .page-promotions__overview,
    .page-promotions__new-member-bonus,
    .page-promotions__deposit-bonus,
    .page-promotions__cashback-bonus,
    .page-promotions__game-specific-bonus,
    .page-promotions__vip-program,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding-left: 0;
        padding-right: 0;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

/* Ensure content area images are not too small */
.page-promotions__content-image {
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-icon {
    min-width: 100px;
    min-height: 100px;
    width: 100px;
    height: 100px;
}

.page-promotions__card-image {
    min-width: 200px;
    min-height: 200px;
}