/*
Theme Name:  Triumph
Author:      Digital Footprint
Description: Egyedi blog theme — triumph.hu
Version:     1.0.0
License:     Proprietary
Text Domain: triumph
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --white:        #fff;
    --bg:           #f2f2f2;
    --gray-light:   #ddd;
    --border:       #ccc;
    --muted:        #aeaeae;
    --text-sec:     #3f3f3f;
    --black:        #000;

    --font-display: 'Bebas Neue', sans-serif;
    --font-body:    'Inter', sans-serif;
    --font-serif:   'Source Serif 4', sans-serif;

    --container:      1440px;
    --container-s:    1240px;
    --container-hero: 1856px;
    --section-pad:  5rem;
    --radius-sm:    4px;
    --radius-md:    8px;
    --nav-h:        6rem;

    --mobile-img:   350px;

    /* --primary: a build script / mu-plugin GDPR brand-szín forrása */
    --primary:      #000;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { height: 100%; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--black);
    min-height: 100%;
    font-size: 1rem;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; border: none; background: none; font: inherit; }

/* =============================================
   CONTAINER & LAYOUT
   ============================================= */
.bio-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 2rem;
}

.bio-container--s {
    max-width: var(--container-s);
}

.bio-container--hero {
    max-width: var(--container-hero);
}

.bio-section {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
}

/* =============================================
   TYPOGRAPHY — Display classes (Bebas Neue)
   ============================================= */
.disp-2xl {
    font-family: var(--font-display);
    font-size: 10rem;
    font-weight: 400;
    line-height: .95;
    letter-spacing: 0;
    margin-bottom: -.1em;
}

.disp-l {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .01em;
}

.disp-m {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .01em;
}

.disp-s {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.05;
}

.disp-xs {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .01em;
}

.body-l {
    font-family: var(--font-body);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-sec);
}

.body-serif {
    font-family: var(--font-serif);
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.65;
}

.body-s {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-sec);
    line-height: 1.3;
}

/* =============================================
   TOP BAR — scrolling ticker
   ============================================= */
.top-bar {
    background-color: var(--black);
    color: var(--white);
    min-height: 2.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.ticker-inner {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: ticker 50s linear infinite;
}

.ticker-inner:hover { animation-play-state: paused; }

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: .4rem 1.75rem;
}

.ticker-item a {
    color: var(--white);
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: opacity .3s ease;
}

.ticker-item a:hover { opacity: .65; }

.ticker-sep {
    color: rgba(255,255,255,.35);
    font-size: .7rem;
}

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg);
    border-bottom: 1px dashed var(--border);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: var(--nav-h);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 2rem;
    gap: 1rem;
}

/* Left: search */
.nav-left {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Center: logo */
.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo__img {
    width: 5.5rem;
    height: auto;
    border: 1px dashed var(--border);
    padding: .4rem .8rem;
}

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--black);
    padding: .3rem .8rem;
    border: 1px dashed var(--border);
}

/* Right: nav links + hamburger */
.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: color .35s cubic-bezier(.165,.84,.44,1);
}

.nav-link:hover,
.nav-link.current { color: var(--black); }

/* Search button */
.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
    transition: background .3s ease;
    flex-shrink: 0;
}

.search-btn:hover { background: var(--gray-light); }

.search-btn svg { width: 1rem; height: 1rem; stroke: var(--black); fill: none; stroke-width: 2; }

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

.search-overlay.is-open { display: flex; }

.search-overlay-inner {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    width: 100%;
    max-width: 560px;
    margin-inline: 1rem;
}

.search-overlay-inner form {
    display: flex;
    gap: .5rem;
}

.search-overlay-inner input[type="search"] {
    flex: 1;
    padding: .75rem 1rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg);
    color: var(--black);
    outline: none;
}

.search-overlay-inner button[type="submit"] {
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: .75rem 1.25rem;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .25s ease;
}

.search-overlay-inner button[type="submit"]:hover { opacity: .8; }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    gap: 5px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all .35s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — smooth transition (max-height, nem display:none) */
.mobile-nav {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding: 0 2rem;
    gap: 1.25rem;
    max-width: var(--container);
    margin-inline: auto;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease, border-top-color .35s ease;
    border-top: 1px dashed transparent;
}

.mobile-nav.is-open {
    max-height: 600px;
    padding: 1.5rem 2rem;
    border-top-color: var(--border);
}
.mobile-nav .nav-link { font-size: 1.1rem; }

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-end;
    gap: 1rem 1rem;
    margin-bottom: 3rem;
}

