/* ==========================================================================
   VIZTÉR.HU - Components Stylesheet
   Pixel-aligned with Vizter Design Pack sample components
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOP BAR (component-top-bar.png)
   -------------------------------------------------------------------------- */
.top-bar {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 0.65rem 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}
#wpadminbar + .top-bar {
  margin-top: -32px;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-slogan {
  text-transform: uppercase;
  font-weight: 400;
  color: #f8fafc;
  color: #ffffffc9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-social-link {
  color: #ffffff;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.top-bar-social-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.top-bar-social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.top-bar-social-link[title*="Facebook"] svg,
.top-bar-social-link[aria-label*="Facebook"] svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   2. MAIN HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  background-color: transparent;
  padding: 1.75rem 0 1.5rem 0;
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), padding var(--transition-normal);
}

.site-header.scrolled {
  background-color: #ffffff;
  border-bottom-color: rgba(3, 32, 52, 0.06);
  box-shadow: 0 4px 20px rgba(3, 32, 52, 0.06);
  padding: 1rem 0;
}

body.menu-open .site-header {
  background-color: #ffffff;
  border-bottom-color: rgba(3, 32, 52, 0.06);
  box-shadow: 0 4px 20px rgba(3, 32, 52, 0.06);
}

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

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img, .site-logo svg {
  width: 250px;
  height: auto;
  max-width: 100%;
  transition: width var(--transition-normal);
}

.site-header.scrolled .site-logo img,
.site-header.scrolled .site-logo svg {
  width: 200px;
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  /* font-size: clamp(1rem, 0.2125rem + 1vw, 1.3125rem); */
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: filter var(--transition-fast);
}

.nav-link:hover {
  filter: brightness(2.5);
}

.nav-link::after {
  /* content: ''; */
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
  transform: translateY(0);
}

.nav-divider {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.125rem;
  user-select: none;
  display: inline-flex;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
}

.search-toggle-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* padding: 0.35rem; */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.search-toggle-btn:hover {
  background-color: var(--color-bg-light);
  color: var(--color-accent-blue);
}

.search-toggle-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0.5rem;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-header {
  display: none;
}

.mobile-menu-close {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0.5rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   3. HERO COMPONENT (component-hero.png)
   -------------------------------------------------------------------------- */
.hero-component {
  margin-top: 0;
  margin-bottom: 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr);
  align-items: end;
  min-height: 480px;
  position: relative;
}

.hero-content {
  z-index: 2;
  min-width: 0;
  /* margin-right: -100px; */
}

.hero-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  transition: padding var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}

.hero-badge:hover {
  /* padding: 0.35rem 1.05rem; */
  filter: brightness(1.2);
}

.hero-title-box {
  --title-font-size: clamp(2rem, 4.8vw, 5.8rem);
  margin-bottom: 3.25rem;
  position: relative;
  width: calc(9 * var(--title-font-size));
}
.hero-title-box.short-text {
    width: calc(6.5 * var(--title-font-size));
}
.hero-title-box.long-text {
    --title-font-size: clamp(2rem, 3.7vw, 5.6rem);
    width: calc(11 * var(--title-font-size));
}

.hero-title-wrapper {
  position: relative;
}

.hero-title-layer, .hero-title {
  display: block;
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--title-font-size);
  line-height: 1.125em;
  letter-spacing: 0;
  font-weight: 600;
}

.hero-title-text {
  display: inline;
  padding: 0em 0.25em 0em 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-title-bg {
  position: absolute;
  top: 4%;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  line-height: 1.1em;
}

.hero-title-bg .hero-title-text {
  background-color: var(--color-primary);
  color: transparent !important;
}

.hero-title-fg {
  position: relative;
  z-index: 2;
}

.hero-title,
.hero-title a,
.hero-title-layer a,
.hero-title-fg a,
.hero-title-fg .hero-title-text,
.hero-title a.hero-title-text,
.hero-title-text {
  /* background-color: transparent !important; */
  color: #ffffff !important;
  text-decoration: none !important;
}

.hero-title-fg a:hover,
.hero-title a:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

.hero-title a::after,
.hero-title-text::after,
.hero-title-fg::after,
.hero-title-fg a::after {
  content: none !important;
  display: none !important;
}

.hero-excerpt-box {
  position: relative;
  padding: 0 2.85rem 0 1.75rem;
}

.hero-excerpt-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.2em);
  bottom: 0;
  width: 4px;
  height: calc(100% - 0.4em);
  background-color: var(--color-primary);
  border-radius: 2px;
}

.hero-excerpt {
  font-size: 1.1875rem;
  line-height: 1.4em;
  color: var(--color-text-body);
  margin-bottom: 1.5rem;
  font-weight: 450;
}

.hero-image-wrapper {
  position: relative;
  height: 100%;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  /* box-shadow: var(--shadow-md); */
}

.hero-image-wrapper a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
}

.hero-image-wrapper a::after {
  content: none !important;
  display: none !important;
}

.hero-image {
  width: 100%;
  height: 100%;
  /* max-height: 600px; */
  aspect-ratio: 1000 / 600;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-height: 910px) {
.hero-image {
  aspect-ratio: 1000 / 550;
}
}


/* --------------------------------------------------------------------------
   4. WHAT IS IT BOX (component-what-is-it.png)
   -------------------------------------------------------------------------- */
.what-is-it-box,
.wp-block-group.what-is-it-box,
.wp-block-group.vizter-what-is-it,
.wp-block-group.is-style-what-is-it {
  background-color: var(--color-bg-light);
  border: 3px solid #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 2rem 4.25rem 2rem 5.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin: 3rem 0 3rem 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.what-is-it-box:hover {
  /* transform: translateY(-2px); */
  /* box-shadow: var(--shadow-sm); */
}

