/* ============================================================================
   news.css — Radian H.A. Limited · NEWS: a physical site noticeboard.
   Steel scaffold frame, paper notices pinned/taped at crooked angles, torn
   day-calendar dates, rubber-stamp categories, handwritten sticky notes,
   and a clipboard bulletin for the latest post. Single posts = letterhead
   clipboard sheets. Loaded on page-news.php and single.php.
============================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0a1628; --navy-mid: #112240; --navy-light: #1a3560;
  --white: #f8faff; --orange: #e8890a; --orange-light: #ffb547;
  --steel: #8aa4c8; --steel-dim: #3d5a80;
  --paper: #f3efe4; --paper-2: #efe9d9; --ink: #1c2740; --ink-dim: #4d566e;
  --red-ink: #c8372d; --green: #22c97a;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--navy); color: var(--white); min-height: 100vh; overflow-x: hidden; }

/* NAV (same idiom as the other pages) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 60px; display: flex; align-items: center; justify-content: space-between; background: rgba(10,22,40,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,0.07); }
.nav-logo { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: 0.12em; color: var(--white); display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .logo-mark { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 900; color: var(--navy); clip-path: polygon(0 0,100% 0,100% 70%,85% 100%,0 100%); }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { color: rgba(248,250,255,0.7); text-decoration: none; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--orange); }
.nav-cta { background: var(--orange); color: var(--navy); padding: 10px 24px; font-weight: 700; font-size: 0.83rem; letter-spacing: 0.08em; text-transform: uppercase; border: none; cursor: pointer; clip-path: polygon(0 0,100% 0,100% 70%,92% 100%,0 100%); transition: all 0.2s; font-family: 'DM Sans',sans-serif; }
.nav-cta:hover { background: var(--orange-light); transform: translateY(-1px); }

/* HERO */
.page-hero { padding: 150px 60px 54px; background: linear-gradient(160deg, #0a1628 0%, #112240 60%, #0d1e3a 100%); position: relative; overflow: hidden; text-align: center; }
.page-hero-bg { position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg,rgba(255,255,255,0.022) 0 1px,transparent 1px 100px), repeating-linear-gradient(0deg,rgba(255,255,255,0.022) 0 1px,transparent 1px 100px); pointer-events: none; animation: heroDrift 22s linear infinite; }
@keyframes heroDrift { 0%{background-position:0 0;} 100%{background-position:100px 100px;} }
.page-hero-label { display: inline-flex; align-items: center; gap: 10px; font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); font-weight: 600; margin-bottom: 18px; }
.page-hero-label::before, .page-hero-label::after { content: ''; display: block; width: 32px; height: 2px; background: var(--orange); }
.page-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 0.95; letter-spacing: 0.04em; position: relative; }
.page-hero h1 .dim { color: rgba(248,250,255,0.25); }
.page-hero p { margin-top: 18px; font-size: 1rem; color: rgba(248,250,255,0.55); max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7; position: relative; }

/* ════ THE BOARD ════════════════════════════════════════════════════════ */
.nw-wrap { max-width: 1340px; margin: 0 auto; padding: 56px 40px 110px; }