.section-header--full { grid-template-columns: 1fr; }

.section-title {
    color: var(--black);
}

.section-desc {
    font-family: var(--font-serif);
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.65;
    margin-top: .75rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    padding-top: var(--section-pad);
    padding-bottom: 1.5rem;
}

.hero-title-block {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-title-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =============================================
   FEATURED SLIDER
   ============================================= */
.featured-slider-section {
    padding-top: 3rem;
    padding-bottom: var(--section-pad);
}

.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--gray-light);
}

.slider-track {
    display: flex;
    transition: transform .6s cubic-bezier(.165,.84,.44,1);
    will-change: transform;
}

.slider-slide {
    min-width: 100%;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

@media (max-width: 767px) {
    .slider-slide { min-height: 65vh; }
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.2);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 3rem;
    max-width: 40rem;
    margin: 0 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.slide-text { display: flex; flex-direction: column; gap: 1.5rem; }

.slide-badge {
    display: inline-flex;
    align-items: center;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0 .6rem;
    min-height: 2rem;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 500;
    align-self: flex-start;
    width: fit-content;
}

.slide-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1;
    color: var(--black);
}

.slide-excerpt {
    font-family: var(--font-serif);
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.65;
}

/* Slider slide link — transparent, covers the full slide */
.slider-slide-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
}

/* Slider arrows */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    z-index: 10;
    display: flex;
    gap: .75rem;
}

.slider-arrow {
    position: relative;
    background: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: none;
}

.slider-arrow svg {
    width: .8rem;
    height: .8rem;
    stroke: var(--black);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    position: relative;
    z-index: 1;
}

.slider-arrow-hover {
    position: absolute;
    inset: 0;
    background: var(--bg);
    border-radius: var(--radius-sm);
    transform: translateY(100%);
    transition: transform .35s cubic-bezier(.165,.84,.44,1);
}

.slider-arrow:hover .slider-arrow-hover { transform: translateY(0); }

/* =============================================
   POST CARD BADGE
   ============================================= */
.post-badge {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0 .6rem;
    min-height: 2rem;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    color: var(--black);
    align-self: flex-start;
    width: fit-content;
    flex-shrink: 0;
}

/* Badge a kép belsejében — absolute, bal felső sarok */
.post-card__img-wrap .post-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 4;
}

/* =============================================
   POST GRID (The Latest — 6 posts, 3-col)
   ============================================= */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    row-gap: 5rem;
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.post-card__img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    width: 100%;
    height: 515px;
    aspect-ratio: unset;
    background: var(--gray-light);
}

.post-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
}

.post-card:hover .post-card__img-wrap img { transform: scale(1.03); }

.img-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.15);
    opacity: 0;
    z-index: 2;
    transition: opacity .4s ease;
}

.post-card:hover .img-hover-overlay { opacity: 1; }

.post-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .01em;
    color: var(--black);
    transition: color .3s ease;
}

.post-card:hover .post-card__title { color: var(--text-sec); }

/* =============================================
   LONG READS LIST (3 posts, horizontal)
   ============================================= */
.long-reads-list {
    display: flex;
    flex-direction: column;
}

.list-card {
    display: grid;
    grid-template-columns: 2fr 5fr 3fr;
    gap: 1rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px dashed var(--border);
    text-decoration: none;
    color: inherit;
    transition: background .3s ease;
}

.list-card:first-child { border-top: 1px dashed var(--border); }

.list-card__badge-col {
    display: flex;
    align-items: flex-start;
}

.list-badge {
    display: inline-flex;
    align-items: center;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0 .6rem;
    min-height: 2rem;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    align-self: flex-start;
    width: fit-content;
}

.list-card__title-col {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.list-card__title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    color: var(--black);
    transition: color .3s ease;
}

.list-card:hover .list-card__title { color: var(--text-sec); }

.list-card__excerpt {
    font-family: var(--font-serif);
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-card__img-col { display: flex; justify-content: flex-end; }

.list-img {
    width: 332px;
    height: 332px;
    max-width: 332px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
}

.list-card:hover .list-img { transform: scale(1.03); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    border-top: 1px dashed var(--border);
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: var(--bg);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
}

.footer-logo-block { display: flex; flex-direction: column; gap: 1rem; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: .02em;
    color: var(--black);
}

.footer-logo img { max-width: 60px; height: auto; }

.footer-desc {
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--text-sec);
    line-height: 1.6;
}