.what-is-it-title,
.what-is-it-box .what-is-it-title,
.what-is-it-box h2.what-is-it-title,
.what-is-it-box h3.what-is-it-title {
  font-family: var(--font-family-heading);
  font-size: 3.4375rem; /* 55px */
  font-weight: 850;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: 0.05em;
  line-height: 1.15;
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.what-is-it-title::after,
.what-is-it-box .what-is-it-title::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background-color: #000000;
  margin-left: 1.2rem;
  flex-shrink: 0;
}

.what-is-it-divider {
  display: none !important;
}

.what-is-it-text,
.what-is-it-box .what-is-it-text,
.what-is-it-box p.what-is-it-text {
  font-size: 1.325rem; /* 19px */
  line-height: 1.35;
  color: var(--color-text-body);
  margin: 0 !important;
  padding: 0 !important;
}

.what-is-it-box a,
.what-is-it-text a,
.what-is-it-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary) !important;
  font-weight: 500;
  text-decoration: none !important;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.what-is-it-box a:hover,
.what-is-it-text a:hover,
.what-is-it-link:hover {
  color: var(--color-accent-blue) !important;
  transform: translateX(3px);
}

.what-is-it-box a::after,
.what-is-it-text a::after {
  content: none !important;
  display: none !important;
}

/* --------------------------------------------------------------------------
   4b. DOBOZ 1 (FEHÉR KERETTEL) (.is-style-box-1-bordered)
   -------------------------------------------------------------------------- */
