:root {
    --bg-primary: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
    --brand-primary: #11A84E; /* Main brand color */
    --brand-secondary: #22C768; /* Secondary brand color */
}

.page-promotions {
    background-color: var(--bg-primary);
    color: var(--text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    padding-bottom: 50px; /* Ensure space above footer */
}

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

/* --- Typography --- */
.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--brand-secondary);
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: bold;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
}

.page-promotions__intro-text,
.page-promotions__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-top: 15px;
    margin-bottom: 10px;
    text-align: center;
}

.page-promotions__card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
}

.page-promotions__list-item {
    background-color: var(--deep-green);
    border-left: 5px solid var(--brand-primary);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--text-main);
    font-size: 1.05rem;
}

/* --- Buttons --- */
.page-promotions__cta-button {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 15px 30px;
    background: var(--button-gradient);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
    opacity: 0.9;
}

.page-promotions__cta-button--small {
    padding: 10px 20px;
    font-size: 1rem;
    margin: 15px auto;
}

.page-promotions__cta-button--large {
    padding: 18px 40px;
    font-size: 1.25rem;
    margin: 30px auto;
}

/* --- Hero Section --- */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image then content */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top margin, body handles main offset */
    padding-bottom: 40px;
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-promotions__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

/* --- Card Layouts --- */
.page-promotions__card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-promotions__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Limit card image height */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

/* --- VIP Section --- */
.page-promotions__vip-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    margin: 30px auto;
    display: block;
}

/* --- FAQ Section --- */
.page-promotions__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

.page-promotions__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
}

.page-promotions__faq-question:hover {
    background-color: var(--brand-primary);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--divider-color);
}

.page-promotions__faq-item:not([open]) .page-promotions__faq-answer {
    display: none; /* Hide answer when not open */
}

.page-promotions__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-promotions__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .page-promotions__card-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .page-promotions__intro-text,
    .page-promotions__text-block {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-promotions__hero-section {
        padding-bottom: 20px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
        max-height: 300px;
    }
    .page-promotions__card-wrapper {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 25px;
        padding-left: 15px;
        padding-right: 15px; /* Add padding to card wrapper */
    }
    .page-promotions__card {
        padding: 20px;
        margin: 0 auto; /* Center single card */
        max-width: 400px; /* Limit width of single card */
    }
    .page-promotions__card-image {
        max-height: 150px;
    }
    .page-promotions__cta-button,
    .page-promotions__cta-button--small,
    .page-promotions__cta-button--large {
        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;
        font-size: 1rem !important;
    }
    .page-promotions__hero-content .page-promotions__cta-button {
        max-width: 300px !important; /* Slightly smaller for hero CTA */
    }
    .page-promotions__list-item {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-promotions__hero-image-wrapper,
    .page-promotions__card-wrapper,
    .page-promotions__vip-program,
    .page-promotions__container,
    .page-promotions__welcome-bonus,
    .page-promotions__daily-weekly-bonus,
    .page-promotions__cashback,
    .page-promotions__event-promotions,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__conclusion {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 8vw, 2rem) !important;
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 7vw, 1.8rem) !important;
    }
    .page-promotions__hero-content .page-promotions__cta-button {
        max-width: 250px !important;
    }
}