.footer-links { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    justify-content: flex-end;
}

.footer-link {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-sec);
    transition: color .3s ease;
}

.footer-link:hover { color: var(--black); }

.footer-copyright {
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--muted);
    text-align: right;
}

/* =============================================
   SINGLE.PHP — Bloggable referencia layout
   1. Középre zárt szöveges hero
   2. Teljes szélességű featured image
   3. Cikktörzs (720px)
   4. Kapcsolódó cikkek (post-card stílusban)
   ============================================= */

/* Hero szöveg — centered, max 75ch */
.s-hero-text {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
    background: var(--bg);
}

.s-hero-text__inner {
    max-width: 75ch;
    margin-inline: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.s-hero-text__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.s-hero-text__title {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 400;
    line-height: 1;
    color: var(--black);
}

.s-hero-text__lead {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-sec);
    line-height: 1.7;
    max-width: 60ch;
}

/* Featured image */
.s-featured-img {
    padding-bottom: 3rem;
    background: var(--bg);
}

.s-featured-img__img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
}

/* Related title italic */
.related-title em {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: .85em;
    font-weight: 400;
}

/* Related section uses .posts-grid (nagy kártyák) */
.related-section {
    background: var(--white);
    padding: 4rem 0;
    margin-top: 0;
    border-top: 1px dashed var(--border);
}

/* =============================================
   SINGLE.PHP — Layout B (Szerkesztői hero) — LEGACY CSS
   ============================================= */
.single-hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: var(--black);
}

.single-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}

.single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
    z-index: 1;
}

.single-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 3rem 2rem;
    max-width: var(--container);
    margin-inline: auto;
}

.single-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.single-hero__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.4);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0 .6rem;
    min-height: 1.8rem;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
}

.single-hero__title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1;
    max-width: 40ch;
}

/* Fallback: nincs featured image */
.single-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 3rem;
}

.single-header .single-header__badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

.single-header__badge {
    display: inline-flex;
    align-items: center;
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 0 .6rem;
    min-height: 2rem;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
}

.single-header__title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1;
}

/* Breadcrumb */
.breadcrumb {
    font-family: var(--font-body);
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.breadcrumb a { color: var(--text-sec); transition: color .25s ease; }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { color: var(--muted); }

/* Single content */
.single-content-wrap {
    max-width: 720px;
    margin-inline: auto;
    padding: 3rem 2rem;
}

.entry-content {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--black);
}

.entry-content p { margin-bottom: 1.5rem; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-display);
    color: var(--black);
    margin: 2rem 0 1rem;
}
.entry-content h2 { font-size: 2.5rem; line-height: 1; }
.entry-content h3 { font-size: 2rem; }
.entry-content h4 { font-size: 1.5rem; }

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content blockquote {
    border-left: 3px solid var(--black);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-sec);
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    max-width: 100%;
}

/* Related posts — Style D (fehér, borderes kártyák) */
.related-section {
    background: var(--white);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px dashed var(--border);
}

.related-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--black);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    text-decoration: none;
    color: inherit;
    transition: box-shadow .3s ease, transform .3s ease;
}

.related-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.related-card__img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gray-light);
}

.related-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.related-card:hover .related-card__img-wrap img { transform: scale(1.04); }

.related-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.related-card__cat {
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-sec);
    text-transform: none;
}

.related-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--black);
}

/* =============================================
   ARCHIVE PAGE
   ============================================= */
.archive-hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px dashed var(--border);
}

.archive-cat-name {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    row-gap: 4rem;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.archive-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
}

.archive-card__img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--gray-light);
}

.archive-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.archive-card:hover .archive-card__img-wrap img { transform: scale(1.03); }

.archive-card__content { display: flex; flex-direction: column; gap: .75rem; }

.archive-card__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--black);
    transition: color .3s ease;
}

.archive-card:hover .archive-card__title { color: var(--text-sec); }

.archive-card__excerpt {
    font-family: var(--font-serif);
    font-size: .95rem;
    color: var(--text-sec);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   SEARCH PAGE
   ============================================= */
.search-page-hero {
    padding: 3rem 0 2rem;
    border-bottom: 1px dashed var(--border);
}

.search-page-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1;
    margin-bottom: 1rem;
}

.search-form-wrap {
    max-width: 540px;
}

.search-form-wrap form {
    display: flex;
    gap: .5rem;
}

.search-form-wrap input[type="search"] {
    flex: 1;
    padding: .75rem 1rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--white);
    color: var(--black);
    outline: none;
}

