/*
Theme Name:  Családilap
Author:      Digital Footprint
Description: Egyedi blog theme – csaladilap.hu
Version:     1.0.0
License:     Proprietary
Text Domain: csaladilap
*/

/* =============================================
   Fonts: DM Serif Display (headings) + DM Sans (body)
   ============================================= */

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
  --bg:             #FDFAF6;
  --card-bg:        #FFFFFF;
  --section-light:  #FEF2EC;
  --dark-section:   #4A3728;
  --primary:        #D4826A;
  --primary-hover:  #BF6E56;
  --dark:           #2D2419;
  --text:           #3D3228;
  --muted:          #9E8E84;
  --border:         #EAE0D8;
  --white:          #FFFFFF;
  --radius:         6px;
  --container:      1170px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

body {
  font-family: 'DM Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--dark);
}

/* =============================================
   Layout Helpers
   ============================================= */
.cl-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.cl-section {
  padding: 64px 0;
}

.cl-section--light {
  background: var(--section-light);
}

/* =============================================
   Section Headings — Magazine style
   uppercase + extending decorative line (right)
   ============================================= */
.sec-heading {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.sec-heading__title {
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Decorative line extending to the right */
.sec-heading__title::after {
  content: '';
  display: inline-block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  opacity: 0.12;
  margin-left: 24px;
  vertical-align: middle;
}

/* Flex trick: title takes space, line fills rest */
.sec-heading {
  flex-wrap: nowrap;
  overflow: hidden;
}

.sec-heading::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--dark);
  opacity: 0.12;
  flex-shrink: 0;
}

.sec-heading__title::after { display: none; }

/* Centered variant (EZ IS ÉRDEKELHET) */
.sec-heading--center {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}

.sec-heading--center::after { display: none; }

.sec-heading__title--center {
  letter-spacing: 0.09em;
}

.sec-heading__sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

/* Section heading WITH slider nav buttons on right */
.sec-heading--with-nav {
  margin-bottom: 24px;
}

.sec-heading--with-nav .cl-slider-nav {
  position: static;
  margin-top: 0;
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Legacy centered heading (archive etc.) */
.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.section-heading__sub {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
}

/* =============================================
   Category Badge
   ============================================= */
.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: transparent;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 3px 8px;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.4;
}

.cat-badge:hover {
  background: var(--primary);
  color: var(--white);
}

.cat-badge--white {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}

.cat-badge--white:hover {
  background: var(--white);
  color: var(--dark);
}

/* =============================================
   Card Image Container
   ============================================= */
.card-img {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--border);
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.card-img--540 { height: 540px; }
.card-img--360 { height: 360px; }
.card-img--240 { height: 240px; }
.card-img--180 { height: 180px; }
.card-img--160 { height: 160px; }
.card-img--80  { height: 80px; width: 80px; border-radius: 50%; flex-shrink: 0; }

/* =============================================
   Post Card Base
   ============================================= */
.cl-post-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cl-post-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-post-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.35;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cl-post-card__title:hover {
  color: var(--primary);
}

.cl-post-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   Header
   ============================================= */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo__img {
  height: 40px;
  width: auto;
}

.site-logo__text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
}

/* Center Nav */
.center-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  overflow: hidden;
}

.center-nav .nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.center-nav .nav-link:hover,
.center-nav .nav-link[aria-current="page"] {
  color: var(--primary);
  background: var(--section-light);
}

/* Search */
.header-search {
  flex-shrink: 0;
  position: relative;
}

.search-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.search-toggle-btn:hover {
  color: var(--primary);
  background: var(--section-light);
}

