/* style/promotions.css */

:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --card-bg-color: #FFFFFF;
    --body-bg-color: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Default text color for light backgrounds */
    background-color: var(--body-bg-color);
}

.page-promotions__dark-bg {
    background-color: var(--primary-color);
    color: #ffffff; /* White text for dark backgrounds */
}

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

.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden;
}

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

.page-promotions__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-promotions__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    max-width: 100%;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size for H1 */
}

.page-promotions__subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

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

.page-promotions__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: inherit; /* Inherits from section background */
}

.page-promotions__section-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherits from section background */
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

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

.page-promotions__btn-secondary:hover {
    transform: translateY(-2px);
    background-color: var(--primary-color);
    color: #ffffff;
}

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

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

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

.page-promotions__feature-icon {
    width: 200px; /* Min size requirement */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-promotions__feature-text {
    font-size: 1rem;
    color: var(--text-main-color);
}

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

.page-promotions__card {
    background-color: var(--card-bg-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

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

.page-promotions__card-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

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

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

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

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

.page-promotions__step-icon {
    width: 200px; /* Min size requirement */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promotions__step-text {
    font-size: 1rem;
    color: var(--text-main-color);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-promotions__terms-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1rem;
    border-left: 5px solid var(--secondary-color);
}

.page-promotions__inline-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions__inline-link:hover {
    color: #ffffff;
}

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

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

.page-promotions__faq-item summary {
    list-style: none;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    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 20px 20px 20px;
    font-size: 1rem;
    color: #f0f0f0;
    text-align: left;
}

.page-promotions__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-promotions__subtitle {
        font-size: 1rem;
    }
    .page-promotions__section {
        padding: 40px 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
    }
    .page-promotions__section-description {
        font-size: 0.95rem;
    }
    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__cta-buttons-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__features-grid,
    .page-promotions__promotion-cards,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-image,
    .page-promotions__feature-icon,
    .page-promotions__step-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__card,
    .page-promotions__feature-item,
    .page-promotions__step-item,
    .page-promotions__faq-item,
    .page-promotions__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-promotions__faq-answer {
        padding: 10px 15px 15px 15px;
    }
    .page-promotions__terms-list {
        padding: 0 15px;
    }
    .page-promotions__terms-item {
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-promotions__section-title {
        font-size: 1.5rem;
    }
    .page-promotions__card-title {
        font-size: 1.4rem;
    }
    .page-promotions__feature-title,
    .page-promotions__step-title {
        font-size: 1.3rem;
    }
    .page-promotions__hero-content {
        padding: 15px;
    }
}