/* ===== “Miben segíthetünk?” SECTION – Chrome-safe ===== */
:root {
    /* magasság változó a kártyákhoz */
    --card-h: 710px;
    --hero-mobile-card-height: 280px;
} /* mobil kártya fix magasság */

.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-bottom: 4rem;
    height: 100vh;
}

/* videó háttér (desktop) */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: -10;
}

/* közös “glass” kártya stílus */
.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: linear-gradient(
        193deg,
        rgba(255, 255, 255, 0.58) -12.88%,
        rgba(255, 255, 255, 0.42) 99.92%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-radius: 20px;
}

/* bal kártya (desktop) */
.hero-left-card {
    border-radius: 0 60px 60px 0;
    max-width: 600px;
    color: #083428;
}
.hero-left-card h1 {
    padding-left: 65px;
    font-size: 60px;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 1.1;
}
.hero-left-card p {
    padding-left: 65px;
    padding-top: 30px;
    padding-bottom: 30px;
}

/* jobb kártya (desktop) */
.hero-right-card {
    position: absolute;
    top: 100px;
    right: 70px;
    width: 381px;
    height: 345px;
}

/* desktop finomítások */
@media (max-width: 1450px) {
    .hero-right-card {
        top: 100px;
        right: 50px;
        width: 300px;
        height: 385px;
    }
    .hero-left-card {
        max-width: 500px;
    }
    .hero-left-card h1 {
        padding-left: 35px;
        font-size: clamp(40px, 4vw, 50px);
    }
    .hero-left-card p {
        padding-left: 35px;
    }
}
@media (max-width: 1148px) {
    .hero-right-card {
        top: 105px;
        right: 50px;
        width: 300px;
        height: 385px;
    }
    .hero-left-card {
        max-width: 400px;
    }
    .hero-left-card h1 {
        padding-left: 25px;
        font-size: clamp(26px, 4vw, 35px);
    }
    .hero-left-card p {
        padding-left: 25px;
    }
}

/* mobil alap: slider rejtve */
.hero-mobile {
    display: none;
}

/* 940px alatt: videó ki, BG kép be; desktop kártyák ki; mobil slider be */
@media (max-width: 940px) {
    .hero-video-wrap {
        display: none !important;
    }
    .hero-section {
        min-height: 80svh;
        min-height: 80dvh;
        min-height: 80vh;
        background: url("/img/partners/header_image.png") center/cover no-repeat;
        padding-bottom: 0;
    }
    .hero-right-card,
    .hero-left-card {
        display: none !important;
    }

    .hero-mobile {
        display: block;
        bottom: 120px;
        left: 0;
        right: 25px;
    }

    /* mobil kártya (ugyanaz a “glass” look), fix magasságú viewporttal */
    .hero-mobile-card {
        width: 100%;
        max-width: none !important;
        margin-left: 0px; /* könnyen állítható */
        margin-right: 24px; /* “fix MR” */
        color: #082d33;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 60px;
        border-top-right-radius: 60px;
        height: var(--hero-mobile-card-height);
        position: relative;
        padding-bottom: 44px;
    }
    .hero-mobile-viewport {
        position: relative;
        height: var(--hero-mobile-card-height);
        overflow: hidden;
    }
    .hero-slide {
        position: absolute;
        inset: 0;
    }

    /* tipók mobilon */
    .hero-mobile-title {
        font-family: "Plus Jakarta Sans", system-ui, sans-serif;
        font-size: 24px;
        text-transform: uppercase;
        font-weight: 400;
        line-height: 1.25;
    }
    .hero-mobile-text {
        font-family: "Plus Jakarta Sans", system-ui, sans-serif;
        font-size: 16px;
        font-weight: 500;
        line-height: 1.5;
        margin-top: 0.5rem;
    }

    /* pöttyök */
    .row-circle {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 3px 0;
        margin-top: 0.75rem;
        position: absolute;
        left: 18px;
        bottom: 12px;
        margin-top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 3px 0;
    }
    .circle {
        border-radius: 50%;
    }
    .circle-white-left {
        width: 15px;
        height: 15px;
        background: #fff;
        padding: 2px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .circle1 {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--primary);
    }
    .circle-white-right {
        width: 15px;
        height: 15px;
        background: #fff;
        border: 2px solid var(--primary);
        border-radius: 50%;
    }
}

/* 941px fölött: biztosan desktop mód legyen */
@media (min-width: 941px) {
    .hero-section {
        background: none;
    }
    .hero-mobile {
        display: none;
    }
}

/* apró utilok */
[x-cloak] {
    display: none !important;
}
.vass-title {
    padding-bottom: 15px;
}

/* 3D flip az absolute stackelt slide-okra */
.hero-mobile-card {
    perspective: 1000px;
}

.slide-3d {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transform-origin: 50% 50%;
}

