.vfp,
.vfp-hero,
.vfs,
.vfc {
  --vf-navy: #122544;
  --vf-ink: #0e1b3e;
  --vf-blue: #154b9b;
  --vf-blue-light: #2d71d5;
  --vf-accent: #a2c2e6;
  --vf-muted: #5b6c82;
  --vf-line: #e2e8f2;
  --vf-bg-alt: #f4f7fb;
  --vf-ease: cubic-bezier(.22, .68, .36, 1);
}

.vfp *,
.vfp-hero *,
.vfs *,
.vfc *,
.vfs *::before,
.vfc *::before { box-sizing: border-box; }
.vfp-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--vf-navy);
}

.vfp-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vfp-hero__overlay {
  position: relative;
  padding: 3rem 0 2.5rem;
  background: linear-gradient(100deg, rgba(18, 37, 68, .93) 0%, rgba(18, 37, 68, .8) 45%, rgba(18, 37, 68, .5) 100%);
}

.vfp-hero--plain .vfp-hero__overlay {
  padding: 2.5rem 0 2rem;
  background: none;
}

@media (min-width: 768px) {
  .vfp-hero__overlay { padding: 5rem 0 4rem; }
  .vfp-hero--plain .vfp-hero__overlay { padding: 3.5rem 0 3rem; }
}

.vfp-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.125rem;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .7);
}

.vfp-hero__breadcrumb a {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  transition: color .2s var(--vf-ease);
}

.vfp-hero__breadcrumb a:hover { color: #fff; }

.vfp-hero__title {
  max-width: 22ch;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
  font-family:'Montserrat',sans-serif;
}

.vfp-hero__rule {
  width: 72px;
  height: 3px;
  margin-top: 1.25rem;
  background-color: var(--vf-accent);
}

/* --- hír fejléc: dátum és bevezető (blog.php, blog-list.php) -------------- */

.vfp-hero__meta {
  margin: 0 0 .6rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vf-accent);
}

.vfp-hero__lead {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6;
}

/* --- hírek listája (blog-list.php) --------------------------------------- */

.vfn-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .vfn-list { grid-template-columns: repeat(2, 1fr); }
}

.vfn-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--vf-line);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(18, 37, 68, .06);
  transition: transform .3s var(--vf-ease), box-shadow .3s var(--vf-ease),
              border-color .3s var(--vf-ease);
}

.vfn-card:hover,
.vfn-card:focus-within {
  transform: translateY(-3px);
  border-color: #d3ddec;
  box-shadow: 0 12px 28px rgba(18, 37, 68, .12);
}

.vfn-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #eef2f7;
}

.vfn-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .7s var(--vf-ease);
}

.vfn-card:hover .vfn-card__media img,
.vfn-card:focus-within .vfn-card__media img { transform: scale(1.06); }

.vfn-card__body { padding: 1.125rem 1.25rem 1.375rem; }

.vfn-card__date {
  margin: 0 0 .4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--vf-muted);
}

.vfn-card__title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--vf-navy);
}

.vfn-card__title a {
  color: inherit;
  text-decoration: none;
}

.vfn-card__title a:hover { color: var(--vf-blue); }

.vfn-card__lead {
  margin: .5rem 0 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--vf-muted);
}

.vfn-empty {
  margin: 2.5rem 0 0;
  padding: 2rem 1rem;
  text-align: center;
  font-size: .9375rem;
  color: var(--vf-muted);
  background-color: #f4f7fb;
  border: 1px dashed var(--vf-line);
  border-radius: 12px;
}

.vfn-pager {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 2rem;
}

.vfn-pager__link {
  min-width: 40px;
  padding: .5rem .75rem;
  text-align: center;
  font-size: .875rem;
  font-weight: 500;
  color: var(--vf-navy);
  text-decoration: none;
  background-color: #fff;
  border: 1px solid var(--vf-line);
  border-radius: 8px;
  transition: background-color .2s var(--vf-ease), color .2s var(--vf-ease),
              border-color .2s var(--vf-ease);
}

