/*
Theme Name:  Hrbazis
Author:      Digital Footprint
Description: Egyedi WordPress theme – hrbazis.hu
Version:     1.0.0
License:     Proprietary
Text Domain: hrbazis
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --primary:      #c33823;
  --dark:         #1a1a1a;
  --light-bg:     #fffcf5;
  --paragraph:    #535353;
  --dark-gray:    #afafaf;
  --light-grey:   #f9f9fa;
  --white:        #ffffff;
  --white-50:     rgba(255,255,255,.5);
  --border:       #ddd;
  --yellow:       #fff2b3;

  --font-body:    'Work Sans', sans-serif;
  --font-head:    'Unbounded', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--dark);
  background: var(--light-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

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

ul, ol { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .35s, padding .35s;
}
.site-header.scrolled {
  background: var(--dark);
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity .3s;
}
.site-logo:hover { opacity: .8; }

/* Nav */
.primary-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.primary-nav ul li a {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .3s;
}
.primary-nav ul li a:hover { color: var(--primary); }

/* Search */
.header-search-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--white);
  gap: 8px;
}
.header-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  width: 180px;
  padding: 6px 0;
}
.header-search-input::placeholder { color: rgba(255,255,255,.6); }
.header-search-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  transition: color .3s;
}
.header-search-btn:hover { color: var(--primary); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all .35s;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity .35s;
}
.mobile-nav-overlay.open {
  display: flex;
  opacity: 1;
}
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 32px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
}
.mobile-nav-overlay ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mobile-nav-overlay ul li a {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--white);
  text-transform: uppercase;
  transition: color .3s;
}
.mobile-nav-overlay ul li a:hover { color: var(--primary); }
.mobile-search-form {
  display: flex;
  border-bottom: 1px solid var(--white-50);
  gap: 8px;
}
.mobile-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 8px 0;
  width: 240px;
}
.mobile-search-btn {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 18px;
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero {
  position: relative;
  height: 720px;
  display: flex;
  align-items: center;
  padding-top: 150px;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--dark), transparent 0%, var(--dark)),
    linear-gradient(to bottom, rgba(0,0,0,.55), transparent 39%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 24px;
}

.hero-title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-tag {
  font-family: var(--font-head);
  font-size: 12px;
  color: var(--white);
  font-weight: 400;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: .65;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 8px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 100px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

.hero-desc {
  color: var(--white);
  font-size: 18px;
  line-height: 1.6;
  max-width: 520px;
}

/* Hero slider */
.hero-slider-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.hero-slider-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
  transform: rotate(3deg);
}

.hero-slider-track {
  display: flex;
  transition: transform .5s ease;
}

.hero-slide {
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--dark);
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.hero-slide-img:hover { transform: scale(1.05); }

.hero-slide-body {
  padding: 20px;
  background: var(--white);
}

.hero-slide-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  display: block;
  transition: color .3s;
}
.hero-slide-title:hover { color: var(--primary); }

/* Hero arrows */
.hero-slider-arrows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  padding-top: 50px;
}

.hero-arrow {
  border: 1px solid var(--white);
  border-radius: 100px;
  width: 70px;
  height: 70px;
  background: transparent;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.hero-arrow:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   SECTION BASE
   ============================================================ */
.section { padding: 80px 0; }
.section-dark { background: var(--dark); }
.section-dark-notop { background: var(--dark); padding-top: 0; }
.section-dark-nobottom { background: var(--dark); padding-bottom: 0; overflow: hidden; }

.section-heading {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 40px;
}
.section-heading--dark { color: var(--dark); }
.section-heading--center { text-align: center; }

/* ============================================================
   POPULAR TOPICS
   ============================================================ */
.section-topics { padding: 80px 0; background: var(--dark); overflow: hidden; }

.topics-heading-wrap {
  text-align: center;
  margin-bottom: 0;
}

.topics-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  height: auto;
  margin: 40px auto 0;
}

.topic-card {
  width: 100%;
  overflow: hidden;
  transition: transform .35s;
}
.topic-card:hover { transform: scale(1.03); }

.topic-card-link { display: block; }

