/* ====== SECTION WRAPPER ====== */
.latest-articles-section {
    padding: 3rem 1.25rem;
    background: #FFFFFF;
    margin: 1rem auto;
    border-radius: 14px;
}

.latest-articles-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ====== HEADER ====== */
.latest-articles-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.latest-articles-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.latest-articles-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    max-width: 560px;
    margin: 0;
}

/* ====== SLIDER WRAPPER ====== */
.latest-articles-slider-wrapper {
    position: relative;
    overflow: hidden;
}

/* Horizontal slider */
.latest-articles-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar styling (optional) */
.latest-articles-slider::-webkit-scrollbar {
    height: 6px;
}
.latest-articles-slider::-webkit-scrollbar-track {
    background: transparent;
}
.latest-articles-slider::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}

/* ====== CARD ====== */
.latest-article-card {
    flex: 0 0 260px;
    max-width: 320px;
    background: #ffffff;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
    border-color: #3b82f6;
}

.latest-article-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image */
.latest-article-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    overflow: hidden;
    background: #e5e7eb;
}

.latest-article-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.latest-article-content {
    padding: 0.9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: 100%;
}

.latest-article-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.latest-article-excerpt {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.latest-article-readmore {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #2563eb;
}

/* ====== EMPTY STATE ====== */
.latest-articles-empty {
    font-size: 0.95rem;
    color: #6b7280;
    padding: 1rem 0;
}

/* ====== CTA BUTTON ====== */
.latest-articles-cta {
    text-align: center;
    margin-top: 2rem;
}

.latest-articles-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #2563eb;
    color: #2563eb;
    background: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.latest-articles-button:hover {
    background: #2563eb;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* ====== LINE CLAMP (dengan standar & webkit) ====== */
.line-clamp-2,
.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Standar property */
.line-clamp-2 {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.line-clamp-3 {
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 1024px) {
    .latest-articles-title {
        font-size: 1.8rem;
    }

    .latest-articles-section {
        padding: 3.5rem 1.5rem;
    }
}

/* ==== PANAH SLIDER ==== */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d1d5db;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: 0.2s ease;
}

.slider-arrow:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.slider-arrow-left {
    left: 8px;   /* sebelumnya -10px, sekarang geser ke dalam */
}

.slider-arrow-right {
    right: 8px;  /* sebelumnya -10px, sekarang geser ke dalam */
}

/* Mobile: panah disembunyikan */
@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}
