/*
Theme Name:  Jolkifoztem
Author:      Digital Footprint
Description: Egyedi blog theme a jolkifoztem.hu számára
Version:     1.0.0
License:     All Rights Reserved
Text Domain: jolkifoztem
*/

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

:root {
    --primary:     #FF9400;
    --white:       #ffffff;
    --bg-alt:      #fafaf9;
    --orange:      #FF9400;
    --orange-h:    #e07f00;
    --orange-light:#fed7aa;
    --text:        #1c1917;
    --text-sec:    #57534e;
    --muted:       #a8a29e;
    --border:      #e7e5e4;
    --dark:        #1c1917;
    --dark-2:      #292524;
    --radius-card: 16px;
    --radius-lg:   24px;
    --radius-img:  12px;
    --radius-pill: 9999px;
    --shadow-sm:   0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-lg:   0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --container:   1280px;
    --section-py:  96px;
    --mobile-img:  280px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text);
}

/* =============================================
   Header / Nav
   ============================================= */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-logo__img { height: 36px; width: 36px; object-fit: contain; }

.site-logo__name {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sec);
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.primary-nav a:hover {
    color: var(--text);
    background: var(--bg-alt);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    background: var(--white);
    border-top: 1px solid transparent;
}

.mobile-nav.is-open {
    max-height: 400px;
    border-top-color: var(--border);
}

.mobile-nav a {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-sec);
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s;
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--orange); }

/* =============================================
   Hero Slider
   ============================================= */
.hero-slider {
    position: relative;
    margin-top: 68px;
    min-height: 85vh;
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 0;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sötét tint — per-slide (fade-del együtt) */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(28,25,23,0.55);
}

/* Állandó alji fehér fade — mindig látszik, nem fade-el */
.hero-slider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28%;
    z-index: 8;
    background: linear-gradient(to bottom, transparent 0%, rgba(250,250,249,0.92) 75%, rgba(250,250,249,1) 100%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 64px 24px;
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius-pill);
    padding: 5px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 760px;
    margin-bottom: 16px;
}

.hero__excerpt {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.65;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

.hero__cta:hover { background: var(--orange-h); }

.hero-dots {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
    padding: 0;
    pointer-events: auto;
}

.hero-dot.is-active {
    background: var(--white);
    border-color: var(--white);
}

/* =============================================
   Section: Kiemelt (2-col)
   ============================================= */
.kiemelt {
    background: var(--bg-alt);
    padding: var(--section-py) 0;
}

.kiemelt__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.kiemelt__img-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--border);
    aspect-ratio: 4/5;
}

.kiemelt__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.kiemelt__img-wrap:hover img { transform: scale(1.05); }

.kiemelt__text h2 {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

.kiemelt__excerpt {
    font-size: 1.0625rem;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 40px;
}

.info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.info-box {
    border: 1px solid var(--border);
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-img);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.info-box:hover { box-shadow: var(--shadow-lg); }

.info-box__icon {
    font-size: 1.375rem;
    margin-bottom: 10px;
    display: block;
}

.info-box h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.info-box p {
    font-size: 0.8125rem;
    color: var(--text-sec);
    line-height: 1.55;
}

.kiemelt__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.kiemelt__link:hover {
    color: var(--orange);
    border-color: var(--orange);
    background: rgba(255,148,0,0.04);
}

/* =============================================
   Section: Legújabb (4-col grid)
   ============================================= */
.legujabb {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

.section-header {
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(1.625rem, 2.5vw, 2.125rem);
}

.section-header p {
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--text-sec);
}

.cards-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-card);
    padding: 12px;
    transition: box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
}

.article-card__img {
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: var(--radius-img);
    background: var(--border);
}

.article-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.article-card:hover .article-card__img img { transform: scale(1.07); }

.article-card__body {
    padding: 14px 4px 4px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cat-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.cat-badge:hover { color: var(--orange-h); }

.article-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.article-card:hover .article-card__title { color: var(--orange); }

.article-card__excerpt {
    font-size: 0.8125rem;
    color: var(--text-sec);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.article-card__btn {
    margin-top: auto;
    padding-top: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-sec);
    background: none;
    transition: color 0.2s;
}

.article-card:hover .article-card__btn {
    color: var(--orange);
}

/* =============================================
   Section: Galéria-rács
   ============================================= */
.galeria {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

.galeria__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
    height: 600px;
    margin-top: 48px;
}

.gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
    overflow: hidden;
    border-radius: var(--radius-card);
    position: relative;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius-card);
    position: relative;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-featured a,
