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

.page-promotions {
    color: var(--color-text-main); /* Default text color for the page */
    background-color: var(--color-background);
}

.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 60px;
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    margin-top: 40px;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-gold);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--color-button-gradient-start);
    color: #ffffff;
    transform: translateY(-3px);
}

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

.page-promotions__introduction-section,
.page-promotions__categories-section,
.page-promotions__how-to-participate-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-primary);
    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: 4px;
    background-color: var(--color-gold);
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-promotions__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    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 12px 30px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__promo-card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    padding: 20px 20px 10px;
    margin-bottom: 0;
}

.page-promotions__promo-card-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding: 0 20px 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.page-promotions__btn-text-link {
    display: inline-block;
    color: var(--color-button-gradient-start);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 20px;
    border-top: 1px solid var(--color-divider);
    transition: color 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.page-promotions__btn-text-link:hover {
    color: #ffffff;
    background-color: var(--color-button-gradient-end);
}

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

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
}

.page-promotions__step-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
}

.page-promotions__terms-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--color-divider);
}

.page-promotions__terms-title {
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-promotions__terms-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.1);
    border-bottom: 1px solid var(--color-divider);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

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

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--color-text-main);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

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

.page-promotions__conclusion-section .page-promotions__text-block a {
    color: var(--color-gold);
    text-decoration: underline;
}

.page-promotions__conclusion-section .page-promotions__text-block a:hover {
    color: var(--color-primary);
}

.page-promotions__sticky-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-promotions__btn-register,
.page-promotions__btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
}

.page-promotions__btn-register:hover,
.page-promotions__btn-login:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    }
    .page-promotions__introduction-section,
    .page-promotions__categories-section,
    .page-promotions__how-to-participate-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .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__introduction-section,
    .page-promotions__categories-section,
    .page-promotions__how-to-participate-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-promotions__hero-description {
        font-size: clamp(0.9rem, 3vw, 1rem);
    }

    .page-promotions__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-promotions__steps-list {
        grid-template-columns: 1fr;
    }

    .page-promotions__step-item,
    .page-promotions__terms-item,
    .page-promotions__faq-item {
        padding: 20px;
    }

    .page-promotions__step-title,
    .page-promotions__terms-title {
        font-size: 1.2rem;
    }

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

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

    .page-promotions__sticky-buttons {
        flex-direction: row;
        width: calc(100% - 40px);
        left: 20px;
        right: 20px;
        bottom: 15px;
        justify-content: space-around;
    }

    .page-promotions__btn-register,
    .page-promotions__btn-login {
        flex: 1;
        max-width: 48%;
        padding: 10px 15px;
        font-size: 0.9rem;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-promotions__hero-description {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    .page-promotions__text-block {
        font-size: 0.9rem;
    }
    .page-promotions__promo-card-title {
        font-size: 1.3rem;
    }
    .page-promotions__btn-register,
    .page-promotions__btn-login {
        font-size: 0.85rem;
        padding: 8px 10px;
    }
}