/* =====================================================
   NOTICIAS_001.CSS
   IESTP TÚPAC AMARU DEL CUSCO
===================================================== */


/* =====================================================
   ÁREA DE NOTICIAS
===================================================== */

.noticias-area {

    background: #ffffff;

    padding: 35px 0 60px;

}


/* =====================================================
   ENCABEZADO
===================================================== */

.noticias-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 25px;

}


.noticias-header h1 {

    margin: 0;

    color: #111111;

    font-size: 30px;

    font-weight: 600;

}


.noticias-header p {

    margin: 0;

    color: #666666;

    font-size: 14px;

}


/* =====================================================
   GRID DE NOTICIAS
===================================================== */

.noticias-grid {

    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    grid-template-rows: 220px 220px;

    gap: 12px;

}


/* =====================================================
   TODAS LAS NOTICIAS
===================================================== */

.noticia-principal,
.noticia-secundaria {

    position: relative;

    overflow: hidden;

    border-radius: 15px;

    background: #eeeeee;

    cursor: pointer;

}


/* =====================================================
   NOTICIA PRINCIPAL
===================================================== */

.noticia-principal {

    grid-row: 1 / 3;

    grid-column: 1;

}


/* =====================================================
   IMÁGENES
===================================================== */

.noticia-principal img,
.noticia-secundaria img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;

}


/* =====================================================
   EFECTO HOVER
===================================================== */

.noticia-principal:hover img,
.noticia-secundaria:hover img {

    transform: scale(1.06);

}


/* =====================================================
   DEGRADADO
===================================================== */

.noticia-principal::after,
.noticia-secundaria::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    height: 65%;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.80)
    );

    pointer-events: none;

}


/* =====================================================
   TEXTO NOTICIA PRINCIPAL
===================================================== */

.noticia-overlay {

    position: absolute;

    left: 25px;

    right: 25px;

    bottom: 23px;

    z-index: 2;

    color: #ffffff;

}


.noticia-fecha {

    display: block;

    margin-bottom: 7px;

    color: #ffffff;

    font-size: 12px;

    font-weight: 500;

    text-transform: uppercase;

}


.noticia-fecha i {

    margin-right: 6px;

}


.noticia-overlay h2 {

    margin: 0 0 7px;

    color: #ffffff;

    font-size: 28px;

    line-height: 1.2;

    font-weight: 700;

}


.noticia-overlay p {

    margin: 0 0 12px;

    color: #ffffff;

    font-size: 14px;

}


/* =====================================================
   BOTÓN
===================================================== */

.btn-noticia {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 14px;

    background: #ffffff;

    color: #111111 !important;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none !important;

    transition: all 0.25s ease;

}


.btn-noticia:hover {

    background: #00447d;

    color: #ffffff !important;

}


.btn-noticia i {

    transition: transform 0.25s ease;

}


.btn-noticia:hover i {

    transform: translateX(4px);

}


/* =====================================================
   NOTICIAS SECUNDARIAS
===================================================== */

.noticia-overlay-small {

    position: absolute;

    left: 17px;

    right: 17px;

    bottom: 15px;

    z-index: 2;

    color: #ffffff;

}


.noticia-overlay-small span {

    display: block;

    margin-bottom: 5px;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 0.5px;

}


.noticia-overlay-small h3 {

    margin: 0;

    color: #ffffff;

    font-size: 17px;

    line-height: 1.25;

    font-weight: 600;

}


/* =====================================================
   RESPONSIVE - TABLET
===================================================== */

@media (max-width: 991px) {

    .noticias-grid {

        grid-template-columns: 1.5fr 1fr;

        grid-template-rows: 280px 200px 200px;

    }


    .noticia-principal {

        grid-row: 1;

        grid-column: 1 / 3;

    }


    .noticia-secundaria {

        grid-row: auto;

        grid-column: auto;

    }

}


/* =====================================================
   RESPONSIVE - CELULAR
===================================================== */

@media (max-width: 767px) {

    .noticias-area {

        padding: 25px 12px 40px;

    }


    .noticias-header {

        display: block;

        margin-bottom: 20px;

    }


    .noticias-header h1 {

        font-size: 25px;

        margin-bottom: 5px;

    }


    .noticias-header p {

        font-size: 13px;

    }


    .noticias-grid {

        display: grid;

        grid-template-columns: 1fr;

        grid-template-rows: 300px 220px 220px 220px 220px;

        gap: 10px;

    }


    .noticia-principal {

        grid-column: 1;

        grid-row: 1;

    }


    .noticia-secundaria {

        grid-column: 1;

    }


    .noticia-overlay {

        left: 18px;

        right: 18px;

        bottom: 18px;

    }


    .noticia-overlay h2 {

        font-size: 23px;

    }


    .noticia-overlay p {

        font-size: 13px;

    }


    .noticia-overlay-small {

        left: 15px;

        right: 15px;

        bottom: 14px;

    }


    .noticia-overlay-small h3 {

        font-size: 16px;

    }

}