/*
 * IEU Portal - Modulo de noticias de la portada
 * Cargado despues de main.css para mantener el componente aislado.
 */

.ieu-news-modern {
    background: var(--ieu-soft, var(--soft, #f7f9fc));
}

.ieu-news-modern-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
    gap: 28px;
    align-items: start;
}

.ieu-news-hero-card,
.ieu-news-side-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ieu-line, var(--line, #e7ecf3));
    border-radius: 18px;
    box-shadow: var(--ieu-shadow, var(--shadow, 0 18px 45px rgba(15, 35, 70, .10)));
}

.ieu-news-hero-card {
    position: relative;
    height: 540px;
    min-height: 0;
    background: #061d42;
}

.ieu-news-hero-card .ieu-news-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: #fff;
}

.ieu-news-hero-card .media,
.ieu-news-hero-card .media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.ieu-news-hero-card .media {
    overflow: hidden;
}

.ieu-news-hero-card .media img {
    object-fit: cover;
    object-position: center;
    transition: transform .7s ease;
}

.ieu-news-hero-card:hover .media img {
    transform: scale(1.035);
}

.ieu-news-hero-card .overlay {
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    padding: 34px 38px 36px;
    background: linear-gradient(0deg, rgba(3, 17, 40, .96) 0%, rgba(3, 17, 40, .67) 52%, rgba(3, 17, 40, 0) 100%);
}

.ieu-news-hero-card .overlay > span:first-child,
.ieu-news-side-card .ieu-news-side-body > span:first-child {
    display: block;
    color: var(--ieu-green, var(--green, #69b42e));
    font-size: 14px;
    font-weight: 900;
}

.ieu-news-hero-card h3 {
    max-width: 760px;
    margin: 10px 0 20px;
    color: #fff;
    font-family: Merriweather, serif;
    font-size: clamp(28px, 2.35vw, 40px);
    line-height: 1.2;
}

.ieu-news-more {
    color: inherit;
    font-weight: 900;
}

.ieu-news-side-list {
    display: grid;
    gap: 18px;
    align-content: start;
}

.ieu-news-side-card {
    display: block;
    min-width: 0;
    min-height: 0;
    transition: transform .22s ease, box-shadow .22s ease;
}

.ieu-news-side-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 60px rgba(15, 35, 70, .15);
}

.ieu-news-side-card .ieu-news-link {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    width: 100%;
    min-height: 168px;
    color: var(--ieu-blue, var(--blue, #0b2d5e));
}

.ieu-news-side-card .thumb {
    width: 100%;
    min-height: 168px;
    overflow: hidden;
    background: var(--ieu-soft, var(--soft, #f7f9fc));
}

.ieu-news-side-card .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}

.ieu-news-side-card:hover .thumb img {
    transform: scale(1.045);
}

.ieu-news-side-body {
    min-width: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ieu-news-side-card h3 {
    margin: 8px 0 12px;
    color: var(--ieu-blue, var(--blue, #0b2d5e));
    font-size: 19px;
    line-height: 1.3;
}

.ieu-news-side-card .ieu-news-more {
    color: var(--ieu-blue, var(--blue, #0b2d5e));
    font-size: 14px;
}

.ieu-news-link:focus-visible {
    outline: 3px solid var(--ieu-gold, var(--gold, #d6a324));
    outline-offset: -4px;
}

@media (max-width: 1100px) {
    .ieu-news-modern-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr);
        gap: 22px;
    }

    .ieu-news-hero-card {
        height: 500px;
    }

    .ieu-news-side-card .ieu-news-link {
        grid-template-columns: 155px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .ieu-news-modern-layout {
        grid-template-columns: 1fr;
    }

    .ieu-news-hero-card {
        height: 470px;
    }

    .ieu-news-side-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ieu-news-side-card .ieu-news-link {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .ieu-news-side-list .ieu-news-side-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .ieu-news-hero-card {
        height: 390px;
        border-radius: 16px;
    }

    .ieu-news-hero-card .overlay {
        padding: 24px;
    }

    .ieu-news-hero-card h3 {
        font-size: 26px;
    }

    .ieu-news-side-list {
        grid-template-columns: 1fr;
    }

    .ieu-news-side-list .ieu-news-side-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .ieu-news-side-card .ieu-news-link {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .ieu-news-side-card .thumb,
    .ieu-news-side-card .thumb img {
        height: 200px;
        min-height: 200px;
    }

    .ieu-news-side-body {
        padding: 20px;
    }
}