.topic-card-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.topic-card-title {
  background: var(--white);
  padding: 12px 16px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

/* ============================================================
   ABOUT US
   ============================================================ */
.section-about { padding: 80px 0 80px; background: var(--dark); padding-top: 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.about-small-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #2a2a2a;
}

.about-text-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-h2 {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  text-align: right;
}

.about-desc-right {
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
  margin-top: 16px;
  opacity: .8;
}

.about-text-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.about-desc-left {
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  opacity: .8;
}

.btn-about {
  display: inline-block;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all .3s;
  align-self: flex-start;
}
.btn-about:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.about-big-img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  background: #2a2a2a;
}

/* ============================================================
   TOP PICKS SLIDER
   ============================================================ */
.section-top-picks { position: relative; }

.top-picks-slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.top-picks-track {
  display: flex;
  gap: 30px;
  transition: transform .5s ease;
  will-change: transform;
}

/* 4 látható kártya, 3 × 30px gap → (100% - 90px) / 4 */
.top-picks-slide {
  flex: 0 0 calc((100% - 90px) / 4);
  min-width: 0;
}

.post-block {
  border: 1px solid var(--white-50);
  background: transparent;
  height: 100%;
  min-height: 375px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post-block-img-link { display: block; overflow: hidden; }

.post-block-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
}
.post-block-img-link:hover .post-block-img { transform: scale3d(1.05,1.05,1.05); }

.post-block-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  display: block;
  transition: color .3s;
  margin-top: 4px;
}
.post-block-title:hover { color: var(--primary); }

/* Top Picks arrows */
.top-picks-arrows {
  position: absolute;
  top: 0; right: 0;
  display: flex;
  gap: 12px;
}

.top-picks-arrow {
  border: 1px solid var(--white);
  background: var(--dark);
  border-radius: 100px;
  width: 70px;
  height: 70px;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}
.top-picks-arrow:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================================
   LATEST
   ============================================================ */
.section-latest { }

.latest-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  border-top: 1px solid var(--white-50);
}

.latest-featured {
  width: 50%;
  min-height: 620px;
  position: sticky;
  top: 130px;
  flex-shrink: 0;
}

.featured-card {
  border: 1px solid var(--dark);
  background: var(--white);
  height: 100%;
  color: var(--dark);
}

.featured-img-link { display: block; overflow: hidden; }

.featured-img {
  width: 100%;
  max-height: 270px;
  object-fit: cover;
  transition: transform .3s;
}
.featured-img-link:hover .featured-img { transform: scale(1.05); }

.featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
}

.featured-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  display: block;
  transition: color .3s;
}
.featured-title:hover { color: var(--primary); }

.featured-excerpt {
  font-size: 15px;
  color: var(--paragraph);
  line-height: 1.6;
}

/* Latest list */
.latest-list {
  flex: 1;
  min-width: 0;
  border-bottom: 1px solid var(--dark);
}

.list-item-inner {
  display: flex;
  gap: 20px;
  border-style: none solid solid;
  border-width: 1px;
  border-color: transparent var(--white-50) var(--white-50);
  padding: 30px;
}

.list-img-link { display: block; overflow: hidden; flex-shrink: 0; }

.list-img {
  width: 180px;
  min-width: 140px;
  height: 160px;
  object-fit: cover;
  transition: transform .3s;
}
.list-img-link:hover .list-img { transform: scale(1.05); }

.list-item-data {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.list-item-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  display: block;
  margin-top: 8px;
  transition: color .3s;
}
.list-item-title:hover { color: var(--primary); }

.list-item-excerpt {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  opacity: .7;
}

/* ============================================================
   CAT BADGE (span only — no nested anchors)
   ============================================================ */
.cat-badge {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: all .3s;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  align-self: flex-start; /* ne nyúljon full-widthre flex containerben */
}

.cat-badge-white {
  border-color: var(--white);
  color: var(--white);
}

/* ============================================================
   OUR AUTHORS
   ============================================================ */
.section-authors { }

.authors-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--white-50);
  border-left: 1px solid var(--white-50);
  margin-top: 40px;
}

.author-item {
  display: flex;
  align-items: center;
  gap: 20px;
  border-right: 1px solid var(--white-50);
  border-bottom: 1px solid var(--white-50);
  padding: 30px;
}

