/* =========================================================================
 * Pályázati Iroda – a régi témából átvett oldalsablonok stílusai
 * Színek: #00288c (kék), #001964 (sötétkék), #00dcdc (türkiz), #fcaf17 (sárga)
 * ========================================================================= */

/* ---- Szekciócím (h1.title alatti további csoportok) ---- */
.oe-section-title {
  border-bottom: 2px solid #00dcdc;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

/* ---- Elosztó csempék ---- */
.oe-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 40, 140, 0.82) 0%, rgba(0, 25, 100, 0.6) 100%),
    var(--oe-tile-bg) center / cover no-repeat;
  color: #fff;
  text-align: center;
  font-family: "Metropolis", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.oe-tile::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #00dcdc;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.oe-tile:hover,
.oe-tile:focus-visible {
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 25, 100, 0.3);
}
.oe-tile:hover::after,
.oe-tile:focus-visible::after {
  transform: scaleX(1);
}

/* ---- Lebegő logók (ACF: logo_kepe_1/2) ---- */
.oe-floating-logo {
  position: fixed;
  z-index: 1030;
  max-width: 224px;
}
.oe-floating-logo img {
  display: block;
  max-width: 224px;
  height: auto;
}
.oe-floating-logo--jobblent { right: 0; bottom: 0; }
.oe-floating-logo--ballent  { left: 0;  bottom: 0; }
.oe-floating-logo--balfent  { left: 0;  top: 125px; }
.oe-floating-logo--jobbfent { right: 0; top: 125px; }
@media (max-width: 767.98px) {
  .oe-floating-logo,
  .oe-floating-logo img { max-width: 140px; }
}

/* ---- Címlap ---- */
.oe-home-news .pt-cv-title a,
.oe-home-news .pt-cv-content,
.oe-home-news .pt-cv-meta-fields,
.oe-home-news .pt-cv-meta-fields a {
  color: #fff;
}
.oe-home-news .pt-cv-title a:hover {
  color: #00dcdc;
}
.oe-home-news .pt-cv-readmore {
  background: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  border-radius: 999px;
  text-transform: uppercase;
}
.oe-home-news .pt-cv-readmore:hover {
  background: #fff !important;
  color: #00288c !important;
}

.oe-newsletter {
  max-width: 760px;
  margin: 0 auto;
}
.oe-newsletter .asterisk {
  color: #e85c41;
}
.oe-newsletter .mce_inline_error,
.oe-newsletter div.mce_inline_error {
  color: #c00;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}
.oe-newsletter #mce-success-response {
  color: #025302;
}

/* ---- Csapatunk ---- */
.oe-team-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 12px;
  border-top: 4px solid #00dcdc;
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.12);
}

/* ---- Pályázati felhívás ---- */
.oe-felhivas__meta {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f6f6f6;
  border-left: 4px solid #fcaf17;
  border-radius: 0 8px 8px 0;
}
.oe-felhivas__meta dt {
  color: #00288c;
}
.oe-felhivas__meta dd {
  margin-bottom: 0.75rem;
}
.oe-felhivas__meta dd:last-child {
  margin-bottom: 0;
}

/* ---- RRF űrlap ---- */
.oe-rrf .request_class {
  color: #c00;
}
.oe-rrf .white-section {
  padding: 2rem;
  background: #f6f6f6;
  border-radius: 12px;
}

/* ---- Projekt kategóriák (single) ---- */
.post-categories .post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.post-categories .post-categories a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid #00288c;
  border-radius: 999px;
  font-size: 0.875rem;
}

/* ---- Ikonos elosztó csempék a tartalomban (képblokk, CSS osztály: felhivas_eloszto) ----
 * Felhívások, EKÖP oldal. A teljes kártya kattintható (a felirat linkje kifeszítve). */
