/*
Theme Name: Nowmagazin
Theme URI: https://nowmagazin.hu
Author: Antigravity
Description: Hírmagazin sablon a nowmagazin.hu domainhez, yelloweb.hu referencia alapján.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: nowmagazin
*/

/* ==============================================
   CSS Custom Properties
   ============================================= */
:root {
  --primary:    #DE4546;
  --dark:       #222222;
  --footer-bg:  #222222;
  --bg:         #ffffff;
  --text:       #333333;
  --muted:      #888888;
  --border:     rgba(0,0,0,.12);
  --light-bg:   #f5f5f5;
  --radius:     0px;
}

/* ==============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ==============================================
   Container
   ============================================= */
.nm-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================
   Card Image Base
   ============================================= */
.nm-card-img {
  overflow: hidden;
  background: var(--light-bg);
  display: block;
  position: relative;
  flex-shrink: 0;
}
.nm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
a:hover .nm-card-img img { transform: scale(1.04); }
.nm-card-img--90   { height: 90px; }
.nm-card-img--150  { height: 150px; }
.nm-card-img--240  { height: 240px; }
.nm-card-img--460  { height: 460px; }
.nm-card-img--520  { height: 520px; }
.nm-card-img--560  { height: 560px; }

/* ==============================================
   Cat Badge — solid sárga pill
   ============================================= */
.nm-cat-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 2px 7px;
  line-height: 1.5;
  white-space: nowrap;
}

/* ==============================================
   Section Heading
   ============================================= */
.nm-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.nm-section-head__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dark);
  white-space: nowrap;
}
.nm-section-head__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.nm-section-head--accent .nm-section-head__label {
  color: var(--primary);
}

/* ==============================================
   Section Wrapper
   ============================================= */
.nm-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.nm-section:last-of-type {
  border-bottom: none;
}

/* ==============================================
   HEADER
   ============================================= */
.nm-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
}

/* Top bar */
.nm-header__top {
  padding: 10px 0;
  background: var(--bg);
}
.nm-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nm-header__logo {
  display: flex;
  align-items: center;
}
.nm-header__logo-img {
  max-height: 38px;
  width: auto;
}
.nm-header__logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.02em;
}

/* Nav toggle (hamburger) */
.nm-nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 5px;
  transition: opacity .2s ease;
}
.nm-nav-toggle:hover { opacity: .7; }
.nm-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
}
.nm-nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nm-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nm-nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search toggle */
.nm-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--dark);
  display: flex;
  align-items: center;
  transition: opacity .2s ease;
}
.nm-search-toggle:hover { opacity: .7; }

/* Dark nav bar */
.nm-header__nav {
  background: var(--dark);
}
.nm-header__nav .nm-container {
  display: flex;
  align-items: center;
}
.nm-nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nm-nav-list li a {
  display: block;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.85);
  transition: color .2s ease, background .2s ease;
}
.nm-nav-list li a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* Mobile menu */
.nm-mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.nm-mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}
.nm-mobile-menu__inner {
  padding: 80px 32px 40px;
}
.nm-mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nm-mobile-nav-list li {
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nm-mobile-nav-list li a {
  display: block;
  padding: 18px 0;
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  letter-spacing: -.01em;
  transition: color .2s ease;
}
.nm-mobile-nav-list li a:hover { color: var(--primary); }
.nm-mobile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  transition: opacity .2s ease;
}
.nm-mobile-close:hover { opacity: .7; }

/* Search overlay */
.nm-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 300;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.nm-search-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.nm-search-overlay .nm-container {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.nm-search-form {
  display: flex;
  align-items: center;
  flex: 1;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.nm-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 18px;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: var(--dark);
}
.nm-search-btn {
  background: var(--primary);
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  color: #fff;
  display: flex;
  align-items: center;
  transition: opacity .2s ease;
}
.nm-search-btn:hover { opacity: .85; }
.nm-search-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 8px;
  transition: opacity .2s ease;
}
.nm-search-close:hover { opacity: .7; }