.box-1-bordered,
.wp-block-group.box-1-bordered,
.wp-block-group.is-style-box-1-bordered,
.wp-block-group.vizter-box-1-bordered,
.wp-block-group.is-style-box-1 {
  background-color: var(--color-bg-light);
  border: 1px solid #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto 4rem auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.box-1-bordered:hover,
.wp-block-group.is-style-box-1-bordered:hover,
.wp-block-group.vizter-box-1-bordered:hover,
.wp-block-group.is-style-box-1:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.box-1-bordered h1,
.box-1-bordered h2,
.box-1-bordered h3,
.box-1-bordered h4,
.box-1-bordered h5,
.box-1-bordered h6,
.wp-block-group.is-style-box-1-bordered h1,
.wp-block-group.is-style-box-1-bordered h2,
.wp-block-group.is-style-box-1-bordered h3,
.wp-block-group.is-style-box-1-bordered h4,
.wp-block-group.is-style-box-1-bordered h5,
.wp-block-group.is-style-box-1-bordered h6,
.wp-block-group.vizter-box-1-bordered h1,
.wp-block-group.vizter-box-1-bordered h2,
.wp-block-group.vizter-box-1-bordered h3,
.wp-block-group.vizter-box-1-bordered h4,
.wp-block-group.vizter-box-1-bordered h5,
.wp-block-group.vizter-box-1-bordered h6,
.wp-block-group.is-style-box-1 h1,
.wp-block-group.is-style-box-1 h2,
.wp-block-group.is-style-box-1 h3,
.wp-block-group.is-style-box-1 h4,
.wp-block-group.is-style-box-1 h5,
.wp-block-group.is-style-box-1 h6 {
  margin-top: 0 !important;
}

.box-1-bordered p,
.wp-block-group.is-style-box-1-bordered p,
.wp-block-group.vizter-box-1-bordered p,
.wp-block-group.is-style-box-1 p {
  /* font-size: 1.0625rem; */
  line-height: 1.6;
  color: #2d3748;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4c. DOBOZ 1 BLOCK (FEHÉR KERETTEL, NEM FLEX) (.is-style-box-1-bordered-block)
   -------------------------------------------------------------------------- */
.box-1-bordered-block,
.wp-block-group.box-1-bordered-block,
.wp-block-group.is-style-box-1-bordered-block,
.wp-block-group.vizter-box-1-bordered-block,
.wp-block-group.is-style-box-1-block {
  background-color: var(--color-bg-light);
  border: 1px solid #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 2.5rem;
  display: block;
  margin: 3rem auto 4rem auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.box-1-bordered-block:hover,
.wp-block-group.is-style-box-1-bordered-block:hover,
.wp-block-group.vizter-box-1-bordered-block:hover,
.wp-block-group.is-style-box-1-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.box-1-bordered-block h1,
.box-1-bordered-block h2,
.box-1-bordered-block h3,
.box-1-bordered-block h4,
.box-1-bordered-block h5,
.box-1-bordered-block h6,
.wp-block-group.is-style-box-1-bordered-block h1,
.wp-block-group.is-style-box-1-bordered-block h2,
.wp-block-group.is-style-box-1-bordered-block h3,
.wp-block-group.is-style-box-1-bordered-block h4,
.wp-block-group.is-style-box-1-bordered-block h5,
.wp-block-group.is-style-box-1-bordered-block h6,
.wp-block-group.vizter-box-1-bordered-block h1,
.wp-block-group.vizter-box-1-bordered-block h2,
.wp-block-group.vizter-box-1-bordered-block h3,
.wp-block-group.vizter-box-1-bordered-block h4,
.wp-block-group.vizter-box-1-bordered-block h5,
.wp-block-group.vizter-box-1-bordered-block h6,
.wp-block-group.is-style-box-1-block h1,
.wp-block-group.is-style-box-1-block h2,
.wp-block-group.is-style-box-1-block h3,
.wp-block-group.is-style-box-1-block h4,
.wp-block-group.is-style-box-1-block h5,
.wp-block-group.is-style-box-1-block h6 {
  margin-top: 0 !important;
}

.box-1-bordered-block p,
.wp-block-group.is-style-box-1-bordered-block p,
.wp-block-group.vizter-box-1-bordered-block p,
.wp-block-group.is-style-box-1-block p {
  line-height: 1.6;
  color: #2d3748;
}

/* --------------------------------------------------------------------------
   4c. DOBOZ 1 BLOCK (FEHÉR KERETTEL, NEM FLEX) (.is-style-box-1-bordered-block)
   -------------------------------------------------------------------------- */
.box-1-bordered-block,
.wp-block-group.box-1-bordered-block,
.wp-block-group.is-style-box-1-bordered-block,
.wp-block-group.vizter-box-1-bordered-block,
.wp-block-group.is-style-box-1-block {
  background-color: var(--color-bg-light);
  border: 1px solid #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 1.75rem 2.5rem;
  display: block;
  margin: 3rem auto 4rem auto;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.box-1-bordered-block:hover,
.wp-block-group.is-style-box-1-bordered-block:hover,
.wp-block-group.vizter-box-1-bordered-block:hover,
.wp-block-group.is-style-box-1-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.box-1-bordered-block h1,
.box-1-bordered-block h2,
.box-1-bordered-block h3,
.box-1-bordered-block h4,
.box-1-bordered-block h5,
.box-1-bordered-block h6,
.wp-block-group.is-style-box-1-bordered-block h1,
.wp-block-group.is-style-box-1-bordered-block h2,
.wp-block-group.is-style-box-1-bordered-block h3,
.wp-block-group.is-style-box-1-bordered-block h4,
.wp-block-group.is-style-box-1-bordered-block h5,
.wp-block-group.is-style-box-1-bordered-block h6,
.wp-block-group.vizter-box-1-bordered-block h1,
.wp-block-group.vizter-box-1-bordered-block h2,
.wp-block-group.vizter-box-1-bordered-block h3,
.wp-block-group.vizter-box-1-bordered-block h4,
.wp-block-group.vizter-box-1-bordered-block h5,
.wp-block-group.vizter-box-1-bordered-block h6,
.wp-block-group.is-style-box-1-block h1,
.wp-block-group.is-style-box-1-block h2,
.wp-block-group.is-style-box-1-block h3,
.wp-block-group.is-style-box-1-block h4,
.wp-block-group.is-style-box-1-block h5,
.wp-block-group.is-style-box-1-block h6 {
  margin-top: 0 !important;
}

.box-1-bordered-block p,
.wp-block-group.is-style-box-1-bordered-block p,
.wp-block-group.vizter-box-1-bordered-block p,
.wp-block-group.is-style-box-1-block p {
  line-height: 1.6;
  color: #2d3748;
}

/* --------------------------------------------------------------------------
   5. POST LIST TITLE (component-post-list-title.png)
   -------------------------------------------------------------------------- */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 2.75rem; /* 44px */
  font-weight: 850;
  color: var(--color-primary);
  column-gap: 1rem;
  letter-spacing: 0.02em;
  margin: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.section-title::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.75em;
  background-color: #000000;
  margin-left: 1.2rem;
  flex-shrink: 0;
}

/* Hide divider line only when subtitle is empty or doesn't exist */
.section-title:only-child::after,
.section-header:not(:has(.section-subtitle)) .section-title::after,
.section-header:has(.section-subtitle:empty) .section-title::after,
.section-header:not(:has(.section-subtitle:not(:empty))) .section-title::after {
  display: none !important;
}

.section-divider {
  display: none !important;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-body);
  font-weight: 500;
  margin: 0 !important;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. POST CARD 2 (component-post-list-2-card.png)
   Used in SZEMLÉLET & Category lists
   -------------------------------------------------------------------------- */
.post-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.post-grid-4:has(.post-card-3) {
  gap: 2.25rem;
}

.post-grid-4 > .post-card-3 {
  position: relative;
  overflow: visible;
}

.post-grid-4 > .post-card-3:not(:nth-child(4n + 1))::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(-1.15rem - 0.5px);
  width: 1px;
  background-color: var(--color-border-subtle);
  pointer-events: none;
  transition: transform var(--transition-normal);
}

.post-grid-4 > .post-card-3:hover::before {
  transform: translateY(4px);
}

.post-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.post-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.post-card-2 {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.post-card-2:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.post-card-2-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: visible;
  border-radius: calc(var(--border-radius-lg) - 1px) calc(var(--border-radius-lg) - 1px) 0 0;
}

.post-card-2-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card-2:hover .post-card-2-img-wrap img {
  /* transform: scale(1.04); */
}

.post-category-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 0 var(--border-radius-sm) 0 0;
  z-index: 2;
  display: inline-block;
  transition: padding var(--transition-normal), filter var(--transition-normal), transform var(--transition-normal);
  cursor: pointer;
}

.post-category-badge:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.post-card-3 .post-category-badge:hover{
  transform: scale(1);
  padding: 0.65rem 0.75rem;
}

.post-card-2 .post-category-badge {
  left: 1.4rem;
  bottom: -0.5rem;
  border-radius: var(--border-radius-sm);
}

/* Szemlélet kategória badge elrejtése */
.post-card-2 .post-category-badge.badge-szemlelet,
.post-card-2 .post-category-badge[data-category="szemlelet"],
.post-card-2 .post-category-badge[data-category="Szemlélet"],
.post-category-badge.badge-szemlelet,
.post-category-badge[data-category="szemlelet"],
.post-category-badge[data-category="Szemlélet"],
.hero-badge.badge-szemlelet,
.hero-badge[data-category="szemlelet"],
.hero-badge[data-category="Szemlélet"] {
  display: none !important;
}

/* Category Badge Colors */
.post-category-badge.badge-epitett-kornyezet,
.hero-badge.badge-epitett-kornyezet,
.meta-pill-cat.badge-epitett-kornyezet,
.category-header-title-badge.badge-epitett-kornyezet,
[data-category="epitett-kornyezet"],
[data-category="Épített környezet"] {
  background-color: #1b81c9 !important;
  color: #ffffff !important;
}

.post-category-badge.badge-kultura,
.hero-badge.badge-kultura,
.meta-pill-cat.badge-kultura,
.category-header-title-badge.badge-kultura,
[data-category="kultura"],
[data-category="Kultúra"] {
  background-color: #8593a5 !important;
  color: #ffffff !important;
}

.post-category-badge.badge-varos,
.hero-badge.badge-varos,
.meta-pill-cat.badge-varos,
.category-header-title-badge.badge-varos,
[data-category="varos"],
[data-category="Város"] {
  background-color: #03335b !important;
  color: #ffffff !important;
}

.post-category-badge.badge-taj,
.hero-badge.badge-taj,
.meta-pill-cat.badge-taj,
.category-header-title-badge.badge-taj,
[data-category="taj"],
[data-category="Táj"] {
  background-color: #067a00 !important;
  color: #ffffff !important;
}

.post-category-badge.badge-tudas,
.hero-badge.badge-tudas,
.meta-pill-cat.badge-tudas,
.category-header-title-badge.badge-tudas,
[data-category="tudas"],
[data-category="Tudás"] {
  background-color: #333d43 !important;
  color: #ffffff !important;
}

.post-card-2-body {
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-2-title {
  font-size: 1.6875rem; /* 27px */
  font-weight: 400;
  line-height: 1.3;
  /* color: var(--color-primary); */
  color: var(--color-primary-2) !important;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.post-card-2-title a {
  color: var(--color-primary-2) !important;
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

.post-card-2-title a:hover,
.post-card-2:hover .post-card-2-title a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

.post-card-2 a::after,
.post-card-2-title a::after,
.post-card-2-img-wrap a::after {
  content: none !important;
  display: none !important;
}

.post-card-2 .post-card-2-title {
  /* color: var(--color-accent-blue); */
  width: 80%;
}

.post-card-2-excerpt {
  font-size: 1.125rem; /* 18px */
  /* line-height: 1.55; */
  /* color: var(--color-text-muted); */
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* --------------------------------------------------------------------------
   7. POST CARD 3 (component-post-list-3-card.png)
   Used in LEGFRISSEBB
   -------------------------------------------------------------------------- */
.post-card-3 {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform var(--transition-normal);
}

.post-card-3:hover {
  transform: translateY(-3px);
}

.post-card-3-img-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 1rem;
}

.category-main-col .post-card-3-img-wrap,
.category-layout-grid .post-card-3-img-wrap,
#categoryPostsContainer .post-card-3-img-wrap {
  aspect-ratio: 445 / 377;
}

.post-card-3-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card-3:hover .post-card-3-img-wrap img {
  /* transform: scale(1.04); */
}

.post-card-3-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.post-card-3-title {
  width: 81%;
  font-size: 1.6875rem; /* 27px */
  font-weight: 400;
  line-height: 1.3;
  /* color: var(--color-primary); */
  color: var(--color-primary-2) !important;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.post-card-3-title a {
  color: var(--color-primary-2) !important;
  text-decoration: none !important;
  transition: color var(--transition-fast);
}

.post-card-3-title a:hover,
.post-card-3:hover .post-card-3-title a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

.post-card-3 a::after,
.post-card-3-title a::after,
.post-card-3-img-wrap a::after {
  content: none !important;
  display: none !important;
}
.post-card-3-title.large-title {
  width: 90%;
}

.category-main-col .post-card-3-title,
.category-layout-grid .post-card-3-title,
#categoryPostsContainer .post-card-3-title {
  font-size: 1.6875rem; /* 27px */
  font-weight: 400;
  line-height: 1.3;
}

#relatedPostsGrid .post-card-3-title,
.related-posts .post-card-3-title {
  font-size: 1.6875rem; /* 27px */
  font-weight: 400;
  line-height: 1.3;
}

.post-card-3:hover .post-card-3-title {
  /* color: var(--color-accent-blue); */
}

.post-card-3 .more-link {
  margin-top: auto;
  align-self: flex-start;
}

/* --------------------------------------------------------------------------
   8. MORE LINK ("TOVÁBB →") (component-more-link.png)
   -------------------------------------------------------------------------- */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.more-link:hover {
  color: var(--color-accent-blue);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   9. CATEGORY CONTENT HEADER (component-category-content-header.png)
   -------------------------------------------------------------------------- */
.category-header-banner {
  position: relative;
  /* height: 240px; */
  aspect-ratio: 1400 / 200;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-header-banner img {
  position: absolute;
  /* top: -20%; */
  left: 0;
  width: 100%;
  /* height: 140%; */
  border-radius: inherit;
  object-fit: cover;
  /* will-change: transform; */
  pointer-events: none;
}

.category-header-banner-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(3, 32, 52, 0.35);
}

.category-header-title-badge {
  position: relative;
  z-index: 2;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 2.5rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  margin: 0;
}

.category-header-description {
  display: none;
  max-width: var(--content-width);
  margin: -1.5rem auto 3rem auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

.category-header-description p {
  margin-bottom: 0;
}

/* Category Page Layout Grid (3 equal columns + identical gaps) */
.category-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.category-main-col {
  grid-column: span 2;
}

.category-sidebar {
  grid-column: span 1;
  position: sticky;
  top: 2rem;
  align-self: start;
}

/* --------------------------------------------------------------------------
   10. PAGE CONTENT HEADER (a-viz-nem-tema.png)
   -------------------------------------------------------------------------- */
.page-header-banner {
  --page-header-title-font-size: clamp(2.5rem, 5.1vw, 4.4375rem); /* 71px */
  --page-header-title-line-height: 1.25;
  --page-header-title-height: calc(var(--page-header-title-font-size) * var(--page-header-title-line-height));
  position: relative;
  /* height: 550px; */
  margin-bottom: calc(var(--page-header-title-height) + 2.5rem);
}

.page-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
  /* box-shadow: var(--shadow-md); */
}

.page-header-title-box {
  position: absolute;
  /* 1 title line-height overlap below the image */
  /* bottom: calc(-0.8 * var(--page-header-title-height));  */
  bottom: 0;
  transform: translateY(50%);
  left: max(0px, calc((100% - var(--content-width)) / 2) + 1.5rem);
  max-width: min(var(--content-width), calc(100% - 3rem));
  max-width: 600px;
  z-index: 2;
}

.page-header-title {
  display: inline;
  font-size: var(--page-header-title-font-size);
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-primary);
  margin: 0;
  line-height: var(--page-header-title-line-height);
  letter-spacing: -0.01em;
  padding: 0.1em 0.25em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.page-header-title-text {
  display: inline;
  color: #ffffff;
  background-color: var(--color-primary);
  padding: 0.1em 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.page-header-banner,
.article-header-banner {
  max-height: 60vh;
}

/* --------------------------------------------------------------------------
   11. POST META (component-post-meta.png)
   -------------------------------------------------------------------------- */
.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem; /* 13px */
}

.meta-pill-cat {
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 0.8125rem; /* 13px */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  transition: padding var(--transition-fast), filter var(--transition-fast);
  cursor: pointer;
}

.meta-pill-cat:hover {
  /* padding: 0.4rem 1.05rem; */
  filter: brightness(1.1);
}

.meta-pill {
  background-color: var(--color-border);
  color: var(--color-primary);
  font-size: 0.8125rem; /* 13px */
  font-weight: 400;
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color var(--transition-fast);
}

.meta-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.meta-pill svg:not(.icon-tag) {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.meta-pill svg.icon-tag {
  fill: currentColor;
  stroke: none;
}

.meta-pill a {
  font-size: 0.8125rem; /* 13px */
  font-weight: 400;
}

.meta-pill a:hover {
  color: var(--color-accent-blue);
}

/* Article / Single Post Layout (layout-post.png) */
.article-header-banner {
  width: 100%;
  height: 580px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  margin-bottom: 2.5rem;
  /* box-shadow: var(--shadow-md); */
}

.article-header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-title {
  font-family: var(--font-family-body);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem); /* 60px */
  font-weight: 400;
  line-height: 1.18;
  color: var(--color-primary);
  max-width: 680px;
  margin: 0 0 2rem 0;
  /* text-align: center; */
}

.article-body,
.article-body-content,
.front-page-content {
  font-size: 1.1875rem; /* 19px */
  color: var(--color-text-body);
}

.article-body h2,
.article-body-content h2,
.page-content-wrapper h2,
.page-body-content h2,
.entry-content h2,
.front-page-content h2:not(.what-is-it-title):not(.section-title) {
  margin-top: 2.75rem;
  margin-bottom: 1.25rem;
  font-size: 2.125rem; /* 34px */
  font-weight: 500;
  color: var(--color-primary-2);
}

.article-body h3,
.article-body-content h3,
.page-content-wrapper h3,
.page-body-content h3,
.entry-content h3,
.front-page-content h3:not(.what-is-it-title):not(.post-card-2-title):not(.post-card-3-title) {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--color-primary);
}

.article-body p,
.article-body-content p,
.page-content-wrapper p,
.page-body-content p,
.page-intro-content p,
.front-page-content p:not(.what-is-it-text):not(.post-card-2-excerpt):not(.post-card-3-excerpt):not(.hero-excerpt) {
  font-size: 1.1875rem; /* 19px */
  margin-bottom: 1.5rem;
}

/* Post & Page Content Links with Underline */
.article-body a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text),
.article-body-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text),
.page-content-wrapper a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text),
.page-body-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text),
.page-intro-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text),
.entry-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text),
.wp-block-post-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text) {
  color: var(--color-accent-blue);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: none;
  transition: color var(--transition-fast, 0.2s ease), text-decoration-color var(--transition-fast, 0.2s ease);
}

