.featured-rotator {
    --gap: 16px;

    position: relative;
    width: 100%;
    aspect-ratio: 2.65 / 1;
	margin-top: 20px;
}

.featured-rotator__viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/*
 * MINDEN KÁRTYA ABSZOLÚT.
 * A GSAP Flip így tökéletesen tudja mozgatni
 * őket a különböző pozíciók között.
 */
.featured-card {
    position: absolute;
    overflow: hidden;
    border-radius: 8px;
    will-change: transform, width, height;
    visibility: visible;
    opacity: 1;
    z-index: 1;
	
}


/* ================================
   NAGY
================================ */

.featured-card--main {
    left: 0;
    top: 0;
    width: calc(66.666% - var(--gap) / 2);
    height: 100%;
    visibility: visible;
    opacity: 1;
    z-index: 10;
  box-shadow:  0 8px 24px rgba(0,0,0,.12);
}


/* ================================
   JOBB FELSŐ
================================ */

.featured-card--top {
    left: calc(66.666% + var(--gap) / 2);
    top: 0;

    width: calc(33.333% - var(--gap) / 2);
    height: calc(50% - var(--gap) / 2);

    visibility: visible;
    opacity: 1;

    z-index: 8;
}


/* ================================
   JOBB ALSÓ
================================ */

.featured-card--bottom {
    left: calc(66.666% + var(--gap) / 2);
    top: calc(50% + var(--gap) / 2);

    width: calc(33.333% - var(--gap) / 2);
    height: calc(50% - var(--gap) / 2);

    visibility: visible;
    opacity: 1;

    z-index: 7;
}


/* ================================
   JOBBRÓL ÉRKEZŐ
================================ */

.featured-card--next {
    left: calc(110% + var(--gap));
    top: calc(50% + var(--gap) / 2);

    width: calc(33.333% - var(--gap) / 2);
    height: calc(50% - var(--gap) / 2);

    visibility: visible;
    opacity: 1;

    z-index: 6;
}


/* ================================
   NINCS AKTÍV POZÍCIÓBAN
================================ */

.featured-card--hidden {
    left: 110%;
    top: 0;

    width: calc(33.333% - var(--gap) / 2);
    height: calc(50% - var(--gap) / 2);

    visibility: visible;
    opacity: 1;

    z-index: 1;
}

/* -------------------------------------------------
   LINK
------------------------------------------------- */

.featured-card__link {
    position: relative;
    display: block;

    width: 100%;
    height: 100%;

    color: #fff;
    text-decoration: none;
}

/* -------------------------------------------------
   KÉP
------------------------------------------------- */

.featured-card__image {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transition: transform .6s ease;
}

.featured-card:hover .featured-card__image {
    transform: scale(1.04);
}

/* -------------------------------------------------
   SÖTÉTÍTÉS
------------------------------------------------- */

.featured-card__overlay {
    position: absolute;
    inset: 0;

     background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.58) 0%,
            rgba(0,0,0,.34) 34%,
            rgba(0,0,0,.12) 70%,
            rgba(0,0,0,.04) 100%
        ),

        linear-gradient(
            to top,
            rgba(0,0,0,.30),
            rgba(0,0,0,0)
        );
}

/* -------------------------------------------------
   SZÖVEG
------------------------------------------------- */

.featured-card__content {
    position: absolute;
    left:48px;
    right:48px;
    bottom:44px;
    z-index: 2;
}

.featured-card__title {
   margin: 0;
    color: #fff;
 /*   font-size: clamp(18px, 2vw, 30px);
  font-size:42px;
    line-height:48px;
 */
    font-family:"Montserrat",sans-serif;
    font-weight:700;
    font-size:32px;
    line-height:38px;
    letter-spacing:-0.02em;
}

.featured-card__excerpt {
   margin-top:18px;
    font-family:"Montserrat",sans-serif;
    font-weight:300;
    font-size:27px;
    line-height:41px;
    color:rgba(255,255,255,.95);
	display:none;
}

.featured-card__more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;

    letter-spacing: .03em;
    text-transform: uppercase;
}

.featured-card__more-icon {
    display: block;
    flex: 0 0 auto;

    width: 32px;
    height: 12px;

    transition: transform .3s ease;
}

.featured-card:hover .featured-card__more-icon {
    transform: translateX(5px);
}
/*
 * Kis kártyáknál kisebb szöveg.
 */

.featured-card--top .featured-card__content,
.featured-card--bottom .featured-card__content {
   left:28px;
    right:28px;
    bottom:24px;
}

.featured-card--top .featured-card__title,
.featured-card--bottom .featured-card__title {
 font-family:"Montserrat",sans-serif;
    font-weight:700;
    font-size:20px;
    line-height:26px;
    letter-spacing:-0.01em;
}

/*
 * Kis kártyán ne legyen excerpt.
 */
.featured-card--top .featured-card__excerpt,
.featured-card--bottom .featured-card__excerpt{
	  display:none;
    margin-top:8px;
    font-family:"Montserrat",sans-serif;
    font-weight:300;
    font-size:12px;
    line-height:20px;
    color:rgba(255,255,255,.92);
	
}
.featured-card--top .featured-card__more,
.featured-card--bottom .featured-card__more {
    display: none;
}

/* -------------------------------------------------
   NYILAK
------------------------------------------------- */

.featured-rotator__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #282828;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .10);
    cursor: pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}

.featured-rotator__arrow svg {
    display: block;
    width: 10px;
    height: 18px;
}

.featured-rotator__arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, .16);
}

.featured-rotator__arrow:active {
    transform: translateY(-50%) scale(.96);
}

.featured-rotator__arrow--prev {
    left: -29px;
}

.featured-rotator__arrow--next {
    right: -29px;
}

/* -------------------------------------------------
   PAGINATION
------------------------------------------------- */

.featured-rotator__pagination {
    display: flex;
    justify-content: center;
    gap: 7px;

    margin-top: 14px;
}

.featured-rotator__dot {
    width: 10px;
    height: 10px;
    padding: 0;
        border: 1px solid #000;
    border-radius: 5px;
   background: #fff;
    cursor: pointer;
    transition: width .25s ease,
        background .25s ease;
}

.featured-rotator__dot.is-active {
    position: relative;
    width: 30px;
    overflow: hidden;
}

.featured-rotator__dot.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: currentColor;
    animation: featured-progress 6s linear;
}

@keyframes featured-progress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* -------------------------------------------------
   TABLET
------------------------------------------------- */

@media (max-width: 768px) {

    .featured-rotator {
        aspect-ratio: 1.7 / 1;
    }


.featured-rotator__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #ffffff85;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .10);
    cursor: pointer;
    transition:transform .2s ease, box-shadow .2s ease;
}



    .featured-card--main {
        width: 100%;
        height: 100%;
    }

    .featured-card--top,
    .featured-card--bottom,
    .featured-card--next {
        display: none;
    }

    .featured-card__content {
     left:28px;
        right:28px;
        bottom:8px;
    }

    .featured-card__title {
       font-size:15px;
        line-height:19px;
    }
.featured-card--main .featured-card__excerpt{
        font-size:14px;
        line-height:18px;
        margin-top:14px;
		display:none;
    }

    .featured-card--main .featured-card__more{
        margin-top:8px;
		 font-size: 14px;
    }
	
	
    .featured-rotator__arrow--prev {
        left: 10px;
    }

    .featured-rotator__arrow--next {
        right: 10px;
    }
}