/* style/promotions.css */

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

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

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

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gnbet-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

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

.page-promotions__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--gnbet-text-secondary);
    text-align: center;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 500px;
    padding-bottom: 60px;
    overflow: hidden;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin-top: 20px;
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gnbet-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-promotions__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--gnbet-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: var(--gnbet-btn-gradient);
    color: #ffffff;
    border: none;
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-secondary {
    background: var(--gnbet-deep-green);
    color: var(--gnbet-text-main);
    border: 1px solid var(--gnbet-secondary);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
}

.page-promotions__btn-secondary:hover {
    background: var(--gnbet-secondary);
    color: var(--gnbet-bg-dark);
}

/* Intro Section */
.page-promotions__intro-section {
    padding: 60px 0;
    background-color: var(--gnbet-bg-dark);
}

/* Promotions List */
.page-promotions__promos-list {
    padding: 60px 0;
    background-color: var(--gnbet-bg-dark);
}

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

.page-promotions__promo-card {
    background-color: var(--gnbet-card-bg);
    border: 1px solid var(--gnbet-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(17, 168, 78, 0.3);
}

.page-promotions__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card-title {
    font-size: 22px;
    color: var(--gnbet-text-main);
    margin-bottom: 10px;
    min-height: 50px; /* Ensure consistent height */
}

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

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--gnbet-bg-dark);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
}

.page-promotions__terms-item {
    background-color: var(--gnbet-card-bg);
    border: 1px solid var(--gnbet-divider);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    color: var(--gnbet-text-secondary);
    font-size: 15px;
}

.page-promotions__terms-item strong {
    color: var(--gnbet-text-main);
}

/* Optimization Section */
.page-promotions__optimization-section {
    padding: 60px 0;
    background-color: var(--gnbet-deep-green);
}

.page-promotions__optimization-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__step-card {
    background-color: var(--gnbet-card-bg);
    border: 1px solid var(--gnbet-gold);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(242, 193, 78, 0.3);
}

.page-promotions__step-title {
    font-size: 20px;
    color: var(--gnbet-gold);
    margin-bottom: 15px;
}

.page-promotions__step-card p {
    font-size: 15px;
    color: var(--gnbet-text-secondary);
}

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

.page-promotions__faq-list {
    margin-top: 40px;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--gnbet-text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-promotions__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--gnbet-secondary);
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--gnbet-text-secondary);
    line-height: 1.8;
}

/* Final CTA Section */
.page-promotions__cta-final {
    padding: 80px 0;
    background-color: var(--gnbet-deep-green);
    text-align: center;
}

.page-promotions__cta-final .page-promotions__section-title {
    color: var(--gnbet-text-main);
}

.page-promotions__cta-final .page-promotions__text-block {
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }
    .page-promotions__hero-description {
        font-size: clamp(15px, 1.8vw, 18px);
    }
    .page-promotions__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(24px, 6vw, 40px);
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: clamp(14px, 2.5vw, 16px);
        margin-bottom: 20px;
    }
    .page-promotions__cta-button,
    .page-promotions__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__section-title {
        font-size: clamp(24px, 5vw, 36px);
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 14px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-description {
        font-size: 14px;
    }
    .page-promotions__terms-item,
    .page-promotions__step-card p,
    .page-promotions__faq-answer p {
        font-size: 14px;
    }
    .page-promotions__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: auto;
        margin-right: auto;
    }
    /* Ensure images are responsive and don't overflow */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__promos-list,
    .page-promotions__terms-section,
    .page-promotions__optimization-section,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        padding: 10px;
    }
    .page-promotions__main-title {
        font-size: clamp(22px, 7vw, 36px);
    }
    .page-promotions__hero-description {
        font-size: 14px;
    }
    .page-promotions__cta-button {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-promotions__section-title {
        font-size: clamp(22px, 6vw, 32px);
    }
    .page-promotions__card-title {
        font-size: 18px;
    }
    .page-promotions__faq-question {
        font-size: 15px;
        padding: 12px 18px;
    }
}