/* -------------------------------------------------------------------------
 * Ingatlankalauz Tudástár
 * ---------------------------------------------------------------------- */

.knowledge-index-hero,
.knowledge-article-hero {
    background:
        radial-gradient(circle at 88% 12%, rgba(31, 95, 91, 0.18), transparent 31%),
        linear-gradient(135deg, #fffdf9 0%, #eef6f4 100%);
}

.knowledge-index-section {
    padding-top: 58px;
}

.knowledge-index-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 46px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--brand-soft);
}

.knowledge-index-summary strong,
.knowledge-index-summary span {
    display: block;
}

.knowledge-index-summary strong {
    font-size: 18px;
}

.knowledge-index-summary span {
    color: var(--ink-soft);
    font-size: 14px;
}

.knowledge-category-block + .knowledge-category-block {
    margin-top: 64px;
    padding-top: 58px;
    border-top: 1px solid var(--line);
}

.knowledge-category-heading {
    margin-bottom: 26px;
}

.knowledge-category-heading h2 {
    margin-bottom: 0;
    font-size: clamp(28px, 3vw, 38px);
}

.knowledge-library-grid,
.knowledge-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.knowledge-library-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 8px 28px rgba(35, 65, 62, 0.05);
}

.knowledge-library-card h3 {
    margin-top: 0;
}

.knowledge-library-card p {
    flex: 1 1 auto;
    color: var(--ink-soft);
}

.knowledge-card-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

.knowledge-card-link::after {
    content: '→';
    transition: transform 0.16s ease;
}

.knowledge-card-link:hover::after {
    transform: translateX(3px);
}

.knowledge-index-cta {
    margin-top: 0;
}

.knowledge-article-section {
    padding-top: 58px;
}

.knowledge-article-layout {
    max-width: 1030px;
}

.knowledge-article-main {
    max-width: 900px;
    margin: 0 auto;
}

.knowledge-article-main .article-section:first-child {
    padding-top: 0;
}

.knowledge-article-main .article-section > p:not(.step-kicker) {
    max-width: 860px;
}

.knowledge-sources-section {
    margin-top: 14px;
}

.knowledge-related-section {
    border-top: 1px solid var(--line);
}

.knowledge-not-found {
    max-width: 840px;
    padding-top: 40px;
    padding-bottom: 40px;
}

.knowledge-not-found h1 {
    max-width: 760px;
    font-size: clamp(38px, 5vw, 58px);
}

/* A főoldali Tudástár-kártyákhoz is használható link. */
.knowledge-card .knowledge-card-link {
    margin-top: 8px;
}

@media (max-width: 1020px) {
    .knowledge-library-grid,
    .knowledge-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .knowledge-index-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .knowledge-library-grid,
    .knowledge-related-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-category-block + .knowledge-category-block {
        margin-top: 48px;
        padding-top: 42px;
    }
}
