/* Galeri projek (mockup v5: Gallery.dc.html). Dimuat selepas pages.css, jadi menimpanya. */

/* ---- Warna jubin pastel mengikut tema (indeks THEMES) ---- */
.gallery .tile--t0, .project .tile--t0, .pj-poster.tile--t0 { --pc: #7CEFC0; } .gallery .tile--t1, .pj-poster.tile--t1 { --pc: #FFBE7A; }
.gallery .tile--t2, .pj-poster.tile--t2 { --pc: #FFE27A; } .gallery .tile--t3, .pj-poster.tile--t3 { --pc: #FFB199; }
.gallery .tile--t4, .pj-poster.tile--t4 { --pc: #FF8FB1; } .gallery .tile--t5, .pj-poster.tile--t5 { --pc: #C7ADFF; }
.gallery .tile--t6, .pj-poster.tile--t6 { --pc: #C4EF78; } .gallery .tile--t7, .pj-poster.tile--t7 { --pc: #7DE6F5; }
.gallery .tile--t8, .pj-poster.tile--t8 { --pc: #8ECFFF; }

/* ---- Pengepala ---- */
.gl-head { position: relative; overflow: hidden; border-bottom: 1px solid rgba(11, 27, 63, .1); }
.gl-blob { position: absolute; right: -6%; top: -40%; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 255, .26), transparent 65%); filter: blur(40px); animation: fxdrift 20s ease-in-out infinite; }
@keyframes fxdrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -30px) scale(1.12); } }
.gl-count { position: absolute; right: 32px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-end; line-height: .85; pointer-events: none; }
.gl-count #gl-num { font-family: var(--font-outline); font-size: clamp(90px, 13vw, 190px); background: linear-gradient(135deg, #2F5BEA, #7B4DF0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gl-count__lbl { font: 600 13px var(--font-mono); letter-spacing: .2em; color: #55627F; }
@media (max-width: 760px) { .gl-count { opacity: .35; } }
.gl-ghost { position: absolute; left: 0; right: 0; bottom: -8px; overflow: hidden; white-space: nowrap; pointer-events: none; }
.kn-ghost-in { display: inline-block; font-family: var(--font-outline); font-weight: 400; font-size: clamp(90px, 15vw, 200px); line-height: .9; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1.2px rgba(47, 91, 234, .11); animation: kngh 420s linear infinite; }
@keyframes kngh { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.gl-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 27, 63, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 27, 63, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.gl-head__in { position: relative; max-width: 1320px; margin: 0 auto; padding: 56px 32px 44px; display: flex; flex-direction: column; gap: 14px; }
.gl-kicker { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(225, 29, 72, .08); border: 1px solid rgba(225, 29, 72, .35); font: 600 12.5px var(--font-mono); letter-spacing: .08em; color: #C81E3A; }
.gl-head h1 { margin: 0; font: 700 clamp(44px, 6.5vw, 88px)/1 var(--font-head); letter-spacing: -.04em; color: #0B1B3F; }
.gl-sub { margin: 0; font-size: 19px; color: #55627F; max-width: 640px; }

/* Huruf kinetik: --i = indeks huruf (kelewatan muncul), --kc = warna dekat kursor */
.kn-w { display: inline-block; margin-right: .26em; white-space: nowrap; }
.kn-ch { display: inline-block; --d: 0; --i: 0; --kc: #7B4DF0; color: color-mix(in srgb, #0B1B3F calc((1 - var(--d)) * 100%), var(--kc)); transition: color .25s ease-out; animation: knin 1.4s cubic-bezier(.2, .9, .3, 1.1) backwards, knwave 15s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms), calc(1200ms + var(--i) * 420ms); }
.kc0 { --kc: #2F5BEA; } .kc1 { --kc: #7B4DF0; } .kc2 { --kc: #0891B2; }
.i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; } .i5 { --i: 5; } .i6 { --i: 6; } .i7 { --i: 7; } .i8 { --i: 8; } .i9 { --i: 9; }
.i10 { --i: 10; } .i11 { --i: 11; } .i12 { --i: 12; } .i13 { --i: 13; } .i14 { --i: 14; } .i15 { --i: 15; } .i16 { --i: 16; } .i17 { --i: 17; } .i18 { --i: 18; } .i19 { --i: 19; }
.i20 { --i: 20; } .i21 { --i: 21; } .i22 { --i: 22; } .i23 { --i: 23; } .i24 { --i: 24; } .i25 { --i: 25; } .i26 { --i: 26; } .i27 { --i: 27; } .i28 { --i: 28; } .i29 { --i: 29; }
.i30 { --i: 30; } .i31 { --i: 31; } .i32 { --i: 32; } .i33 { --i: 33; } .i34 { --i: 34; } .i35 { --i: 35; } .i36 { --i: 36; } .i37 { --i: 37; } .i38 { --i: 38; } .i39 { --i: 39; }
@keyframes knin { from { opacity: 0; transform: translateY(60%) rotate(8deg) scale(.6); filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes knwave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .kn-ch { color: #0B1B3F; transform: none !important; } }

/* ---- Isi ---- */
.gl-main { max-width: 1320px; margin: 0 auto; padding: 32px 32px 112px; }
.gl-bar { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin-bottom: 24px; }
.gl-search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1px solid rgba(11, 27, 63, .2); color: #0B1B3F; }
.gl-search input { flex: 1; min-width: 0; height: 50px; background: transparent; border: 0; color: #0B1B3F; font: 15px var(--font-mono); outline: none; }
.gl-search:focus-within { outline: 3px solid #2F5BEA; outline-offset: 3px; }
.gl-search input::placeholder { color: #55627F; opacity: 1; }
.gl-sort { display: flex; align-items: center; gap: 10px; font: 600 12.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #55627F; }
.gl-sort select { min-height: 54px; padding: 0 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(11, 27, 63, .2); color: #0B1B3F; font: 500 15px var(--font-body); text-transform: none; letter-spacing: 0; }
.gl-view { display: none; border: 1px solid rgba(11, 27, 63, .2); border-radius: 14px; overflow: hidden; background: #fff; }
.js .gl-view { display: inline-flex; }
.gl-view button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; min-width: 44px; padding: 0 16px; border: 0; background: #fff; color: #0B1B3F; font: 600 13px var(--font-mono); cursor: pointer; }
.gl-view button[aria-pressed="true"] { background: #0B1B3F; color: #fff; }
.gl-view button:focus-visible { outline-offset: -3px; }
.gl-status { padding: 8px 16px; border-radius: 999px; background: rgba(47, 91, 234, .1); font: 600 13px var(--font-mono); color: #043093; }
.gl-ftoggle { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid rgba(11, 27, 63, .2); background: #fff; color: #0B1B3F; font: 600 15px var(--font-body); cursor: pointer; }
.gl-badge { display: none; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #2F5BEA; color: #fff; font: 600 12px var(--font-mono); }
.gl-badge--on { display: inline-flex; }

.gl-cols { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.gl-results { flex: 3 1 620px; min-width: 0; }
.gl-side { flex: 1 1 260px; max-width: 340px; min-width: 0; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); display: flex; flex-direction: column; gap: 22px; }
.gl-side__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gl-side h2 { margin: 0; font: 600 14px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.gl-clear { min-height: 44px; min-width: 44px; padding: 0 2px; background: transparent; border: 0; color: #043093; font: 600 14px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.gl-side fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gl-side legend { padding: 0; margin-bottom: 6px; font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: #2F5BEA; }
.gl-side label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 16px; }
.gl-side input { width: 20px; height: 20px; accent-color: #2F5BEA; margin: 0; flex: none; }
.gl-side label span { flex: 1; }
.gl-side label em { font: normal 12.5px var(--font-mono); color: #55627F; }

/* ---- Kad ---- */
.gallery .pgrid.gl-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; margin: 0; }
.gallery .pcard { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); box-shadow: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.gallery .pcard:hover { transform: translateY(-6px); border-color: rgba(47, 91, 234, .55); box-shadow: 0 18px 44px rgba(47, 91, 234, .16); }
.gallery .pcard__tile { position: relative; height: 120px; min-height: 0; padding: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pc, #C7ADFF), #fff); }
.gallery .pcard__code { padding: 0; background: none; border-radius: 0; font: 600 34px var(--font-mono); letter-spacing: -.02em; color: rgba(11, 27, 63, .85); }
.gallery .pcard__dept { position: absolute; right: 12px; top: 12px; padding: 2px 10px; border-radius: 6px; background: rgba(255, 255, 255, .85); font: 600 12px var(--font-mono); color: #0B1B3F; }
.gallery .pcard__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.gallery .pcard__title { font: 600 17px/1.35 var(--font-head); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pcard__student { font-size: 14px; color: #55627F; }
.pcard__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ptag { padding: 2px 9px; border-radius: 999px; }
.ptag--tech { background: rgba(47, 91, 234, .1); font: 500 11.5px var(--font-mono); color: #043093; }
.ptag--theme { border: 1px solid rgba(11, 27, 63, .15); font: 500 12px var(--font-body); }
.gallery .pcard.fx-pop { animation: fxpop .35s ease both; }
@keyframes fxpop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
/* Sebelum JS: hanya 12 pertama kelihatan, selebihnya dimuat semasa menatal */
.js .gl-cards:not(.gl-ready) .pcard:nth-child(n+13) { display: none; }
.gl-listhead { display: none; }

.gl-more { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 36px; min-height: 60px; font: 600 13px var(--font-mono); color: #55627F; }
.gl-more[hidden] { display: none; }
.gl-led { width: 8px; height: 8px; border-radius: 50%; background: #2F5BEA; animation: gled 1.2s ease-in-out infinite; }
@keyframes gled { 50% { opacity: .3; } }
.gl-empty { padding: 56px 24px; border-radius: 22px; border: 1px dashed rgba(47, 91, 234, .4); text-align: center; flex-direction: column; align-items: center; gap: 14px; background: rgba(255, 255, 255, .7); display: flex; }
.gl-empty[hidden] { display: none; }
.gl-empty p { margin: 0; font: 16px var(--font-mono); color: #55627F; }
.gl-clear-btn { min-height: 48px; padding: 0 24px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #2F5BEA, #7B4DF0); color: #fff; font: 600 16px var(--font-body); cursor: pointer; }

/* ---- Paparan senarai ---- */
.gallery.gl--list .gl-listhead, .gallery.gl--list .pcard { display: grid; grid-template-columns: 80px minmax(0, 1fr) 56px 200px; align-items: center; gap: 16px; padding: 12px 18px; }
.gallery.gl--list .gl-listhead { padding: 10px 18px; background: rgba(47, 91, 234, .06); border: 1px solid rgba(11, 27, 63, .12); border-bottom: 1px solid rgba(11, 27, 63, .1); border-radius: 22px 22px 0 0; font: 600 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #55627F; }
.gallery.gl--list .gl-cards { display: block; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); border-top: 0; border-radius: 0 0 22px 22px; overflow: hidden; }
.gallery.gl--list .pcard { border-radius: 0; border: 0; border-bottom: 1px solid rgba(11, 27, 63, .08); min-height: 56px; background: transparent; transition: background .15s ease; }
.gallery.gl--list .pcard:hover { transform: none; box-shadow: none; background: #fff; }
.gallery.gl--list .pcard__tile, .gallery.gl--list .pcard__body { display: contents; }
.gallery.gl--list .pcard__code { grid-column: 1; grid-row: 1; font: 600 13.5px var(--font-mono); color: #043093; letter-spacing: 0; }
.gallery.gl--list .pcard__title { grid-column: 2; grid-row: 1; font: 500 16px/1.35 var(--font-body); -webkit-line-clamp: 2; line-clamp: 2; }
.gallery.gl--list .pcard__dept { position: static; grid-column: 3; grid-row: 1; padding: 0; background: none; font: 600 13px var(--font-mono); }
.gallery.gl--list .pcard__tags { grid-column: 4; grid-row: 1; gap: 4px; }
.gallery.gl--list .ptag--tech { padding: 1px 8px; font-size: 11px; }
.gallery.gl--list .pcard__student, .gallery.gl--list .ptag--theme { display: none; }
@media (max-width: 680px) {
  .gallery.gl--list .gl-listhead { display: none; }
  .gallery.gl--list .gl-cards { border-top: 1px solid rgba(11, 27, 63, .12); border-radius: 22px; }
  .gallery.gl--list .pcard { grid-template-columns: 76px minmax(0, 1fr) auto; row-gap: 6px; }
  .gallery.gl--list .pcard__title { grid-column: 2 / 4; grid-row: 1; }
  .gallery.gl--list .pcard__dept { grid-column: 3; grid-row: 2; }
  .gallery.gl--list .pcard__tags { grid-column: 2; grid-row: 2; }
  .gallery.gl--list .pcard__code { grid-row: 1 / 3; align-self: start; }
}

/* ---- Skrin kecil: penapis di sebalik butang, dua lajur ---- */
@media (max-width: 860px) {
  .gl-main { padding-inline: 20px; }
  .gl-head__in { padding-inline: 20px; }
  .js .gl-ftoggle { display: inline-flex; }
  .gl-side { order: -1; flex-basis: 100%; max-width: none; padding: 16px; gap: 14px; }
  .js .gl-side:not(.gl-side--open) { display: none; }
  .gl-side fieldset { flex-direction: row; flex-wrap: wrap; gap: 6px 8px; }
  .gl-side legend { width: 100%; float: left; margin-bottom: 4px; }
  .gl-side legend + * { clear: left; }
  .gl-side label { flex: 1 1 calc(50% - 8px); min-width: 128px; padding: 0 12px; border: 1px solid rgba(11, 27, 63, .14); border-radius: 12px; background: #fff; }
}
@media (max-width: 520px) { .gl-search, .gl-sort { flex: 1 1 100%; } .gl-sort select { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .gallery .pcard:hover { transform: none; } }

/* ============ Butiran projek (ProjectDetail.dc.html) ============ */
.pj-head { position: relative; overflow: hidden; border-bottom: 1px solid rgba(11, 27, 63, .1); }
.pj-head .gl-blob { top: -50%; background: radial-gradient(circle, rgba(47, 91, 234, .24), transparent 65%); }
.pj-head__in { position: relative; max-width: 1320px; margin: 0 auto; padding: 24px 32px 40px; display: flex; flex-direction: column; gap: 16px; }
.pj-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: #043093; text-decoration: none; }
.pj-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pj-chip { padding: 4px 12px; border-radius: 999px; font: 600 13px var(--font-mono); }
.pj-chip--code { background: #0B1B3F; color: #fff; }
.pj-chip--dept { border: 1px solid rgba(11, 27, 63, .25); }
.pj-chip--tech { background: rgba(47, 91, 234, .1); font-weight: 500; color: #043093; }
.pj-chip--theme { border: 1px solid rgba(11, 27, 63, .15); font: 500 13px var(--font-body); }
.pj-head h1 { margin: 0; font: 700 clamp(32px, 4.6vw, 58px)/1.08 var(--font-head); letter-spacing: -.035em; max-width: 1000px; overflow-wrap: anywhere; color: #0B1B3F; }

.pj-main { max-width: 1320px; margin: 0 auto; padding: 40px 32px 112px; }
.pj-top { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pj-fig { flex: 0 1 340px; min-width: 0; margin: 0; }
.pj-poster { position: relative; aspect-ratio: 2 / 3; border-radius: 22px; background: linear-gradient(160deg, #E3EDFF, #EDE4FF); border: 1px solid rgba(11, 27, 63, .12); box-shadow: 0 24px 50px rgba(47, 91, 234, .18); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pj-poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pj-zoom { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(11, 27, 63, .2); background: #fff; color: #0B1B3F; cursor: pointer; display: none; align-items: center; justify-content: center; }
.js .pj-zoom { display: flex; }
.pj-poster--none { background: linear-gradient(160deg, color-mix(in srgb, var(--pc, #FF8FB1) 30%, transparent), rgba(255, 255, 255, .7)); border: 1px dashed rgba(11, 27, 63, .3); box-shadow: none; flex-direction: column; gap: 8px; text-align: center; padding: 20px; }
.pj-poster--none b { font: 600 32px var(--font-mono); }
.pj-poster--none span { font-weight: 600; font-size: 17px; }
.pj-fig figcaption { margin-top: 12px; font: 12.5px var(--font-mono); color: #55627F; }
.pj-side { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pj-video { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; border-radius: 22px; background: linear-gradient(135deg, #E3EDFF, #EDE4FF); border: 1px solid rgba(11, 27, 63, .12); box-shadow: 0 24px 50px rgba(47, 91, 234, .14); text-decoration: none; color: #0B1B3F; flex-direction: column; gap: 14px; }
.pj-play { position: relative; width: 84px; height: 84px; border-radius: 50%; background: #E11D48; display: flex; align-items: center; justify-content: center; }
.pj-play::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #E11D48; animation: fxping 2s ease-out infinite; }
@keyframes fxping { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.pj-video__lbl { font: 600 14px var(--font-mono); }
a.pj-video { transition: transform .25s ease, box-shadow .25s ease; }
a.pj-video:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(47, 91, 234, .24); }
.pj-video--none { color: #55627F; border-style: dashed; box-shadow: none; font: 600 15px var(--font-mono); }
.pj-spec { margin: 0; border-radius: 22px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); overflow: hidden; font: 14px var(--font-mono); display: block; padding: 0; }
.pj-spec > div { display: flex; gap: 16px; padding: 12px 20px; border-bottom: 1px solid rgba(11, 27, 63, .08); }
.pj-spec > div:last-child { border-bottom: 0; }
.pj-spec dt { flex: 0 0 130px; color: #55627F; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; padding-top: 2px; }
.pj-spec dd { margin: 0; flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }

.pj-info { margin-top: 48px; border-radius: 24px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); overflow: hidden; }
.pj-info .tabs__list { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin: 0; background: rgba(47, 91, 234, .06); border-bottom: 1px solid rgba(11, 27, 63, .1); overflow: visible; }
.pj-info .tabs__list [role="tab"] { min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: transparent; color: #0B1B3F; font: 600 16px var(--font-head); cursor: pointer; }
.pj-info .tabs__list [aria-selected="true"] { background: #0B1B3F; color: #fff; }
.pj-info .tabs__panel { padding: 32px 36px 40px; max-width: 980px; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; color: #2A3A5E; }
.pj-info .tabs__panel.fx-pop { animation: fxpop2 .3s ease both; }
@keyframes fxpop2 { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pj-info .tabs__panel p { margin: 0 0 14px; }
.pj-info .tabs__panel ol, .pj-info .tabs__panel ul { margin: 0; padding-left: 24px; display: flex; flex-direction: column; gap: 14px; }
.pj-info .tabs__nojs { font-size: 20px; margin: 0 0 12px; color: #0B1B3F; }
.js .pj-info .tabs__panel:not(.is-on) { display: none; }
html:not(.js) .pj-info .tabs__panel { border-bottom: 1px solid rgba(11, 27, 63, .08); }

.pj-nav { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; }
.pj-nav a { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 24px; border-radius: 18px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); text-decoration: none; color: #0B1B3F; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.pj-nav a:hover { transform: translateY(-4px); border-color: rgba(47, 91, 234, .55); box-shadow: 0 14px 36px rgba(47, 91, 234, .14); }
.pj-nav .pj-next { text-align: right; margin-left: auto; }
.pj-nav small { font: 600 12px var(--font-mono); letter-spacing: .08em; color: #043093; }
.pj-nav b { font: 600 17px var(--font-head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pj-dialog { border: 0; padding: 0; background: transparent; max-width: min(96vw, 900px); max-height: 94vh; overflow: visible; }
.pj-dialog::backdrop { background: rgba(11, 27, 63, .72); }
.pj-dialog img { display: block; max-width: 100%; max-height: 92vh; margin: 0 auto; border-radius: 14px; background: #fff; }
.pj-dialog button { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; border-radius: 12px; border: 1px solid rgba(11, 27, 63, .2); background: #fff; color: #0B1B3F; font-size: 24px; cursor: pointer; }
@media (max-width: 860px) { .pj-head__in, .pj-main { padding-inline: 20px; } .pj-info .tabs__panel { padding: 24px 20px 28px; } .pj-spec > div { gap: 12px; padding: 12px 16px; } .pj-spec dt { flex-basis: 104px; } }
@media (prefers-reduced-motion: reduce) { .pj-nav a:hover, a.pj-video:hover { transform: none; } }

/* Dropdown: anak panah tersuai dengan jarak selesa dari sempadan (anak panah asal terlalu rapat) */
.gl-sort select, .field select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1B3F' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px; }
