/* =========================================================
   PFLEGEEDU TOP NEWS
========================================================= */

.pflegeedu-top-news {
    width: 100%;
    position: relative;
}


/* =========================================================
   HEADER
========================================================= */

.pflegeedu-top-news__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 30px;
}


.pflegeedu-top-news__title {
    margin: 0;

    color: #FFFFFF;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;

    letter-spacing: -0.02em;
}


/* =========================================================
   NAVIGATION
========================================================= */

.pflegeedu-top-news__navigation {
    display: flex;
    align-items: center;
    gap: 10px;
}


.pflegeedu-top-news__navigation button {
    position: relative;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.05);

    color: transparent;
    font-size: 0;
    line-height: 0;

    cursor: pointer;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}


/* ---------------------------------------------------------
   CSS ARROWS
--------------------------------------------------------- */

.pflegeedu-top-news__navigation button::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 9px;
    height: 9px;

    border-top: 2px solid #FFFFFF;
    border-right: 2px solid #FFFFFF;

    transition:
        border-color 0.3s ease;
}


/* LEFT ARROW */

.pflegeedu-top-news__prev::before {
    transform:
        translate(-35%, -50%)
        rotate(-135deg);
}


/* RIGHT ARROW */

.pflegeedu-top-news__next::before {
    transform:
        translate(-65%, -50%)
        rotate(45deg);
}


/* ---------------------------------------------------------
   NAVIGATION HOVER
--------------------------------------------------------- */

.pflegeedu-top-news__navigation button:hover {
    background: #C9A227;

    border-color: #C9A227;

    transform: translateY(-2px);
}


.pflegeedu-top-news__navigation button:hover::before {
    border-color: #0B3154;
}


/* =========================================================
   SLIDER
========================================================= */

.pflegeedu-top-news__slider {
    width: 100%;
}


/* =========================================================
   MAIN AREA
========================================================= */

.pflegeedu-top-news__main-wrap {
    width: 100%;

    margin-bottom: 40px;
}


.pflegeedu-top-news__main {
    width: 100%;

    min-height: 360px;
}


/* =========================================================
   MAIN CARD
========================================================= */

.pflegeedu-top-news__main-card {
    display: grid;

    grid-template-columns:
        1.35fr 1fr;

    gap: 40px;

    width: 100%;

    min-height: 360px;

    opacity: 0;
}


/* =========================================================
   MAIN IMAGE
========================================================= */

.pflegeedu-top-news__main-image {
    display: block;

    width: 100%;

    height: 360px;
    max-height: 360px;

    overflow: hidden;

    border-radius: 20px;

    background: #0B3154;

    box-shadow:
        0 20px 55px rgba(0, 0, 0, 0.16);

    line-height: 0;
}


.pflegeedu-top-news__main-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-height: 360px;

    object-fit: cover;

    object-position: center top;

    transition:
        transform 0.8s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.pflegeedu-top-news__main-image:hover img {
    transform: scale(1.035);
}


/* =========================================================
   MAIN CONTENT
========================================================= */

.pflegeedu-top-news__main-content {
    display: flex;

    flex-direction: column;
    justify-content: center;

    padding-right: 10px;
}


/* =========================================================
   MAIN CATEGORIES
========================================================= */