.vfn-pager__link:hover {
  color: #fff;
  background-color: var(--vf-navy);
  border-color: var(--vf-navy);
}

.vfn-pager__link.is-current {
  color: #fff;
  background-color: var(--vf-blue);
  border-color: var(--vf-blue);
}

/* --- vissza a hírekhez (blog.php) ---------------------------------------- */

.vfp-back { margin: 2.5rem 0 0; }

.vfp-back a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--vf-blue);
  text-decoration: none;
  transition: color .2s var(--vf-ease), gap .2s var(--vf-ease);
}

.vfp-back a:hover {
  color: var(--vf-blue-light);
  gap: .75rem;
}

.vfp-back svg {
  width: 18px;
  height: 18px;
}
.vfp { padding: 0 0 3.5rem; }

.vfp__inner {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .vfp__inner { padding: 0 2rem; }
}
.vfs {
  position: relative;
  padding: 2.25rem 0 .5rem;
}

@media (min-width: 768px) {
  .vfs { padding: 2.75rem 0 .5rem; }
}

.vfs__label {
  margin: 0 0 .875rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vf-muted);
}
.vfs__list {
  display: flex;
  gap: .625rem;
  margin: 0;
  padding: 0 0 .5rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.vfs__list::-webkit-scrollbar { display: none; }

@media (max-width: 767px) {
  .vfs__list {
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 768px) {
  .vfs__list {
    flex-wrap: wrap;
    overflow: visible;
    gap: .75rem;
  }
}

.vfs__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  max-width: 88vw;
}

@media (min-width: 768px) {
  .vfs__item { max-width: none; }
}

.vfs__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: .625rem;
  height: 100%;
  padding: .8rem 1.3rem;
  overflow: hidden;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--vf-navy);
  text-decoration: none;
  background-color: #fff;
  border: 1px solid var(--vf-line);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(18, 37, 68, .06);
  transition: color .3s var(--vf-ease), border-color .3s var(--vf-ease),
              box-shadow .3s var(--vf-ease), transform .3s var(--vf-ease);
}

.vfs__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--vf-navy) 0%, var(--vf-blue) 100%);
  transform: translateX(-101%);
  transition: transform .45s var(--vf-ease);
  z-index: 0;
}

.vfs__link > * { position: relative; z-index: 1; }

.vfs__arrow {
  width: 14px;
  height: 14px;
  margin-left: .15rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s var(--vf-ease), transform .3s var(--vf-ease);
}

.vfs__link:hover,
.vfs__link:focus-visible {
  color: #fff;
  border-color: transparent;
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 37, 68, .22);
}

.vfs__link:hover::before,
.vfs__link:focus-visible::before { transform: translateX(0); }

.vfs__link:hover .vfs__arrow,
.vfs__link:focus-visible .vfs__arrow {
  opacity: 1;
  transform: translateX(0);
}

.vfs__item.is-active .vfs__link {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(18, 37, 68, .2);
}

.vfs__item.is-active .vfs__link::before { transform: translateX(0); }

.vfs__item.is-active .vfs__arrow { opacity: 0; }

/* --- kártyás almenü: ikon a felirat felett ------------------------------- */

.vfs--cards .vfs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  overflow: visible;
}

@media (min-width: 640px) {
  .vfs--cards .vfs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

.vfs--cards .vfs__item { max-width: none; }

.vfs--cards .vfs__link {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .625rem;
  min-height: 100%;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  border-radius: 12px;
}

.vfs__icon {
  width: 52px;
  height: 52px;
  color: var(--vf-blue);
  transition: color .3s var(--vf-ease), transform .45s var(--vf-ease), opacity .3s var(--vf-ease);
}

/* feltöltött képikon az assets/menu-ikon/ mappából (PNG, SVG vagy WEBP).
   A képet nem tudjuk a szöveg színére váltani, ezért hoveren halványodik. */
.vfs__icon--img {
  display: block;
  object-fit: contain;
  object-position: center;
}

.vfs--cards .vfs__text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .vfs__icon { width: 60px; height: 60px; }
  .vfs--cards .vfs__text { font-size: 1.0625rem; }
  .vfs--cards .vfs__link { padding: 1.75rem 1.25rem 1.5rem; }
}