.search-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Search dropdown panel */
.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 8px 24px rgba(45,36,25,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.search-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-panel form {
  display: flex;
  gap: 8px;
}

.search-panel input[type="search"] {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-panel input[type="search"]:focus {
  border-color: var(--primary);
}

.search-panel button[type="submit"] {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.search-panel button[type="submit"]:hover {
  background: var(--primary-hover);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  gap: 5px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease;
}

.mobile-menu-btn:hover {
  background: var(--section-light);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile nav */
.mobile-nav {
  background: var(--white);
  border-top: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.mobile-nav.is-open {
  max-height: 400px;
  padding: 12px 20px;
}

.mobile-nav .nav-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}

.mobile-nav .nav-link:last-child {
  border-bottom: none;
}

.mobile-nav .nav-link:hover {
  color: var(--primary);
}

/* =============================================
   SZEKCIÓ 1 – Hero
   Teljes szélességű bg kép.
   Szöveg bal-fent. 3 szöveges item jobb-lent (overlay).
   ============================================= */
.hero-section {
  position: relative;
  height: 580px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hero-section:hover .hero-bg {
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(45,36,25,0.82) 0%, rgba(45,36,25,0.35) 55%, rgba(45,36,25,0.2) 100%),
    linear-gradient(to top, rgba(45,36,25,0.55) 0%, transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Szöveg bal-fent */
.hero-top {
  padding-top: 60px;
  max-width: 560px;
}

.hero-top__meta {
  margin-bottom: 12px;
}

.hero-top__link {
  display: block;
  text-decoration: none;
}

.hero-top__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.28;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.hero-top__link:hover .hero-top__title {
  opacity: 0.88;
}

/* 3 szöveges item jobb-lent */
.hero-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-bottom: 0;
}

.hero-bottom__item {
  width: 230px;
  padding: 22px 22px 28px;
  border-left: 1px solid rgba(255,255,255,0.28);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.hero-bottom__item:hover {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 -16px 40px rgba(45,36,25,0.2);
}

.hero-bottom__cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  line-height: 1;
  transition: color 0.2s ease;
}

.hero-bottom__item:hover .hero-bottom__cat {
  color: var(--primary);
}

.hero-bottom__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.hero-bottom__item:hover .hero-bottom__title {
  color: var(--dark);
}

/* =============================================
   SZEKCIÓ 2 – 3 vízszintes mini-kártya
   ============================================= */
.horiz-cards-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

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

.horiz-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s ease;
}

.horiz-card:last-child {
  border-right: none;
}

.horiz-card:hover {
  background: var(--section-light);
}

.horiz-card__img-link {
  flex-shrink: 0;
}

.horiz-card__img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}

.horiz-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.horiz-card:hover .horiz-card__img img {
  transform: scale(1.05);
}

.horiz-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.horiz-card__meta {
  display: flex;
  gap: 6px;
}

.horiz-card__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.horiz-card:hover .horiz-card__title {
  color: var(--primary);
}

/* =============================================
   SZEKCIÓ 3/7/8 – 3-col Grid
   ============================================= */
.posts-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =============================================
   SZEKCIÓ 4 – Card image height
   ============================================= */
.card-img--200 { height: 200px; }

/* Scroll-snap slider */
.cl-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.cl-slider::-webkit-scrollbar { display: none; }

.cl-slider__item {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
}

/* Slider nav — now lives inside sec-heading--with-nav flex row */
.cl-slider-nav {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.cl-slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cl-slider-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--section-light);
}

.cl-slider-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   SZEKCIÓ 4 – Posts + Sidebar
   ============================================= */
.posts-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.posts-3-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.list-post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.list-post-card:first-child {
  padding-top: 0;
}

.list-post-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Sidebar */
.cl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-block__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 16px;
}

/* Indexed posts (numbered list) */
.sidebar-indexed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.indexed-post {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.indexed-post__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}

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

.indexed-post__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.indexed-post__title:hover {
  color: var(--primary);
}

/* Category tiles */
.cat-tiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cat-tile {
  position: relative;
  min-height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary);
}

.cat-tile__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.cat-tile:hover .cat-tile__bg {
  transform: scale(1.06);
}

.cat-tile__overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,36,25,0.45);
  transition: background 0.3s ease;
}

