/* ===============================================================
   DIGIKOVA | Halaman Kategori Publikasi - Modern Card Layout
   Scoped: .dkpc-* - tidak mengubah admin, beranda, atau live chat.
   Muat SETELAH file CSS publik lainnya.
   =============================================================== */
.dkpc-section {
  --dkpc-card: #0d2135;
  --dkpc-border: rgba(119, 202, 223, .19);
  --dkpc-title: #f3f9ff;
  --dkpc-body: #a8c0d3;
  --dkpc-secondary: #7d9db4;
  --dkpc-accent: #43e9d4;
  --dkpc-soft: rgba(36, 218, 202, .10);
  background: #071321;
  padding: 30px 0 94px;
}
.dkpc-section .dkpc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 266px; gap: 26px; align-items: start; }
.dkpc-section .dkpc-main { min-width: 0; }
.dkpc-section .dkpc-banner {
  height: clamp(190px, 24vw, 275px); position: relative; overflow: hidden;
  border: 1px solid var(--dkpc-border); border-radius: 22px;
  background: radial-gradient(circle at 75% 25%, #1d4d82, transparent 60%),linear-gradient(125deg, #0d2750, #0b3b48);
  isolation: isolate;
}
.dkpc-section .dkpc-banner::after { content: ''; position: absolute; inset: 55% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(2, 18, 37, .65)); }
.dkpc-section .dkpc-banner > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dkpc-section .dkpc-banner-label {
  position: absolute; bottom: 16px; left: 19px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 999px;
  border: 1px solid rgba(190, 255, 249, .25);
  background: rgba(4, 24, 48, .74); color: #ddfbff;
  backdrop-filter: blur(10px); font-size: 10px; letter-spacing: .10em; font-weight: 800;
}
.dkpc-section .dkpc-banner-label svg { width: 14px; height: 14px; color: #41e5ce; }
.dkpc-section .dkpc-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 32px 0 22px; }
.dkpc-section .dkpc-eyebrow { display: block; font-size: 10px; font-weight: 850; letter-spacing: .16em; color: var(--dkpc-accent); margin-bottom: 10px; }
.dkpc-section .dkpc-heading h2 { font-size: clamp(23px, 2.7vw, 32px); line-height: 1.25; letter-spacing: -.04em; margin: 0; color: var(--dkpc-title); }
.dkpc-section .dkpc-heading p { font-size: 12px; line-height: 1.8; color: var(--dkpc-body); margin: 7px 0 0; }
.dkpc-section .dkpc-total { white-space: nowrap; background: var(--dkpc-soft); color: var(--dkpc-accent); border: 1px solid var(--dkpc-border); border-radius: 999px; padding: 9px 13px; font-size: 11px; font-weight: 800; }