.author-img-wrap {
  width: 100px;
  min-width: 100px;
  height: 100px;
  border-radius: 100px;
  overflow: hidden;
  background: #2a2a2a;
  flex-shrink: 0;
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 100px;
  transition: transform .3s;
}
.author-img-wrap:hover .author-img { transform: scale(1.1); }

.author-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  display: block;
  transition: color .3s;
}
.author-name:hover { color: var(--primary); }

.author-role {
  font-size: 13px;
  color: var(--dark-gray);
  margin-top: 4px;
}

/* ============================================================
   RECENT POSTS GRID (instead of Follow Us)
   ============================================================ */
.section-recent { padding-bottom: 0; }

.section-big-text {
  font-family: var(--font-head);
  font-size: 120px;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--white-50);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 32px;
}

.posts-4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 0;
}

.post-4-item {
  background: var(--white);
  border: 1px solid var(--dark);
  padding: 20px;
  position: relative;
}

.post-4-img-link { display: block; overflow: hidden; }

.post-4-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: transform .3s;
}
.post-4-img-link:hover .post-4-img { transform: scale(1.05); }

.post-4-body { padding-top: 16px; }

.post-4-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  display: block;
  transition: color .3s;
  margin-top: 8px;
}
.post-4-title:hover { color: var(--primary); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  padding: 60px 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--white-50);
  margin-bottom: 30px;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
}

.footer-links-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 0;
}

.footer-col h6 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid var(--white);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-link {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-family: var(--font-head);
  font-weight: 400;
  transition: color .3s;
  display: block;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-link:last-child { border-bottom: none; padding-bottom: 0; }
.footer-link:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--white-50);
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-legal-link {
  color: var(--white);
  font-size: 14px;
  font-family: var(--font-head);
  font-weight: 400;
  transition: color .3s;
}
.footer-legal-link:hover { color: var(--primary); }

.footer-copyright {
  color: rgba(255,255,255,.5);
  font-size: 14px;
  text-align: right;
}

/* ============================================================
   ARCHIVE
   ============================================================ */
.archive-hero {
  background: var(--dark);
  padding: 140px 0 60px;
}

.archive-cat-name {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 600;
  color: var(--white);
}

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

.archive-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .3s;
}
.archive-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.12); }

.archive-img-wrap { overflow: hidden; }

.archive-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform .35s;
}
.archive-card:hover .archive-img { transform: scale(1.04); }

.archive-card-data { padding: 20px; }

.archive-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 10px;
}

.archive-card-excerpt {
  font-size: 14px;
  color: var(--paragraph);
  line-height: 1.6;
}

.archive-pagination {
  margin-top: 60px;
  margin-bottom: 60px;
}
.pagination-wrap { display: flex; justify-content: center; }
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--dark);
  transition: all .3s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ============================================================
   SINGLE
   ============================================================ */
.single-hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
  display: flex;
  align-items: flex-end;
}

.single-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, transparent 60%);
}

.single-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 0;
}

.single-hero-content .cat-badge-white {
  margin-bottom: 16px;
}

.single-hero-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  max-width: 800px;
}

.single-nohero-header {
  background: var(--dark);
  padding: 140px 0 40px;
}

.single-nohero-header .cat-badge { margin-bottom: 16px; }

.single-nohero-title {
  font-family: var(--font-head);
  font-size: 42px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  max-width: 800px;
}

.single-content-wrap {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 40px;
}

.entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--paragraph);
}
.entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: var(--font-head);
  color: var(--dark);
  margin: 32px 0 16px;
}
.entry-content p { margin-bottom: 20px; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul, .entry-content ol {
  margin: 16px 0 20px 24px;
  list-style: disc;
}
.entry-content img {
  border-radius: 0;
  margin: 24px 0;
  max-width: 100%;
}
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--paragraph);
}

/* Related posts — Style C: accent bg, 2-col */
.related-posts {
  background: var(--primary);
  padding: 60px 0;
}

.related-posts-heading {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
}

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

.related-card {
  display: block;
  background: rgba(0,0,0,.18);
  overflow: hidden;
  transition: background .3s;
}
.related-card:hover { background: rgba(0,0,0,.32); }

.related-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .35s;
}
.related-card:hover .related-img { transform: scale(1.04); }

.related-data { padding: 20px; }

.related-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* ============================================================
   PAGE
   ============================================================ */
