/* style/promotions.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-dark: #1a1a1a; /* Body background from shared.css */
    --login-button-color: #EA7C07;
}

/* Base styles for the page content, considering dark body background */
.page-promotions {
    color: var(--text-light); /* Light text on dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-dark);
}

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

.page-promotions__section {
    padding: 60px 0;
}

.page-promotions__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    line-height: 1.2;
}

.page-promotions__section-title--light {
    color: var(--text-light);
}

.page-promotions__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-light);
}

.page-promotions__text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-promotions__text-link:hover {
    text-decoration: underline;
}

.page-promotions__text-link--light {
    color: var(--secondary-color);
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
}

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

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1, no fixed large value */
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-promotions__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-promotions__description--light {
    color: var(--text-light);
}

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

.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.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

.page-promotions__btn-primary--white:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
}

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

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

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

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

.page-promotions__center-button {
    margin: 30px auto 0 auto;
    display: block;
    width: fit-content;
}

/* Promotion Types Grid */
.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.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-light); /* Light text on card */
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.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.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.page-promotions__card-button {
    display: inline-block;
    background-color: var(--login-button-color); /* Specific color for login/action */
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

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

/* How-to-claim steps */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: var(--text-light);
}

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

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-light);
}

/* Terms Overview */
.page-promotions__bullet-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
    color: var(--text-light);
}

.page-promotions__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Why Kimsa Features */
.page-promotions__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-promotions__feature-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-promotions__feature-icon {
    width: 200px; /* Min 200px */
    height: 200px; /* Min 200px */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-promotions__feature-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__feature-description {
    font-size: 1em;
    color: var(--text-light);
}

/* FAQ Section */
.page-promotions__faq-list {
    margin-top: 40px;
}

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

details.page-promotions__faq-item[open] > .page-promotions__faq-question {
    border-bottom: 1px solid var(--primary-color);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.02);
}

/* Final CTA Section */
.page-promotions__cta-final .page-promotions__container {
    background: linear-gradient(135deg, var(--primary-color), #007bb6); /* Brand color gradient */
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__hero-content {
        max-width: 768px;
    }
    .page-promotions__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-promotions__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__hero-image {
        margin-bottom: 20px;
    }
    .page-promotions__hero-content {
        padding: 0 15px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-promotions__description {
        font-size: 1em;
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-promotions__text-block,
    .page-promotions__list-item,
    .page-promotions__step-description,
    .page-promotions__feature-description,
    .page-promotions__faq-answer {
        font-size: 0.95em;
    }
    .page-promotions__card-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__feature-grid {
        grid-template-columns: 1fr;
    }
    .page-promotions__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
    }
    .page-promotions__cta-final .page-promotions__container {
        padding: 40px 20px;
    }
    
    /* Mobile image responsiveness */
    .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__intro-section,
    .page-promotions__promotion-types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-overview,
    .page-promotions__why-kimsa,
    .page-promotions__faq-section,
    .page-promotions__cta-final,
    .page-promotions__cta-buttons,
    .page-promotions__card-grid,
    .page-promotions__feature-grid,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-promotions__hero-section,
    .page-promotions__intro-section,
    .page-promotions__promotion-types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-overview,
    .page-promotions__why-kimsa,
    .page-promotions__faq-section,
    .page-promotions__cta-final {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__section-title {
        font-size: 1.5em;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .page-promotions__card-title {
        font-size: 1.3em;
    }
    .page-promotions__step-title {
        font-size: 1.2em;
    }
    .page-promotions__feature-title {
        font-size: 1.4em;
    }
    .page-promotions__faq-question {
        font-size: 1em;
    }
}