.article-body a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after,
.article-body-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after,
.page-content-wrapper a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after,
.page-body-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after,
.page-intro-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after,
.entry-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after,
.wp-block-post-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):not(.hero-badge):not(.post-category-badge):not(.hero-title-text)::after {
  content: none !important;
  display: none !important;
}

.article-body a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover,
.article-body-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover,
.page-content-wrapper a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover,
.page-body-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover,
.page-intro-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover,
.entry-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover,
.wp-block-post-content a:not(.wp-block-button__link):not(.share-btn):not(.meta-pill-cat):not(.more-link):hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

/* Global suppression of underline pseudo-element on hero, card, and badge links */
.hero-component a::after,
.post-card-2 a::after,
.post-card-3 a::after,
.post-category-badge::after,
.hero-badge::after {
  content: none !important;
  display: none !important;
}

.article-body .lead-text,
.article-body-content .lead-text,
.front-page-content .lead-text {
  font-size: 1.25rem;
  line-height: 1.7;
}

/* Standard Lists (wp-block-list / ul / ol) - Bullet points aligned with text column */
.article-body ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.article-body-content ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.page-content-wrapper ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.page-body-content ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.page-intro-content ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.entry-content ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.front-page-content ul:not(.highlight-list):not(.nav-links):not(.share-links):not(.post-meta-list),
.wp-block-list:not(.highlight-list):not(.is-style-highlight-list) {
  padding-left: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  list-style-position: outside;
}

