/* ================================================================
 *  Hírlevél – kapcsolódó anyagok / hírek kártyák
 *  [matehetsz_hirlevel_fajlok]  [matehetsz_hirlevel_hirek]
 *
 *  Theming: override the custom properties, e.g. in Elementor custom CSS:
 *    .mtsz-hirlevel { --mtsz-hl-accent: #0e1e52; }
 * ============================================================= */

.mtsz-hirlevel {
    --mtsz-hl-accent:        #7b9a6c;  /* icon + label */
    --mtsz-hl-accent-hover:  #5f7d52;
    --mtsz-hl-heading:       #111827;
    --mtsz-hl-text-muted:    #6b7280;
    --mtsz-hl-card-bg:       #f3f4f6;
    --mtsz-hl-card-bg-hover: #eceef1;
    --mtsz-hl-card-border:   #e5e7eb;
    --mtsz-hl-tile-bg:       #ffffff;
    --mtsz-hl-radius:        12px;
    --mtsz-hl-gap:           12px;

    margin: 0 0 32px;
}

.mtsz-hirlevel__title {
    margin: 0 0 20px;
    color: var(--mtsz-hl-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.mtsz-hirlevel__list {
    display: flex;
    flex-direction: column;
    gap: var(--mtsz-hl-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mtsz-hirlevel__item {
    margin: 0;
    padding: 0;
}

.mtsz-hirlevel__card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--mtsz-hl-card-border);
    border-radius: var(--mtsz-hl-radius);
    background: var(--mtsz-hl-card-bg);
    color: var(--mtsz-hl-accent);
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mtsz-hirlevel__card:hover {
    background: var(--mtsz-hl-card-bg-hover);
    border-color: #d1d5db;
    color: var(--mtsz-hl-accent-hover);
    text-decoration: none;
}

.mtsz-hirlevel__card:focus-visible {
    outline: 2px solid var(--mtsz-hl-accent);
    outline-offset: 2px;
}

.mtsz-hirlevel__icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--mtsz-hl-tile-bg);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .06);
    color: var(--mtsz-hl-accent);
}

.mtsz-hirlevel__icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.mtsz-hirlevel__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mtsz-hirlevel__label {
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.mtsz-hirlevel__meta {
    color: var(--mtsz-hl-text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.mtsz-hirlevel__excerpt {
    margin: 2px 0 0;
    color: var(--mtsz-hl-text-muted);
    font-size: 14px;
    line-height: 1.5;
}
