/* =========================================
   TUDÁS ÉS TAPASZTALAT OLDAL
   css/rolam.css
   ========================================= */

/* --- Fő konténer --- */
.tudas-container {

    padding-top: 10rem;
    /* Bőséges felső térköz (kb. 160px), hogy a tartalom lélegezni tudjon */
    padding-bottom: 8rem;
    /* Alsó térköz a szellősségért a footer előtt */

    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    /* Oldalsó padding mobilon */
    padding-right: 2rem;
    /* Oldalsó padding mobilon */
}


/* ===================== BEVEZETŐ ===================== */
.tudas-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
}

.intro-text {
    font-family: 'Jost', sans-serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 0.5rem;
}

.intro-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.8rem;
    color: #666;
    margin-top: 2rem;
    line-height: 1.4;
}

/* ===================== KÉSZSÉG SZEKCIÓK ===================== */
.skill-section {
    margin-bottom: 6rem;
}

.skill-section:last-of-type {
    margin-bottom: 2rem;
}

.skill-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

/* Minden második sor fordított */
.skill-grid.reverse {
    flex-direction: row-reverse;
}

/* --- Oklevél / Kép oldal --- */
.skill-image {
    flex: 0 0 42%;
    max-width: 420px;
    margin: 0;
}

.skill-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

/* --- Szöveges oldal --- */
.skill-text {
    flex: 1;
}

.skill-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #1a1a1a;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.skill-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #444;
}

/* Lista — vonallal */
.skill-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

.skill-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.9rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.skill-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #999;
}

/* "Hamarosan" felirat */
.coming-soon {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: #1a1a1a;
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin-top: 1.5rem;
}

/* ===================== TANÚSÍTVÁNYOK ===================== */
.cert-title-old-unused {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-list li {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cert-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cert-org {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.cert-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #333;
}

/* ===================== RESZPONZIVITÁS ===================== */

@media (max-width: 900px) {

    .skill-grid,
    .skill-grid.reverse {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .skill-image {
        flex: 0 0 auto;
        width: 80%;
        max-width: 380px;
        margin: 0 auto;
    }

    .skill-list li {
        text-align: left;
    }

    .skill-text h2 {
        font-size: 1.6rem;
    }

    .intro-quote {
        font-size: 1.5rem;
    }

    .cert-section {
        padding: 2rem 1.5rem;
    }

    .cert-list li {
        flex-direction: column;
        gap: 0.3rem;
    }
}

@media (max-width: 520px) {

    .skill-image {
        width: 100%;
    }

    .tudas-intro {
        margin-bottom: 4rem;
    }

    .skill-section {
        margin-bottom: 4rem;
    }
}

/* ─── Szekció ─── */
.cert-section {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem);
    max-width: 1100px;
    margin: 0 auto;
    background: #e9e6e1;
    border-radius: 8px;
}

.cert-label {
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-faint, #c8c6c0);
    margin-bottom: 1.5rem;
}

.cert-title {
    font-family: var(--f-serif, 'Playfair Display', serif);
    font-size: clamp(2rem, 3.9vw, 3.1rem);
    font-weight: 400;
    color: var(--c-ink, #1c1b19);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cert-desc {
    font-size: clamp(0.88rem, 1.1vw, 1rem);
    color: var(--c-mid, #6b6a66);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: clamp(3rem, 5vw, 5rem);
}

/* ─── Háromoszlopos elrendezés: kép | szöveg | kép ─── */
.cert-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

/* ─── Középső szöveg ─── */
.cert-middle {
    text-align: center;
}

.cert-middle .cert-label {
    margin-bottom: 1rem;
}

.cert-middle .cert-title {
    margin-bottom: 1rem;
}

.cert-middle .cert-desc {
    margin-bottom: 0;
    max-width: 100%;
}

/* ─── Egyes kártya ─── */
.cert-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-card-inner {
    position: relative;
    overflow: hidden;
    cursor: default;
    border: 1px solid var(--c-rule, #e6e4df);
    aspect-ratio: 3 / 4;
    background: #f5f4f2;
}

/* Kép alap: szürkeárnyalatos */
.cert-card-inner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: grayscale(60%) brightness(1.15);
    transition: filter 0.5s ease, transform 0.5s ease;
}

/* Hover: visszajönnek a színek */
.cert-card-inner:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.015);
}

/* Kattintható jelzés a tanúsítványon */
.cert-card--clickable .cert-card-inner {
    cursor: pointer;
}

.cert-click-hint {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(28, 27, 25, 0.55);
    color: #fff;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cert-card--clickable .cert-card-inner:hover .cert-click-hint {
    opacity: 1;
}

/* Felirat a kép alatt */
.cert-caption {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--c-faint, #c8c6c0);
    text-align: center;
}

/* ─── Lightbox ─── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(28, 27, 25, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: lbFadeIn 0.3s ease both;
}

.lightbox.is-open {
    display: flex;
}

@keyframes lbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-inner {
    position: relative;
    max-width: min(1000px, 90vw);
    max-height: 90svh;
    animation: lbSlideUp 0.35s ease both;
}

@keyframes lbSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lightbox-inner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85svh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bezáró gomb */
.lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
    font-family: inherit;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-close::before {
    content: '×';
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 300;
}

/* Caption a lightboxban */
.lightbox-caption {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.egyeb-cert-section {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 4rem);
    max-width: 1100px;
    margin: 0 auto;
}

.egyeb-cert-title {
    font-family: var(--f-serif, 'Playfair Display', serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--c-ink, #1c1b19);
    margin-bottom: 1.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    .cert-layout {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .cert-middle {
        order: -1;
        text-align: left;
    }

    .lightbox-inner {
        max-width: 95vw;
    }
}