.cat-tile:hover .cat-tile__overlay {
  background: rgba(45,36,25,0.3);
}

.cat-tile__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}

/* =============================================
   SZEKCIÓ 5 – EZ IS ÉRDEKELHET
   Split: 1 nagy bal (60%) + 4 mini-lista jobb (40%)
   ============================================= */
.ez-section-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

/* Nagy kiemelt poszt */
.ez-post-featured {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ez-post-featured__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cl-post-card__title--lg {
  font-size: 22px !important;
  -webkit-line-clamp: 3;
}

/* Sidebar lista */
.ez-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ez-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.ez-list-item:first-child {
  padding-top: 0;
}

.ez-list-item:last-child {
  border-bottom: none;
}

.ez-list-item__img-link {
  flex-shrink: 0;
}

.ez-list-item__img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--border);
}

.ez-list-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ez-list-item:hover .ez-list-item__img img {
  transform: scale(1.05);
}

.ez-list-item__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ez-list-item__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.ez-list-item__title:hover {
  color: var(--primary);
}

/* =============================================
   SZEKCIÓ 6 – Dark Overlay Featured
   ============================================= */
.dark-featured {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.dark-featured__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.4);
  transform: scale(1.05);
}

.dark-featured__inner {
  position: relative;
  z-index: 1;
}

/* Main post (center) */
.dark-featured__main {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

.dark-featured__main-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.3;
  margin-top: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.dark-featured__main-title:hover {
  opacity: 0.85;
}

/* 3 circle sub-posts */
.dark-featured__sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}

.circle-post {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.circle-post__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.3);
  background: var(--dark-section);
  transition: border-color 0.3s ease;
}

.circle-post:hover .circle-post__img {
  border-color: var(--primary);
}

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

.circle-post__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.circle-post:hover .circle-post__title {
  opacity: 0.85;
}

/* =============================================
   SZEKCIÓ 6 – 3-col grid with excerpts
   ============================================= */
.posts-excerpt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* =============================================
   Archive Page
   ============================================= */
.archive-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.archive-header__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--dark);
}

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

/* =============================================
   Single Post — Layout B: Szerkesztői Hero
   ============================================= */
.single-hero {
  height: 560px;
  position: relative;
  overflow: hidden;
}

.single-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45,36,25,0.78) 0%, rgba(45,36,25,0.2) 55%, transparent 100%);
}

.single-hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  max-width: 860px;
  margin: 0 auto;
}

.single-hero__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
  margin-top: 12px;
}

.single-hero--no-img {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.single-hero--no-img .single-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.single-hero--no-img .single-hero__title {
  color: var(--dark);
  font-size: 32px;
}

.single-breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

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

.single-breadcrumb a:hover {
  color: var(--primary);
}

.single-content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.entry-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  margin-top: 2em;
  margin-bottom: 0.6em;
  color: var(--dark);
}

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

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

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

.entry-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 12px 0 12px 20px;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--muted);
}

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

/* Content links */
.entry-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  opacity: 0.75;
}

/* Video embed responsive */
.entry-content .wp-block-embed,
.entry-content .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

.entry-content .wp-block-embed__wrapper {
  position: relative !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
}

.entry-content .wp-block-embed__wrapper::before {
  display: none !important;
}

.entry-content .wp-block-embed__wrapper iframe {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Related posts */
.related-posts {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
}

.related-posts__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 28px;
}

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

/* =============================================
   Static Page
   ============================================= */
.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.page-header__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--dark);
}

.page-content-wrap {
  max-width: 720px;
  padding-bottom: 64px;
}

/* =============================================
   404 Page
   ============================================= */
.error-404-section {
  padding: 100px 0;
  text-align: center;
}

.error-404-section h1 {
  font-size: 80px;
  color: var(--primary);
  margin-bottom: 8px;
}

.error-404-section p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* =============================================
   Search Results Page
   ============================================= */
.search-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.search-header__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--dark);
}