/* steel scaffold frame with corner couplers */
.nw-frame {
  position: relative;
  border: 7px solid transparent;
  border-image: linear-gradient(135deg, #5d7494, #2e3f58 35%, #6b84a6 60%, #34465f) 1;
  background:
    radial-gradient(circle 9px at 14px 14px,                         #1a2438 0 3.5px, #7d92ad 4px 6.5px, #2c3c52 7px 9px, transparent 9px),
    radial-gradient(circle 9px at calc(100% - 14px) 14px,            #1a2438 0 3.5px, #7d92ad 4px 6.5px, #2c3c52 7px 9px, transparent 9px),
    radial-gradient(circle 9px at 14px calc(100% - 14px),            #1a2438 0 3.5px, #7d92ad 4px 6.5px, #2c3c52 7px 9px, transparent 9px),
    radial-gradient(circle 9px at calc(100% - 14px) calc(100% - 14px), #1a2438 0 3.5px, #7d92ad 4px 6.5px, #2c3c52 7px 9px, transparent 9px),
    linear-gradient(180deg, #0c1830, #0a1426);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 0 60px rgba(0,0,0,0.45);
  padding: 54px 38px 46px;
}
/* engraved name plate bolted to the top rail */
.nw-plate {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #f0b440, var(--orange) 55%, #b96d08);
  color: #2a1c08;
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.34em;
  padding: 9px 34px 7px; white-space: nowrap;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.55);
}
/* hazard tape strip just inside the top rail */
.nw-frame::before {
  content: ''; position: absolute; top: 8px; left: 8px; right: 8px; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--orange) 0 12px, #0a1628 12px 24px);
  opacity: 0.5;
}

/* ── clipboard bulletin (latest post) ── */
.nw-clip {
  position: relative;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  margin: 0 auto 44px;
  max-width: 880px;
  padding: 46px 48px 36px;
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), inset 0 0 40px rgba(160,140,90,0.12);
  transform: rotate(-0.5deg);
  transition: transform 0.35s;
}
.nw-clip:hover { transform: rotate(0deg); }
.nw-clip-clip {           /* the metal clip */
  position: absolute; top: -17px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 30px;
  background: linear-gradient(180deg, #93a7c2, #56708f 60%, #44587a);
  border-radius: 7px 7px 3px 3px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.nw-clip-clip::after {    /* clip hole */
  content: ''; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 9px; border-radius: 5px;
  background: #0c1830; box-shadow: inset 0 2px 3px rgba(0,0,0,0.8);
}
.nw-clip-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 18px; }
.nw-clip-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; letter-spacing: 0.22em; }
.nw-clip-tag {
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.22em;
  color: var(--red-ink); border: 2.5px solid var(--red-ink); border-radius: 4px;
  padding: 3px 12px 1px; transform: rotate(3deg);
  opacity: 0.85;
}
.nw-clip-date { font-family: 'Caveat', cursive; font-size: 1.15rem; color: var(--ink-dim); }
.nw-clip-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: 0.04em; line-height: 1.02; }
.nw-clip-title a { color: var(--ink); text-decoration: none; }
.nw-clip-title a:hover { color: var(--red-ink); }
.nw-clip-excerpt { margin-top: 14px; font-size: 0.97rem; line-height: 1.75; color: var(--ink-dim); max-width: 700px; }
.nw-clip-more { display: inline-block; margin-top: 18px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.nw-clip-more:hover { color: var(--red-ink); border-color: var(--red-ink); }

/* ── the pinned notices ── */
.nw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 30px; align-items: start; }

.nw-card {
  position: relative;
  background:
    repeating-linear-gradient(180deg, transparent 0 27px, rgba(60,90,140,0.10) 27px 28px),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  padding: 34px 26px 24px;
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1), box-shadow 0.35s, z-index 0s;
  display: flex; flex-direction: column;
}
.nw-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.025);
  box-shadow: 0 26px 60px rgba(0,0,0,0.65);
  z-index: 5;
}
.nw-card.r1 { --rot: -1.8deg; } .nw-card.r2 { --rot: 1.4deg; }
.nw-card.r3 { --rot: -0.7deg; } .nw-card.r4 { --rot: 2.1deg; }
.nw-card.r5 { --rot: -1.2deg; }

