.elc-link-grid {
    display: grid;
    gap: 22px;
    margin: 1.5rem 0;
}

.elc-columns-1 { grid-template-columns: 1fr; }
.elc-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.elc-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.elc-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.elc-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 16px;
    color: inherit;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    height: 100%;
}

.elc-card:hover,
.elc-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(0,0,0,0.18);
}

.elc-card-image-wrap {
    aspect-ratio: 16 / 9;
    background: #f3f4f6;
    overflow: hidden;
}

.elc-card-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.elc-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef2f7, #dfe6ef);
}

.elc-card-placeholder span {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    color: #2f3a4a;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
}

.elc-card-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.elc-card-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    color: inherit;
}

.elc-card-description {
    margin: 0;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.45;
}

.elc-card-url {
    margin-top: auto;
    display: inline-flex;
    color: #64748b;
    font-size: 0.85rem;
    word-break: break-word;
}

@media (max-width: 980px) {
    .elc-columns-3,
    .elc-columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .elc-link-grid,
    .elc-columns-2,
    .elc-columns-3,
    .elc-columns-4 {
        grid-template-columns: 1fr;
    }
}