.search-header__count {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* =============================================
   Buttons
   ============================================= */
.cl-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  align-self: flex-start;
  width: fit-content;
}

.cl-btn--primary {
  background: var(--primary);
  color: var(--white);
  border: 1.5px solid var(--primary);
}

.cl-btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.cl-btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--border);
}

.cl-btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* =============================================
   Pagination
   ============================================= */
.pagination-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--text);
}

.pagination a:hover {
  background: var(--section-light);
  color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: var(--white);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--dark-section);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-logo__text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
}

.footer-logo__img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
}

.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

/* =============================================
   Mobile Responsive (≤767px)
   ============================================= */
@media (max-width: 767px) {
  .center-nav { display: none; }
  .header-search { display: none; }
  .mobile-menu-btn { display: flex; }

  /* Hero mobil */
  .hero-section {
    height: auto;
    min-height: 400px;
  }

  .hero-top {
    padding-top: 36px;
    max-width: 100%;
  }

  .hero-top__title { font-size: 22px; }

  .hero-bottom {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .hero-bottom__item {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.25);
    padding: 14px 0;
  }

  .horiz-cards-grid {
    grid-template-columns: 1fr;
  }

  .horiz-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .horiz-card:last-child { border-bottom: none; }

  .posts-3-grid,
  .posts-excerpt-grid,
  .related-grid,
  .archive-grid,
  .search-results-grid {
    grid-template-columns: 1fr;
  }

  .ez-section-wrap {
    grid-template-columns: 1fr;
  }

  .dark-featured__sub {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .single-hero {
    height: 320px;
  }

  .single-hero__title { font-size: 22px; }
  .single-hero__content { padding: 24px 20px; }

  .cl-slider__item {
    flex: 0 0 calc(80% - 10px);
  }

  .list-post-card {
    grid-template-columns: 1fr;
  }

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

  /* Egységes kép-magasság mobilon — 300px (sorsolva) */
  .card-img--540,
  .card-img--360,
  .card-img--240,
  .card-img--200,
  .card-img--180,
  .card-img--160 {
    height: 300px;
  }

  .sec-heading__title { font-size: 16px; }
  .section-heading__title { font-size: 22px; }
  .cl-section { padding: 40px 0; }

  .sec-heading--with-nav .cl-slider-nav {
    display: none;
  }
}

/* =============================================
   Tablet (768–991px)
   ============================================= */
@media (max-width: 991px) {
  .posts-3-grid,
  .posts-excerpt-grid,
  .related-grid,
  .archive-grid,
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ez-section-wrap {
    grid-template-columns: 1fr;
  }

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

  .cl-slider__item {
    flex: 0 0 calc(50% - 10px);
  }

  .hero-bottom__item {
    width: 180px;
    padding: 18px 16px 22px;
  }
}

/* =============================================
   GDPR Override
   ============================================= */
#cookie-notice-accept-button,
.cn-button,
.cli-plugin-button,
.moove-gdpr-infobar-allow-btn,
.cmplz-btn,
.cc-btn {
  border-radius: 6px !important;
}

/* Moove GDPR plugin */
#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button.mgbutton {
  color: #2D2419 !important;
  border-radius: 6px !important;
}
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton {
  color: #2D2419 !important;
  border-radius: 6px !important;
}
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-left-content #moove-gdpr-menu li button {
  color: #2D2419 !important;
  border-radius: 6px !important;
}
#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-close-btn.moovegdpr-arrow-close:after,
#moove_gdpr_cookie_info_bar .moove-gdpr-infobar-close-btn.moovegdpr-arrow-close:before,
.gdpr-icon.moovegdpr-arrow-close:after,
.gdpr-icon.moovegdpr-arrow-close:before,
i.moovegdpr-arrow-close.moovegdpr-arrow-close:after,
i.moovegdpr-arrow-close.moovegdpr-arrow-close:before {
  color: #2D2419 !important;
}