.vfs--cards .vfs__link:hover .vfs__icon,
.vfs--cards .vfs__link:focus-visible .vfs__icon {
  color: var(--vf-accent);
  transform: translateY(-3px) scale(1.04);
}

.vfs--cards .vfs__link:hover .vfs__icon--img,
.vfs--cards .vfs__link:focus-visible .vfs__icon--img,
.vfs--cards .vfs__item.is-active .vfs__icon--img { opacity: .7; }

.vfs--cards .vfs__item.is-active .vfs__icon { color: var(--vf-accent); }

.vfp .post { padding-top: 2.5rem; }

/* almenü után kisebb térköz, mert az már ad levegőt */
.vfp .vfs + .post { padding-top: 1.5rem; }

@media (min-width: 768px) {
  .vfp .post { padding-top: 3rem; }
  .vfp .vfs + .post { padding-top: 1.75rem; }
}

.vfc {
  color: var(--vf-ink);
  font-size: 1rem;
  line-height: 1.75;
}

.vfc > *:first-child { margin-top: 0; }
.vfc > *:last-child { margin-bottom: 0; }

.vfc p {
  margin: 0 0 1.15rem;
  color: #33445e;
}

.vfc strong { font-weight: 600; color: var(--vf-ink); }

.vfc a { color: var(--vf-blue); text-decoration: underline; text-underline-offset: 2px; }
.vfc a:hover { color: var(--vf-blue-light); }

.vfc-h2 {
  position: relative;
  margin: 2.75rem 0 1rem;
  padding-top: 1.5rem;
  font-size: clamp(1.375rem, 1.15rem + .8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--vf-navy);
  border-top: 1px solid var(--vf-line);
}

.vfc-h2::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 3px;
  background-color: var(--vf-accent);
}

.vfc > .vfc-h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.vfc > .vfc-h2:first-child::before { display: none; }

.vfc-h3 {
  margin: 2rem 0 .75rem;
  font-size: clamp(1.0625rem, .95rem + .4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--vf-blue);
}

.vfc-lead {
  margin: 0 0 1.5rem;
  padding-left: 1.125rem;
  font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.55;
  color: var(--vf-navy);
  border-left: 3px solid var(--vf-accent);
}

.vfc-list,
.vfc-checks {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.vfc-list li,
.vfc-checks li {
  position: relative;
  margin-bottom: .5rem;
  padding-left: 1.75rem;
  color: #33445e;
}

.vfc-list li::before {
  content: "";
  position: absolute;
  top: .65em;
  left: .35rem;
  width: 6px;
  height: 6px;
  background-color: var(--vf-blue-light);
  border-radius: 50%;
}

.vfc-checks li::before {
  content: "";
  position: absolute;
  top: .42em;
  left: 0;
  width: 15px;
  height: 9px;
  border-left: 2.5px solid #1a7f4b;
  border-bottom: 2.5px solid #1a7f4b;
  transform: rotate(-45deg);
}

.vfc-checks li { font-weight: 500; color: var(--vf-ink); }

.vfc-cta {
  margin: 1.75rem 0;
  padding: 1.125rem 1.25rem 1.125rem 1.5rem;
  background-color: var(--vf-bg-alt);
  border: 1px solid var(--vf-line);
  border-left: 4px solid var(--vf-blue-light);
  border-radius: 8px;
}

.vfc-cta p { margin: 0; font-weight: 500; color: var(--vf-navy); }

.vfc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
  margin: 1.5rem 0 1.75rem;
}

.vfc a.vfc-btn,
.vfc-btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  font-size: .875rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  background-color: var(--vf-navy);
  border: 1px solid var(--vf-navy);
  border-radius: 8px;
  transition: background-color .25s var(--vf-ease), transform .25s var(--vf-ease),
              box-shadow .25s var(--vf-ease);
}

