/* ══════════════════════════════════════════════════════
   ref.in4.hu – Kaposvári Református Egyházközség
   Stíluslap v2.0
══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400;1,700&display=swap');

/* ── CSS Variables ──────────────────────────────────── */
:root {
  --primary:      #663333;
  --primary-dark: #4a2020;
  --primary-light:#8a5050;
  --accent:       #af7b49;
  --accent-light: #c89a6a;
  --accent-dark:  #8a5f35;
  --white:        #ffffff;
  --ink:          #262621;
  --text:         #666666;
  --muted:        #999999;
  --border:       #e0d8d0;
  --bg:           #ffffff;
  --bg-alt:       #f5f0eb;
  --card:         #ffffff;
  --shadow:       0 2px 12px rgba(102,51,51,.10);
  --shadow-lg:    0 8px 32px rgba(102,51,51,.18);
  --font-sans:    'Open Sans', sans-serif;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Fixed header offset on non-hero pages */
.has-fixed-header .site-header { box-shadow: 0 2px 16px rgba(0,0,0,.3); }
.has-fixed-header .site-main { padding-top: 90px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-main  { min-height: 60vh; }
.no-posts   { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   TOPBAR – elrejtve (nincs az eredetin)
══════════════════════════════════════════════════════ */
.topbar { display: none; }

/* ══════════════════════════════════════════════════════
   HEADER / NAVIGATION
══════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
  transition: box-shadow .35s ease;
}
.site-header.is-sticky {
  background: rgba(74,32,32,.97);
  box-shadow: 0 2px 24px rgba(0,0,0,.45);
}

.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 90px;
  position: relative; overflow: visible;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; margin-right: auto; }
.logo-img {
  height: 110px; width: auto; object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  /* Alsó sarkok lekerekítése + kilóg a fejlécből */
  border-radius: 0 0 18px 18px;
  margin-bottom: -20px;
  position: relative; z-index: 5;
}
.logo-cross { font-size: 2.2rem; color: var(--accent); width: 55px; height: 55px; display: flex; align-items: center; justify-content: center; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: .92rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.logo-sub  { font-size: .63rem; font-weight: 300; color: rgba(255,255,255,.7); letter-spacing: .06em; text-transform: uppercase; }
@media(max-width:480px){ .logo-text { display: none; } }
.logo-wrap--no-text .logo-img { height: 127px; }

/* Nav */
.site-nav { display: flex; align-items: center; height: 90px; }
.nav-item {
  display: flex; align-items: center;
  font-size: .875rem; font-weight: 600;
  color: rgba(255,255,255,.95);
  padding: 0 16px; height: 90px;
  transition: background .2s, color .2s;
  white-space: nowrap; position: relative;
  text-transform: uppercase; letter-spacing: .06em;
}
.nav-item:hover { background: rgba(0,0,0,.22); color: #fff; }
a.nav-item { display: flex; align-items: center; }

.nav-item.has-dropdown { cursor: default; }
.nav-item.has-dropdown:hover { background: rgba(0,0,0,.22); }
.nav-item.has-dropdown > a {
  display: flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.95); height: 90px;
  font-size: .875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  transition: color .2s;
}
.nav-item.has-dropdown:hover > a { color: #fff; }
.dropdown-arrow { flex-shrink: 0; opacity: .65; transition: transform .2s; }
.nav-item.has-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--primary);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 300; padding: 6px 0;
}
.nav-item.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown li { position: relative; }
.dropdown li a {
  display: block; padding: 10px 22px;
  font-size: .82rem; font-weight: 400;
  color: rgba(255,255,255,.85);
  transition: background .15s; white-space: nowrap;
}
.dropdown li a:hover { background: var(--accent); color: #fff; }
.dropdown .has-submenu > a::after { content: ' ›'; opacity: .6; }

.submenu {
  position: absolute; left: 100%; top: 0;
  background: var(--primary);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateX(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 310; padding: 6px 0;
}
.dropdown .has-submenu:hover .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.submenu li a { padding: 9px 16px; font-size: .8rem; color: rgba(255,255,255,.8); }
.submenu li a:hover { background: var(--accent); color: #fff; }

/* Mobile */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 44px; height: 44px;
  padding: 4px; margin-left: 12px; transition: background .2s;
}
.nav-toggle:hover { background: rgba(0,0,0,.2); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 190; }
.nav-overlay.is-open { display: block; }
.nav-close {
  display: none; position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; color: rgba(255,255,255,.7); font-size: 1.2rem;
  align-items: center; justify-content: center; transition: background .2s;
}
.nav-close:hover { background: rgba(255,255,255,.1); color: #fff; }

@media(max-width:960px){
  .nav-toggle { display: flex; }
  .nav-close   { display: flex; }
  .site-nav {
    position: fixed; top: 0; right: -300px; bottom: 0; width: 280px;
    flex-direction: column; align-items: stretch;
    height: 100vh; overflow-y: auto;
    background: var(--primary);
    transition: right .3s ease; z-index: 250;
    padding: 56px 0 24px;
  }
  .site-nav.is-open { right: 0; }
  .nav-item, .nav-item.has-dropdown {
    height: auto; padding: 12px 20px;
    flex-direction: column; align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-item.has-dropdown > a { height: auto; }
  .dropdown, .submenu {
    position: static; opacity: 1; visibility: visible;
    transform: none; box-shadow: none;
    background: rgba(0,0,0,.25); border: none; padding: 0; width: 100%; display: none;
  }
  .nav-item.has-dropdown.is-open .dropdown { display: block; }
  .dropdown .has-submenu.is-open .submenu { display: block; }
  .dropdown li a { color: rgba(255,255,255,.8); padding: 10px 20px 10px 32px; }
  .dropdown li a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .submenu li a { padding-left: 48px; }
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 28px;
  font-family: var(--font-sans); font-size: .84rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  transition: all .25s; cursor: pointer; border: 2px solid transparent;
  border-radius: 4px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ══════════════════════════════════════════════════════
   HERO SLIDER
══════════════════════════════════════════════════════ */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  min-height: 520px;
  margin-top: 90px;
  overflow: hidden;
}

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .9s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-slide.is-active .hero-slide-bg {
  animation: kenBurns 9s ease forwards;
}
@keyframes kenBurns {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.68) 0%,
    rgba(0,0,0,.38) 55%,
    rgba(0,0,0,.12) 100%
  );
}

.hero-slide-content {
  position: absolute;
  bottom: 14%;
  left: 8%;
  max-width: 600px;
  color: #fff;
}

.hero-tagline {
  display: block;
  font-size: .95rem; font-weight: 300;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .65s ease .25s, transform .65s ease .25s;
}
.hero-slide.is-active .hero-tagline { opacity: 1; transform: none; }

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 30px;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}
.hero-title .word {
  display: inline-block;
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero-slide.is-active .hero-title .word:nth-child(1) { transition-delay: .45s; opacity:1; transform:none; }
.hero-slide.is-active .hero-title .word:nth-child(2) { transition-delay: .65s; opacity:1; transform:none; }
.hero-slide.is-active .hero-title .word:nth-child(3) { transition-delay: .85s; opacity:1; transform:none; }
.hero-slide.is-active .hero-title .word:nth-child(4) { transition-delay:1.05s; opacity:1; transform:none; }
.hero-slide.is-active .hero-title .word:nth-child(5) { transition-delay:1.25s; opacity:1; transform:none; }
.hero-slide.is-active .hero-title .word:nth-child(6) { transition-delay:1.45s; opacity:1; transform:none; }

.hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: .95rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  border-radius: 4px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s ease 1.5s, transform .55s ease 1.5s,
              background .25s, color .25s;
}
.hero-slide.is-active .hero-btn { opacity: 1; transform: none; }
.hero-btn:hover { background: #8a5f36; color: #fff; }

/* Controls */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); color: #fff;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3);
  z-index: 10; transition: background .2s;
}
.hero-arrow:hover { background: rgba(175,123,73,.85); border-color: var(--accent); }
.hero-prev { left: 22px; }
.hero-next { right: 22px; }

.hero-dots {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 9px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.55);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.hero-dot.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.35); }

