/* NEWS GRID */
.news-container {
    padding-top: 60px;
    padding-bottom: 80px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.news-card-img {
    height: 210px;
    overflow: hidden;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 24px;
}

.news-card-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.news-card-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.news-card-read {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

/* SKELETON LOADING */
.news-skeleton {
    height: 380px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* DETAIL PAGE */
.detail-container {
    max-width: 1100px;
    padding-top: 48px;
    padding-bottom: 80px;
}


/* Layout artikel dengan tombol prev/next di sisi */
.detail-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.detail-layout article {
    flex: 1;
    min-width: 0;
}

.news-nav-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    position: sticky;
    top: 120px;
    transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.news-nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.news-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 40px;
    transition: gap 0.2s;
}

.back-link:hover {
    gap: 12px;
}

.artikel-header {
    margin-bottom: 28px;
}

.artikel-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 12px;
}

.artikel-tanggal {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-top: 12px;
}

.artikel-header h1 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.artikel-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}

.artikel-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.artikel-meta-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.artikel-meta-item strong {
    color: var(--dark);
    font-weight: 600;
}

.artikel-foto {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 36px;
}

.artikel-konten {
    font-size: 16px;
    color: var(--text);
    line-height: 1.9;
}

.artikel-konten p { margin-bottom: 18px; }

.artikel-konten strong { font-weight: 700; color: var(--dark); }
.artikel-konten em { font-style: italic; }
.artikel-konten u { text-decoration: underline; }
.artikel-konten s { text-decoration: line-through; }

.artikel-konten h1,
.artikel-konten h2,
.artikel-konten h3 {
    font-family: var(--font-display);
    color: var(--dark);
    font-weight: 700;
    margin: 32px 0 16px;
    line-height: 1.3;
}
.artikel-konten h1 { font-size: 28px; }
.artikel-konten h2 { font-size: 24px; }
.artikel-konten h3 { font-size: 20px; }

.artikel-konten ul,
.artikel-konten ol {
    margin: 0 0 18px 24px;
}
.artikel-konten li { margin-bottom: 8px; }

.artikel-konten blockquote {
    border-left: 4px solid var(--primary);
    padding: 4px 20px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
    background: var(--bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.artikel-konten a {
    color: var(--primary);
    text-decoration: underline;
}

.artikel-konten img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 24px 0;
    display: block;
}

/* ARTIKEL SKELETON */
.artikel-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-title {
    height: 40px;
    width: 70%;
    border-radius: 8px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-img {
    height: 400px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text {
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-text.short {
    width: 60%;
}

.empty-state {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
    font-size: 15px;
    grid-column: 1 / -1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
    .artikel-header h1 { font-size: 26px; }
    .detail-container { padding-top: 32px; }
}