.wp-block-columns:has(.felhivas_eloszto) {
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.wp-block-column:has(> .felhivas_eloszto) {
  display: flex;
}
.felhivas_eloszto,
.felhivas_eloszto > figure {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
}
/* A "középre igazított" képblokk változatnál (div > figure.aligncenter) a WP core
   táblázatként jeleníti meg a figure-t és a feliratot – ezt felülírjuk */
.felhivas_eloszto > figure {
  display: flex !important;
  flex: 1 0 auto;
}
.felhivas_eloszto {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #00288c 0%, #001964 100%);
  box-shadow: 0 8px 24px rgba(73, 92, 136, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.felhivas_eloszto a:has(> img) {
  display: block;
  overflow: hidden;
}
.felhivas_eloszto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.4s ease;
}
.felhivas_eloszto figcaption {
  position: static;
  bottom: auto;
  flex: 1 0 auto;
  display: flex !important;
  caption-side: initial;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  margin: 0 !important;
  padding: 0.75rem 0.75rem;
  background-color: transparent;
  border-top: 2px solid rgba(0, 220, 220, 0.55);
  box-shadow: none;
  -webkit-box-shadow: none;
  text-align: center;
  text-transform: none;
  font-family: "Metropolis", sans-serif;
  font-size: 0.95rem;
  line-height: 1.25;
  hyphens: manual;
  overflow-wrap: break-word;
  text-wrap: balance;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.felhivas_eloszto figcaption a {
  color: #fff;
  font-weight: 700;
  transition: color 0.25s ease;
}
.felhivas_eloszto figcaption a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.felhivas_eloszto:hover,
.felhivas_eloszto:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 25, 100, 0.32);
}
.felhivas_eloszto:hover img,
.felhivas_eloszto:focus-within img {
  transform: scale(1.06);
}
.felhivas_eloszto:hover figcaption,
.felhivas_eloszto:focus-within figcaption {
  background-color: #fcaf17;
  border-top-color: #fcaf17;
}
.felhivas_eloszto:hover figcaption a,
.felhivas_eloszto:focus-within figcaption a {
  color: #001964;
}
.felhivas_eloszto figcaption a:focus-visible {
  outline: none;
}
.felhivas_eloszto:focus-within {
  outline: 3px solid #00dcdc;
  outline-offset: 3px;
}

/* Kisebb kijelzőn több sorba törnek: tableten 3, mobilon 2 oszlop */
@media (max-width: 991.98px) {
  .wp-block-columns:has(.felhivas_eloszto) {
    flex-wrap: wrap !important;
  }
  .wp-block-columns:has(.felhivas_eloszto) > .wp-block-column {
    flex: 0 0 calc((100% - 3rem) / 3) !important;
  }
}
@media (max-width: 575.98px) {
  .wp-block-columns:has(.felhivas_eloszto) {
    gap: 1rem;
  }
  .wp-block-columns:has(.felhivas_eloszto) > .wp-block-column {
    flex: 0 0 calc((100% - 1rem) / 2) !important;
  }
  .felhivas_eloszto figcaption {
    font-size: 0.85rem;
    min-height: 3.5rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .felhivas_eloszto,
  .felhivas_eloszto img {
    transition: none;
  }
  .felhivas_eloszto:hover,
  .felhivas_eloszto:hover img {
    transform: none;
  }
}

/* ---- Lábléc: közösségi média ikonok ---- */
.oe-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
}
.oe-social a:hover,
.oe-social a:focus-visible {
  color: #00dcdc;
  transform: translateY(-2px);
}
.oe-social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* ---- Tartalmon belüli címsáv (pl. Felhívások / Pályázatindító űrlap) ---- */
.oe-title-strip {
  background: linear-gradient(to right, #00288c 0%, #001964 100%);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  margin: 3rem -6px 24px;
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 700;
  scroll-margin-top: 1rem;
}
@media (min-width: 1200px) {
  .oe-title-strip {
    font-size: 2.5rem;
  }
}