/* ==============================================
   HERO STRIP (3 horizontal mini-cards)
   ============================================= */
.nm-hero-strip {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.nm-hero-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.nm-hero-strip__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-right: 1px solid var(--border);
  transition: background .2s ease;
}
.nm-hero-strip__card:last-child { border-right: none; }
.nm-hero-strip__card:hover { background: var(--light-bg); }
.nm-hero-strip__thumb {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--light-bg);
}
.nm-hero-strip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.nm-hero-strip__card:hover .nm-hero-strip__thumb img { transform: scale(1.05); }
.nm-hero-strip__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nm-hero-strip__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================================
   FEATURED 3-COL (szöveg | kép | lista)
   ============================================= */
.nm-feat3 {
  display: grid;
  grid-template-columns: 3fr 4fr 3fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  min-height: 380px;
}

/* Bal: text-only */
.nm-feat3__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 28px 0;
  border-right: 1px solid var(--border);
  justify-content: center;
  transition: opacity .2s ease;
}
.nm-feat3__left:hover { opacity: .85; }
.nm-feat3__left-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
}

/* Közép: nagy kép */
.nm-feat3__center {
  display: block;
  overflow: hidden;
  background: var(--light-bg);
}
.nm-feat3__center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.nm-feat3__center:hover img { transform: scale(1.03); }
.nm-feat3__center-placeholder {
  width: 100%;
  height: 100%;
  background: #ddd;
}

/* Jobb: lista */
.nm-feat3__right {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}
.nm-feat3__right-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 0 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.nm-feat3__right-item:last-child { border-bottom: none; }
.nm-feat3__right-item:hover { background: var(--light-bg); }
.nm-feat3__right-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nm-feat3__more {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  align-self: flex-start;
}

/* ==============================================
   FÓKUSZBAN — 3 Overlay Cards
   ============================================= */
.nm-overlay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.nm-overlay-card {
  position: relative;
  overflow: hidden;
  display: block;
}
.nm-overlay-card__img-wrap {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--dark);
}
.nm-overlay-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
  opacity: .85;
}
.nm-overlay-card:hover .nm-overlay-card__img-wrap img {
  transform: scale(1.04);
}
/* Badge a kép TETEJÉN (top-left, absolute) */
.nm-overlay-card__top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
/* Cím a kép ALJÁN (gradient overlay) */
.nm-overlay-card__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 65%, transparent 100%);
  padding: 16px 16px 18px;
  display: flex;
  align-items: flex-end;
}
.nm-overlay-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==============================================
   EZ IS ÉRDEKELHET — 4-col TEXT-ONLY kártyák
   ============================================= */
.nm-text4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.nm-text-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 20px 16px;
  border-right: 1px solid var(--border);
  transition: background .2s ease;
}
.nm-text-card:last-child { border-right: none; padding-right: 0; }
.nm-text-card:hover { background: rgba(0,0,0,.02); }
.nm-text-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Standard kép+szöveg kártyák (KORÁBBI + archívum) */
.nm-posts-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.nm-post-card {
  display: block;
  transition: opacity .2s ease;
}
.nm-post-card:hover { opacity: .88; }
.nm-post-card__body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nm-post-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Section light bg */
.nm-section--light { background: var(--light-bg); }

/* ==============================================
   MÉG TÖBB FRISS TARTALOM — 1 large + 3 side
   ============================================= */
.nm-more-wrap {
  display: grid;
  grid-template-columns: 58fr 42fr;
  gap: 28px;
  align-items: start;
}
.nm-more-main {
  display: block;
}
.nm-more-main__body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nm-more-main__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.nm-more-main:hover .nm-more-main__title { color: var(--primary); }

.nm-more-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 20px;
  align-self: start;
}
.nm-more-side-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nm-more-side-item:first-child { padding-top: 0; }
.nm-more-side-item:last-child { border-bottom: none; }
.nm-more-side-thumb {
  width: 100px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--light-bg);
}
.nm-more-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.nm-more-side-item:hover .nm-more-side-thumb img { transform: scale(1.05); }
.nm-more-side-body {
  flex: 1;
  min-width: 0;
}
.nm-more-side-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
a:hover .nm-more-side-title { color: var(--primary); }

