/* ==========================================================================
   Projects list (/projects) + project detail (/project/{id}) — pj- prefix
   depends on departures.css + tours-all.css
   ========================================================================== */
.pj-hero .dp-hero__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.pj-hero .dp-stats li { background: rgba(21, 25, 25, .62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pj-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.pj-hero__meta li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; background: rgba(21, 25, 25, .55); font-size: 12px; font-weight: 700; color: #fff; }
.pj-hero__meta i { color: var(--hx-yellow); }

/* ---------- list ---------- */
.pj-grid { margin-bottom: 8px; }
.pj-card__year { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--hx-yellow); color: #151919; font-size: 12px; font-weight: 700; }
.pj-card .at-card__name { font-size: 16px; }
.pj-intro { margin: 0 0 26px; }
.pj-intro .ct-about__text { columns: 1; }

/* ---------- detail ---------- */
.pj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.dp .pj-layout:before, .dp .pj-layout:after { display: none !important; } /* bootstrap .container clearfix would become grid items */
.pj-main { min-width: 0; }
.pj-article {
    background: #fff;
    color: #3a3f3f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    margin-bottom: 24px;
}
.pj-article__media { display: block; aspect-ratio: 16 / 8; background: #eee; }
.pj-article__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-article__body { padding: 26px 30px 28px; }
.pj-article__body .hx-eyebrow { color: #8a6f00; margin-bottom: 6px; }
.pj-prose { font-size: 15.5px; line-height: 1.8; text-align: justify; hyphens: auto; }
.pj-prose p { margin: 0 0 14px; text-align: justify !important; }
.pj-prose p:last-child { margin-bottom: 0; }
.pj-prose strong, .pj-prose b { color: #151919; }
.pj-prose a { color: #151919; font-weight: 700; text-decoration: underline; text-decoration-color: var(--hx-yellow); text-underline-offset: 3px; word-break: break-word; }
.pj-prose a:hover { color: #b58f00; }
.pj-prose ul, .pj-prose ol { padding-left: 22px; margin: 0 0 14px; }

.pj-gallery { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pj-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eee; }
.pj-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.pj-gallery a:hover img { transform: scale(1.05); }

.pj-links { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ececec; }
.pj-links span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a8f8f; margin-bottom: 8px; }
.pj-links a { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 6px 0; font-size: 13px; font-weight: 700; color: #151919; }
.pj-links a i { color: #8a6f00; font-size: 12px; }

.pj-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 24px; }
.pj-nav a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    border: 1px solid var(--hx-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    color: #fff !important;
    min-width: 0;
    transition: border-color .15s ease, background .15s ease;
}
.pj-nav a:hover { border-color: var(--hx-yellow); background: rgba(255, 208, 0, .06); text-decoration: none; }
.pj-nav a small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--hx-muted); }
.pj-nav a strong { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pj-nav a.pj-nav--next { text-align: right; align-items: flex-end; }

/* ---------- sidebar ---------- */
.pj-side { position: sticky; top: 76px; }
.pj-side__card {
    background: #fff;
    color: #3a3f3f;
    border-radius: 14px;
    border-top: 4px solid var(--hx-yellow);
    padding: 20px 22px 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.pj-side__card .hx-eyebrow { color: #8a6f00; }
.pj-side__card h2 { margin: 0 0 8px; font-size: 19px; font-weight: 700; color: #151919; }
.pj-side__card p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; }
.pj-side__btn { display: flex; justify-content: center; width: 100%; padding: 11px 16px; font-size: 14px; }
.pj-side__alt { display: block; margin-top: 10px; text-align: center; font-size: 12px; color: #6b7070 !important; }
.pj-side__alt span { color: #151919; font-weight: 700; }
.pj-side__alt:hover { text-decoration: none; }
.pj-side__alt:hover span { color: #b58f00; }

.pj-side__dark { margin-top: 16px; padding: 18px 20px; border: 1px solid var(--hx-line); border-radius: 14px; }
.pj-others { list-style: none; margin: 0; padding: 0; }
.pj-others li { border-top: 1px solid var(--hx-line); }
.pj-others li:first-child { border-top: 0; }
.pj-others a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; color: #fff !important; }
.pj-others a:hover { text-decoration: none; }
.pj-others a:hover strong { color: var(--hx-yellow); }
.pj-others img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; display: block; background: #222; }
.pj-others strong { display: block; font-size: 13px; line-height: 1.35; font-weight: 600; transition: color .15s ease; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pj-others small { font-size: 11px; color: var(--hx-muted); }
.pj-others__all { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hx-yellow) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .pj-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
}
@media (max-width: 991px) {
    .pj-hero .dp-hero__grid { grid-template-columns: 1fr; }
    .pj-layout { grid-template-columns: 1fr; }
    .pj-side { position: static; }
    .pj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
    .pj-article__body { padding: 20px 18px 22px; }
    .pj-article__media { aspect-ratio: 16 / 10; }
    .pj-nav { grid-template-columns: 1fr; }
    .pj-nav a.pj-nav--next { text-align: left; align-items: flex-start; }
    .dp-list { padding-bottom: 40px; }
}
