/* ==========================================================================
   KE Call to Action Widget
   ========================================================================== */

.ke-cta {
    position: relative;
    display: flex;
    align-items: center;
    padding: 40px;
    border-radius: var(--ke-radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--ke-primary), var(--ke-secondary));
    color: #fff;
}

.ke-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.ke-cta--layout-horizontal {
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
}

.ke-cta--layout-vertical {
    flex-direction: column;
    text-align: center;
}

.ke-cta--layout-cover {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 400px;
}

.ke-cta--position-center {
    justify-content: center;
    text-align: center;
}

.ke-cta--position-right .ke-cta__content {
    order: 2;
}

.ke-cta--position-right .ke-cta__buttons {
    order: 1;
}

.ke-cta__ribbon {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: var(--ke-space-2) var(--ke-space-4);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--ke-danger);
    border-radius: var(--ke-radius-sm);
    z-index: 10;
}

.ke-cta__content {
    position: relative;
    z-index: 5;
    flex: 1;
}

.ke-cta__title {
    margin: 0 0 15px;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
}

.ke-cta__description {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.ke-cta__buttons {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ke-cta--layout-vertical .ke-cta__buttons,
.ke-cta--layout-cover .ke-cta__buttons {
    justify-content: center;
    margin-top: var(--ke-space-5);
}

.ke-cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--ke-space-2);
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--ke-radius-md);
    transition: var(--ke-transition);
}

.ke-cta__button--primary {
    background: var(--ke-card-solid);
    color: var(--ke-primary);
}

.ke-cta__button--primary:hover {
    background: var(--ke-gray-100);
}

.ke-cta__button--secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.ke-cta__button--secondary:hover {
    background: rgba(var(--ke-white-rgb), 0.1);
}

@media (max-width: 767px) {
    .ke-cta--layout-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .ke-cta__buttons {
        justify-content: center;
    }
}