/* ══════════════════════════════════════════════════════
   WELCOME SECTION
══════════════════════════════════════════════════════ */
.welcome-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.welcome-image { overflow: hidden; min-height: 500px; }
.welcome-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome-content {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 64px 56px;
  background: #fff;
}
.welcome-content h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700; color: var(--primary);
  text-transform: uppercase; line-height: 1.35;
  margin-bottom: 24px;
}
.welcome-content p {
  font-size: 1rem; color: var(--text); line-height: 1.85;
  margin-bottom: 10px; max-width: 420px;
}
.welcome-content strong { display: block; color: var(--ink); font-weight: 700; margin-top: 5px; }
.welcome-btn {
  border-radius: 4px;
  display: inline-block; margin-top: 28px;
  padding: 9px 26px;
  border: 2px solid var(--accent); color: var(--accent);
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  transition: all .25s;
}
.welcome-btn:hover { background: var(--accent); color: #fff; }

@media(max-width:768px){
  .welcome-section { grid-template-columns: 1fr; }
  .welcome-image { min-height: 280px; }
  .welcome-content { padding: 40px 28px; }
}

/* ══════════════════════════════════════════════════════
   INFO BLOKKOK
══════════════════════════════════════════════════════ */
.info-blocks { width: 100%; }
.info-blocks-inner {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  height: 300px;
}
.info-block {
  position: relative; overflow: hidden;
  display: block; text-decoration: none;
}
.info-block-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .55s ease;
}
.info-block:hover .info-block-bg { transform: scale(1.07); }
.info-block-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(102,51,51,.45) 0%,
    rgba(0,0,0,.52) 60%,
    rgba(0,0,0,.82) 100%
  );
  transition: opacity .3s;
}
.info-block:hover .info-block-overlay { opacity: .9; }
.info-block-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  transform: translateY(8px);
  transition: transform .35s ease;
}
.info-block:hover .info-block-content { transform: translateY(0); }
.info-block-content h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
  text-transform: uppercase; letter-spacing: .05em;
}
/* fallback no-image */
.info-block-icon {
  position: absolute; inset: 0;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.info-block-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.72));
  color: #fff;
}
.info-block-body h3 { font-size: 1rem; font-weight: 700; color: #fff; }

@media(max-width:900px){ .info-blocks-inner { grid-template-columns: repeat(2,1fr); height: 460px; } }
@media(max-width:540px){ .info-blocks-inner { grid-template-columns: 1fr; height: auto; } .info-block { height: 175px; } }

/* ══════════════════════════════════════════════════════
   SZEKCIÓ FEJLÉC
══════════════════════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto 28px; padding: 0 20px;
}
.section-header h2 {
  font-family: var(--font-sans);
  font-size: 1.5rem; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .07em; position: relative;
}
.section-header h2::after {
  content: ''; display: block; margin-top: 7px;
  height: 3px; width: 44px; background: var(--accent);
}
.section-more {
  font-size: .82rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em;
  transition: color .2s;
  border-bottom: 1px solid transparent;
}
.section-more:hover { color: var(--primary); border-bottom-color: var(--accent); }

/* ══════════════════════════════════════════════════════
   IGEHIRDETÉS – kiemelt 2 hasáb
══════════════════════════════════════════════════════ */
.sermon-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.sermon-feature-left {
  background: #fff;
  padding: 64px 60px;
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center;
}
.sermon-feature-left h2 {
  color: var(--primary);
  font-size: 1.35rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  margin-bottom: 36px;
}
.sermon-feature-left h2::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--accent); margin: 12px auto 0;
}
.sermon-feature-card { text-decoration: none; color: inherit; }
.sermon-feature-title {
  color: var(--primary); font-size: 1.1rem; font-weight: 700;
  margin-bottom: 10px; line-height: 1.4;
}
.sermon-feature-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  color: #888; font-size: .82rem; margin-bottom: 16px;
}
.sermon-feature-excerpt {
  color: #666; font-size: .9rem; line-height: 1.7;
  margin-bottom: 22px;
}
.sermon-feature-audio { margin-bottom: 28px; }
.sermon-audio-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 2px solid #ddd; border-radius: 50%;
  color: #aaa; font-size: 1.1rem;
}
.sermon-feature-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px;
  background: var(--accent); border: none; color: #fff;
  font-size: .85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  text-decoration: none; align-self: center;
  border-radius: 4px;
  transition: background .25s;
}
.sermon-feature-btn:hover { background: #8a5f36; }
.sermon-feature-right {
  background-size: cover; background-position: center;
  background-color: var(--primary);
  min-height: 400px;
}
@media(max-width:768px) {
  .sermon-feature { grid-template-columns: 1fr; }
  .sermon-feature-left { padding: 40px 24px; }
  .sermon-feature-right { min-height: 260px; }
}

/* ══════════════════════════════════════════════════════
   IDÉZET PANORÁMA (hr2 – padsorok)
══════════════════════════════════════════════════════ */
.quote-panorama {
  width: 100%; min-height: 400px;
  background-size: cover; background-position: center;
  background-attachment: scroll; background-repeat: no-repeat;
  background-color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.quote-panorama::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(30,12,5,.50);
}
.quote-panorama-text {
  position: relative; z-index: 1;
  color: #fff; font-size: 1.25rem; font-weight: 700;
  line-height: 1.65; text-align: center;
  max-width: 740px; padding: 48px 30px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
@media(max-width:600px) {
  .quote-panorama-text { font-size: 1.05rem; padding: 36px 20px; }
}

/* ══════════════════════════════════════════════════════
   HÍREK
══════════════════════════════════════════════════════ */
.news-section { padding: 64px 0; background: #fff; }
.post-grid, .news-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 28px;
}
.news-card {
  display: flex; flex-direction: column; background: var(--card);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 190px; overflow: hidden; background: var(--bg-alt); }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--bg-alt), var(--border)); }