/* ==============================================
   KORÁBBI CIKKEINK — 3-col Card Grid
   ============================================= */
.nm-posts-3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ==============================================
   FOOTER
   ============================================= */
.nm-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.7);
  padding: 36px 0 28px;
}
.nm-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.nm-footer__logo-img {
  max-height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}
.nm-footer__logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
}
.nm-footer__links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.nm-footer__links a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s ease;
}
.nm-footer__links a:hover { color: #fff; }
.nm-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ==============================================
   ARCHIVE
   ============================================= */
.nm-archive-header {
  background: var(--light-bg);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.nm-archive-header__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.nm-archive-header__count {
  font-size: 13px;
  color: var(--muted);
}
.nm-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 36px 0;
}
.nm-archive-card {
  display: block;
}
.nm-archive-card__body {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nm-archive-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  transition: color .2s ease;
}
.nm-archive-card:hover .nm-archive-card__title { color: var(--primary); }
.nm-archive-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pagination */
.nm-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 36px;
  border-top: 1px solid var(--border);
}
.nm-pagination__btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.nm-pagination__btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

/* ==============================================
   SINGLE — Layout B (Szerkesztői hero)
   ============================================= */
.nm-single-hero {
  position: relative;
  height: 560px;
  background: var(--dark);
  overflow: hidden;
}
.nm-single-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
}
.nm-single-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}
.nm-single-hero__cat {
  margin-bottom: 12px;
}
.nm-single-hero__cat .nm-cat-badge {
  color: #fff;
  font-size: 11px;
}
.nm-single-hero__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  max-width: 780px;
}
.nm-single-hero--no-img {
  height: auto;
}
.nm-single-fallback-header {
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
}
.nm-single-fallback-header__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-top: 10px;
}

.nm-single-content-wrap {
  padding: 40px 0 56px;
}
.nm-single-content {
  max-width: 720px;
  margin: 0 auto;
}
.nm-single-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.nm-single-content a:hover {
  opacity: .75;
}
.nm-single-content p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}
.nm-single-content h2,
.nm-single-content h3,
.nm-single-content h4 {
  font-weight: 600;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.nm-single-content h2 { font-size: 22px; }
.nm-single-content h3 { font-size: 18px; }
.nm-single-content img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  margin: 2rem 0;
}
.nm-single-content figure { margin: 2rem 0; }
.nm-single-content ul,
.nm-single-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}
.nm-single-content ul { list-style: disc; }
.nm-single-content ol { list-style: decimal; }
.nm-single-content li { margin-bottom: .5rem; font-size: 15px; line-height: 1.7; }
.nm-single-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  margin: 2rem 0;
  color: var(--muted);
  font-style: italic;
}

/* Video embed — responsive 16:9 */
.nm-single-content .wp-block-embed,
.nm-single-content .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100% !important;
}
.nm-single-content .wp-block-embed__wrapper {
  position: relative !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden;
}
.nm-single-content .wp-block-embed__wrapper::before {
  display: none !important;
}
.nm-single-content .wp-block-embed__wrapper iframe {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Related posts — Style D (fehér, borderes kártyák) */
.nm-related {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.nm-related__head {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nm-related__head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.nm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.nm-related-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nm-related-card:hover {
  border-color: rgba(0,0,0,.25);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.nm-related-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nm-related-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.nm-related-card:hover .nm-related-card__title { color: var(--primary); }

/* ==============================================
   PAGE
   ============================================= */
.nm-page-header {
  background: var(--light-bg);
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}
.nm-page-header__title {
  font-size: 30px;
  font-weight: 700;
  color: var(--dark);
}
.nm-page-content {
  padding: 48px 0 64px;
  max-width: 800px;
}
.nm-page-content p  { font-size: 15px; line-height: 1.8; margin-bottom: 1.4rem; }
.nm-page-content h2 { font-size: 22px; font-weight: 600; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--dark); }
.nm-page-content h3 { font-size: 18px; font-weight: 600; margin-top: 2rem; margin-bottom: .8rem; color: var(--dark); }
.nm-page-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.4rem; }
.nm-page-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.4rem; }
.nm-page-content li { margin-bottom: .4rem; font-size: 15px; }
.nm-page-content a  { color: var(--primary); text-decoration: underline; }

/* ==============================================
   SEARCH
   ============================================= */
.nm-search-header {
  background: var(--light-bg);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.nm-search-header__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
}
.nm-search-header__title span { color: var(--primary); }
.nm-search-header__count {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.nm-search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 36px 0;
}
.nm-no-results {
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
}
.nm-no-results p { font-size: 16px; margin-bottom: 16px; }

/* ==============================================
   404
   ============================================= */
.nm-404-wrap {
  text-align: center;
  padding: 80px 0;
}
.nm-404-wrap__code {
  font-size: 80px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  display: block;
}
.nm-404-wrap__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
  margin-top: 12px;
}
.nm-404-wrap__text {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
  margin-bottom: 28px;
}
.nm-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity .2s ease;
}
.nm-btn:hover { opacity: .85; }