.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-featured img,
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-featured:hover img,
.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(28,25,23,0.72));
    padding: 40px 20px 20px;
    pointer-events: none;
}

.gallery-caption__cat {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.75);
    margin-bottom: 4px;
}

.gallery-caption__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.gallery-featured .gallery-caption__title { font-size: 1.375rem; }

/* =============================================
   Section: Olvass még (3-col)
   ============================================= */
.olvass-meg {
    padding: var(--section-py) 0;
    background: var(--white);
}

.cards-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.read-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 24px;
    transition: background 0.25s, box-shadow 0.25s;
    display: block;
}

.read-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
}

.read-card__num {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--orange);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.read-card__cat {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.read-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--text);
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.read-card:hover .read-card__title { color: var(--orange); }

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

/* =============================================
   Section: Sötét lista
   ============================================= */
.dark-section {
    padding: var(--section-py) 0;
    background: var(--bg-alt);
}

.dark-section__inner {
    background: var(--dark);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    padding: 64px;
    overflow: hidden;
}

.dark-section__header {
    margin-bottom: 40px;
}

.dark-section__header h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--white);
}

.dark-section__header p {
    margin-top: 8px;
    font-size: 0.9375rem;
    color: var(--muted);
}

.dark-posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
}

.dark-post-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: opacity 0.2s;
    text-decoration: none;
}

.dark-post-item:nth-last-child(-n+2) { border-bottom: none; }
.dark-post-item:hover { opacity: 0.8; }

.dark-post-item__img {
    width: 100px;
    height: 68px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--dark-2);
    flex-shrink: 0;
}

.dark-post-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dark-post-item__img--empty {
    background: repeating-linear-gradient(
        45deg,
        var(--dark-2) 0px,
        var(--dark-2) 4px,
        #1f1c1a 4px,
        #1f1c1a 8px
    );
}

.dark-post-item__cat {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--orange-light);
    margin-bottom: 6px;
}

.dark-post-item__title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.35;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.dark-post-item:hover .dark-post-item__title { color: var(--orange-light); }

/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand .site-logo { margin-bottom: 14px; }

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-sec);
    max-width: 300px;
    line-height: 1.65;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--text-sec);
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--muted);
}

/* =============================================
   Archive Page
   ============================================= */
.archive-header {
    margin-top: 68px;
    padding: 64px 0 48px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.archive-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 8px;
}

.archive-header p {
    font-size: 1rem;
    color: var(--text-sec);
}

.archive-grid {
    padding: 64px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.archive-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
}

.archive-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.archive-nav a:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.grid-card {
    background: var(--bg-alt);
    border-radius: var(--radius-card);
    padding: 12px;
    transition: background 0.25s, box-shadow 0.25s;
    display: block;
}

.grid-card:hover {
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
}

.grid-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: var(--radius-img);
    background: var(--border);
}

.grid-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-card:hover .grid-card__img img { transform: scale(1.07); }

.grid-card__body { padding: 14px 4px 4px; }

.grid-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    margin-bottom: 8px;
    transition: color 0.2s;
    letter-spacing: -0.01em;
}

.grid-card:hover .grid-card__title { color: var(--orange); }

.grid-card__excerpt {
    font-size: 0.8125rem;
    color: var(--text-sec);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================================
   Single Post — Layout B (Editorial hero 560px)
   ============================================= */
.single-wrap {
    margin-top: 68px;
    padding: 64px 0;
}

.single-breadcrumb {
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.single-breadcrumb a {
    color: var(--muted);
    transition: color 0.2s;
}

.single-breadcrumb a:hover { color: var(--orange); }
.single-breadcrumb span { color: var(--border); }
.single-breadcrumb__current { color: var(--text-sec); }

.single-hero__meta { margin-bottom: 16px; }

.single-hero__title {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 20px;
    max-width: 800px;
}

.single-hero__excerpt {
    font-size: 1.125rem;
    color: var(--text-sec);
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 48px;
}

.single-hero__img {
    width: 100%;
    height: 560px;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--border);
    margin-bottom: 64px;
}

.single-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-content {
    max-width: 720px;
    margin: 0 auto;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-sec);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text);
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.entry-content p { margin-bottom: 1.25em; }