.article-body ol:not(.highlight-list):not(.nav-links),
.article-body-content ol:not(.highlight-list):not(.nav-links),
.page-content-wrapper ol:not(.highlight-list):not(.nav-links),
.page-body-content ol:not(.highlight-list):not(.nav-links),
.page-intro-content ol:not(.highlight-list):not(.nav-links),
.entry-content ol:not(.highlight-list):not(.nav-links),
.front-page-content ol:not(.highlight-list):not(.nav-links) {
  padding-left: 1.35rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  list-style-position: outside;
}

.article-body ul:not(.highlight-list) li,
.article-body-content ul:not(.highlight-list) li,
.page-content-wrapper ul:not(.highlight-list) li,
.page-body-content ul:not(.highlight-list) li,
.page-intro-content ul:not(.highlight-list) li,
.entry-content ul:not(.highlight-list) li,
.front-page-content ul:not(.highlight-list) li,
.article-body ol:not(.highlight-list) li,
.article-body-content ol:not(.highlight-list) li,
.page-content-wrapper ol:not(.highlight-list) li,
.page-body-content ol:not(.highlight-list) li,
.page-intro-content ol:not(.highlight-list) li,
.entry-content ol:not(.highlight-list) li,
.front-page-content ol:not(.highlight-list) li,
.wp-block-list:not(.highlight-list):not(.is-style-highlight-list) li {
  margin-bottom: 0.35rem;
}