.pflegeedu-top-news__categories {
    margin-bottom: 13px;

    color: #C9A227;

    font-size: 12px;
    font-weight: 700;

    line-height: 1.3;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.pflegeedu-top-news__main-title {
    margin: 0 0 18px;
}


.pflegeedu-top-news__main-title a {
    color: #FFFFFF;

    font-size: 38px;
    font-weight: 700;

    line-height: 1.08;

    letter-spacing: -0.025em;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.pflegeedu-top-news__main-title a:hover {
    color: #C9A227;
}


/* =========================================================
   MAIN EXCERPT
========================================================= */

.pflegeedu-top-news__main-excerpt {
    margin: 0 0 22px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 16px;

    line-height: 1.65;
}


/* =========================================================
   DATE
========================================================= */

.pflegeedu-top-news__date {
    color: rgba(255, 255, 255, 0.48);

    font-size: 13px;
    font-weight: 500;
}


/* =========================================================
   SECONDARY CARDS
========================================================= */

.pflegeedu-top-news__secondary {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    width: 100%;
}


/* =========================================================
   SECONDARY CARD
========================================================= */

.pflegeedu-top-news__card {
    min-width: 0;

    opacity: 0;

    transition:
        transform 0.4s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.pflegeedu-top-news__card:hover {
    transform: translateY(-6px);
}


/* =========================================================
   SECONDARY IMAGE
========================================================= */

.pflegeedu-top-news__card-image {
    display: block;

    width: 100%;

    height: 240px;
    max-height: 240px;

    overflow: hidden;

    margin-bottom: 18px;

    border-radius: 20px;

    background: #0B3154;

    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.13);

    line-height: 0;
}


.pflegeedu-top-news__card-image img {
    display: block;

    width: 100%;
    height: 100%;

    max-height: 240px;

    object-fit: cover;

    object-position: center top;

    transition:
        transform 0.8s
        cubic-bezier(0.22, 1, 0.36, 1);
}


.pflegeedu-top-news__card:hover
.pflegeedu-top-news__card-image img {
    transform: scale(1.05);
}


/* =========================================================
   SECONDARY CONTENT
========================================================= */

.pflegeedu-top-news__card-content {
    width: 100%;
}


.pflegeedu-top-news__card-title {
    margin: 0;
}


.pflegeedu-top-news__card-title a {
    color: #FFFFFF;

    font-size: 20px;
    font-weight: 700;

    line-height: 1.22;

    letter-spacing: -0.01em;

    text-decoration: none;

    transition:
        color 0.3s ease;
}


.pflegeedu-top-news__card-title a:hover {
    color: #C9A227;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.pflegeedu-top-news__placeholder {
    width: 100%;
    height: 100%;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #0B3154,
            #16476D
        );
}


/* =========================================================
   DOTS
========================================================= */

.pflegeedu-top-news__dots {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 30px;
}


.pflegeedu-top-news__dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.3);

    cursor: pointer;

    transition:
        width 0.35s ease,
        background-color 0.35s ease;
}


.pflegeedu-top-news__dot.is-active {
    width: 28px;

    border-radius: 10px;

    background: #C9A227;
}


/* =========================================================
   MAIN ANIMATION
========================================================= */