.search-form-wrap button {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: .75rem 1.25rem;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .25s ease;
}

.search-form-wrap button:hover { opacity: .8; }

/* =============================================
   PAGE.PHP
   ============================================= */
.page-header {
    padding: 3rem 0 2rem;
    border-bottom: 1px dashed var(--border);
    margin-bottom: 3rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 500;
    color: var(--black);
    line-height: 1;
}

.page-content {
    max-width: 720px;
    padding-bottom: 5rem;
}

.page-content p {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--black);
    margin-bottom: 1.5rem;
}

/* =============================================
   404 PAGE
   ============================================= */
.notfound-section {
    padding: 6rem 0;
    text-align: center;
}

.notfound-code {
    font-family: var(--font-display);
    font-size: 12rem;
    font-weight: 400;
    color: var(--gray-light);
    line-height: 1;
}

.notfound-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--black);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.notfound-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-sec);
    margin-bottom: 2.5rem;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination-wrap {
    padding: 3rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Prev / Next only */
.pagination--simple {
    justify-content: space-between;
    width: 100%;
}

.pagination-placeholder { display: block; }

.pagination-btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 500;
    color: var(--black);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: .65rem 1.25rem;
    background: var(--white);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.pagination-btn:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* =============================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================= */
@media (max-width: 1024px) {
    .list-card { grid-template-columns: 2fr 4fr 3fr; }
    .list-card__title { font-size: 2.2rem; }
    .slide-content { max-width: 34rem; padding: 2rem; margin: 0 2rem; }
    .slide-title { font-size: 2.8rem; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤767px)
   ============================================= */
@media (max-width: 767px) {
    :root { --section-pad: 3rem; }

    .disp-2xl { font-size: 5rem; }
    .disp-m { font-size: 2.5rem; }
    .body-l { font-size: 1.15rem; }

    /* Nav — logo középen */
    .nav-inner { grid-template-columns: 1fr auto 1fr; }
    .nav-right .nav-menu { display: none; }
    .mobile-menu-btn { display: flex; }

    /* Hero */
    .hero-title-line { flex-direction: column; align-items: flex-start; }

    /* Slider */
    .slide-content {
        max-width: 90%;
        margin: 0 1rem;
        padding: 1.5rem;
        background: rgba(255,255,255,0.75);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .slide-title { font-size: 2rem; }
    .slide-excerpt { display: none; }
    .slider-controls { bottom: 1.5rem; right: 1.5rem; }

    /* Post grid — 1 col */
    .posts-grid { grid-template-columns: 1fr; row-gap: 3rem; }

    /* Card img mobile egységes magasság */
    .post-card__img-wrap,
    .archive-card__img-wrap,
    .related-card__img-wrap {
        aspect-ratio: unset;
        height: var(--mobile-img);
    }

    /* Long reads list */
    .list-card {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 2.5rem 0;
    }
    .list-card__img-col { justify-content: flex-start; }
    .list-img { width: 100%; max-width: 100%; height: 280px; aspect-ratio: unset; }
    .list-card__title { font-size: 2rem; }

    /* Related */
    .related-grid { grid-template-columns: 1fr; }

    /* Archive */
    .archive-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { align-items: flex-start; }
    .footer-nav { justify-content: flex-start; }
    .footer-copyright { text-align: left; }

    /* Single hero szöveg */
    .s-hero-text__title { font-size: 2.8rem; }
    .s-hero-text__lead { font-size: 1rem; }
    .s-featured-img__img { aspect-ratio: 16/9; }

    /* Single hero legacy */
    .single-hero { height: 320px; }
    .single-hero__title { font-size: 2.2rem; }
    .single-content-wrap { padding: 2rem 1rem; }

    /* Archive cat name */
    .archive-cat-name { font-size: 2.5rem; }
    .page-title { font-size: 2.5rem; }
    .notfound-code { font-size: 7rem; }
    .notfound-title { font-size: 2.5rem; }
    .search-page-title { font-size: 2.5rem; }
}

/* =============================================
   EZ IS ÉRDEKELHET — 4-col kártyák
   ============================================= */
.also-section {
    background: var(--white);
    border-top: 1px dashed var(--border);
}

.also-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.also-title { margin-bottom: .75rem; }

.also-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-sec);
}

.also-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.also-card {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
    padding: 2rem 1.75rem 2rem;
    text-decoration: none;
    color: inherit;
    transition: background .35s ease, box-shadow .35s ease, transform .35s ease, border-color .35s ease;
}

.also-card:hover {
    background: var(--black);
    border-color: var(--black);
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    transform: translateY(-3px);
}

.also-cat {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text-sec);
    transition: color .35s ease;
}

