
/* =========================================
   ASLAM PRINTER - LATEST ARTICLES
========================================= */

.apc-latest-articles {
    width: 100%;
    margin: 45px 0;
    padding: 30px;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(23, 32, 51, .045);
    box-sizing: border-box;
}

.apc-latest-articles *,
.apc-latest-articles *::before,
.apc-latest-articles *::after {
    box-sizing: border-box;
}

.apc-latest-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.apc-latest-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #e65b25;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.apc-latest-heading h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.3;
}

.apc-latest-heading p {
    margin: 0;
    color: #697386;
    font-size: 14px;
    line-height: 1.7;
}

.apc-latest-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 11px 16px;
    border-radius: 9px;
    background: #fff3ed;
    color: #e65b25 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.apc-latest-all:hover {
    background: #e65b25;
    color: #fff !important;
}

/* DESKTOP: 4 KOLOM */

.apc-latest-articles .apc-latest-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

.apc-latest-articles .apc-latest-card {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(23, 32, 51, .035);
    transition: .25s ease;
}

.apc-latest-articles .apc-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(23, 32, 51, .09);
}

.apc-latest-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f4f6f8;
    text-decoration: none !important;
}

.apc-latest-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.apc-latest-card:hover .apc-latest-image img {
    transform: scale(1.05);
}

.apc-latest-image span {
    color: #9aa2b1;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.apc-latest-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 15px;
}

.apc-latest-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
    color: #929baa;
    font-size: 10px;
}

.apc-latest-category {
    padding: 4px 7px;
    border-radius: 5px;
    background: #fff1eb;
    color: #d65322;
    font-weight: 700;
}

.apc-latest-content h3 {
    display: -webkit-box;
    min-height: 44px;
    max-height: 44px;
    overflow: hidden;
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 750;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.apc-latest-content h3 a {
    color: #172033;
    text-decoration: none !important;
}

.apc-latest-content h3 a:hover {
    color: #e65b25;
}

.apc-latest-content p {
    display: -webkit-box;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    margin: 0 0 14px;
    color: #697386;
    font-size: 12px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.apc-latest-read {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #e65b25 !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.apc-latest-empty {
    padding: 15px;
    color: #697386;
    background: #f7f8fa;
    border-radius: 8px;
}

/* TABLET */

@media (max-width: 900px) {
    .apc-latest-articles .apc-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .apc-latest-articles {
        margin: 28px 0;
        padding: 16px;
        border-radius: 15px;
    }

    .apc-latest-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .apc-latest-heading h2 {
        font-size: 22px;
    }

    .apc-latest-heading p {
        font-size: 12px;
    }

    .apc-latest-articles .apc-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .apc-latest-content {
        padding: 10px;
    }

    .apc-latest-content h3 {
        font-size: 12px;
        min-height: 35px;
        max-height: 35px;
    }

    .apc-latest-content p {
        font-size: 11px;
        min-height: 55px;
        max-height: 55px;
    }
}