/* ==============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .nm-posts-4-grid { grid-template-columns: repeat(2, 1fr); }
  .nm-overlay-grid { grid-template-columns: repeat(2, 1fr); }
  .nm-overlay-grid > *:last-child { display: none; }
  .nm-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nm-header__nav { display: none; }
  .nm-nav-toggle { display: flex; }

  /* Hero strip: 1-col stack */
  .nm-hero-strip__grid {
    grid-template-columns: 1fr;
  }
  .nm-hero-strip__card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .nm-hero-strip__card:last-child { border-bottom: none; }

  /* Featured 3-col → 1-col */
  .nm-feat3 {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .nm-feat3__left {
    padding: 20px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .nm-feat3__center {
    height: 240px;
  }
  .nm-feat3__right {
    border-left: none;
  }
  .nm-feat3__right-item {
    padding: 14px 0;
  }

  /* Overlay grid: 1-col */
  .nm-overlay-grid {
    grid-template-columns: 1fr;
  }
  .nm-overlay-grid > *:last-child { display: block; }
  .nm-overlay-card__img-wrap { height: 300px; }

  /* Section head vonal elrejtése mobilon */
  .nm-section-head__line { display: none; }

  /* 4-col → 1-col */
  .nm-posts-4-grid { grid-template-columns: 1fr; }
  .nm-text4-grid   { grid-template-columns: 1fr; }
  .nm-text-card    { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nm-text-card:last-child { border-bottom: none; }

  /* More wrap: 1-col */
  .nm-more-wrap {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .nm-more-main { margin-bottom: 32px; }

  /* 3-col → 1-col */
  .nm-posts-3-grid { grid-template-columns: 1fr; }
  .nm-archive-grid  { grid-template-columns: 1fr; }
  .nm-search-grid   { grid-template-columns: 1fr; }
  .nm-related-grid  { grid-template-columns: 1fr; }

  /* Single hero */
  .nm-single-hero { height: 320px; }
  .nm-single-hero__title { font-size: 22px; }
  .nm-single-hero__overlay { padding: 24px; }

  /* Egységes kép-magasság mobilon: 300px */
  .nm-card-img--240,
  .nm-card-img--460,
  .nm-card-img--520 { height: 300px; }

  .nm-footer__links { flex-direction: column; gap: 12px; }
}

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

#moove_gdpr_cookie_info_bar .moove-gdpr-info-bar-container .moove-gdpr-info-bar-content button.mgbutton {
  color: #fff !important;
  border-radius: 0px !important;
}
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-footer-content .moove-gdpr-button-holder button.mgbutton {
  color: #fff !important;
  border-radius: 0px !important;
}
#moove_gdpr_cookie_modal .moove-gdpr-modal-content .moove-gdpr-modal-left-content #moove-gdpr-menu li button {
  color: #222222 !important;
  border-radius: 0px !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: #222222 !important;
}
