/* =============================================
   TUDÁSTÁR OLDAL – accordion + blog lista
   ============================================= */

.tudastar-lista {
    padding: 60px 0 80px;
}

/* Globális h2 center felülírása – GYIK/Tudástár oldalon mindig balra */
.tudastar-lista h2,
.gyik-lista h2 {
    text-align: left;
}

.tudastar-item {
    border-bottom: 1px solid var(--Stt-melegszrke, #8C8880);
}

.tudastar-item:last-child {
    border-bottom: none;
}

/* ── Fejléc gomb ──────────────────────────── */
.tudastar-item__fejlec {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 32px 0;
    cursor: pointer;
    /* minden border törlése, csak az alap vonal marad */
    border: none;
    background: none;
    box-sizing: border-box;
}

.tudastar-item__fejlec h2 {
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

/* ── Nyíl forgás ──────────────────────────── */
.tudastar-item__nyil {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.tudastar-item.aktiv .tudastar-item__nyil {
    transform: rotate(90deg);
}

/* ── Összecsukható tartalom ───────────────── */
.tudastar-item__tartalom {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 2rem;
}

.tudastar-item.aktiv .tudastar-item__tartalom {
    max-height: 4000px;
}

/* ── Letölthető dok. link lista ───────────── */
.tudastar-linkek {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.tudastar-linkek li {
    padding: 16px 0;
}


/* ── GYIK belső accordion ─────────────────── */
.gyik-lista {
    margin: 0 0 32px;
}

.gyik-item {
    border-bottom: 1px solid #8c88806e;
    padding: 1rem 0;
}

.gyik-item:last-child {
    border-bottom: none;
}


.gyik-item__kerdes {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    justify-content: flex-start;
}

.gyik-item__kerdes h2 {
    margin: 0;
    font: inherit;
    color: inherit;
}

.gyik-item__nyil {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--color-text);
    transition: transform 0.25s ease;
    line-height: 1;
}

.gyik-item.aktiv .gyik-item__nyil {
    transform: rotate(90deg);
}

.gyik-item__valasz {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.gyik-item.aktiv .gyik-item__valasz {
    max-height: 600px;
    padding-top: 1rem;
    padding-left: 2rem;
}

.gyik-item__valasz p {
    padding: 0 0 20px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.65;
    margin: 0;
    max-width: 500px;
}

/* ── Blog lista ───────────────────────────── */
.tudastar-blog {
    margin: 0 0 32px;
}

.tudastar-blog__item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid #8C8880;
}

.tudastar-blog__kep-wrap {
    flex-shrink: 0;
    width: 30%;
    border-radius: 8px;
    overflow: hidden;
    background: #D5D3CE;
}

.tudastar-blog__kep {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.tudastar-blog__kep--placeholder {
    width: 100%;
    aspect-ratio: 5 / 3;
    display: block;
    background: #D5D3CE;
}

.tudastar-blog__tartalom {
    flex: 1;
    min-width: 0;
}

.tudastar-blog__cim {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 12px;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    transition: color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tudastar-blog__cim:hover {
        color: var(--color-terracotta);
    }
}

.tudastar-blog__kivonat {
    margin: 0 0 14px;
    max-width: 500px;
}

.tudastar-blog__tovabb {
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    transition: color 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
    .tudastar-blog__tovabb:hover {
        color: var(--color-terracotta);
    }
}

.tudastar-blog__datum {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #8C8880;
    display: block;
}

/* ── Üres állapot ─────────────────────────── */
.tudastar-ures {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #8C8880;
    padding: 12px 0 32px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media only screen and (max-width: 799px) {
    .tudastar-lista {
        padding: 40px 0 60px;
    }

    .tudastar-item__fejlec {
        padding: 24px 0;
    }
}

@media only screen and (max-width: 630px) {
    .tudastar-blog__item {
        flex-direction: column;
        gap: 16px;
    }

    .tudastar-blog__kep-wrap {
        width: 100%;
    }

    .tudastar-blog__cim {
        font-size: 19px;
    }

    .tudastar-item__fejlec {
        padding: 20px 0;
    }
}

@media only screen and (max-width: 450px) {
    .tudastar-item__fejlec h2 {
        font-size: 26px;
    }

    .tudastar-item__tartalom {
        padding-left: 0;
    }

    .gyik-item__kerdes {
        font-size: 16px;
        padding: 0;
        line-height: 1.65;
        justify-content: space-between;
    }

    .gyik-item__nyil {
        margin-left: auto;
        flex-shrink: 0;
    }
    .tudastar-item__nyil svg {
        width: 30px;
    height: 30px;
    }

    .gyik-item__nyil svg {
        width: 30px;
        height: 30px;
    }
}