/* style/promotions.css */

:root {
    --k9cc-primary: #113B7A;
    --k9cc-secondary: #1D5FD1;
    --k9cc-card-bg: #10233F;
    --k9cc-text-main: #F3F8FF;
    --k9cc-text-secondary: #AFC4E8;
    --k9cc-border: #244D84;
    --k9cc-glow: #4FA8FF;
    --k9cc-gold: #F2C14E;
    --k9cc-divider: #1B3357;
    --k9cc-deep-navy: #08162B;
    --k9cc-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --default-light-text: #333333; /* For light backgrounds */
    --default-dark-text: #ffffff; /* For dark backgrounds */
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    color: var(--default-light-text); /* Default for light body background */
    background-color: #ffffff;
}

.page-promotions__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding */
    background-color: var(--k9cc-deep-navy);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

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

.page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3.5em);
    font-weight: 700;
    line-height: 1.2;
    color: var(--k9cc-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--k9cc-text-secondary);
}

.page-promotions__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-promotions__cta-button {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__btn-primary {
    background: var(--k9cc-button-gradient);
    color: var(--k9cc-text-main);
    border: 2px solid var(--k9cc-glow);
    box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(43, 115, 246, 0.6);
}

.page-promotions__btn-secondary {
    background: var(--k9cc-deep-navy);
    color: var(--k9cc-gold);
    border: 2px solid var(--k9cc-gold);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--k9cc-gold);
    color: var(--k9cc-deep-navy);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

.page-promotions__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--k9cc-primary);
    position: relative;
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--k9cc-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-promotions__section-intro {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
    color: var(--default-light-text);
}

.page-promotions__content-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-promotions__promotion-card, .page-promotions__step-card {
    background-color: var(--k9cc-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--k9cc-text-main);
    border: 1px solid var(--k9cc-border);
}

.page-promotions__promotion-card:hover, .page-promotions__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin: 20px 20px 10px;
    color: var(--k9cc-gold);
}

.page-promotions__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--k9cc-text-secondary);
}

.page-promotions__card-button {
    margin: 0 20px 20px;
    padding: 12px 20px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__how-to-section {
    padding: 60px 20px;
    background-color: var(--k9cc-primary);
    color: var(--k9cc-text-main);
}

.page-promotions__how-to-section .page-promotions__section-title {
    color: var(--k9cc-gold);
}

.page-promotions__how-to-section .page-promotions__section-intro {
    color: var(--k9cc-text-secondary);
}

.page-promotions__steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-promotions__why-choose-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-promotions__reason-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 900px;
}

.page-promotions__reason-item {
    background-color: #f8f8f8;
    border-left: 5px solid var(--k9cc-primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: var(--default-light-text);
}

.page-promotions__reason-heading {
    font-size: 1.3em;
    color: var(--k9cc-primary);
    margin-bottom: 10px;
}

.page-promotions__reason-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--default-light-text);
}

.page-promotions__faq-section {
    padding: 60px 20px;
    background-color: var(--k9cc-deep-navy);
    color: var(--k9cc-text-main);
}

.page-promotions__faq-section .page-promotions__section-title {
    color: var(--k9cc-gold);
}

.page-promotions__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-promotions__faq-item {
    background-color: var(--k9cc-card-bg);
    border: 1px solid var(--k9cc-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-promotions__faq-item[open] {
    background-color: var(--k9cc-primary);
    border-color: var(--k9cc-gold);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--k9cc-text-main);
    cursor: pointer;
    list-style: none;
    outline: none;
    transition: color 0.3s ease;
}

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

.page-promotions__faq-question:hover {
    color: var(--k9cc-gold);
}

.page-promotions__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--k9cc-gold);
    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: 1em;
    line-height: 1.7;
    color: var(--k9cc-text-secondary);
}

.page-promotions__conclusion-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f0f4f8;
}

.page-promotions__conclusion-section .page-promotions__section-title {
    color: var(--k9cc-primary);
}

.page-promotions__conclusion-section .page-promotions__section-intro {
    color: var(--default-light-text);
    margin-bottom: 40px;
}

/* ----- Responsive Styles ----- */

@media (max-width: 1024px) {
    .page-promotions__hero-content {
        padding: 30px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }

    .page-promotions__hero-description {
        font-size: 1em;
    }

    .page-promotions__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }

    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-promotions__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-promotions__card-title {
        font-size: 1.3em;
    }

    .page-promotions__card-description {
        font-size: 0.9em;
    }
}

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

    .page-promotions__hero-section {
        padding-top: 10px !important;
    }

    .page-promotions__hero-image,
    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions__hero-image-wrapper,
    .page-promotions__promotion-card,
    .page-promotions__step-card,
    .page-promotions__reason-item,
    .page-promotions__faq-item,
    .page-promotions__section,
    .page-promotions__content-section,
    .page-promotions__how-to-section,
    .page-promotions__why-choose-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section,
    .page-promotions__promotions-grid,
    .page-promotions__steps-container,
    .page-promotions__reason-list,
    .page-promotions__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__hero-content {
        padding: 20px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.5em, 8vw, 2.5em);
    }

    .page-promotions__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-promotions__cta-button,
    .page-promotions__card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-promotions__promotion-card .page-promotions__card-button {
        margin-left: 15px;
        margin-right: 15px;
        max-width: calc(100% - 30px) !important;
    }

    .page-promotions__card-title {
        font-size: 1.2em;
        margin: 15px 15px 8px;
    }

    .page-promotions__card-description {
        padding: 0 15px;
    }

    .page-promotions__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }

    .page-promotions__reason-item {
        padding: 15px;
    }

    .page-promotions__reason-heading {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        padding: 15px 10px;
    }

    .page-promotions__main-title {
        font-size: clamp(1.2em, 10vw, 2em);
    }

    .page-promotions__hero-description {
        font-size: 0.9em;
    }

    .page-promotions__section-title {
        font-size: clamp(1.2em, 8vw, 1.8em);
    }

    .page-promotions__cta-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }

    .page-promotions__promotion-card .page-promotions__card-button {
        margin-left: 10px;
        margin-right: 10px;
        max-width: calc(100% - 20px) !important;
    }

    .page-promotions__promotion-card,
    .page-promotions__step-card {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-promotions__card-title {
        font-size: 1.1em;
        margin: 10px 10px 5px;
    }

    .page-promotions__card-description {
        padding: 0 10px;
    }

    .page-promotions__faq-question {
        font-size: 0.9em;
        padding: 12px 15px;
    }

    .page-promotions__faq-answer {
        padding: 0 15px 12px;
    }
}