.vfc-btn:hover {
  color: #fff;
  background-color: var(--vf-blue);
  border-color: var(--vf-blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(18, 37, 68, .2);
}

.vfc a.vfc-btn + a.vfc-btn,
.vfc-btn + .vfc-btn {
  color: var(--vf-navy);
  background-color: #fff;
  border-color: var(--vf-line);
}

.vfc a.vfc-btn + a.vfc-btn:hover,
.vfc-btn + .vfc-btn:hover {
  color: #fff;
  background-color: var(--vf-navy);
  border-color: var(--vf-navy);
}

.vfc-person {
  display: inline-block;
  vertical-align: top;
  min-width: 240px;
  margin: 1rem 1rem 1rem 0;
  padding: 1.125rem 1.375rem;
  background-color: #fff;
  border: 1px solid var(--vf-line);
  border-top: 3px solid var(--vf-navy);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(18, 37, 68, .07);
}

.vfc-person__label {
  margin: 0 0 .5rem !important;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vf-muted);
}

.vfc-person__name {
  margin: 0 !important;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--vf-navy) !important;
}

.vfc-person__role {
  margin: .1rem 0 .4rem !important;
  font-size: .8125rem;
  color: var(--vf-muted) !important;
}

.vfc-person__mail { margin: 0 !important; font-size: .875rem; }

@media (prefers-reduced-motion: reduce) {
  .vfs__link,
  .vfs__link::before,
  .vfs__arrow,
  .vfc-btn { transition-duration: .01ms; }
  .vfs__link:hover,
  .vfc-btn:hover { transform: none; }
}

/* --- oldalon belüli ugrópontok (pl. Sertés aloldal) ---------------------- */

.vfc-actions--anchors { margin-top: 0; }

/* --- Kapcsolat oldal: központ kiemelt doboz ------------------------------ */

.vfc-head {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.5rem 1.375rem;
  background-color: var(--vf-bg-alt);
  border: 1px solid var(--vf-line);
  border-left: 4px solid var(--vf-blue-light);
  border-radius: 10px;
}

.vfc-head__label {
  margin: 0 0 .5rem !important;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vf-muted) !important;
}

.vfc-head__addr {
  margin: 0 0 .5rem !important;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--vf-navy) !important;
}

.vfc-head__line { margin: 0 0 .2rem !important; font-size: .9375rem; }

/* --- Kapcsolat oldal: osztálykártyák ------------------------------------- */

.vfc-contact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.vfc-contact__card {
  padding: 1.125rem 1.25rem 1.25rem;
  background-color: #fff;
  border: 1px solid var(--vf-line);
  border-top: 3px solid var(--vf-navy);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(18, 37, 68, .07);
  transition: box-shadow .3s var(--vf-ease), transform .3s var(--vf-ease);
}

.vfc-contact__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(18, 37, 68, .14);
}

/* a horgonnyal megnyitott kártya kiemelése */
.vfc-contact__card:target {
  border-color: var(--vf-blue-light);
  border-top-color: var(--vf-blue-light);
  box-shadow: 0 0 0 3px rgba(45, 113, 213, .18);
  scroll-margin-top: 100px;
}

.vfc-contact__dept {
  margin: 0 0 .875rem !important;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--vf-muted) !important;
}

.vfc-contact__person + .vfc-contact__person {
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--vf-line);
}

.vfc-contact__name {
  margin: 0 !important;
  font-size: 1rem;
  font-weight: 600;
  color: var(--vf-navy) !important;
}

.vfc-contact__role {
  margin: .1rem 0 .35rem !important;
  font-size: .8125rem;
  line-height: 1.45;
  color: var(--vf-muted) !important;
}

.vfc-contact__line { margin: 0 !important; font-size: .875rem; line-height: 1.55; }

.vfc-contact__note {
  margin: .75rem 0 0 !important;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--vf-muted) !important;
}

@media (prefers-reduced-motion: reduce) {
  .vfc-contact__card,
  .vfs__icon { transition-duration: .01ms; }
  .vfc-contact__card:hover { transform: none; }
}