.article-body .quote-component p:last-child,
.article-body-content .quote-component p:last-child {
  margin-bottom: 0;
}

.article-body img,
.article-body-content img {
  /* border-radius: var(--border-radius-lg); */
  margin: 2.5rem 0;
  /* box-shadow: var(--shadow-md); */
  max-width: 100%;
  height: auto;
}

.related-posts-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.related-posts-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0;
  white-space: nowrap;
}

.related-posts-line {
  flex-grow: 1;
  height: 1px;
  background-color: #cbd5e1;
}


/* --------------------------------------------------------------------------
   12. FRAMED HIGHLIGHT (component-framed-highlight.png)
   "**Víz | Tér | Ember**"
   -------------------------------------------------------------------------- */
.framed-highlight,
.wp-block-group.framed-highlight,
.wp-block-group.vizter-framed-highlight {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-md);
  border-radius: 0;
  padding: 2.25rem 2.5rem;
  margin: 2.5rem auto;
  position: relative;
}

.framed-highlight-inner,
.wp-block-group.framed-highlight > *,
.wp-block-group.vizter-framed-highlight > * {
  border-left: 8px solid var(--color-primary);
  padding-left: 1.5rem;
}

.framed-highlight-title,
.framed-highlight h2,
.framed-highlight h3,
.framed-highlight h4,
.wp-block-group.framed-highlight h2,
.wp-block-group.framed-highlight h3,
.wp-block-group.framed-highlight h4,
.wp-block-group.vizter-framed-highlight h2,
.wp-block-group.vizter-framed-highlight h3,
.wp-block-group.vizter-framed-highlight h4,
.wp-block-group.is-style-framed-highlight h2,
.wp-block-group.is-style-framed-highlight h3,
.wp-block-group.is-style-framed-highlight h4 {
  font-size: 1.625rem; /* 26px */
  font-weight: normal;
  color: var(--color-primary);
  margin-top: 0!important;
  margin-bottom: 0!important;
  padding-bottom: 1em!important;
  letter-spacing: 0.02em;
}

.framed-highlight p,
.wp-block-group.framed-highlight p,
.wp-block-group.vizter-framed-highlight p,
.wp-block-group.is-style-framed-highlight p {
  /* font-size: 1.05rem; */
  color: var(--color-text-body);
  padding-bottom: 1em;
}

