/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #111;
    --btn-login-color: #EA7C07;
}

.page-promotions {
    color: var(--text-light); /* Body background is dark, so text is light */
}

.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 */
    background-color: var(--bg-dark);
    text-align: center;
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

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

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

.page-promotions__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-promotions__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.page-promotions__btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-promotions__overview-section, 
.page-promotions__terms-section, 
.page-promotions__faq-section {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 60px 20px;
}

.page-promotions__types-section, 
.page-promotions__guide-section, 
.page-promotions__why-choose-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 20px;
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-promotions__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: inherit;
}

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

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

.page-promotions__card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-promotions__card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-promotions__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__btn-secondary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.page-promotions__btn-secondary:hover {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
}

.page-promotions__terms-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.page-promotions__terms-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-promotions__terms-list li p {
    margin: 0;
    color: var(--text-dark);
}

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

.page-promotions__step-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-promotions__step-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-promotions__step-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-promotions__step-description {
    font-size: 0.9em;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}

.page-promotions__step-description a {
    color: var(--primary-color);
    text-decoration: underline;
}

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

.page-promotions__faq-item {
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-dark);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    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: #f0f0f0;
}

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

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

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

.page-promotions__why-choose-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-promotions__image-wrapper,
.page-promotions__text-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-promotions__why-choose-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-promotions__why-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-promotions__why-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.page-promotions__why-list li p {
    margin: 0;
    color: inherit;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-section {
        padding: 40px 15px;
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: 1em;
    }
    .page-promotions__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-promotions__overview-section, 
    .page-promotions__types-section, 
    .page-promotions__terms-section, 
    .page-promotions__guide-section, 
    .page-promotions__faq-section, 
    .page-promotions__why-choose-section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 4.5vw, 2.2rem);
        margin-bottom: 30px;
    }
    .page-promotions__card-grid, .page-promotions__steps-grid {
        gap: 20px;
    }
    .page-promotions__card, .page-promotions__step-card {
        padding: 25px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
}

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

    .page-promotions__hero-section {
        padding-top: 10px !important; /* body handles header offset, small top padding */
        padding-bottom: 30px;
    }
    .page-promotions__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-promotions__hero-image {
        border-radius: 5px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-promotions__btn-primary {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .page-promotions__overview-section, 
    .page-promotions__types-section, 
    .page-promotions__terms-section, 
    .page-promotions__guide-section, 
    .page-promotions__faq-section, 
    .page-promotions__why-choose-section {
        padding: 30px 15px;
    }
    .page-promotions__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-promotions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 25px;
    }
    .page-promotions__text-block {
        font-size: 1em;
        margin-bottom: 15px;
    }

    /* Images responsive */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Card and Step Card images */
    .page-promotions__card-image, .page-promotions__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__card, .page-promotions__step-card {
        padding: 20px;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .page-promotions__card-title {
        font-size: 1.2em;
    }
    .page-promotions__card-description {
        font-size: 0.9em;
    }
    .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: 10px 15px;
        font-size: 0.9em;
    }

    /* Button containers responsive */
    .page-promotions__cta-buttons, .page-promotions__button-group, .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
    }

    .page-promotions__terms-list {
        margin-left: 15px;
    }
    .page-promotions__why-choose-content {
        flex-direction: column;
        gap: 25px;
    }
    .page-promotions__image-wrapper, .page-promotions__text-wrapper {
        min-width: unset;
        width: 100%;
    }
    .page-promotions__why-list {
        margin: 15px 0;
    }
    .page-promotions__why-list li {
        padding-left: 25px;
        background-size: 18px;
        font-size: 1em;
        margin-bottom: 10px;
    }
}