/* =========================================================
   TERKINI
   ========================================================= */

.apri-latest-section {
    width: 100%;

    padding: 35px 0 30px;

    background: #ffffff;
}


.latest-container {
    width: min(
        calc(100% - 40px),
        var(--apri-container)
    );

    margin: 0 auto;
}


.latest-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(300px, 0.95fr);

    gap: 65px;

    align-items: start;
}


/* =========================================================
   HEADING
   ========================================================= */

.latest-heading {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    border-bottom: 1px solid var(--apri-border);

    margin-bottom: 28px;
    
     width:100%;
}


.latest-heading h2 {
    position: relative;

    display: inline-block;

    color: #14783b;

    font-size: 29px;

    font-weight: 400;

    line-height: 1.2;

    padding-bottom: 8px;

    text-transform: uppercase;
    
    letter-spacing:1px;
}

.latest-heading::after {

    content:"";

    display:block;

}


.latest-heading h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 75px;
    height: 3px;

    background: var(--apri-primary);
}


.latest-kicker {
    display: none;
}


.latest-more {

    display:inline-flex;
    
    margin-left:auto;

    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;

    transition:.3s ease;

}


.latest-more span {

    font-size:18px;

    line-height:1;

    transition:.3s ease;

}



.latest-more:hover {

    background:#075ca8;

    color:white;

    border-color:#075ca8;

}



.latest-more:hover span {

    transform:translateX(4px);

}





/* =========================================================
   FEATURED
   ========================================================= */

.latest-featured-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;

    margin-bottom: 15px;
}


.latest-featured-card {
    min-width: 0;
    transition:.3s ease;
}


.latest-featured-image {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
    
    border-radius:12px;

    background: #edf1f5;
}


.latest-featured-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.latest-featured-card:hover {

    transform:translateY(-4px);

}

.latest-featured-image img {
    transform:scale(1.06);
}


.latest-featured-content {
    padding-top: 14px;
}


.latest-category {
    display: block;

    color: #008c56;

    font-size: 10px;

    line-height: 1.2;

    font-weight: 500;

    margin-bottom: 5px;

    text-transform: uppercase;
}


.latest-featured-content h3 {
    color:#0f172a;

    font-size: 19px;

    line-height: 1.35;

    font-weight: 700;
    
     letter-spacing:-0.2px;

}




.latest-featured-content h3 a {


    display:-webkit-box;
    
    color:inherit;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;


}


.latest-date {
    color: #9ca3af;

    font-size: 10px;

    margin-top: 8px;
}


/* =========================================================
   NEWS GRID
   ========================================================= */

.latest-news-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 35px;
}


.latest-news-item {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        88px;

    gap: 14px;

    padding:18px 0;

    border-top:1px solid #e5e7eb;
    
    transition:.25s ease;

    min-width: 0;
}


.latest-news-text {
    min-width: 0;
}


.latest-news-text h3 {
    color: #111827;

    font-size: 15px;

    line-height: 1.45;

    font-weight: 600;

    display: -webkit-box;

    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.latest-news-text h3 a {

    color:inherit;

}


.latest-news-text h3 a:hover {

    color:#006C35;

}


.latest-news-thumb {
    display: block;

    width: 100px;
    height: 75px;
    border-radius:8px;

    overflow: hidden;

    background: #edf1f5;
}


.latest-news-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}


.latest-news-item:hover
.latest-news-thumb img {
    transform: scale(1.05);
}


.latest-news-item:hover
.latest-news-text h3 {
    color: var(--apri-primary);
}


/* =========================================================
   TERPOPULER
   ========================================================= */

.latest-sidebar {
    min-width: 0;
}


.popular-heading {
    border-bottom: 1px solid var(--apri-border);

    margin-bottom: 15px;
}


.popular-heading h2 {
    position: relative;

    display: inline-block;

    color: #14783b;

    font-size: 29px;

    font-weight: 400;

    text-transform: uppercase;

    line-height: 1.2;

    padding-bottom: 8px;
}


