/* EKN Services Widget — Frontend Styles */

.ekn-sw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-family: inherit;
    margin: 0;
    padding: 0;
}

/* ---- Card base ---- */
.ekn-sw-card {
    background: #fff;
    border: 1px solid #e2dced;
    border-radius: 14px;
    padding: 20px 18px 18px;
    box-shadow: 0 2px 12px rgba(26, 19, 51, 0.05);
    display: flex;
    flex-direction: column;
    gap: 9px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
}

/* Hover accent top-border */
.ekn-sw-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, linear-gradient(90deg, #c8003a, #8b1fff));
    border-radius: 14px 14px 0 0;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.ekn-sw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(26, 19, 51, 0.1);
}
.ekn-sw-card:hover::before {
    opacity: 1;
}

/* ---- Wide card (full-width row) ---- */
.ekn-sw-wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    gap: 16px;
}

/* ---- Icon ---- */
.ekn-sw-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

/* ---- Service name ---- */
.ekn-sw-name {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: 16px;
    letter-spacing: 0.03em;
    color: #1a1333;
    line-height: 1.15;
}

/* ---- Description ---- */
.ekn-sw-desc {
    font-size: 12px;
    color: #6b6580;
    line-height: 1.55;
    flex: 1;
}

/* ---- Chips row ---- */
.ekn-sw-chips {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ekn-sw-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 4px;
    line-height: 1.6;
}

/* ---- Link ---- */
.ekn-sw-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: letter-spacing 0.2s;
}
.ekn-sw-card:hover .ekn-sw-link {
    letter-spacing: 0.03em;
}

/* ---- Wide card internals ---- */
.ekn-sw-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ekn-sw-wide .ekn-sw-name { font-size: 15px; }
.ekn-sw-wide .ekn-sw-desc { font-size: 11.5px; margin: 0; }

.ekn-sw-arrow {
    font-size: 20px;
    color: #6b6580;
    transition: transform 0.2s ease, color 0.2s;
    flex-shrink: 0;
}
.ekn-sw-wide:hover .ekn-sw-arrow {
    transform: translateX(4px);
    color: #1a1333;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .ekn-sw-grid {
        grid-template-columns: 1fr;
    }
    .ekn-sw-wide {
        grid-column: auto;
    }
}