.xio-latest-news {
    width: 100%;
    padding: 40px 0;
}

.xio-latest-news__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.xio-latest-news__card {
    position: relative;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.xio-latest-news__card.xio-animated {
    animation: xioFadeInUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.xio-latest-news__card[data-index="0"] {
    animation-delay: 0.15s;
}

.xio-latest-news__card[data-index="1"] {
    animation-delay: 0.3s;
}

.xio-latest-news__card[data-index="2"] {
    animation-delay: 0.45s;
}

.xio-latest-news__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.xio-latest-news__card--split .xio-latest-news__link {
    display: flex;
    flex-direction: column;
    position: relative;
}

.xio-latest-news__card--split .xio-latest-news__image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px;
    transition: height 0.4s ease, border-radius 0.4s ease;
}

.xio-latest-news__card--split:hover .xio-latest-news__image-container {
    height: 300px;
    border-radius: 20px;
}

.xio-latest-news__card--split .xio-latest-news__image-container::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 100px;
    border-top: 0.4px solid #FFF;
    background: rgba(108, 108, 108, 0.24);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease, bottom 0.4s ease;
    pointer-events: none;
}

.xio-latest-news__card--split:hover .xio-latest-news__image-container::after {
    opacity: 1;
    bottom: 0;
}

.xio-latest-news__card--split .xio-latest-news__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 20px;
    transition: transform 0.5s ease;
}

.xio-latest-news__card--split:hover .xio-latest-news__image {
    transform: scale(1.05);
}

.xio-latest-news__card--split .xio-latest-news__text-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: transparent;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.xio-latest-news__card--split .xio-latest-news__title {
    color: #424242;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 0;
    text-align: left;
    flex: 1;
    max-width: calc(100% - 140px);
    transition: color 0.3s ease;
}

.xio-latest-news__card--split:hover .xio-latest-news__title {
    color: #FFF;
}

.xio-latest-news__card--split .xio-latest-news__date {
    color: #f6894e;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.xio-latest-news__card--split:hover .xio-latest-news__date {
    color: #FFF;
}

@keyframes xioFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1200px) {
    .xio-latest-news__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .xio-latest-news__card[data-index="2"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .xio-latest-news__container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .xio-latest-news__card[data-index="2"] {
        grid-column: auto;
    }
    
    .xio-latest-news__card--split .xio-latest-news__text-container {
        padding: 0 15px;
    }
}