.framed-highlight p:last-child,
.framed-highlight-inner p:last-child,
.framed-highlight p:last-of-type,
.framed-highlight-inner p:last-of-type,
.article-body .framed-highlight p:last-child,
.article-body-content .framed-highlight p:last-child,
.page-content-wrapper .framed-highlight p:last-child,
.wp-block-group.framed-highlight p:last-child,
.wp-block-group.vizter-framed-highlight p:last-child,
.wp-block-group.is-style-framed-highlight p:last-child {
  margin-bottom: 0 !important;
  border-bottom: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   13. QUOTE COMPONENT (component-quote.png) & .wp-block-quote
   -------------------------------------------------------------------------- */
.quote-component,
blockquote.wp-block-quote,
.wp-block-quote,
.article-body blockquote,
.article-body-content blockquote,
.page-content-wrapper blockquote {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2.5rem 2.25rem 12.5rem;
  min-height: 150px;
  position: relative;
  margin: 2.5rem auto;
  border: none !important;
  border-left: none !important;
  font-size: 1.75rem; /* 28px */
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Big Quotation Mark Icon via pseudo-element for standard blockquote / .wp-block-quote */
blockquote.wp-block-quote::before,
.wp-block-quote::before,
.article-body blockquote::before,
.article-body-content blockquote::before,
.page-content-wrapper blockquote::before {
  content: "“";
  position: absolute;
  top: 3.5rem;
  left: 2.5rem;
  font-size: 22rem; /* 352px */
  line-height: 0.7;
  height: 4rem;
  color: #cbd5e1;
  font-family: Georgia, serif;
  user-select: none;
  pointer-events: none;
}

/* Flex layout when .quote-icon is present or for .quote-component */
.quote-component {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  min-height: 170px;
}

.quote-component::before,
.quote-component.wp-block-quote::before,
blockquote.wp-block-quote:has(.quote-icon)::before,
.wp-block-quote:has(.quote-icon)::before {
  display: none !important;
  content: none !important;
}

blockquote.wp-block-quote:has(.quote-icon),
.wp-block-quote:has(.quote-icon) {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.25rem 2.5rem;
  min-height: 170px;
}

.quote-icon {
  font-size: 22rem; /* 352px */
  line-height: 0.7;
  height: 4rem;
  color: #cbd5e1;
  font-family: Georgia, serif;
  user-select: none;
  flex-shrink: 0;
}

.quote-text,
.quote-component p,
blockquote.wp-block-quote p,
.wp-block-quote p,
.article-body blockquote p,
.article-body-content blockquote p,
.page-content-wrapper blockquote p {
  font-size: 1.75rem !important; /* 28px */
  font-style: normal !important;
  line-height: 1.5 !important;
  color: var(--color-primary) !important;
  margin: 0 0 1rem 0;
}

.quote-component p:last-child,
blockquote.wp-block-quote p:last-child,
.wp-block-quote p:last-child,
.article-body .quote-component p:last-child,
.article-body blockquote p:last-child,
.article-body .wp-block-quote p:last-child,
.article-body-content .quote-component p:last-child,
.article-body-content blockquote p:last-child,
.article-body-content .wp-block-quote p:last-child,
.page-content-wrapper .quote-component p:last-child,
.page-content-wrapper blockquote p:last-child,
.page-content-wrapper .wp-block-quote p:last-child {
  margin-bottom: 0 !important;
}

blockquote.wp-block-quote cite,
.wp-block-quote cite,
.wp-block-quote__citation,
.quote-component cite {
  display: block;
  font-size: 1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

blockquote.wp-block-quote cite::before,
.wp-block-quote cite::before,
.wp-block-quote__citation::before,
.quote-component cite::before {
  content: "— ";
}

/* --------------------------------------------------------------------------
   14. SHARE COMPONENT (component-share.png)
   -------------------------------------------------------------------------- */
.share-component {
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 2.5rem 0 1.5rem 0;
}

.share-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.share-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-btn {
  color: #ffffff;
  opacity: 0.65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.share-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-btn.share-fb svg,
.share-btn[title*="Facebook"] svg,
.share-btn[aria-label*="Facebook"] svg {
  width: 20px;
  height: 20px;
}

.share-btn.share-copy,
.share-copy {
  display: none !important;
}

/* --------------------------------------------------------------------------
   15. AUTHOR COMPONENT (component-author.png)
   -------------------------------------------------------------------------- */
.author-component {
  background-color: var(--color-bg-light);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1.5rem 0 3rem 0;
}

.author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.author-avatar svg, .author-avatar img {
  width: 98px;
  height: auto;
  border-radius: 50%;
  object-fit: contain;
}

.author-content {
  flex-grow: 1;
  font-size: 1.25rem; /* 20px */
}

.author-title {
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.author-desc {
  font-size: 1.25rem; /* 20px */
  color: var(--color-text-body);
  margin: 0;
}

/* --------------------------------------------------------------------------
   16. INVERSE TEXT BOX (component-inverse-text-boxr.png)
   -------------------------------------------------------------------------- */
.inverse-text-box {
  background-color: var(--color-primary-2);
  color: #ffffff;
  border-radius: var(--border-radius-lg);
  padding: 2rem 2.75rem;
  margin-bottom: 2rem;
  /* box-shadow: var(--shadow-md); */
}

.category-sidebar .inverse-text-box {
  aspect-ratio: 445 / 377;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inverse-text-title {
  font-size: inherit;
  font-weight: 700;
  color: #ffffff;
  display: inline;
}

.inverse-text-body {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   17. SEARCH BOX WIDGET (component-search-box.png)
   -------------------------------------------------------------------------- */
.search-widget {
  background-color: var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

.search-widget-title {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.search-widget-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-widget-input {
  flex: 1;
  min-width: 0;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: var(--color-text-body);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-widget-input:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(22, 107, 162, 0.15);
}

.search-widget-btn {
  position: static;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.25rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.search-widget-btn:hover {
  color: var(--color-accent-blue);
  transform: scale(1.1);
}

.search-widget-btn svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  stroke: none;
}

/* --------------------------------------------------------------------------
   18. TAGS BOX WIDGET (component-tags.png)
   -------------------------------------------------------------------------- */
.tags-widget {
  background-color: transparent;
  margin-bottom: 2rem;
}

.tags-widget-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tags-widget-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary);
}

.tags-widget-line {
  flex-grow: 1;
  height: 1px;
  background-color: #a8abbe;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag-badge {
  background-color: var(--color-border);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.tag-badge:hover, .tag-badge.active {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   19. PAGER / PAGINATION COMPONENT (component-pager.png)
   -------------------------------------------------------------------------- */
.pager-component,
.pagination,
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3.5rem 0 2rem 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-primary);
}

.pagination .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.pagination .nav-links,
.pager-component {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.pagination .page-numbers,
.pager-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 500;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0.1rem 0.25rem;
}

.pagination .page-numbers.current,
.pager-item.active {
  font-weight: 700;
  color: var(--color-primary);
}

.pagination a.page-numbers:hover,
.pager-item:not(.active):not(.pager-dots):hover {
  color: var(--color-accent-blue);
}

.pagination .page-numbers.dots,
.pager-dots {
  color: #94a3b8;
  letter-spacing: 0.1em;
}

/* Pipe divider between items in WP pagination */
.pagination .nav-links > *:not(:last-child)::after {
  content: '|';
  margin-left: 0.85rem;
  color: #cbd5e1;
  font-weight: 300;
  pointer-events: none;
  display: inline-block;
}

.pager-divider {
  color: #cbd5e1;
  font-weight: 300;
  user-select: none;
}

/* --------------------------------------------------------------------------
   20. PRE-FOOTER OVERLAP BANNER (viz-ter-ember.png)
   -------------------------------------------------------------------------- */
.pre-footer-wrapper {
  position: relative;
  z-index: 10;
  margin-bottom: clamp(-100px, -6.7vw, -45px);
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.pre-footer-badge {
  background: transparent;
  width: 100%;
  max-width: clamp(280px, 40vw, 580px);
  transition: transform var(--transition-normal);
}

.pre-footer-badge:hover {
  /* transform: scale(1.03); */
}

.pre-footer-badge img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   21. SITE FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  --max-width: 66%;
  background-color: var(--color-primary);
  color: #e1eaef;
  padding-top: 5rem;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  
  gap: 2rem;
  margin-bottom: 3.5rem;
}


.footer-col-title {
  /* font-size: 1.15rem; */
  font-weight: 500;
  width: fit-content;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
  margin-left: 0;
  margin-right: auto;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid #ffffff23;
}

/* .footer-divider {
  width: 35px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
} */

.footer-nav-list {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.footer-nav-link {
  color: #cbd5e1;
  font-size: 1.1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-nav-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 1rem;
}

.footer-logo-col img, .footer-logo-col svg {
  width: 270px;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-categories-col {
  text-align: right;
}

.footer-categories-col .footer-divider {
  margin-left: auto;
}

.footer-categories-col .footer-nav-link:hover {
  transform: translateX(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  text-align: center;
  background-color: #031b2c;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   22. SEARCH MODAL OVERLAY
   -------------------------------------------------------------------------- */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 32, 52, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.search-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal-content {
  background-color: #ffffff;
  border-radius: var(--border-radius-xl);
  width: 90%;
  max-width: 680px;
  padding: 2rem 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(3, 32, 52, 0.35);
  position: relative;
  opacity: 0;
  transform: translateY(-30px) scale(0.97);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal.active .search-modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.search-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.search-modal-close:hover {
  color: var(--color-primary);
}

.search-modal-input-wrap {
  position: relative;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.search-modal-input {
  width: 100%;
  border: 2px solid var(--color-border);
  border-radius: 50px;
  padding: 0.9rem 3rem 0.9rem 1.5rem;
  font-family: var(--font-family);
  font-size: 1.15rem;
  color: var(--color-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-modal-input:focus {
  border-color: var(--color-accent-blue);
}

.search-results-list {
  max-height: 50vh;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-result-item {
  padding: 0.85rem 1.25rem;
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg-light);
  transition: background-color var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-result-item:hover {
  background-color: #e2e8f0;
}

.search-result-title {
  font-weight: 500;
  color: var(--color-primary);
}

.search-result-cat {
  font-size: 0.75rem;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   23. ACCORDION (GYIK / FAQ)
   -------------------------------------------------------------------------- */
.accordion-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.accordion-item {
  border: none;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background-color: #ffffff;
  transition: box-shadow var(--transition-normal);
  scroll-margin-top: 100px;
}

.accordion-item.active {
  border: none;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background-color: #ffffff;
  transition: background-color var(--transition-normal);
}

.accordion-header:hover {
  background-color: var(--color-bg-light);
}

.accordion-item.active .accordion-header {
  background-color: var(--color-primary);
}

.accordion-title,
.accordion-header .accordion-title,
.page-content-wrapper .accordion-title,
.article-body .accordion-title,
.entry-content .accordion-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-primary);
  margin: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  transition: color var(--transition-normal);
}

.accordion-item.active .accordion-title {
  color: #ffffff !important;
}

.accordion-icon {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-primary);
  transition: transform var(--transition-normal), color var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  color: #ffffff;
  transform: rotate(45deg);
}

.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-body);
  transition: grid-template-rows var(--transition-normal);
}

.accordion-body > *,
.accordion-body .accordion-body-inner {
  min-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  opacity: 0;
  transition: padding var(--transition-normal), opacity 0.2s ease;
}

.accordion-body p {
  margin-bottom: 1rem;
}

.accordion-body p:last-child {
  margin-bottom: 0 !important;
}

.accordion-item.active .accordion-body {
  grid-template-rows: 1fr;
}

.accordion-item.active .accordion-body > *,
.accordion-item.active .accordion-body .accordion-body-inner {
  padding: 1.5rem;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   24. HIGHLIGHT LIST
   -------------------------------------------------------------------------- */
.highlight-list {
  list-style: none;
  margin: 2.25rem auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.5rem 2.25rem;
  background: #f1f2f7;
  /* border: 1px solid #e2e8f0; */
  /* border-left: 4px solid var(--color-accent-blue); */
  border-radius: var(--border-radius-md);
  /* box-shadow: 0 4px 16px -2px rgba(8, 32, 51, 0.04); */
}

.highlight-list li {
position: relative;
    padding: 0.7rem 0 0.7rem 2.05rem;
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--color-text-body);
    border-bottom: 1px solid #0320343d;
}

.highlight-list li:first-child {
  padding-top: 0.5rem;
}

.highlight-list li:last-child {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.highlight-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url('../assets/icons/vizter-point.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.highlight-list li:first-child::before {
  top: 0.75rem;
}

.highlight-list li strong {
  color: var(--color-primary);
  font-weight: 600;
}
