/* style/promotions.css */

:root {
    --kclub-primary: #26A9E0;
    --kclub-secondary: #FFFFFF;
    --kclub-dark-bg: #1a1a2e;
    --kclub-light-text: #ffffff;
    --kclub-dark-text: #333333;
    --kclub-accent-login: #EA7C07;
}

/* Base styles for the promotions page */
.page-promotions {
    background-color: var(--kclub-dark-bg); /* Body background is dark, so page content will have light text */
    color: var(--kclub-light-text);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-promotions__section-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--kclub-light-text);
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-promotions__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--kclub-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-promotions__text-block p, .page-promotions__text-block li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--kclub-light-text);
}

.page-promotions__highlight {
    color: var(--kclub-primary);
    font-weight: bold;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero */
    overflow: hidden;
    text-align: center;
    padding-top: 10px; /* Small top padding */
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

.page-promotions__hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 90%;
    background-color: rgba(0, 0, 0, 0.6); /* Slightly darker overlay for text readability */
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

.page-promotions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--kclub-secondary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-promotions__hero-description {
    font-size: 1.2rem;
    color: var(--kclub-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

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

.page-promotions__btn-primary:hover {
    background-color: #1e87c0; /* Darker shade of primary */
}

.page-promotions__btn-secondary {
    background-color: transparent;
    color: var(--kclub-primary);
    border-color: var(--kclub-primary);
    margin-left: 20px;
}

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

/* Specific Section Styles */
.page-promotions__overview.page-promotions__light-bg {
    background-color: var(--kclub-secondary);
    color: var(--kclub-dark-text);
}

.page-promotions__overview.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__overview.page-promotions__light-bg .page-promotions__sub-title,
.page-promotions__overview.page-promotions__light-bg p {
    color: var(--kclub-dark-text);
}

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

.page-promotions__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-promotions__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__card-sub-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--kclub-secondary);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-promotions__promo-card p {
    font-size: 1rem;
    color: var(--kclub-light-text);
    margin-bottom: 15px;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
    margin-left: 0;
}

.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.page-promotions__steps-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
    color: var(--kclub-dark-text);
}

.page-promotions__steps-list li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--kclub-primary);
    color: var(--kclub-secondary);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

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

.page-promotions__optimize.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__optimize.page-promotions__light-bg .page-promotions__sub-title {
    color: var(--kclub-dark-text);
}

.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: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-promotions__feature-item p {
    font-size: 1rem;
    color: var(--kclub-light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-promotions__faq.page-promotions__light-bg {
    background-color: var(--kclub-secondary);
    color: var(--kclub-dark-text);
}

.page-promotions__faq.page-promotions__light-bg .page-promotions__section-title {
    color: var(--kclub-dark-text);
}

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

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

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: var(--kclub-secondary);
    color: var(--kclub-dark-text);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-question:hover {
    background-color: #f0f0f0;
}

.page-promotions__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--kclub-dark-text);
    background-color: #f8f8f8;
}

.page-promotions__faq-answer p {
    margin-top: 15px;
    color: var(--kclub-dark-text);
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
    padding: 80px 0;
    background-color: var(--kclub-primary);
    color: var(--kclub-secondary);
}

.page-promotions__cta-bottom .page-promotions__section-title {
    color: var(--kclub-secondary);
}

.page-promotions__cta-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--kclub-secondary);
}

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

.page-promotions__cta-buttons .page-promotions__btn-primary {
    background-color: var(--kclub-accent-login);
    border-color: var(--kclub-accent-login);
}

.page-promotions__cta-buttons .page-promotions__btn-primary:hover {
    background-color: #c76706;
    border-color: #c76706;
}

.page-promotions__cta-buttons .page-promotions__btn-secondary {
    color: var(--kclub-secondary);
    border-color: var(--kclub-secondary);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 25px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-promotions__section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 30px;
    }
    .page-promotions__sub-title {
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }
    .page-promotions__text-block p, .page-promotions__text-block li {
        font-size: 1rem;
    }
    .page-promotions__hero-section {
        min-height: 400px;
    }
    .page-promotions__hero-content {
        padding: 20px;
        width: 95%;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }
    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }
    .page-promotions__promo-grid,
    .page-promotions__features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-image,
    .page-promotions__feature-image {
        height: 200px;
    }
    .page-promotions__promo-card p,
    .page-promotions__feature-item p {
        font-size: 0.95rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__cta-text {
        font-size: 1rem;
    }

    /* Mobile image responsiveness */
    .page-promotions img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__feature-item,
    .page-promotions__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-section {
        padding-top: 10px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 30px) !important;
        max-width: calc(100% - 30px) !important;
        padding: 15px;
    }
    .page-promotions__overview.page-promotions__light-bg .page-promotions__container,
    .page-promotions__optimize.page-promotions__light-bg .page-promotions__container,
    .page-promotions__faq.page-promotions__light-bg .page-promotions__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ensure no horizontal scroll for elements that might contain wide content */
    .page-promotions__hero-image-wrapper,
    .page-promotions__promo-grid,
    .page-promotions__features-grid,
    .page-promotions__faq-list,
    .page-promotions__cta-buttons {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__section {
        padding: 30px 0;
    }
    .page-promotions__main-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
    }
    .page-promotions__hero-description {
        font-size: 0.9rem;
    }
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    .page-promotions__card-title {
        font-size: 1.4rem;
    }
    .page-promotions__card-sub-title {
        font-size: 1.1rem;
    }
    .page-promotions__feature-title {
        font-size: 1.3rem;
    }
    .page-promotions__faq-question {
        font-size: 0.95rem;
        padding: 12px 15px;
    }
    .page-promotions__faq-answer {
        padding: 0 15px 12px;
    }
}