/* ============================================================
   css/CGENews-2026-14.css
   Article page: RMIT–UoP Joint PhD Programme Collaboration Meeting
   Load AFTER css/CGE-news.css (banner, sidebar, layout and the
   category colours  --c / --c-bg / --c-ink  come from that file).
   ============================================================ */

/* ================= ARTICLE CARD ================= */
.ar {
  background: #fff;
  border: 1px solid var(--nw-line, #e1e7f1);
  border-top: 4px solid var(--c, #0b2352);
  border-radius: 10px;
  padding: 30px 34px 34px;
  box-shadow: 0 4px 14px rgba(11,35,82,.06);
}

/* ---------- header ---------- */
.ar-back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 20px;
  font-size: 13px; font-weight: 700;
  color: var(--nw-navy, #0b2352); text-decoration: none;
}
.ar-back:hover { text-decoration: underline; }
.ar-back:focus-visible { outline: 2px solid var(--nw-gold, #e1a80b); outline-offset: 3px; }

.ar-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.ar-meta .nw-tag { margin: 0; padding: 3px 12px; font-size: 12px; }
.ar-date { font-size: 13px; font-weight: 600; color: var(--nw-muted, #66758f); }
.ar-date i { margin-right: 6px; color: var(--nw-navy, #0b2352); }

.ar-title {
  margin: 0 0 24px;
  font-family: var(--nw-serif, Georgia, serif);
  font-size: 34px; line-height: 1.22; font-weight: 700;
  color: var(--nw-navy, #0b2352);
}

/* ---------- hero ---------- */
.ar-hero {
  margin: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  background: #e8edf6;
}
.ar-hero img { display: block; width: 100%; max-height: 480px; object-fit: cover; }

/* ---------- quick facts strip (attached under the hero) ---------- */
.ar-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 32px;
  background: var(--nw-navy, #0b2352);
  border-radius: 0 0 10px 10px;
}
.ar-facts > div { padding: 16px 20px; }
.ar-facts > div + div { border-left: 1px solid rgba(255,255,255,.16); }
.ar-facts dt {
  margin: 0 0 4px;
  font-size: 12px; font-weight: 700; color: var(--nw-gold, #e1a80b);
}
.ar-facts dt i { margin-right: 7px; }
.ar-facts dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: #fff; }

/* ---------- body text ---------- */
.ar-body { max-width: 78ch; margin: 0 auto; }
.ar-body p {
  margin: 0 0 20px;
  font-size: 16px; line-height: 1.85; text-align: justify; hyphens: auto;
  color: var(--nw-ink, #1f2a3d);
}
.ar-body strong { color: var(--nw-navy, #0b2352); }
.ar-lead { font-size: 18px !important; line-height: 1.75 !important; }

/* ---------- highlight callout ---------- */
.ar-callout {
  margin: 8px 0 22px;
  padding: 20px 24px 6px;
  background: var(--c-bg, #e3eefb);
  border-left: 5px solid var(--c, #1a5cb0);
  border-radius: 0 10px 10px 0;
}
.ar-callout-label {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 13px; font-weight: 700; color: var(--c-ink, #0f3d7a);
}
.ar-callout p { margin-bottom: 14px; }

/* ---------- programme figures ---------- */
.ar-stats {
  list-style: none; margin: 0 0 30px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--nw-line, #e1e7f1); border-radius: 10px; overflow: hidden;
}
.ar-stats li { padding: 18px 12px; text-align: center; background: #fff; }
.ar-stats li + li { border-left: 1px solid var(--nw-line, #e1e7f1); }
.ar-stats strong {
  display: block;
  font-family: var(--nw-serif, Georgia, serif);
  font-size: 36px; line-height: 1.1; font-weight: 700;
  color: var(--c, #1a5cb0);
}
.ar-stats span { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--nw-muted, #66758f); }

/* ================= GALLERY ================= */
.ar-gallery {
  margin-top: 38px; padding-top: 30px;
  border-top: 1px solid var(--nw-line, #e1e7f1);
}
.ar-gal-head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
  margin-bottom: 16px;
}
.ar-gal-head h3 {
  margin: 0; padding-left: 12px;
  font-family: var(--nw-serif, Georgia, serif);
  font-size: 26px; line-height: 1.15; font-weight: 700;
  color: var(--nw-navy, #0b2352);
  border-left: 5px solid var(--nw-gold, #e1a80b);
}
.ar-gal-head span { font-size: 13px; color: var(--nw-muted, #66758f); }

/* mosaic: first photo large, last photo wide */
.ar-gal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 10px;
}
.ar-gal-item {
  position: relative; display: block;
  overflow: hidden; border-radius: 8px;
  background: #e8edf6;
}
.ar-gal-item:first-child { grid-column: span 2; grid-row: span 2; }
.ar-gal-item:nth-child(8) { grid-column: span 2; }

.ar-gal-item img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ar-gal-item:hover img { transform: scale(1.06); }

.ar-gal-over {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px;
  padding: 14px;
  color: #fff;
  background: linear-gradient(180deg, rgba(7,26,61,0) 45%, rgba(7,26,61,.82) 100%);
  opacity: 0; transition: opacity .3s;
}
.ar-gal-over i {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; display: grid; place-items: center;
  font-size: 14px; color: var(--nw-navy, #0b2352);
  background: var(--nw-gold, #e1a80b); border-radius: 50%;
}
.ar-gal-over em { font-style: normal; font-size: 13px; font-weight: 600; line-height: 1.35; }
.ar-gal-item:hover .ar-gal-over,
.ar-gal-item:focus-visible .ar-gal-over { opacity: 1; }
.ar-gal-item:focus-visible { outline: 3px solid var(--nw-gold, #e1a80b); outline-offset: 2px; }

/* ================= FOOTER NAV ================= */
.ar-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin-top: 34px; padding-top: 22px;
  border-top: 1px solid var(--nw-line, #e1e7f1);
}
.ar-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: #fff; background: var(--nw-navy, #0b2352);
  border: 1px solid var(--nw-navy, #0b2352); border-radius: 8px;
  transition: background .2s, color .2s;
}
.ar-btn:hover { background: var(--nw-gold, #e1a80b); border-color: var(--nw-gold, #e1a80b); color: var(--nw-navy, #0b2352); }
.ar-btn-ghost { color: var(--nw-navy, #0b2352); background: #fff; border-color: #cdd6e6; }
.ar-btn:focus-visible { outline: 2px solid var(--nw-gold, #e1a80b); outline-offset: 3px; }

/* ================= PHOTO VIEWER ================= */
.ar-lb {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 70px;
  background: rgba(7,26,61,.94);
}
.ar-lb[hidden] { display: none; }
.ar-lb-fig { margin: 0; max-width: 100%; text-align: center; }
.ar-lb-fig img {
  display: block; max-width: 100%; max-height: 80vh; margin: 0 auto;
  border-radius: 6px; box-shadow: 0 16px 50px rgba(0,0,0,.5);
}
.ar-lb-fig figcaption {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 12px; font-size: 14px; color: #dbe5f7;
}
#arLbCount { font-weight: 700; color: var(--nw-gold, #e1a80b); }

.ar-lb-btn {
  position: absolute;
  width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 18px; color: #fff; cursor: pointer;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  transition: background .2s, color .2s;
}
.ar-lb-btn:hover { background: var(--nw-gold, #e1a80b); color: var(--nw-navy, #0b2352); }
.ar-lb-btn:focus-visible { outline: 3px solid var(--nw-gold, #e1a80b); outline-offset: 2px; }
.ar-lb-close { top: 18px; right: 18px; }
.ar-lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); }
.ar-lb-next  { right: 14px; top: 50%; transform: translateY(-50%); }

/* ================= RESPONSIVE ================= */
@media (max-width: 991px) {
  .ar { padding: 24px 22px 28px; }
  .ar-title { font-size: 28px; }
}
@media (max-width: 700px) {
  .ar-facts { grid-template-columns: 1fr; }
  .ar-facts > div + div { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); }
  .ar-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-stats li:nth-child(3) { border-left: 0; }
  .ar-stats li:nth-child(n+3) { border-top: 1px solid var(--nw-line, #e1e7f1); }
  .ar-body p { text-align: left; }
  .ar-lead { font-size: 17px !important; }

  .ar-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .ar-gal-item:first-child { grid-column: span 2; grid-row: span 2; }
  .ar-gal-item:nth-child(8) { grid-column: span 2; }
  .ar-gal-over { opacity: 1; background: linear-gradient(180deg, rgba(7,26,61,0) 65%, rgba(7,26,61,.7) 100%); }
  .ar-gal-over i { display: none; }

  .ar-lb { padding: 64px 12px 24px; }
  .ar-lb-prev, .ar-lb-next { top: auto; bottom: 14px; transform: none; }
  .ar-lb-prev { left: 14px; }
  .ar-lb-next { right: 14px; }
}
@media (max-width: 600px) {
  .ar-title { font-size: 24px; }
  .ar-foot { flex-direction: column; align-items: stretch; }
  .ar-btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-gal-item img, .ar-gal-over, .ar-btn, .ar-lb-btn { transition: none; }
  .ar-gal-item:hover img { transform: none; }
}