/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #121212; /* Inherited from body via shared.css */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --login-button-color: #EA7C07;
}

.page-promotions {
    color: var(--light-text-color); /* Default text color for the page content, matching dark body background */
    background-color: var(--dark-bg-color);
}

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary-color);
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: var(--light-text-color);
}

.page-promotions__hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
}

.page-promotions__hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--light-text-color);
}

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

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

.page-promotions__btn-primary {
    background-color: var(--login-button-color);
    color: var(--light-text-color);
    border: 2px solid var(--login-button-color);
}

.page-promotions__btn-primary:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--light-text-color);
    color: var(--primary-color);
}

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

.page-promotions__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-promotions__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

.page-promotions__section-title {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-promotions__section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

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

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

.page-promotions__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: var(--light-text-color);
}

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

.page-promotions__card-title {
    font-size: 1.7rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--light-text-color);
}

.page-promotions__card-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--light-text-color);
}

.page-promotions__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    align-self: flex-start;
}

.page-promotions__steps-list,
.page-promotions__terms-list,
.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-promotions__list-item {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-promotions__list-item strong {
    color: var(--primary-color);
}

.page-promotions__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-promotions__terms-list .page-promotions__list-item::before {
    content: '⚠️';
}

.page-promotions__advantages-list .page-promotions__list-item::before {
    content: '⭐';
}

.page-promotions__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 12px;
}

.page-promotions__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

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

.page-promotions__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text-color);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    font-weight: normal;
    transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
    transform: rotate(0deg); /* Explicitly set to 0 for '-' */
}

.page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 1rem;
    line-height: 1.6;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px 25px;
}

.page-promotions__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--light-text-color);
}

.page-promotions__cta-buttons--bottom {
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-promotions__hero-title {
        font-size: 3rem;
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }
    .page-promotions__hero-title {
        font-size: 2.2rem;
    }
    .page-promotions__hero-description {
        font-size: 1rem;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__section {
        padding: 60px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
    }
    .page-promotions__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-promotions__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card {
        padding: 20px;
    }
    .page-promotions__card-image {
        height: 200px;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-promotions__card-title {
        font-size: 1.3rem;
    }
    .page-promotions__card-text {
        font-size: 0.9rem;
    }
    .page-promotions__list-item {
        font-size: 1rem;
        padding-left: 25px;
    }
    .page-promotions__list-item::before {
        left: 0;
    }
    .page-promotions__video-wrapper {
        margin: 30px auto;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-promotions__faq-answer {
        padding: 0 20px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    
    /* Image and video specific mobile responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video,
    .page-promotions__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .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;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-title {
        font-size: 1.8rem;
    }
    .page-promotions__hero-description {
        font-size: 0.9rem;
    }
    .page-promotions__section-title {
        font-size: 1.5rem;
    }
    .page-promotions__card-title {
        font-size: 1.2rem;
    }
    .page-promotions__card-text {
        font-size: 0.85rem;
    }
}