.page-header {
  background: var(--dark);
  padding: 140px 0 60px;
}
.page-title {
  font-family: var(--font-head);
  font-size: 42px;
  color: var(--white);
}
.page-content-wrap {
  max-width: 860px;
  margin: 60px auto;
  padding: 0 40px;
}
.page-content { font-size: 16px; line-height: 1.8; color: var(--paragraph); }
.page-content h2, .page-content h3 {
  font-family: var(--font-head);
  color: var(--dark);
  margin: 28px 0 14px;
}
.page-content p { margin-bottom: 18px; }
.page-content a { color: var(--primary); }

/* ============================================================
   404
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  text-align: center;
  flex-direction: column;
  gap: 24px;
  padding: 60px 40px;
}
.error-404-num {
  font-family: var(--font-head);
  font-size: 160px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 2px var(--white-50);
  line-height: 1;
}
.error-page h1 {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--white);
}
.error-page p { color: var(--dark-gray); font-size: 18px; }
.btn-home {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  padding: 16px 32px;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: opacity .3s;
  border: none;
}
.btn-home:hover { opacity: .85; }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header {
  background: var(--dark);
  padding: 140px 0 60px;
}
.search-title {
  font-family: var(--font-head);
  font-size: 32px;
  color: var(--white);
}
.search-count { color: var(--dark-gray); margin-top: 8px; font-size: 15px; }
.search-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 60px;
}
.search-no-results {
  padding: 60px 0;
  font-size: 18px;
  color: var(--paragraph);
}

/* ============================================================
   GDPR OVERRIDE
   ============================================================ */
#cookie-notice-accept-button,
.cn-button,
.cli-plugin-button,
.moove-gdpr-infobar-allow-btn,
.cli-plugin-main-button,
#wt-cli-accept-btn,
.moove_gdpr_modal_footer_content .mgbutton {
  border-radius: 0 !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-big-img { display: none; }
  .posts-4-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 72px; }
  /* 3 látható kártya, 2 × 30px gap */
  .top-picks-slide { flex: 0 0 calc((100% - 60px) / 3); }
}

@media (max-width: 991px) {
  .primary-nav, .header-search-form { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { grid-template-columns: 1fr; }
  .hero-slider-wrap { display: none; }
  .hero-title { font-size: 56px; }
  .hero-text { flex-direction: column; }
  .hero-tag { writing-mode: horizontal-tb; transform: none; font-size: 15px; letter-spacing: .5px; padding-top: 0; }

  .topics-stage { display: none; }

  .latest-layout { flex-direction: column; }
  .latest-featured { width: 100%; min-height: auto; position: static; }
  .latest-list { max-width: 100%; margin-left: 0; }

  .footer-links-grid { flex-wrap: wrap; gap: 30px; }
  .authors-grid { grid-template-columns: 1fr; }

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

@media (max-width: 767px) {
  .container { padding: 0 20px; }

  .section { padding: 60px 0; }
  .section-dark-notop { padding-top: 0; }

  .hero { height: auto; padding: 120px 0 60px; }
  .hero-title { font-size: 40px; }
  .hero-tag { font-size: 16px; }
  .hero-desc { font-size: 15px; }

  .section-heading { font-size: 28px; }
  .section-big-text { font-size: 60px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-small-img, .about-big-img { display: none; }

  /* 1 teljes kártya + jobb oldali peek */
  .top-picks-slide { flex: 0 0 calc(100% - 40px); }

  .list-img { width: 100%; min-width: unset; height: 300px; }
  .list-item-inner { flex-direction: column; }

  .posts-4-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Egységes mobilkép-magasság minden kártya-típuson */
  .post-block-img,
  .hero-slide-img,
  .featured-img,
  .topic-card-img {
    height: 300px;
  }
  /* post-4-img: aspect-ratio tartja a négyzet formát mobilon is */
  .post-4-img { aspect-ratio: 1 / 1; height: auto; }

  .archive-grid { grid-template-columns: 1fr; }
  .archive-img { height: 300px; }

  .search-grid { grid-template-columns: 1fr; }

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

  .single-hero { height: 320px; }
  .single-hero-title { font-size: 26px; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-copyright { text-align: left; }

  .error-404-num { font-size: 100px; }
}