.pflegeedu-top-news__main-card.is-active {
    animation:
        pflegeeduMainEnter
        0.75s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


@keyframes pflegeeduMainEnter {

    0% {
        opacity: 0;

        transform:
            translateY(18px)
            scale(0.985);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   MAIN IMAGE ANIMATION
========================================================= */

.pflegeedu-top-news__main-card.is-active
.pflegeedu-top-news__main-image {
    animation:
        pflegeeduMainImageEnter
        0.9s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


@keyframes pflegeeduMainImageEnter {

    0% {
        opacity: 0;

        transform: scale(0.96);
    }

    100% {
        opacity: 1;

        transform: scale(1);
    }
}


/* =========================================================
   MAIN CONTENT ANIMATION
========================================================= */

.pflegeedu-top-news__main-card.is-active
.pflegeedu-top-news__main-content {
    animation:
        pflegeeduMainContentEnter
        0.75s
        0.08s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


@keyframes pflegeeduMainContentEnter {

    0% {
        opacity: 0;

        transform: translateX(30px);
    }

    100% {
        opacity: 1;

        transform: translateX(0);
    }
}


/* =========================================================
   SECONDARY CARD ANIMATION
========================================================= */

.pflegeedu-top-news__card.is-active:nth-child(1) {
    animation:
        pflegeeduCardEnter
        0.65s
        0.15s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


.pflegeedu-top-news__card.is-active:nth-child(2) {
    animation:
        pflegeeduCardEnter
        0.65s
        0.25s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


.pflegeedu-top-news__card.is-active:nth-child(3) {
    animation:
        pflegeeduCardEnter
        0.65s
        0.35s
        cubic-bezier(0.22, 1, 0.36, 1)
        forwards;
}


@keyframes pflegeeduCardEnter {

    0% {
        opacity: 0;

        transform: translateY(28px);
    }

    70% {
        opacity: 1;

        transform: translateY(-3px);
    }

    100% {
        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================================
   HIDDEN SOURCE
========================================================= */

.pflegeedu-top-news__source {
    display: none !important;
}


.pflegeedu-top-news__source-item {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    .pflegeedu-top-news__main {
        min-height: auto;
    }


    .pflegeedu-top-news__main-card {
        grid-template-columns: 1fr;

        gap: 28px;

        min-height: auto;
    }


    .pflegeedu-top-news__main-image {
        height: 320px;
        max-height: 320px;
    }


    .pflegeedu-top-news__main-image img {
        max-height: 320px;
    }


    .pflegeedu-top-news__main-content {
        padding-right: 0;
    }


    .pflegeedu-top-news__main-title a {
        font-size: 32px;
    }


    .pflegeedu-top-news__card-image {
        height: 220px;
        max-height: 220px;
    }


    .pflegeedu-top-news__card-image img {
        max-height: 220px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .pflegeedu-top-news__header {
        margin-bottom: 22px;
    }


    .pflegeedu-top-news__title {
        font-size: 23px;
    }


    .pflegeedu-top-news__navigation {
        gap: 6px;
    }


    .pflegeedu-top-news__navigation button {
        width: 36px;
        height: 36px;
    }


    .pflegeedu-top-news__navigation button::before {
        width: 8px;
        height: 8px;

        border-width: 1.8px;
    }


    .pflegeedu-top-news__main-wrap {
        margin-bottom: 30px;
    }


    .pflegeedu-top-news__main-image {
        height: 280px;
        max-height: 280px;

        border-radius: 18px;
    }


    .pflegeedu-top-news__main-image img {
        max-height: 280px;
    }


    .pflegeedu-top-news__main-title a {
        font-size: 27px;
    }


    .pflegeedu-top-news__main-excerpt {
        font-size: 15px;
    }


    /* -----------------------------------------
       SECONDARY
    ----------------------------------------- */

    .pflegeedu-top-news__secondary {
        grid-template-columns: 1fr;

        gap: 28px;
    }


    .pflegeedu-top-news__card {
        display: grid;

        grid-template-columns:
            110px 1fr;

        gap: 16px;

        align-items: start;
    }


    .pflegeedu-top-news__card-image {
        width: 110px;

        height: 196px;
        max-height: 196px;

        margin-bottom: 0;

        border-radius: 16px;

        aspect-ratio: 9 / 16;
    }


    .pflegeedu-top-news__card-image img {
        width: 100%;
        height: 100%;

        max-height: 196px;

        object-fit: cover;

        object-position: center top;
    }


    .pflegeedu-top-news__card-title a {
        font-size: 17px;
    }


    .pflegeedu-top-news__dots {
        margin-top: 25px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .pflegeedu-top-news__main-image {
        height: 240px;
        max-height: 240px;
    }


    .pflegeedu-top-news__main-image img {
        max-height: 240px;
    }


    .pflegeedu-top-news__main-title a {
        font-size: 24px;
    }


    .pflegeedu-top-news__card {
        grid-template-columns:
            95px 1fr;

        gap: 14px;
    }


    .pflegeedu-top-news__card-image {
        width: 95px;

        height: 169px;
        max-height: 169px;
    }


    .pflegeedu-top-news__card-image img {
        max-height: 169px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pflegeedu-top-news__main-card,
    .pflegeedu-top-news__main-image,
    .pflegeedu-top-news__main-content,
    .pflegeedu-top-news__card {
        animation: none !important;

        transition: none !important;
    }

}