.news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.news-cat { font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.news-card-body h3 {
  font-family: var(--font-sans); font-size: .96rem; font-weight: 700;
  color: var(--ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-body time { font-size: .75rem; color: var(--muted); margin-top: auto; }
@media(max-width:900px){ .post-grid, .news-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px){ .post-grid, .news-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   ARCHÍVUM
══════════════════════════════════════════════════════ */
.archive-header {
  background: var(--primary); color: #fff;
  padding: 120px 20px 44px; text-align: center;
}
.archive-header h1 {
  font-family: var(--font-sans); font-size: 1.9rem; font-weight: 700;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em;
}
.archive-meta { color: rgba(255,255,255,.7); font-size: .86rem; }
.archive-header + .container { padding-top: 40px; padding-bottom: 48px; }

/* ══════════════════════════════════════════════════════
   SINGLE BEJEGYZÉS
══════════════════════════════════════════════════════ */
.single-wrap { max-width: 820px; margin: 48px auto; padding: 0 20px; }
.post-hero-wrap { position: relative; overflow: hidden; }
.post-hero-media { height: 380px; }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.post-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.post-hero-overlay h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem,3vw,1.9rem); font-weight: 700;
  color: #fff; line-height: 1.25;
}
.post-no-img { padding: 96px 0 18px; }
.post-no-img h1 {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem,3vw,2rem); font-weight: 700;
  color: var(--primary); line-height: 1.25;
}
.post-meta-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 12px 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); margin-bottom: 28px;
  font-size: .8rem; color: var(--muted);
}
.post-meta-bar .sep { opacity: .4; }
.post-meta-bar time { font-weight: 600; color: var(--text); }
.post-meta-bar a { color: var(--accent); font-weight: 600; }
.post-content { font-size: 1.02rem; line-height: 1.88; color: var(--text); }
.post-content h2,.post-content h3,.post-content h4 {
  font-family: var(--font-sans); color: var(--primary);
  margin: 1.8em 0 .65em; line-height: 1.3; font-weight: 700;
}
.post-content h2 { font-size: 1.45rem; }
.post-content h3 { font-size: 1.15rem; }
.post-content p { margin-bottom: 1.15em; }
.post-content img { margin: 1.2em 0; max-width: 100%; }
.post-content a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(175,123,73,.35); }
.post-content a:hover { text-decoration-color: var(--accent); }
.post-content ul,.post-content ol { margin: 1em 0 1em 1.4em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
  border-left: 4px solid var(--accent); padding: 14px 22px;
  margin: 1.5em 0; background: var(--bg-alt); font-style: italic; color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   STATIKUS OLDAL
══════════════════════════════════════════════════════ */
.page-wrap { max-width: 880px; margin: 48px auto 56px; padding: 0 20px; }
.page-title {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 700;
  color: var(--primary); margin-bottom: 28px;
  padding-bottom: 14px; border-bottom: 2px solid var(--border);
  text-transform: uppercase; letter-spacing: .04em;
}
.page-featured-img { overflow: hidden; margin-bottom: 26px; }
.page-featured-img img { width: 100%; height: 320px; object-fit: cover; }
.page-content { font-size: 1rem; line-height: 1.88; color: var(--text); overflow: hidden; }
.page-content h2,.page-content h3 {
  font-family: var(--font-sans); color: var(--primary);
  margin: 1.6em 0 .6em; font-weight: 700;
}
.page-content h2 { font-size: 1.4rem; }
.page-content p { margin-bottom: 1.1em; }
.page-content img { margin: 1em 0; max-width: 100%; height: auto; }
.page-content a { color: var(--accent); text-decoration: underline; }
.page-content ul,.page-content ol { margin: 1em 0 1em 1.4em; }
.page-content li { margin-bottom: .4em; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.page-content table th { background: var(--primary); color: #fff; padding: 9px 14px; text-align: left; font-size: .86rem; }
.page-content table td { padding: 8px 14px; border-bottom: 1px solid var(--border); font-size: .88rem; }
.page-content table tr:nth-child(even) td { background: var(--bg-alt); }

/* WordPress kép-igazítás (alignleft, alignright, aligncenter, wp-caption) */
.page-content .alignright,
.page-content figure.alignright { float: right; margin: 0 0 1.2em 2em; max-width: 50%; }
.page-content .alignleft,
.page-content figure.alignleft  { float: left;  margin: 0 2em 1.2em 0; max-width: 50%; }
.page-content .aligncenter,
.page-content figure.aligncenter { display: block; margin: 1.2em auto; text-align: center; float: none; }
.page-content .alignnone,
.page-content figure.alignnone   { float: none; display: block; margin: 1.2em 0; }
.page-content .wp-caption,
.page-content figure.wp-caption { max-width: 100%; }
.page-content .wp-caption img,
.page-content figure img { display: block; max-width: 100%; height: auto; margin: 0; }
.page-content .wp-caption-text,
.page-content figcaption { font-size: .8rem; color: #888; text-align: center; margin-top: 5px; font-style: italic; }
.page-content::after { content: ''; display: table; clear: both; }
@media(max-width:600px){
  .page-content .alignright,
  .page-content .alignleft,
  .page-content figure.alignright,
  .page-content figure.alignleft {
    float: none; display: block; margin: 1em auto; max-width: 100%;
  }
}

/* ══════════════════════════════════════════════════════
   KATEGÓRIA
══════════════════════════════════════════════════════ */
.cat-header {
  background: var(--primary); color: #fff;
  padding: 112px 20px 36px; text-align: center;
}
.cat-header h1 {
  font-family: var(--font-sans); font-size: 1.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  text-transform: uppercase; letter-spacing: .06em;
}
.cat-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.cat-desc { color: rgba(255,255,255,.7); margin-top: 8px; font-size: .88rem; }
.cat-header + .container { padding-top: 36px; padding-bottom: 48px; }

/* ══════════════════════════════════════════════════════
   KAPCSOLAT
══════════════════════════════════════════════════════ */
.contact-page {
  max-width: 1040px; margin: 96px auto 56px; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 340px; gap: 48px;
}
.contact-title {
  font-family: var(--font-sans); font-size: 1.7rem; font-weight: 700;
  color: var(--primary); margin-bottom: 8px; text-transform: uppercase;
}
.contact-subtitle { color: var(--muted); margin-bottom: 28px; }
.contact-form { background: var(--card); padding: 28px; border: 1px solid var(--border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.form-group input,.form-group textarea {
  padding: 10px 14px; border: 1.5px solid var(--border);
  font-family: inherit; font-size: .9rem; color: var(--ink);
  background: var(--white); transition: border-color .2s;
}
.form-group input:focus,.form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(175,123,73,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--accent); color: #fff; padding: 11px 32px;
  font-size: .88rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; transition: background .2s;
  cursor: pointer; border: none; font-family: inherit;
}
.form-submit:hover { background: var(--accent-dark); }
.contact-info-box { background: var(--primary); color: #fff; padding: 28px; }
.contact-info-box h3 {
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700;
  margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  color: var(--accent-light); text-transform: uppercase;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 9px;
  margin-bottom: 14px; font-size: .85rem; color: rgba(255,255,255,.82);
}
.contact-info-item svg { flex-shrink: 0; margin-top: 2px; opacity: .7; }
.contact-info-item a { color: rgba(255,255,255,.9); }
.contact-info-item a:hover { color: var(--accent-light); }
.alert-success {
  background: #d1fae5; border: 1px solid #6ee7b7;
  padding: 14px 18px; color: #065f46; margin-bottom: 18px;
}
.alert-error {
  background: #fee2e2; border: 1px solid #fca5a5;
  padding: 12px 16px; color: #991b1b; margin-bottom: 14px;
}
@media(max-width:820px){ .contact-page { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════
   LAPOZÁS
══════════════════════════════════════════════════════ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 36px 20px; flex-wrap: wrap;
}
.pagination a,.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 9px;
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text); transition: all .2s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .dots { border: none; color: var(--muted); }

/* ══════════════════════════════════════════════════════
   404
══════════════════════════════════════════════════════ */
.error-wrap {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; flex-direction: column; gap: 14px; padding: 120px 20px 40px;
}
.error-code {
  font-family: var(--font-sans); font-size: 7rem; font-weight: 800;
  color: var(--primary); opacity: .14; line-height: 1;
}
.error-wrap h1 { font-family: var(--font-sans); font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.error-wrap p { color: var(--muted); max-width: 360px; }

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-inner {
  max-width: 1220px; margin: 0 auto; padding: 0 20px 50px;
  display: grid; grid-template-columns: 1.5fr 1.2fr 1.1fr 1fr; gap: 40px;
}

/* 1. oszlop: logó + leírás + badge-ek */
.footer-logo-link { display: inline-block; margin-bottom: 14px; }
.footer-logo-img { height: 90px; width: auto; display: block; opacity: .92; }
.footer-brand-name {
  font-size: .96rem; font-weight: 700; color: var(--accent);
  margin-bottom: 12px; line-height: 1.4;
}
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.75; margin-bottom: 20px; }
.footer-badges { display: flex; flex-direction: column; gap: 10px; }
.footer-badge-img { width: 100%; max-width: 280px; height: auto; display: block; background: #fff; padding: 6px; }

/* 2–4. oszlop: h4 fejlécek */
.footer-col h4 {
  font-family: var(--font-sans); font-size: .82rem; font-weight: 700;
  color: var(--accent); margin: 0 0 10px;
  text-transform: uppercase; letter-spacing: .07em;
}
.footer-col-sub {
  font-size: .8rem; font-weight: 700; color: var(--accent);
  margin: 16px 0 6px; line-height: 1.3;
}
.footer-col-sub:first-child { margin-top: 0; }
.footer-info-val {
  font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.6;
  margin-bottom: 4px;
}
.footer-info-val em { font-style: italic; color: rgba(255,255,255,.4); }
.footer-info-val strong { color: rgba(255,255,255,.8); }

/* Kapcsolat ikon-lista */
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-list li {
  display: flex; align-items: flex-start; gap: 7px;
  margin-bottom: 9px; font-size: .8rem; color: rgba(255,255,255,.65);
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; opacity: .5; }
.footer-contact-list a { color: rgba(255,255,255,.78); }
.footer-contact-list a:hover { color: var(--accent-light); }

/* Hivatali idő */
.footer-hours { list-style: none; padding: 0; margin: 0 0 8px; }
.footer-hours li { font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.footer-hours strong { color: rgba(255,255,255,.82); }

/* Lelkipásztoraink + Vezetőség */
.footer-leadership { list-style: none; padding: 0; margin: 0 0 14px; }
.footer-leadership li {
  margin-bottom: 5px; font-size: .8rem; color: rgba(255,255,255,.65); line-height: 1.4;
}
.footer-leadership strong { color: rgba(255,255,255,.88); display: inline; }
.footer-leadership span { font-size: .75rem; color: rgba(255,255,255,.42); margin-left: 4px; }

/* Footer bottom sáv */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; max-width: 1220px; margin: 0 auto;
  font-size: .76rem; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 6px;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: rgba(255,255,255,.75); }
@media(max-width:1100px){ .footer-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px){ .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ══════════════════════════════════════════════════════
   OLDAL FEJLÉC SÁV (galéria, aloldalak)
══════════════════════════════════════════════════════ */
.page-hero-bar {
  background: var(--primary); color: #fff;
  padding: 110px 20px 32px;
}
.page-hero-bar-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-bar h1 {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.breadcrumb {
  font-size: .8rem; color: rgba(255,255,255,.6);
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.breadcrumb a { color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }

/* ══════════════════════════════════════════════════════
   FOTÓGALÉRIA
══════════════════════════════════════════════════════ */
.gallery-page-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 20px 64px; }
.gallery-empty { color: #999; font-size: .95rem; padding: 40px 0; }
.gallery-album-desc { font-size: .95rem; color: var(--text); margin-bottom: 32px; max-width: 720px; }

/* Albumlista grid */
.gallery-album-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}
.gallery-album-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--border); background: #fff;
  transition: transform .2s, box-shadow .2s;
  overflow: hidden;
}
.gallery-album-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.gallery-album-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-alt);
}
.gallery-album-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.gallery-album-card:hover .gallery-album-thumb img { transform: scale(1.04); }
.gallery-album-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #ccc;
}
.gallery-album-count {
  position: absolute; bottom: 8px; right: 10px;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 3px 9px;
  letter-spacing: .04em;
}
.gallery-album-info { padding: 20px 22px 24px; }
.gallery-album-info h2 {
  font-size: 1rem; font-weight: 700; color: var(--primary);
  margin-bottom: 8px; line-height: 1.4;
}
.gallery-album-info p {
  font-size: .84rem; color: #777; line-height: 1.6; margin-bottom: 14px;
}
.gallery-album-link {
  font-size: .74rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Fotórács (album nézet) */
.gallery-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; margin-bottom: 32px;
}
.gallery-photo-item {
  position: relative; cursor: pointer; border: none; padding: 0;
  background: var(--bg-alt); overflow: hidden; aspect-ratio: 4/3;
  display: block; width: 100%;
  transition: transform .2s, box-shadow .2s;
}
.gallery-photo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}
.gallery-photo-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s;
}
.gallery-photo-item:hover img { transform: scale(1.06); }
.gallery-photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
  color: #fff; font-size: .7rem; padding: 18px 8px 6px;
  opacity: 0; transition: opacity .2s;
}
.gallery-photo-item:hover .gallery-photo-caption { opacity: 1; }

.gallery-back-link { margin-top: 8px; }
.gallery-back-link a { color: var(--accent); font-size: .9rem; }
.gallery-back-link a:hover { text-decoration: underline; }

/* Lightbox */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
}
.lb-overlay[hidden] { display: none; }
.lb-content {
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; max-height: 90vh;
}
.lb-img {
  max-width: 85vw; max-height: 78vh; object-fit: contain;
  display: block;
}
.lb-caption-wrap { text-align: center; padding: 10px 20px 0; }
.lb-title   { color: #fff; font-size: .9rem; font-weight: 700; margin: 4px 0 0; }
.lb-caption { color: rgba(255,255,255,.65); font-size: .82rem; margin: 2px 0 0; }
.lb-counter { color: rgba(255,255,255,.4); font-size: .76rem; margin: 4px 0 0; }
.lb-close {
  position: fixed; top: 16px; right: 20px;
  background: none; border: none; color: rgba(255,255,255,.75);
  font-size: 1.8rem; cursor: pointer; line-height: 1;
  padding: 4px 8px; transition: color .2s;
}
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; padding: 16px 14px;
  transition: background .2s; border-radius: 2px;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
@media(max-width:600px){
  .gallery-album-grid { grid-template-columns: 1fr; }
  .gallery-photo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .lb-prev, .lb-next { padding: 10px 10px; font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px;
  background: var(--ink); color: rgba(255,255,255,.9);
  padding: 18px 22px; max-width: 540px; z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.cookie-banner-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; font-size: .83rem; }
.cookie-banner-actions { display: flex; gap: 7px; align-items: center; }
.cookie-accept-btn {
  background: var(--accent); color: #fff; padding: 7px 18px;
  font-size: .82rem; font-weight: 700; text-transform: uppercase;
  transition: background .2s; cursor: pointer; border: none; font-family: inherit;
}
.cookie-accept-btn:hover { background: var(--accent-dark); }
.cookie-more { font-size: .79rem; color: rgba(255,255,255,.55); text-decoration: underline; }

/* ══════════════════════════════════════════════════════
   PANORÁMA SZEKCIÓ (teljes szélességű háttérkép)
══════════════════════════════════════════════════════ */
.panorama-section {
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-color: var(--primary);
  position: relative;
  display: block;
}
@media(max-width:768px){
  .panorama-section { min-height: 260px; }
}

/* (EU badge a láblécbe költözött – nincs lebegő badge)

/* ══════════════════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════ */
@media print {
  .site-header,.topbar,.site-footer,.pagination,.cookie-banner,.nav-toggle { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}