.entry-content img {
    border-radius: var(--radius-img);
    margin: 2em 0;
    width: 100%;
    height: auto;
}

.entry-content a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

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

.entry-content li { margin-bottom: 0.4em; }

.entry-content blockquote {
    border-left: 3px solid var(--orange);
    padding-left: 20px;
    margin: 1.75em 0;
    color: var(--text-sec);
    font-style: italic;
}

/* Related posts */
.related-posts {
    background: var(--bg-alt);
    padding: var(--section-py) 0;
    margin-top: 80px;
}

.related-posts h2 {
    font-size: 1.75rem;
    margin-bottom: 40px;
}

/* =============================================
   Page Template
   ============================================= */
.page-wrap {
    margin-top: 68px;
    padding: 64px 0;
}

.page-content {
    max-width: 720px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-content .entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-sec);
}

.page-content .entry-content p { margin-bottom: 1.25em; }
.page-content .entry-content h2,
.page-content .entry-content h3 {
    color: var(--text);
    margin-top: 1.75em;
    margin-bottom: 0.6em;
}

.page-content .entry-content a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =============================================
   404
   ============================================= */
.error404-wrap {
    margin-top: 68px;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
}

.error404__num {
    font-size: 8rem;
    font-weight: 600;
    color: var(--border);
    line-height: 1;
    margin-bottom: 16px;
}

.error404__title {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.error404__text {
    color: var(--text-sec);
    margin-bottom: 32px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error404__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
}

.error404__btn:hover { background: var(--orange-h); }

/* =============================================
   Pagination
   ============================================= */
.pagination-wrap {
    margin-top: 64px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-sec);
    border: 1px solid var(--border);
    background: var(--white);
    transition: all 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* =============================================
   GDPR gomb override
   ============================================= */
#cookie-notice-accept-button,
.cn-button,
.cli-plugin-button,
.moove-gdpr-infobar-allow-btn,
.cmplz-btn,
.cc-btn {
    border-radius: var(--radius-pill) !important;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    :root { --section-py: 80px; }

    .cards-4col { grid-template-columns: repeat(2, 1fr); }

    .kiemelt__grid { grid-template-columns: 1fr; gap: 40px; }
    .kiemelt__img-wrap { aspect-ratio: 16/9; }

    .galeria__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
    }
    .gallery-featured { grid-column: span 2; grid-row: span 1; height: 340px; }
    .gallery-item { height: 220px; }
    .gallery-item--wide { grid-column: span 2; height: 220px; }

    .dark-section__inner { padding: 48px 40px; }

    .site-footer__grid { grid-template-columns: 1fr 1fr; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --section-py: 64px; }

    .primary-nav { display: none; }
    .nav-hamburger { display: flex; }

    .hero { min-height: 70vh; }
    .hero-dots { display: none; }

    .cards-4col { grid-template-columns: 1fr 1fr; gap: 14px; }
    .cards-3col { grid-template-columns: 1fr; gap: 16px; }
    .cards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

    .galeria__grid {
        grid-template-columns: 1fr;
        height: auto;
        gap: 12px;
    }
    .gallery-featured,
    .gallery-item,
    .gallery-item--wide {
        grid-column: span 1;
        height: var(--mobile-img);
    }

    .dark-section__inner { padding: 40px 28px; }
    .dark-posts-list { grid-template-columns: 1fr; }
    .dark-post-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.08); }
    .dark-post-item:last-child { border-bottom: none; }
    .dark-post-item { grid-template-columns: 80px 1fr; gap: 16px; }
    .dark-post-item__img { width: 80px; height: 56px; }

    .single-hero__img { height: var(--mobile-img); }

    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }

    .info-boxes { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .cards-4col { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }

    .article-card__img { aspect-ratio: unset; height: var(--mobile-img); }

    .hero__cta { width: 100%; justify-content: center; }

    .dark-section__inner { padding: 32px 20px; }
}