.also-card:hover .also-cat { color: var(--muted); }

.also-cat__bar {
    display: inline-block;
    width: 3px;
    height: 1rem;
    background: var(--black);
    border-radius: 2px;
    flex-shrink: 0;
    transition: background .35s ease;
}

.also-card:hover .also-cat__bar { background: var(--bg); }

.also-card__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;
    color: var(--black);
    transition: color .35s ease;
}

.also-card:hover .also-card__title { color: var(--bg); }

.also-card__excerpt {
    font-family: var(--font-serif);
    font-size: .95rem;
    color: var(--text-sec);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .35s ease;
}

.also-card:hover .also-card__excerpt { color: var(--muted); }

/* =============================================
   MÉG TÖBB FRISS TARTALOM
   ============================================= */
.more-section {
    background: var(--white);
    border-top: 1px dashed var(--border);
}

.more-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: .75rem;
}

.more-title { flex-shrink: 0; }

.more-header__line {
    flex: 1;
    height: 1px;
    background: var(--black);
}

.more-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-sec);
    margin-bottom: 3rem;
}

.more-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Bal: fekete doboz */
.more-featured {
    background: var(--black);
    border-radius: var(--radius-md);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
    min-height: 360px;
    transition: opacity .3s ease;
}

.more-featured:hover { opacity: .85; }

.more-featured__cat {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--muted);
}

.more-featured__bar {
    display: inline-block;
    width: 3px;
    height: 1rem;
    background: var(--white);
    border-radius: 2px;
    flex-shrink: 0;
}

.more-featured__title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.05;
    color: var(--white);
}

.more-featured__sep {
    display: block;
    width: 2rem;
    height: 2px;
    background: rgba(255,255,255,.3);
}

.more-featured__excerpt {
    font-family: var(--font-serif);
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Közép: nagy kép + cím */
.more-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.more-center__img-wrap {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--gray-light);
}

.more-center__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
}

.more-center:hover .more-center__img-wrap img { transform: scale(1.03); }

.more-center__badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .3rem .75rem;
    border-radius: var(--radius-sm);
}

.more-center__content { padding: 0 .125rem; }

.more-center__title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.05;
    color: var(--black);
    transition: color .3s ease;
}

.more-center:hover .more-center__title { color: var(--text-sec); }

/* Jobb: mini lista */
.more-list {
    display: flex;
    flex-direction: column;
}

.more-list-item {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px dashed var(--border);
    text-decoration: none;
    color: inherit;
    transition: opacity .3s ease;
}

.more-list-item:first-child { border-top: 1px dashed var(--border); }
.more-list-item:hover { opacity: .65; }

.more-list-item__img {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--gray-light);
    flex-shrink: 0;
}

.more-list-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-list-item__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.1;
    color: var(--black);
}

/* =============================================
   ALSO + MORE — responsive (ide kerül, ALAP definíció UTÁN)
   ============================================= */
@media (max-width: 1024px) {
    /* Ez is érdekelhet: 1024px alatt egymás alá */
    .also-grid { grid-template-columns: 1fr; }

    /* Még több friss tartalom: tablet 2-col */
    .more-grid { grid-template-columns: 1fr 1fr; }
    .more-list {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .more-list-item {
        flex: 1 1 calc(33.33% - 1rem);
        border-top: 1px dashed var(--border);
    }
}

@media (max-width: 900px) {
    /* Még több friss tartalom: 900px alatt 1-col */
    .more-grid { grid-template-columns: 1fr; }
    .more-list { grid-column: unset; flex-direction: column; gap: 0; }
    .more-list-item { flex: unset; }
    .more-featured { min-height: auto; }
}

/* =============================================
   GDPR PLUGIN GOMBOK — border-radius override
   A Moove GDPR plugin alapból lekerekített gombokat
   mutat; itt 4px-re állítjuk a theme stílusával összhangban.
   ============================================= */
#cookie-notice-accept-button,
.cn-button,
.cli-plugin-button,
.cli-plugin-main-button,
.moove-gdpr-infobar-allow-btn,
.moove-gdpr-modal-allow-all,
.moove-gdpr-modal-save,
.cmplz-btn,
.cc-btn,
#moove_gdpr_cookie_modal .moove-gdpr-button-holder button {
    border-radius: var(--radius-sm) !important;
}