/* Alpine egyedi transition osztályok */
.transition-3d {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.3s ease;
}
.flip-in-start {
    transform: rotateX(-90deg);
    opacity: 0;
}
.flip-in-end {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-start {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-end {
    transform: rotateX(90deg);
    opacity: 0;
}

/* ha valakinek be van kapcsolva a reduced motion, ne pörgessünk */
@media (prefers-reduced-motion: reduce) {
    .transition-3d {
        transition: none;
    }
    .flip-in-start,
    .flip-out-end {
        transform: none;
        opacity: 1;
    }
}

/* 3D flip + fix height váltás */
.hero-mobile-card {
    perspective: 1000px;
    position: relative;
}

/* abszolút slide-oknak referencia */
.slide-3d {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transform-origin: 50% 50%;
}

/* Alpine custom transition osztályok */
.transition-3d {
    transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 0.3s ease;
}
.flip-in-start {
    transform: rotateX(-90deg);
    opacity: 0;
}
.flip-in-end {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-start {
    transform: rotateX(0deg);
    opacity: 1;
}
.flip-out-end {
    transform: rotateX(90deg);
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .transition-3d {
        transition: none;
    }
    .flip-in-start,
    .flip-out-end {
        transform: none;
        opacity: 1;
    }
}

.section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 33px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    letter-spacing: 0;
    padding: 45px 172px;
    margin-top: 0px;
    overflow: hidden;
}

/* Fejléc blokk */
.section-col-top {
    margin-inline: 308px 271px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.section-title {
    color: var(--primary);
    font-size: 58px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.517;
}
.section-subtitle {
    color: var(--text-main);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.679;
}

/* A belső konténer legyen tényleges “container”, longhand-del (Chrome-biztos) */
.section-services {
    position: relative;
    container-type: inline-size;
    container-name: section-services;
    color: var(--white);
    font-size: 40px;
    font-weight: 600;
    line-height: normal;
    text-align: left;
}

/* A három kártya egy sorban – stabil flex beállítások */
.section-row {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 22px;
}

/* Kritikus: engedd zsugorodni a gyerekeket */
.section-row > * {
    min-width: 0;
}

/* Bal nagykártya – arány: ~1.3 */
.section-item-1 {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1.3 1 0;
    min-height: 560px;
}

/* Jobb oldali két oszlop – arány: ~0.85 + 0.85 */
.column {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0.85 1 0;
    min-height: 520px;
}
.section-item-1,
.column {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--card-h);
    overflow: hidden;
    border-radius: 20px;
}

.section-mask-group,
.column-mask-group {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: 0;
}

/* Jobb felső kis kör gomb az oszlopokon */
.column-circle {
    position: absolute;
    z-index: 2;
    top: 18px;
    right: 20px;
}

/* Alsó overlay kártyák */
.card-bottom,
.card-bottom2 {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(
        148deg,
        rgba(255, 76, 0, 0.28) 18%,
        rgba(121, 51, 0, 0.67) 80%
    );
    border-radius: 20px;
    padding: 20px 20px 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* A nagy bal kártya belső */
.card-bottom2 {
    border-radius: 10px;
    gap: 8px;
    padding: 17px 15px 20px 15px;
}

/* Tipók az alsó kártyákban (megtartjuk az eredetit) */
.card-bottom-text {
    color: #fff;
    font: 700 16px/1.5 "DM Sans", system-ui, sans-serif;
    text-transform: none;
}
.card-subtitle {
    text-transform: uppercase;
}

.tudastar-hero-img-wrap {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.tudastar-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* kitölti a teljes területet, vágással */
    display: block;
}

/* ===== Reszponzív / container breakpont ===== */

/* EREDETI: width < 1575px → ez 1440-es desktopon is stackelt. */
@container section-services (width < 1000px) {
    .section-row {
        flex-direction: column;
    }
    .section-item-1,
    .column {
        min-height: 420px;
    }
}

/* Fallback viewport media query – ha a container query véletlen nem futna */
@media (max-width: 1000px) {
    .section-row {
        flex-direction: column;
    }
    .section-item-1,
    .column {
        min-height: 420px;
    }
}

/* Kis képernyős padding finomítások */
@media (max-width: 1280px) {
    .section {
        padding-inline: var(--margin-md);
    }
    .section-col-top {
        margin-inline: 0;
    }
}
@media (max-width: 576px) {
    .section {
        padding-inline: var(--margin-sm);
    }
}
.section-services {
    height: auto;
}
.section-row {
    align-items: stretch;
}
.section-item-1,
.column {
    display: flex;
    flex-direction: column;
    min-height: var(--card-h);
}

/* Responsive finomhangolás */
@media (max-width: 1200px) {
    .section-services {
        --card-h: 460px;
    }
}
@media (max-width: 900px) {
    .section-services {
        --card-h: 380px;
    }
    .card-bottom-subtitle,
    .card-subtitle {
        font-size: 18px;
    }
    .section-title {
        font-size: 38px;
    }
    .section-subtitle {
        font-size: 22px;
    }
    .section {
        margin-top: 0px;
    }
    .card-bottom2 {
        position: relative;
        z-index: 2;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: 10px;
        background: linear-gradient(
            148deg,
            rgba(255, 76, 0, 0.28) 18%,
            rgba(121, 51, 0, 0.67) 80%
        );
        border-radius: 20px;
        padding: 20px 20px 16px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .section-vass-logo1,
    .section-vass-logo2 {
        max-width: none;
        pointer-events: none;
        user-select: none;
    }

    .section-vass-logo1 {
        /* nagy desktop érték helyett jóval kisebb, viewport-arányos */
        width: 120vw;
        top: -220px;
        left: -40vw;
    }
    .section-vass-logo2 {
        width: 120vw;
        top: -360px;
        right: -40vw;
    }
}
@media (max-width: 600px) {
    .section-vass-logo1 {
        width: 110vw;
        top: -160px;
        left: -30vw;
    }
    .section-vass-logo2 {
        width: 110vw;
        top: -280px;
        right: -30vw;
    }
}
/* Mobil viselkedés */
@container section-services (width < 1000px) {
    .section-row {
        flex-direction: column;
    }
    .section-item-1,
    .column {
        min-height: 420px;
    }
}
@media (max-width: 1000px) {
    .section-row {
        flex-direction: column;
    }
    .section-item-1,
    .column {
        min-height: 420px;
    }
}

/* mobilon rejtsük a leíró bekezdést az első kártyában */
@media (max-width: 900px) {
    .section .section-item-1 .card-bottom-text-bottom.paragraph {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    :root {
        --card-h: 560px;
    }
}
@media (max-width: 900px) {
    :root {
        --card-h: 420px;
    }
}