.popular-heading h2::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -1px;

    width: 75px;
    height: 3px;

    background: var(--apri-primary);
}


/* =========================================================
   POPULAR LIST
   ========================================================= */

.popular-list {
    width: 100%;
}


.popular-item {
    display: grid;

    grid-template-columns: 48px minmax(0, 1fr);

    gap: 13px;

    padding: 9px 0 12px;

    border-bottom: 1px solid var(--apri-border);

    transition:
        background 0.2s ease;
}


.popular-item:hover {
    background: #fafcff;
}


.popular-number {
   color:#198754;

    font-size: 34px;

    line-height: 1;

    font-weight: 700;

    text-align: center;
}


.popular-content {
    min-width: 0;
}


.popular-content .latest-category {
    margin-bottom: 4px;
}


.popular-content h3 {
    color: #111827;

    font-size: 13px;

    line-height: 1.45;

    font-weight: 600;
    
    display:-webkit-box;

    -webkit-line-clamp:3;

    -webkit-box-orient:vertical;

    overflow:hidden;


    margin:5px 0 0;
}


.popular-content p {
    color: #a0a7b0;

    font-size: 9px;

    margin-top: 7px;
}

/* Hilangkan garis bawah judul berita terkini */

.latest-featured-content h3 a,
.latest-news-text h3 a,
.popular-content h3 a {

    text-decoration: none;

    color: inherit;

}

.latest-featured-content h3 a:hover,
.latest-news-text h3 a:hover,
.popular-content h3 a:hover {

    color: var(--apri-primary);

}

.popular-item {

    text-decoration:none;

    color:inherit;

}


/* =========================================================
   BANNER SLIDER
   ========================================================= */

.apri-banner-slider {
    position: relative;

    width: 100%;

    margin-top: 24px;

    overflow: hidden;

    border-radius: 9px;

    background: #edf1f5;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.08);
}


.banner-slides {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 7;
}


.banner-slide {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.5s ease;
}


.banner-slide.active {
    opacity: 1;

    pointer-events: auto;
}


.banner-slide img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   BANNER DOTS
   ========================================================= */

.banner-dots {
    position: absolute;

    left: 50%;
    bottom: 10px;

    transform: translateX(-50%);

    display: flex;

    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    border-radius: 20px;

    background: rgba(0, 0, 0, 0.18);
}


.banner-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.65);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.banner-dot.active {
    background: white;

    transform: scale(1.25);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .latest-layout {
        grid-template-columns:
            minmax(0, 1.7fr)
            minmax(270px, 1fr);

        gap: 28px;
    }


    .latest-news-grid {
        grid-template-columns: 1fr;
    }


    .popular-item {
        grid-template-columns:
            40px minmax(0, 1fr);
    }


    .popular-number {
        font-size: 33px;
    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .apri-latest-section {
        padding-top: 45px;
    }


    .latest-container {
        width: calc(100% - 24px);
    }


    .latest-layout {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    .latest-sidebar {
        width: 100%;
    }


    .popular-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 20px;
    }


    .popular-item {
        min-width: 0;
    }


    .apri-banner-slider {
        margin-top: 25px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .apri-latest-section {
        padding-top: 35px;

        padding-bottom: 45px;
    }


    .latest-heading h2,
    .popular-heading h2 {
        font-size: 24px;
    }


    .latest-featured-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }


    .latest-featured-content h3 {
        font-size: 15px;
    }


    .latest-news-item {
        grid-template-columns:
            minmax(0, 1fr)
            82px;

        gap: 12px;
    }


    .latest-news-thumb {
        width: 82px;
        height: 68px;
    }


    .popular-list {
        grid-template-columns: 1fr;
    }


    .popular-item {
        grid-template-columns:
            45px minmax(0, 1fr);

        padding: 11px 0;
    }


    .popular-number {
        font-size: 35px;
    }


    .popular-content h3 {
        font-size: 13px;
    }


    .banner-slides {
        aspect-ratio: 16 / 8;
    }

}