/* pushpin attachment */
.nw-card.pin::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ff9d8a, var(--red-ink) 55%, #7e1d15);
  box-shadow: 0 5px 9px rgba(0,0,0,0.55);
  z-index: 2;
}
.nw-card.pin.alt::before { background: radial-gradient(circle at 34% 28%, #ffd9a0, var(--orange) 55%, #9c5c06); }
/* tape attachment */
.nw-card.tape::before, .nw-card.tape::after {
  content: ''; position: absolute; top: -12px; width: 74px; height: 26px;
  background: rgba(248,250,255,0.32);
  border-left: 1px dashed rgba(255,255,255,0.35); border-right: 1px dashed rgba(255,255,255,0.35);
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}
.nw-card.tape::before { left: -18px; transform: rotate(-38deg); }
.nw-card.tape::after  { right: -18px; transform: rotate(38deg); }

.nw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
/* torn day-calendar date */
.nw-date {
  width: 56px; flex-shrink: 0; text-align: center;
  background: #fff; border-radius: 3px; overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transform: rotate(-2deg);
}
.nw-date .m { display: block; background: var(--red-ink); color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; padding: 4px 0 3px; }
.nw-date .d { display: block; font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; line-height: 1.05; color: var(--ink); padding: 3px 0 4px; border-bottom: 2px dashed #d8d2c2; }
/* rubber-stamp category */
.nw-cat {
  align-self: flex-start;
  font-family: 'Bebas Neue', sans-serif; font-size: 0.86rem; letter-spacing: 0.2em; text-transform: uppercase;
  border: 2px solid currentColor; border-radius: 3px;
  padding: 3px 10px 1px;
  transform: rotate(-3.5deg);
  opacity: 0.8;
  mix-blend-mode: multiply;
}
.nw-cat.c1 { color: var(--red-ink); } .nw-cat.c2 { color: #7030a0; }
.nw-cat.c3 { color: #1d6e3f; }      .nw-cat.c4 { color: #205a96; }
/* NEW stamp on fresh posts */
.nw-new {
  position: absolute; top: 14px; right: -8px;
  font-family: 'Bebas Neue', sans-serif; font-size: 0.95rem; letter-spacing: 0.26em;
  color: var(--red-ink); border: 2.5px solid var(--red-ink); border-radius: 4px;
  padding: 2px 10px 0;
  transform: rotate(9deg);
  opacity: 0.85;
}
.nw-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: 0.04em; line-height: 1.05; margin-bottom: 10px; }
.nw-title a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.nw-title a:hover { color: var(--red-ink); }
.nw-excerpt { font-size: 0.88rem; line-height: 1.7; color: var(--ink-dim); flex: 1; }
.nw-more {
  margin-top: 16px; align-self: flex-start;
  font-family: 'Caveat', cursive; font-size: 1.2rem; font-weight: 600;
  color: var(--orange); text-decoration: none;
}
.nw-more:hover { color: var(--red-ink); }

/* ── handwritten sticky note (board furniture) ── */
.nw-sticky {
  background: linear-gradient(180deg, #ffd964, #f7c93e);
  color: #4a3a08;
  font-family: 'Caveat', cursive; font-size: 1.35rem; font-weight: 600; line-height: 1.45;
  padding: 26px 24px 30px;
  transform: rotate(2.4deg);
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
  position: relative;
  transition: transform 0.35s;
}
.nw-sticky:hover { transform: rotate(0.5deg) translateY(-4px); }
.nw-sticky::before {       /* tape on top */
  content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 86px; height: 24px;
  background: rgba(248,250,255,0.35);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.nw-sticky small { display: block; margin-top: 10px; font-size: 1.05rem; opacity: 0.75; }

/* empty board */
.nw-empty {
  max-width: 360px; margin: 30px auto;
  background: linear-gradient(180deg, #ffd964, #f7c93e); color: #4a3a08;
  font-family: 'Caveat', cursive; font-size: 1.5rem; font-weight: 600; text-align: center;
  padding: 40px 30px; transform: rotate(-2deg);
  box-shadow: 0 14px 30px rgba(0,0,0,0.5);
}

/* pagination — planks */
.nw-pages { display: flex; justify-content: center; gap: 10px; margin-top: 50px; }
.nw-pages .page-numbers {
  min-width: 44px; height: 42px; padding: 0 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #c69a5b, #a87d42);
  color: #2a1c08; text-decoration: none;
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem; letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: 2px;
  transition: transform 0.2s, filter 0.2s;
}
.nw-pages .page-numbers:hover { transform: translateY(-3px); filter: brightness(1.1); }
.nw-pages .page-numbers.current { background: linear-gradient(180deg, #f0b440, var(--orange)); }

/* ════ SINGLE NOTICE — clipboard sheet ═══════════════════════════════════ */
.nw-single { max-width: 860px; margin: 0 auto; padding: 64px 40px 110px; }
.nw-back {
  display: inline-block; margin-bottom: 30px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(248,250,255,0.5); text-decoration: none; transition: color 0.2s;
}
.nw-back:hover { color: var(--orange); }
.nw-sheet {
  position: relative;
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  color: var(--ink);
  padding: 64px 64px 58px;
  border-radius: 3px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55), inset 0 0 50px rgba(160,140,90,0.1);
}
.nw-sheet::before {        /* metal clip */
  content: ''; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 34px;
  background: linear-gradient(180deg, #93a7c2, #56708f 60%, #44587a);
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.5);
}
.nw-sheet::after {         /* clip hole */
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 10px; border-radius: 5px;
  background: #0c1830; box-shadow: inset 0 2px 3px rgba(0,0,0,0.8);
}
/* letterhead: the five brand colours */
.nw-letterhead { display: flex; height: 8px; margin-bottom: 26px; }
.nw-letterhead span { flex: 1; }
.nw-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.nw-meta .date { font-family: 'Caveat', cursive; font-size: 1.25rem; color: var(--ink-dim); }
.nw-single .nw-title { font-size: clamp(2rem, 4vw, 3rem); }
.nw-content { margin-top: 22px; font-size: 1rem; line-height: 1.9; color: #303a55; }
.nw-content h2, .nw-content h3 { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.05em; color: var(--ink); margin: 34px 0 12px; }
.nw-content h2 { font-size: 1.9rem; border-bottom: 2px solid rgba(28,39,64,0.15); padding-bottom: 6px; }
.nw-content h3 { font-size: 1.5rem; }
.nw-content p { margin-bottom: 18px; }
.nw-content ul, .nw-content ol { margin: 0 0 18px 24px; }
.nw-content li { margin-bottom: 8px; }
.nw-content a { color: var(--orange); font-weight: 600; }
.nw-content a:hover { color: var(--red-ink); }
.nw-content img { max-width: 100%; height: auto; border: 6px solid #fff; box-shadow: 0 8px 22px rgba(0,0,0,0.3); transform: rotate(-0.6deg); }
.nw-content blockquote {
  border-left: 4px solid var(--red-ink);
  padding: 8px 0 8px 22px; margin: 24px 0;
  font-family: 'Caveat', cursive; font-size: 1.45rem; line-height: 1.5; color: var(--red-ink);
}
/* posted stamp */
.nw-posted {
  position: absolute; top: 38px; right: 42px;
  font-family: 'Bebas Neue', sans-serif; font-size: 0.92rem; letter-spacing: 0.2em; text-align: center;
  color: var(--red-ink); border: 2.5px solid var(--red-ink); border-radius: 5px;
  padding: 5px 14px 3px;
  transform: rotate(7deg);
  opacity: 0.75;
}

@media (max-width: 1080px) { .nw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  nav { padding: 14px 20px; }
  .page-hero { padding: 120px 24px 40px; }
  .nw-wrap { padding: 44px 16px 80px; }
  .nw-frame { padding: 44px 20px 36px; }
  .nw-plate { font-size: 0.85rem; padding: 8px 20px 6px; letter-spacing: 0.22em; }
  .nw-clip { padding: 36px 26px 30px; }
  .nw-sheet { padding: 50px 28px 44px; }
  .nw-posted { position: static; display: inline-block; margin-bottom: 14px; }
}
@media (max-width: 640px) { .nw-grid { grid-template-columns: 1fr; gap: 40px; } .nw-single { padding: 48px 16px 80px; } }
@media (prefers-reduced-motion: reduce) {
  .nw-card, .nw-clip, .nw-sticky { transform: none; transition: none; }
}
