/* =========================================================
   BERITA APRI
   ========================================================= */

.apri-news-section {
    width: 100%;

    padding: 20px 0 20px;

    

    border-top: 1px solid var(--apri-border);
    
    background:
        radial-gradient(
            circle at top left,
            rgba(7,92,168,.12),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #f5faff,
            #eaf4fc 55%,
            #fff7df
        );
}


.news-container {
    width: min(
        calc(100% - 40px),
        var(--apri-container)
    );

    margin: 0 auto;
}


/* =========================================================
   SECTION HEADER
   ========================================================= */

.news-section-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}


.news-kicker {
    display: block;

    color: var(--apri-primary);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    margin-bottom: 5px;
}


.news-section-heading h2 {

    margin:0;

    font-size:32px;

    font-weight:750;

    color:#0f172a;

    letter-spacing:-.5px;

}


.news-section-heading p {
    color: var(--apri-text-muted);

    font-size: 14px;

    margin-top: 6px;
}

.news-section-heading > div {
    flex:1;
}





/* =========================================================
   MORE LINK
   ========================================================= */

.news-more-link {

    display:inline-flex;

    align-items:center;

    gap:10px;

    color:#075ca8;

    font-size:13px;

    font-weight:600;

    text-decoration:none;

    padding:8px 14px;

    border:1px solid #dbeafe;

    border-radius:30px;

    background:#ffffff;

    white-space:nowrap;

    transition:.3s ease;
    
     margin-bottom:5px;

}



.news-more-link span {

    font-size:18px;

    line-height:1;

    transition:.3s ease;

}



.news-more-link:hover {

    background:#075ca8;

    color:white;

    border-color:#075ca8;

}



.news-more-link:hover span {

    transform:translateX(4px);

}

/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.news-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(360px, 1fr);

    gap: 40px;

    align-items: start;
}


/* =========================================================
   FEATURED NEWS
   ========================================================= */

.featured-news {

    position:relative;

    min-width:0;

    overflow:hidden;

    border-radius:18px;

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);

}


.featured-news-image {

    display:block;

    width:100%;

    aspect-ratio:16/10;

    overflow:hidden;

    position:relative;
    
    border-radius:14px;

}


.featured-news-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}

.featured-news-image::after {

    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.75),
        rgba(0,0,0,.15) 55%,
        transparent
    );

}


.featured-news:hover
.featured-news-image img {
    transform: scale(1.03);
}


.featured-news-content {


    position:relative;

    left:0;

    bottom:0;


     width:calc(100% - 70px);
     
     margin-top:-90px;
     
     margin-left:30px;


    padding:28px 32px 30px;


    background:#ffffff;


    color:white;


    z-index:2;
    
    box-shadow:
        0 15px 35px rgba(0,0,0,.10);
        
        border-left:
        4px solid #006C35;


}

.featured-news-content::before {

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:5px;

    height:100%;

    background:#006C35;

    border-radius:10px;

}


.news-category {

    display:inline-flex;

    align-items:center;

    padding:5px 12px;

    background:rgba(255,255,255,.85);

    color:#059669;

    border-radius:30px;

    font-size:11px;

    font-weight:700;

    letter-spacing:.5px;

    margin-bottom:12px;

    text-transform:uppercase;

}


.featured-news-content h3 {

    margin:0;

    color:#111827;


    font-size:30px;


    line-height:1.25;


    font-weight:700;


    max-width:90%;

    letter-spacing:-0.3px;
    
    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;

}


.featured-news-content h3 a {

    color:inherit;

    text-decoration:none;

    transition:.25s ease;

}


.featured-news-content h3 a:hover {

    color:#006C35;

}


.news-date {
    color:#8a94a3;

    font-size: 12px;

    margin-top: 17px;
}

.featured-news-content .news-date {

     color:#64748b;
    margin-top:15px;

}

.featured-news-content .news-category {


    display:inline-block;


    padding:5px 14px;


    border-radius:20px;


    background:#ecfdf5;


    color:#047857;


    font-size:11px;


    font-weight:700;


}


/* =========================================================
   NEWS LIST
   ========================================================= */

.news-list {
    display: flex;

    flex-direction: column;
}


.news-list-item {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 110px;

    gap: 20px;
    
     transition:.25s ease;

    min-height: 145px;

    padding: 0 0 16px;

    margin-bottom: 16px;

    border-bottom: 1px solid #dfe3e8;
}

.news-list-item:hover {

    transform:translateX(5px);

}


.news-list-item:last-child {
    margin-bottom: 0;
}


.news-list-content {
    min-width: 0;
}


.news-list-content h3 {
    
    color:#0f172a;

    margin:8px 0 10px;

    font-size:16px;

    line-height:1.45;

    font-weight:700;

    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;

}


.news-list-content h3 a {

    color:inherit;

    text-decoration:none;

    transition:.25s ease;

}



.news-list-content h3 a:hover {

     color:#006C35;

}


.news-list-image {
    display: block;

    width: 110px;
    height: 105px;

    overflow: hidden;

    background: #e5e7eb;
}


.news-list-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.news-list-item:hover
.news-list-image img {
    transform: scale(1.05);
}


.news-list-item:hover
.news-list-content h3 a {

    color:var(--apri-primary);

}


/* =========================================================
   LARGE TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .news-layout {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(320px, 1fr);

        gap: 28px;
    }


    .featured-news-content {
        width: calc(100% - 50px);
    }


    .featured-news-content h3 {
        font-size: 23px;
    }


    .news-list-item {
        grid-template-columns:
            minmax(0, 1fr)
            95px;

        gap: 14px;
    }


    .news-list-image {
        width: 95px;
        height: 90px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .apri-news-section {
        padding-top: 40px;
    }


    .news-container {
        width: calc(100% - 24px);
    }


    .news-layout {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .featured-news-content {
        width: calc(100% - 40px);

        padding: 20px;
    }


    .featured-news-content h3 {
        font-size: 24px;
    }
    
    .featured-news-content {


    width:calc(100% - 30px);


    margin-left:15px;


    margin-top:-40px;


    padding:20px;


}


.featured-news-content h3 {

    font-size:22px;

}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .news-section-heading {
        align-items: flex-end;

        margin-bottom: 18px;
    }


    .news-section-heading h2 {
        font-size: 23px;
    }


    .news-section-heading p {
        font-size: 12px;

        max-width: 280px;
    }


    .news-more-link {
        font-size: 12px;
    }


    .featured-news-content {
        width: 100%;

        padding: 18px;
    }


    .featured-news-content h3 {
        font-size: 20px;
    }


    .news-list-item {
        grid-template-columns:
            minmax(0, 1fr)
            90px;

        gap: 12px;

        min-height: 120px;

        padding-bottom: 14px;

        margin-bottom: 14px;
    }


    .news-list-image {
        width: 90px;
        height: 82px;
    }


    .news-list-content h3 {
        font-size: 14px;

        -webkit-line-clamp: 3;
    }


    .news-date {
        font-size: 11px;

        margin-top: 10px;
    }

}


/* =========================================================
   HP SANGAT KECIL
   ========================================================= */

@media (max-width: 360px) {

    .news-list-item {
        grid-template-columns:
            minmax(0, 1fr)
            75px;
    }


    .news-list-image {
        width: 75px;
        height: 70px;
    }

}