/* style/promotions.css */
:root {
    --waybet-primary: #11A84E;
    --waybet-secondary: #22C768;
    --waybet-background: #08160F;
    --waybet-card-bg: #11271B;
    --waybet-text-main: #F2FFF6;
    --waybet-text-secondary: #A7D9B8;
    --waybet-border: #2E7A4E;
    --waybet-glow: #57E38D;
    --waybet-gold: #F2C14E;
    --waybet-divider: #1E3A2A;
    --waybet-deep-green: #0A4B2C;
    --waybet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    background-color: var(--waybet-background);
    color: var(--waybet-text-main);
    line-height: 1.6;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--waybet-primary);
    line-height: 1.2;
}

.page-promotions__section-title--light {
    color: var(--waybet-text-main);
}

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

.page-promotions__text-block--light {
    color: var(--waybet-text-main);
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.6);
}

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

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 800;
    color: var(--waybet-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.2em;
    color: var(--waybet-text-main);
    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;
    width: 100%;
    box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--waybet-button-gradient);
    color: var(--waybet-text-main);
    border: none;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-promotions__btn-secondary {
    background: transparent;
    color: var(--waybet-primary);
    border: 2px solid var(--waybet-primary);
}

.page-promotions__btn-secondary:hover {
    background: var(--waybet-primary);
    color: var(--waybet-text-main);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__light-bg {
    background-color: #f8f9fa;
    color: var(--waybet-text-main);
}

.page-promotions__dark-section {
    background-color: var(--waybet-deep-green);
    color: var(--waybet-text-main);
    padding: 60px 20px;
}

.page-promotions__category-grid,
.page-promotions__promo-cards-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-color: var(--waybet-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--waybet-border);
}

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

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

.page-promotions__card-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--waybet-gold);
    margin-bottom: 15px;
}

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

.page-promotions__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__feature-item {
    background-color: var(--waybet-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--waybet-border);
}

.page-promotions__feature-title {
    font-size: 1.5em;
    color: var(--waybet-primary);
    margin-bottom: 15px;
    text-align: center;
}

.page-promotions__feature-description {
    color: var(--waybet-text-secondary);
    text-align: center;
}

.page-promotions__step-card {
    position: relative;
    padding-top: 50px;
}

.page-promotions__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--waybet-button-gradient);
    color: var(--waybet-text-main);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    border: 3px solid var(--waybet-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-promotions__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-promotions__promo-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    overflow: hidden;
    padding: 0;
}

.page-promotions__promo-card .page-promotions__card-image {
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    height: 250px;
}

.page-promotions__promo-card .page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--waybet-card-bg);
    border-radius: 0 0 12px 12px;
}

.page-promotions__promo-card .page-promotions__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--waybet-gold);
    text-align: left;
}

.page-promotions__promo-card .page-promotions__card-description {
    font-size: 0.95em;
    color: var(--waybet-text-secondary);
    margin-bottom: 20px;
    text-align: left;
}

.page-promotions__promo-card .page-promotions__btn-primary {
    align-self: flex-start;
    padding: 12px 25px;
    font-size: 1em;
}

.page-promotions__terms-conditions-section a {
    color: var(--waybet-gold);
    text-decoration: underline;
}

.page-promotions__terms-conditions-section a:hover {
    color: var(--waybet-primary);
}

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

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

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

.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid var(--waybet-border);
}

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

.page-promotions__faq-toggle {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--waybet-gold);
    margin-left: 15px;
}

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--waybet-text-secondary);
    line-height: 1.6;
}

.page-promotions__faq-answer p {
    margin-bottom: 10px;
}

.page-promotions__final-cta {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__final-cta-content {
    max-width: 900px;
}

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

    .page-promotions__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
}

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

    .page-promotions__content-area {
        padding: 30px 15px;
    }

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

    .page-promotions__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-promotions__category-grid,
    .page-promotions__promo-cards-grid,
    .page-promotions__steps-grid,
    .page-promotions__feature-list {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-promotions__card,
    .page-promotions__feature-item,
    .page-promotions__promo-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-promotions__card-image,
    .page-promotions__promo-card .page-promotions__card-image {
        min-width: 200px;
        min-height: 200px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__promo-card .page-promotions__card-content {
        padding: 20px;
    }

    .page-promotions__step-card {
        padding-top: 40px;
    }

    .page-promotions__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-promotions__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure all image containers are responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__overview-section,
    .page-promotions__categories-section,
    .page-promotions__why-choose-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__featured-promos,
    .page-promotions__terms-conditions-section,
    .page-promotions__faq-section,
    .page-promotions__final-cta {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
        padding-left: 0;
        padding-right: 0;
    }

    .page-promotions__hero-content {
        padding: 0 15px;
    }

    .page-promotions__hero-image-wrapper {
        padding: 0;
    }
}

/* General image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* No filter on images */
.page-promotions img {
    filter: none; /* Ensure no CSS filter is applied to images */
}

.page-promotions__hero-image {
    filter: brightness(0.6) opacity(0.2); /* Specific filter for hero overlay, not content images */
}