/* ===== WHY US – modern téglalap kártyák ===== */

.why-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f7f9fc;
    border-radius: 12px;
    padding: 20px 22px;
    height: 160px;                /* minden kártya egyforma magas */
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: .3s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* ikon kör */
.why-card .icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #03478815; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card .icon img {
    width: 40px;
    height: 40px;
}

/* szöveg */
.why-card h4 {
    font-size: 20px;
    margin-bottom: 6px;
    font-weight: 600;
}

.why-card p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}

/* ===== Mobil ===== */
@media (max-width: 768px) {
    .why-card {
        height: auto;
        padding: 18px;
        flex-direction: row;
    }

    .why-card .icon {
        width: 80px;
        height: 80px; 
        aspect-ratio: 1 / 1; 
        flex-shrink: 0;    

    }

    .why-card .icon img {
        width: 26px;
        height: 26px;
    }

    .why-card h4 {
        font-size: 1.1rem;
    }
}

/*PArtnerlogok*/
/* SLIDER WRAPPER */
.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

/* MOZGÓ TRACK */
.logo-track {
    display: flex;
    gap: clamp(20px, 3vw, 45px);
    width: max-content;
    animation: scrollLeft 25s linear infinite;
    will-change: transform;
    white-space: nowrap;
    flex-wrap: nowrap;
}


/* VÉGTELEN GÖRDÜLÉS (GPU optimalizált) */
@keyframes scrollLeft {
    from { transform: translate3d(0,0,0); }
    to   { transform: translate3d(-50%,0,0); }
}

/* LOGÓ KÁRTYÁK */
.partner-card {
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    /*box-shadow: 0 2px 12px rgba(0,0,0,0.08);*/
    display: flex;
    justify-content: center;
    align-items: center;
    height: 75px;
    width: 140px;
    flex-shrink: 0;
    transition: .25s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

/* LOGÓK */
.partner-logo {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(100%) !important;              /* alapból szürkeárnyalatos */
    transition: opacity .25s ease, 
                filter .25s ease;         /* animáljuk a váltást is */

}



.partner-card:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0%)!important;                /* hoverre színes lesz */
}

/* TABLET MÉRET */

}

/* DESKTOP */
@media (min-width: 992px) {
    .partner-card { height: 95px; width: 170px; }
    .partner-logo { max-height: 65px; }
}
/* 1200px alatt a kártyák engedjenek nőni */
@media (max-width: 1200px) {
    /* ikon kör */
.why-card .icon {
    width: 80px;
    height: 80px;
	aspect-ratio: 1 / 1; 
    flex-shrink: 0; 
    border-radius: 50%;
    background: #03478815; 
    display: flex;
    align-items: center;
    justify-content: center;
}
}

@media (min-width: 576px) {
    .partner-card { height: 85px; width: 160px; }
    .partner-logo { max-height: 55px; }
	
	.why-card .icon {
    width: 40px;
    height: 40px;
	aspect-ratio: 1 / 1; 
    flex-shrink: 0; 
    border-radius: 50%;
    background: #03478815; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#partners { padding-left: 0; padding-right: 0; }

#partners .partners-full{
  width: 100%;
}

#partners .logo-slider{
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ha a .logo-track flex, legyen biztosan széles és ne törjön */
#partners .logo-track{
  display: flex;
  gap: 14px;              /* ha kell */
  width: max-content;     /* fontos a végtelen animációhoz */
  will-change: transform;
}
