/* =========================
   Display & layout
   ========================= */

.d-block      { display: block; }
.d-inline     { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex       { display: flex; }
.d-inline-flex{ display: inline-flex; }
.d-grid       { display: grid; }

.flex-row     { flex-direction: row; }
.flex-column  { flex-direction: column; }

.flex-wrap    { flex-wrap: wrap; }
.flex-nowrap  { flex-wrap: nowrap; }

.justify-start  { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end    { justify-content: flex-end; }
.justify-between{ justify-content: space-between; }

.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }

/* =========================
   Spacing (margin / padding)
   ========================= */

.m-0   { margin: 0 !important; }
.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.ms-0  { margin-left: 0 !important; }
.me-0  { margin-right: 0 !important; }

.m-xs  { margin: 0.25rem !important; }
.m-sm  { margin: 0.5rem !important; }
.m-md  { margin: 1rem !important; }
.m-lg  { margin: 1.5rem !important; }
.m-xl  { margin: 2rem !important; }

.mt-xs  { margin-top: 0.25rem !important; }
.mt-sm  { margin-top: 0.5rem !important; }
.mt-md  { margin-top: 1rem !important; }
.mt-lg  { margin-top: 1.5rem !important; }
.mt-xl  { margin-top: 2rem !important; }

.mb-xs  { margin-bottom: 0.25rem !important; }
.mb-sm  { margin-bottom: 0.5rem !important; }
.mb-md  { margin-bottom: 1rem !important; }
.mb-lg  { margin-bottom: 1.5rem !important; }
.mb-xl  { margin-bottom: 2rem !important; }

.ms-xs  { margin-left: 0.25rem !important; }
.ms-sm  { margin-left: 0.5rem !important; }
.ms-md  { margin-left: 1rem !important; }
.ms-lg  { margin-left: 1.5rem !important; }
.ms-xl  { margin-left: 2rem !important; }

.me-xs  { margin-right: 0.25rem !important; }
.me-sm  { margin-right: 0.5rem !important; }
.me-md  { margin-right: 1rem !important; }
.me-lg  { margin-right: 1.5rem !important; }
.me-xl  { margin-right: 2rem !important; }

.vertical-m-3vh { margin-top: 3vh !important; margin-bottom: 3vh !important; }
.vertical-m-5vh { margin-top: 5vh !important; margin-bottom: 5vh !important; }
.vertical-m-10vh { margin-top: 10vh !important; margin-bottom: 10vh !important; }

.p-0   { padding: 0 !important; }
.p-xs  { padding: 0.25rem !important; }
.p-sm  { padding: 0.5rem !important; }
.p-md  { padding: 1rem !important; }
.p-lg  { padding: 1.5rem !important; }
.p-xl  { padding: 2rem !important; }



/* =========================
   Width / height
   ========================= */

.w-100 { width: 100%; }
.w-90  { width: 90%; }
.w-75  { width: 75%; }
.w-50  { width: 50%; }
.w-33  { width: 33.333%; }
.w-25  { width: 25%; }
.w-15  { width: 15%; }
.w-10  { width: 10%; }

.h-100 { height: 100%; }
.h-auto{ height: auto; }

/* =========================
   Overflow
   ========================= */

.overflow-hidden { overflow: hidden; }
.overflow-visible{ overflow: visible; }
.overflow-auto   { overflow: auto; }

.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-clip   { overflow-x: clip; }
.overflow-y-auto   { overflow-y: auto; }
.overflow-y-hidden { overflow-y: hidden; }

/* =========================
   Text utilities
   ========================= */

.text-left    { text-align: left; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize{ text-transform: capitalize; }

.fw-normal   { font-weight: 400; }
.fw-bold     { font-weight: 700; }

/* =========================
   Positioning
   ========================= */

.pos-relative { position: relative; }
.pos-absolute { position: absolute; }
.pos-fixed    { position: fixed; }
.pos-sticky   { position: sticky; }

/* =========================
   Aspect ratio utilok
   ========================= */
/* Használat: <div class="ratio ratio-1-1">...</div> */

.ratio {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ratio > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 1:1 */
.ratio-1-1 {
  aspect-ratio: 1 / 1;
}

/* 1:2 */
.ratio-1-2 {
  aspect-ratio: 1 / 2;
}

/* 1:3 */
.ratio-1-3 {
  aspect-ratio: 1 / 3;
}

/* 2:1 */
.ratio-2-1 {
  aspect-ratio: 2 / 1;
}

/* 3:1 */
.ratio-3-1 {
  aspect-ratio: 3 / 1;
}

/* Kép kitöltéséhez */
/* ===== ALAP LAYOUT ===== */
.feature-row,
.feature-row .wp-block-columns 
{
  display: flex;
  align-items: flex-start !important;
}


.is-mobile .feature-row .col-image {
    overflow: visible;
}

/* ===== KÉP TÁROLÓ ===== */
.feature-row .col-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  
  border-radius: 10px;
  align-self: flex-start;
  min-height: 0;
  flex-shrink: 0;
}

/* ===== WRAPPER DIVOK ===== */
.feature-row .inside-image,
.feature-row .frame-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.is-desktop .feature-row .col-text {
  max-width: 50%;
  margin-left: 10%;
  margin-right: 10%;
}

.is-desktop .feature-row .col-image{
  margin-left: 5%;
  margin-right: 5%;
  max-width: 20%;
  min-width: 350px;
  padding: 0.5%;
}


.is-mobile .feature-row .col-text {
  min-width: 80%;
  padding-left: 5%;
  padding-right: 5%;
}

.is-mobile .feature-row .col-image{
  padding-left: 2%;
  padding-right: 2%;
  max-width: 40%;
}


/* ===== FIGURE ELEMEK ===== */
.feature-row .inside-image figure.wp-block-image,
.feature-row .frame-image figure.wp-block-image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ===== BELSŐ KÉP ===== */
.feature-row .inside-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/* ===== KERET KÉP ===== */
.feature-row .frame-image{
  pointer-events: none !important;
}
.feature-row .frame-image img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: fill !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* ===== MOBIL ===== */
.is-mobile .feature-row,  
.is-mobile .feature-row .wp-block-columns {
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}


.is-mobile .feature-row .wp-block-column:not(.col-image) {
  order: 1 !important;
  width: 100% !important;
}

.is-mobile .feature-row .col-image {
  order: 2 !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: unset !important;
  align-self: stretch !important;
  margin-left: auto;
  margin-right: auto;
}


/* ===== kép zoom in hoverre ===== */ 
.zoom-in img{
  transition: transform 0.8s ease;
}

.zoom-in:hover img{
  transform: scale(1.05);
}

/* ====== lazy loading ====== */
.lazy { 
  opacity: 0; 
  transition: opacity 0.5s ease-in-out; 
}
.lazy.loaded {
  opacity: 1;
}

/* ==========négyzetes kép lekerekítése ========== */
.rounded-image img {
    border-radius: 50%;
    object-fit: cover;
}

/* ====== Begördülő kép ====== */
.roll-in {
    opacity: 0;
    transform: translateX(-5vw);
    transition: transform 1s ease-out, opacity 0.4s ease-out;
}

.roll-in.from-right {
    transform: translateX(5vw);
}

.roll-in.loaded {
    opacity: 1;
    transform: translateX(0);
}

.roll-in img {
    transform-origin: center center;
    transform: rotate(-90deg);
    opacity: 0;
    transition: transform 1s ease-out, opacity 0.4s ease-out;
}

.roll-in.from-right img {
    transform: rotate(90deg);
}

.roll-in.loaded img {
    transform: rotate(0deg);
    opacity: 1;
}
   
/* ====== Oldalba szúrt Kép ====== */
.is-desktop figure.page-image {
    float: right;
    width: 25%;
    margin: 0 0 15px 15px;
}

/* Mobil */
.is-mobile figure.page-image {
    float: right;
    width: 50%;
    margin: 0 0 10px 10px;
}

/* A kép töltse ki a figure-t */
figure.page-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* ====== Ikonos cím oldal tartalmán belül ====== */
/* Külső wrapper: 100% széles, hogy semmi ne csússzon mellé */
.icon-title-row-wrapper {
    width: 100%;
    display: block;
    margin-bottom: 0.3rem;
}

/* Belső sor: ikon + cím egy sorban, a sor kitölti a sort */
.icon-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.icon-title-block {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* FIGURE: ne legyen block, ne legyen 100% széles */
.icon-title-block .icon-wrapper {
    margin: 0;
    padding: 0;
    display: inline-flex;
    width: auto !important;
    flex-shrink: 0;
    height: var(--h2-desktop);
}

.is-desktop .icon-title-block .icon-wrapper, 
.is-desktop .icon-title-block .icon-wrapper img {
    height: var(--h2-desktop);
}

.is-mobile .icon-title-block .icon-wrapper, 
.is-mobile .icon-title-block .icon-wrapper img {
    height: var(--h2-mobile);
}

/* Ikon méretezése */
.icon-title-block .icon-wrapper img {
    height: var(--h3-desktop) !important;
    width: auto !important;
    display: block;
    margin-right: 1rem;
}

/* H2: csak akkora legyen, amekkora kell */
.icon-title-block .title-text {
    margin: 0 0 0 10px !important;
    padding: 0;
    width: auto;
    display: inline-block;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    min-height: 0;
}


/* ====== lekerekített kép ====== */
.rounded-image{
  float: right;
  
  aspect-ratio: 1 / 1;
  margin-inline: 0 !important;
  padding: clamp(20px, 1.5vw, 40px);
  
  margin: 0;
  shape-outside: circle(50%);
}

.rounded-image img {
  /* Itt állítsd be a kívánt kör méretét */
  width: 100%;
  aspect-ratio: 1 / 1;
  
  border-radius: 50%;
  object-fit: cover;
  object-position: 58% center;
  shape-outside: circle(50%);
}

.rounded-image-wrapper {
 float: none !important;
}

.rounded-image-wrapper p {
  float: none !important;
  text-align: justify;
  margin-bottom: 15px;
}

.is-desktop .rounded-image{
  width: 30% !important;
  min-width: 400px;
}

.is-mobile .rounded-image{
  width: 50% !important;
  min-width: 250px;
}


.block-border {
    border: 1px solid var(--wp--preset--color--border);
}

.block-oszlopok {
    align-items: stretch !important;
    flex-wrap: wrap !important;
}

.block-oszlopok > .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    flex-basis: 250px !important;  /* ez helyett min-width */
    flex-grow: 1 !important;
    flex-shrink: 0 !important;     /* ne engedje összenyomni */
}

.is-mobile .block-oszlopok > .wp-block-column {/*mobil nézetben 100% széles legyen*/
    flex-basis: 100% !important;
    min-width: unset !important; /* vagy min-width: 100% */
    float: none !important;
}


/* Kényszerítjük a belső blokkot (pl. Csoportot), hogy kitöltse a teljes magasságot */
.block-oszlopok > .wp-block-column > * {
    flex-grow: 1 !important;
}

/* elválasztó vonal a csoportok között */
.wp-block-separator {
    border: none !important;
    border-bottom: 2px solid var(--wp--preset--color--border) !important;
    background-color: transparent !important;
    opacity: 1 !important;
    margin-top: clamp(10px, 2.5vh, 30px) !important;
    margin-bottom: clamp(10px, 2.5vh, 30px) !important;
}

/* ====== header H1 ===== */
header h1 {
    margin-bottom: clamp(15px, 3.5vh, 50px) !important;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #555;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

input[type="checkbox"]:checked {
    background: #2a4a8a;
    border-color: #2a4a8a;
}

input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    color: #fff;
    font-size: 0.85rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}