.dkpc-section .dkpc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dkpc-section .dkpc-card {
  min-width: 0; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--dkpc-border); border-radius: 18px;
  background: var(--dkpc-card);
  box-shadow: 0 10px 30px rgba(0, 8, 24, .09);
  transition: transform .23s ease, border-color .23s ease, box-shadow .23s ease;
}
@media (hover:hover) {
  .dkpc-section .dkpc-card:hover { transform: translateY(-5px); border-color: rgba(60, 225, 210, .58); box-shadow: 0 22px 44px rgba(0, 8, 24, .26); }
}
.dkpc-section .dkpc-card:focus-within { border-color: var(--dkpc-accent); }
.dkpc-section .dkpc-thumbnail {
  display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 72% 33%, rgba(114, 85, 253, .5), transparent 40%), linear-gradient(135deg, #053e62 10%, #0f2855 53%, #163e70);
}
.dkpc-section .dkpc-thumbnail-pattern {
  position: absolute; inset: 0; opacity: .24;
  background: radial-gradient(circle at 75% 64%, transparent 0 57px, #71e3e0 58px 59px, transparent 60px), repeating-linear-gradient(145deg, transparent 0 35px, rgba(64, 204, 245, .12) 35px 36px);
}
.dkpc-section .dkpc-thumbnail img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .32s ease; }
@media (hover:hover) { .dkpc-section .dkpc-card:hover .dkpc-thumbnail img { transform: scale(1.035); } }
.dkpc-section .dkpc-thumbnail-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; color: rgba(180, 253, 252, .86); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.dkpc-section .dkpc-thumbnail-mark svg { width: 38px; height: 38px; filter: drop-shadow(0 0 20px rgba(64, 235, 214, .3)); }
.dkpc-section .dkpc-thumbnail-badge { position: absolute; z-index: 2; bottom: 12px; left: 13px; padding: 6px 10px; border: 1px solid rgba(163, 255, 247, .18); border-radius: 99px; color: #dcffff; background: rgba(0, 23, 43, .83); backdrop-filter: blur(9px); font-size: 10px; font-weight: 800; line-height: 1.25; }
.dkpc-section .dkpc-card-content { flex: 1; padding: 21px 21px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.dkpc-section .dkpc-card-meta { width: 100%; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--dkpc-secondary); font-size: 10px; line-height: 1.5; margin-bottom: 12px; }
.dkpc-section .dkpc-author { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.dkpc-section .dkpc-author svg { flex-shrink: 0; width: 13px; height: 13px; }
.dkpc-section .dkpc-meta-separator { opacity: .5; }
.dkpc-section .dkpc-card h3 { margin: 0; color: var(--dkpc-title); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.47; letter-spacing: -.025em; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dkpc-section .dkpc-card h3 a:hover { color: var(--dkpc-accent); }
.dkpc-section .dkpc-summary { color: var(--dkpc-body); font-size: 12px; line-height: 1.85; margin: 11px 0 23px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dkpc-section .dkpc-read { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 800; color: var(--dkpc-accent); padding: 0 0 2px; }
.dkpc-section .dkpc-read svg { width: 14px; height: 14px; transition: transform .2s; }
.dkpc-section .dkpc-read:hover svg { transform: translate(2px, -2px); }
.dkpc-section .dkpc-all-categories { margin-top: 25px; display: inline-flex; align-items: center; gap: 8px; color: var(--dkpc-accent); font-weight: 750; font-size: 12px; }
.dkpc-section .dkpc-all-categories svg { width: 15px; height: 15px; }

.dkpc-section .dkpc-sidebar {
  position: sticky; top: 112px; background: var(--dkpc-card);
  border: 1px solid var(--dkpc-border); border-radius: 18px; padding: 25px 21px;
  color: var(--dkpc-body); min-width: 0;
}
.dkpc-section .dkpc-sidebar h2 { margin: 0 0 21px; color: var(--dkpc-title); font-size: 18px; line-height: 1.4; }
.dkpc-section .dkpc-topics { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.dkpc-section .dkpc-topics li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.65; font-size: 12px; }
.dkpc-section .dkpc-topic-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; color: var(--dkpc-accent); background: var(--dkpc-soft); }
.dkpc-section .dkpc-topic-check svg { width: 14px; height: 14px; }
.dkpc-section .dkpc-sidebar-divider { height: 1px; background: var(--dkpc-border); margin: 23px 0; }
.dkpc-section .dkpc-sidebar p { color: var(--dkpc-secondary); font-size: 11px; line-height: 1.85; margin: 0 0 20px; }
.dkpc-section .dkpc-sidebar-link { display: inline-flex; align-items: center; gap: 7px; color: var(--dkpc-accent); font-size: 11px; font-weight: 800; }
.dkpc-section .dkpc-sidebar-link svg { width: 13px; height: 13px; }
.dkpc-section .dkpc-empty { text-align: center; border: 1px dashed var(--dkpc-border); border-radius: 18px; padding: 56px 25px; background: var(--dkpc-card); }
.dkpc-section .dkpc-empty-icon { width: 57px; height: 57px; display: grid; place-items: center; border-radius: 16px; margin: 0 auto 18px; background: var(--dkpc-soft); color: var(--dkpc-accent); }
.dkpc-section .dkpc-empty-icon svg { width: 28px; height: 28px; }
.dkpc-section .dkpc-empty h3 { font-size: 22px; color: var(--dkpc-title); margin: 0 0 10px; }
.dkpc-section .dkpc-empty p { font-size: 13px; color: var(--dkpc-body); max-width: 410px; margin: 0 auto 18px; }
.dkpc-section .dkpc-browse { display: inline-flex; align-items: center; gap: 8px; color: var(--dkpc-accent); font-weight: 800; font-size: 12px; }
.dkpc-section .dkpc-browse svg { width: 14px; height: 14px; }

/* Mode terang: kontras seimbang dengan tema DIGIKOVA */
html[data-public-theme="light"] .dkpc-section {
  --dkpc-card: #fff;
  --dkpc-border: #d7e6f0;
  --dkpc-title: #143449;
  --dkpc-body: #526f83;
  --dkpc-secondary: #6a889c;
  --dkpc-accent: #007e86;
  --dkpc-soft: #e1f8f6;
  background: #f3f8fc;
}
html[data-public-theme="light"] .dkpc-section .dkpc-card { box-shadow: 0 10px 30px rgba(21, 72, 106, .055); }
html[data-public-theme="light"] .dkpc-section .dkpc-card:hover { box-shadow: 0 22px 50px rgba(21, 72, 106, .13); }
html[data-public-theme="light"] .dkpc-section .dkpc-banner-label { background: rgba(5, 33, 54, .75); color: #f2ffff; }

@media (max-width: 1000px) {
  .dkpc-section .dkpc-layout { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .dkpc-section .dkpc-sidebar { position: static; }
  .dkpc-section .dkpc-sidebar h2 { margin-bottom: 15px; }
  .dkpc-section .dkpc-topics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .dkpc-section { padding: 18px 0 58px; }
  .dkpc-section .dkpc-banner { height: 188px; border-radius: 17px; }
  .dkpc-section .dkpc-banner-label { bottom: 12px; left: 12px; font-size: 9px; }
  .dkpc-section .dkpc-heading { align-items: start; flex-direction: column; gap: 10px; margin: 23px 0 20px; }
  .dkpc-section .dkpc-total { padding: 7px 10px; }
  .dkpc-section .dkpc-grid { grid-template-columns: 1fr; gap: 15px; }
  .dkpc-section .dkpc-card { border-radius: 16px; }
  .dkpc-section .dkpc-card-content { padding: 18px; }
  .dkpc-section .dkpc-card h3 { font-size: 18px; }
  .dkpc-section .dkpc-summary { font-size: 12px; }
  .dkpc-section .dkpc-topics { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dkpc-section .dkpc-card, .dkpc-section .dkpc-thumbnail img, .dkpc-section .dkpc-read svg { transition: none; }
  .dkpc-section .dkpc-card:hover { transform: none; }
}
