/*=======================*/
/* SCOPED NEWS COMPONENT */
/*=======================*/

.sc-news-scope * {
    box-sizing: border-box !important;
}

/* =========================
       TITULO + TABS
========================= */

.sc-news-scope .titulo_noticia {
    text-align: center !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin-bottom: 10px !important;
}

.sc-news-scope .news-tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 18px !important;
    margin: 30px 0 40px !important;
    flex-wrap: wrap !important;
}

.sc-news-scope .news-tab {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    font-size: .9rem !important;
    color: #64748b !important;
    position: relative !important;
    padding: 6px 4px !important;
}

.sc-news-scope .news-tab.active {
    color: var(--azul-securite) !important;
    font-weight: 600 !important;
}

.sc-news-scope .news-tab.active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -6px !important;
    height: 2px !important;
    background: var(--azul-securite) !important;
}


/* =========================
   FEATURED GRID 
========================= */

.sc-news-scope .featured-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 24px !important;
    align-items: stretch !important;
}

.sc-news-scope .featured-left {
    display: grid !important;
    grid-template-rows: 420px 260px !important;
    gap: 24px !important;
}

.sc-news-scope .featured-bottom {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
}

.sc-news-scope .news-link {
    display: block !important;
    height: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* =========================
   CARD BASE 
========================= */

.sc-news-scope .news-card {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    color: #fff !important;
    isolation: isolate !important;
}

.sc-news-scope .news-card img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
}

.sc-news-scope .news-card::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), rgba(0, 0, 0, .15)) !important;
    z-index: 1 !important;
}


/* =========================
       BADGES
========================= */

.sc-news-scope .news-badge {
    position: absolute !important;
    bottom: 135px !important;
    left: 16px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    z-index: 2 !important;
}

.sc-news-scope .education {
    background: #22c55e !important;
}

.sc-news-scope .press {
    background: #f59e0b !important;
}

.sc-news-scope .novedades {
    background: #8b5cf6 !important;
}

.sc-news-scope .success {
    background: #0ea5e9 !important;
}


/* =========================
       TITULO CARD
========================= */

.sc-news-scope .news-title {
    position: absolute !important;
    left: 18px !important;
    right: 18px !important;
    bottom: 18px !important;
    z-index: 2 !important;
    font-size: clamp(16px, 1.6vw, 22px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    color: #fff;
}


/* =========================
       SIZES
========================= */

.sc-news-scope .card-big {
    min-height: clamp(220px, 28vw, 300px) !important;
}

.sc-news-scope .card-small {
    min-height: clamp(160px, 18vw, 210px) !important;
}

.sc-news-scope .card-tall {
    min-height: 520px !important;
}


/* =========================
       LISTADO
========================= */

.sc-news-scope .news-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
    margin-top: 50px !important;
}

.sc-news-scope .news-item {
    display: flex !important;
    gap: 12px !important;
    margin-top: 5%;
}

.sc-news-scope .news-item img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    margin: 0 !important;
}

.sc-news-scope .news-item h4 {
    font-size: 14px !important;
    margin: 0 0 6px !important;
}

.sc-news-scope .news-item span {
    font-size: 12px !important;
    color: #64748b !important;
}

.sc-news-scope .news-item a {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #2563eb !important;
    text-decoration: none !important;
}


/* ==============================
LISTA REPSONSIVE
==================================== */


/* 1. El Contenedor: Fluidez */
.sc-news-scope .news-list-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px 20px !important;
    margin-top: 40px !important;
    width: 100% !important;
}

/* 2. El Item: Estructura flexible */
.sc-news-scope .news-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    width: 100% !important;
    min-height: 100px !important;
    overflow: visible !important;
}

/* 3. Imagen: Tamaño fijo pero flexible */
.sc-news-scope .news-item img {
    flex: 0 0 90px !important;
    width: 90px !important;
    height: 90px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

/* 4. Contenido de texto: El que se adapta */
.sc-news-scope .news-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.sc-news-scope .news-item h4 {
    font-size: 15px !important;
    line-height: 1.3 !important;
    margin: 0 0 5px !important;
    color: #071a3d !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sc-news-scope .news-meta {
    font-size: 12px !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
}

/* 5. Responsive total para móviles */
@media (max-width: 480px) {
    .sc-news-scope .news-list-grid {
        grid-template-columns: 1fr !important;
    }

    .sc-news-scope .news-item {
        flex-direction: row !important;
        gap: 12px !important;
    }

    .sc-news-scope .news-item img {
        width: 80px !important;
        height: 80px !important;
        flex: 0 0 80px !important;
    }
}

/* =========================
       THUMB SMALL
========================= */

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.sc-news-scope .news-thumb-bottom {
    position: relative !important;
    width: 90px !important;
    height: 90px !important;
    flex-shrink: 0 !important;
}

.sc-news-scope .news-thumb-bottom img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

.sc-news-scope .news-thumb-bottom .news-badge-bottom {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    font-size: 8px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    color: #fff !important;
}



/* =========================
   PAGINACIÓN NOTICIAS
   ========================= */

.news-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.news-pagination p,
.news-pagination div:first-child span.relative {
    display: none !important;
}

.news-pagination nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: transparent !important;
}

/* Estilo base para números y flechas */
.news-pagination a,
.news-pagination span.relative {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: #1f2937;
    transition: all .2s ease;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hover en los links */
.news-pagination a:hover {
    background: #f3f4f6 !important;
    color: #003DC4;
}

/* ESTADO ACTIVO: La página actual */
.news-pagination span[aria-current="page"]>span,
.news-pagination .active,
.news-pagination span[aria-current="page"] {
    background: #071a3d !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 10px;
}

/* Deshabilitado (Flechas) */
.news-pagination span[aria-disabled="true"] {
    color: #9ca3af !important;
    cursor: not-allowed;
}

/* Tamaño de flechas SVG de Laravel */
.news-pagination svg {
    width: 20px !important;
    height: 20px !important;
    pointer-events: none;
}

/* Diseño Responsive */
@media (max-width: 576px) {
    .news-pagination nav {
        gap: 4px;
    }

    .news-pagination a,
    .news-pagination span.relative {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 14px;
    }
}



/* =========================
       RESPONSIVE
========================= */

@media (max-width: 992px) {
    .sc-news-scope .featured-grid {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 20px !important;
    }

    .sc-news-scope .featured-left {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        gap: 20px !important;
    }

    .sc-news-scope .featured-bottom {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }

    .sc-news-scope .news-card {
        height: 280px !important;
        min-height: 280px !important;
        width: 100% !important;
        position: relative !important;
    }

    .sc-news-scope .card-tall {
        height: 280px !important;
        min-height: 280px !important;
    }

    .sc-news-scope .news-card img {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .sc-news-scope .news-title {
        font-size: 1.2rem !important;
        line-height: 1.3 !important;
    }
}

@media (min-width: 641px) and (max-width: 992px) {
    .sc-news-scope .featured-bottom {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
}