/* UTILITY: sembunyikan elemen yang dikasih class "hidden" lewat JS */
.hidden {
    display: none !important;
}

/* HERO */
.ld-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #2d1b2e 100%);
}

.ld-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 40%, rgba(230,57,70,0.15) 0%, transparent 55%),
                radial-gradient(circle at 20% 70%, rgba(230,57,70,0.08) 0%, transparent 40%);
}

.ld-hero-overlay { position: absolute; inset: 0; }

.ld-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 80px;
    width: 100%;
}

.ld-hero-content h1 {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin: 12px 0 20px;
    max-width: 640px;
}

.ld-hero-content p {
    font-size: 15px;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    max-width: 560px;
}

/* FILTER SECTION */
.ld-filter-section {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 80px;   /* samain dengan tinggi header desktop */
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

/* Di layar mobile, tinggi header cuma 60px, jadi sesuaikan juga */
@media (max-width: 768px) {
    .ld-filter-section {
        top: 60px;
    }
}

.ld-filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.ld-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 9px 16px;
    flex: 0 0 280px;
    color: var(--text-muted);
    transition: border-color 0.2s;
}

.ld-search-box:focus-within { border-color: var(--primary); }

.ld-search-box input {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    outline: none;
    width: 100%;
}

.ld-search-box input::placeholder { color: var(--text-muted); }

.ld-tag-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.ld-tag-btn {
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.ld-tag-btn:hover { border-color: var(--primary); color: var(--primary); }
.ld-tag-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* LIST SECTION */
.ld-list-section {
    padding: 48px 0 100px;
    background: var(--bg);
    min-height: 60vh;
}

.ld-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 24px;
}

/* GRID — pakai gaya card ala news-card */
.ld-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ld-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;
}

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

.ld-card-img {
    height: 210px;
    overflow: hidden;
    background: var(--bg);
}

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

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

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

.ld-card-kategori {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: rgba(230,57,70,0.1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ld-card-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ld-card-dosen {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.ld-card-tanggal {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

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

/* EMPTY STATE */
.ld-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.ld-empty svg { opacity: 0.25; }
.ld-empty p { font-size: 15px; }

/* PAGINATION */
.ld-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 48px;
}

.ld-page-btn {
    padding: 10px 24px;
    border-radius: 40px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ld-page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.ld-page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

#ld-page-info {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* SKELETON */
.ld-skeleton {
    background: white;
    border-radius: var(--radius);
    height: 380px;
    overflow: hidden;
    position: relative;
}

.ld-skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ld-shimmer 1.5s infinite;
}

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

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ld-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .ld-hero-content h1 { font-size: 36px; }
    .ld-hero-content { padding: 120px 20px 60px; }
    .ld-filter-bar { flex-direction: column; align-items: stretch; }
    .ld-search-box { flex: none; }
    .ld-grid { grid-template-columns: 1fr; }
}