/* ==========================================================================
   Hijau Kuning — kedahfa.my (unofficial fan site)
   Skin faithful to the 2019 archived site's look (Splash-theme era):
   boxed white content on deep-green #016f49 body, red #e21e22 accents,
   bright category chips, Fira Sans italic headlines, black footer.
   ========================================================================== */

:root {
  --red: #e21e22;
  --chip-green: #06e573;
  --chip-cyan: #02bbe1;
  --page-green: #016f49;
  --ink: #000000;
  --text: #595959;
  --muted: #888888;
  --line: #e8e7e7;
  --footer: #000000;
  --head: "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans Pro", "Source Sans 3", Helvetica, Arial, sans-serif;
  --boxw: 1230px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--page-green);
}

img, svg { max-width: 100%; display: block; }
.hero-art img, .news-art img, .list-art img {
  width: 100%; height: 100%; object-fit: cover;
}
.article-art img { width: 100%; height: auto; }

a { color: var(--red); text-decoration: none; }
a:hover { color: #b71518; text-decoration: underline; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Boxed page — white canvas floating on the green body */
.box {
  max-width: var(--boxw); margin: 0 auto; background: #ffffff;
  box-shadow: 0 0 30px rgba(0,0,0,0.35);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.box > main { flex: 1; }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 30px; width: 100%; }

/* ---- Top bar (light, black links — as original) ---- */
.topbar { background: #f5f5f5; border-bottom: 1px solid var(--line); }
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 36px; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #000;
}
.topbar .notis { font-weight: 600; }

/* ---- Header (white, logo left) ---- */
.site-head { background: #ffffff; }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 96px; height: 96px; flex: none; }
.brand-name {
  font-family: var(--head); font-weight: 800; font-style: italic;
  font-size: 30px; line-height: 1; color: #000; text-transform: uppercase;
  display: block;
}
.brand-name .kuning { color: var(--red); }
.brand-tag { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.head-side { text-align: right; font-size: 12px; color: var(--muted); }
.head-side strong { display: block; font-family: var(--head); font-style: italic; font-weight: 700; color: #000; font-size: 14px; text-transform: uppercase; }

/* ---- Main menu (dark bar, white italic links, red active — Splash style) ---- */
.site-nav { background: #16191d; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.site-nav a {
  display: block; padding: 15px 18px; color: #ffffff;
  font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.02em;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: var(--red); text-decoration: none;
}

/* ---- Hero "slider" ---- */
.hero { padding: 0; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; }
.hero-card { position: relative; display: block; overflow: hidden; color: #fff; }
.hero-card:hover { text-decoration: none; }
.hero-art { position: absolute; inset: 0; }
.hero-art svg { width: 100%; height: 100%; }
.hero-main { min-height: 460px; }
.hero-side .hero-card { min-height: 230px; }
.hero-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-start; padding: 28px 30px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%);
}
.hero-title {
  font-family: var(--head); font-weight: 800; font-style: italic;
  color: #fff; line-height: 1.12; margin-top: 10px;
}
.hero-main .hero-title { font-size: 34px; max-width: 620px; }
.hero-side .hero-title { font-size: 19px; }
.hero-more {
  display: inline-block; margin-top: 16px; background: var(--red); color: #fff;
  font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 9px 22px;
}
.hero-card:hover .hero-more { background: #b71518; }

/* ---- Category chips (square, bright, white text — as original) ---- */
.chip {
  display: inline-block; background: var(--chip-green); color: #073;
  color: #ffffff; font-family: var(--body); font-weight: 600;
  font-size: 13px; line-height: 1; padding: 5px 10px 6px;
}
.chip-cyan { background: var(--chip-cyan); }
.hero-art .chip, .news-art-wrap .chip {
  position: absolute; top: 14px; left: 14px; z-index: 2;
}

/* ---- Section titles: "LATEST NEWS" pattern ---- */
.stm-title {
  font-family: var(--head); font-style: italic; text-transform: uppercase;
  font-size: 24px; color: #000; font-weight: 300; line-height: 1.2;
}
.stm-title .b { font-weight: 800; }
.section-head { border-bottom: 2px solid var(--red); padding-bottom: 10px; margin: 44px 0 26px; display: flex; align-items: baseline; gap: 14px; }
.section-head .more {
  margin-left: auto; font-size: 12px; font-weight: 600; text-transform: uppercase;
}
/* widget variant: short red bar under the title */
.widget-head { margin-bottom: 18px; }
.widget-head .stm-title { font-size: 20px; }
.widget-head::after { content: ""; display: block; width: 42px; height: 3px; background: var(--red); margin-top: 9px; }
.widget-head.full-line { border-bottom: 2px solid var(--red); padding-bottom: 10px; }
.widget-head.full-line::after { display: none; }

/* ---- News cards (2-up large, like LATEST NEWS) ---- */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-card { display: block; color: inherit; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.news-card:hover { text-decoration: none; }
.news-art-wrap { position: relative; }
.news-art { aspect-ratio: 16 / 10; }
.news-art svg { width: 100%; height: 100%; }
.news-title {
  display: block; font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 24px; line-height: 1.2; color: #000; margin-top: 16px;
}
.news-card:hover .news-title { color: var(--red); }
.news-date { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }

/* ---- Main column list + sidebar ---- */
.main-grid { display: grid; grid-template-columns: 1fr 360px; gap: 46px; margin-top: 8px; }
.list-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line); color: inherit;
}
.list-item:hover { text-decoration: none; }
.list-art-wrap { position: relative; }
.list-art { aspect-ratio: 16 / 10; }
.list-art svg { width: 100%; height: 100%; }
.list-title {
  display: block; font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 19px; line-height: 1.25; color: #000;
}
.list-item:hover .list-title { color: var(--red); }
.list-date { display: block; font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.list-excerpt { display: block; color: var(--text); font-size: 14px; }

/* ---- Sidebar widgets ---- */
.widget { margin-bottom: 40px; }

/* Statistics table widget */
.stats-league { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stats-table th {
  font-family: var(--head); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 12px; color: #000;
  border-bottom: 2px solid #000; padding: 8px 6px; text-align: center;
}
.stats-table td { border-bottom: 1px solid var(--line); padding: 10px 6px; text-align: center; color: var(--text); }
.stats-table td:first-child, .stats-table th:first-child { text-align: left; }
.stats-table .pos { color: var(--red); font-weight: 700; }
.stats-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.stats-more { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Main news list widget */
.mn-list { list-style: none; }
.mn-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mn-list li:first-child { padding-top: 4px; }
.mn-item { display: block; color: inherit; }
.mn-item:hover { text-decoration: none; }
.mn-meta { margin: 8px 0 4px; font-size: 13px; color: var(--muted); }
.mn-title {
  font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 16px; line-height: 1.3; color: #000; display: block;
}
.mn-item:hover .mn-title { color: var(--red); }

.note-widget p { font-size: 13px; color: var(--text); }
.note-widget p + p { margin-top: 8px; }

/* ---- Honours strip (Trophy room) ---- */
.honours { margin-top: 50px; }
.honour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.honour { border: 1px solid var(--line); padding: 22px 24px; text-align: center; }
.honour .cup {
  font-family: var(--head); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 16px; color: #000;
}
.honour .count { font-family: var(--head); font-style: italic; font-weight: 800; font-size: 44px; color: var(--red); line-height: 1.1; }
.honour .years { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---- Footer (black, as customized on the original) ---- */
.site-foot { background: var(--footer); color: #9a9a9a; margin-top: 60px; }
.foot-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
  padding: 46px 0 36px;
}
.foot-grid h3 {
  font-family: var(--head); font-style: italic; font-weight: 700;
  font-size: 16px; text-transform: uppercase; color: #ffffff; margin-bottom: 16px;
}
.foot-grid p, .foot-grid li { font-size: 13px; }
.foot-grid ul { list-style: none; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: #9a9a9a; }
.foot-grid a:hover { color: var(--red); text-decoration: none; }
.foot-disclaimer { color: #c9c9c9; margin-top: 10px; font-size: 12px; }
.foot-bottom {
  border-top: 1px solid #222; padding: 16px 0 20px;
  font-size: 12px; color: #7c7c7c;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---- Article pages ---- */
.article-head { padding: 40px 0 6px; }
.article-head h1 {
  font-family: var(--head); font-weight: 800; font-style: italic;
  font-size: 36px; line-height: 1.15; color: #000; max-width: 860px;
}
.article-meta { font-size: 13px; color: var(--muted); margin-top: 12px; }
.article-art { max-width: 860px; margin: 26px 0 0; }
.article-art svg { width: 100%; }
.article-body { max-width: 760px; padding: 30px 0 10px; }
.article-body > * + * { margin-top: 16px; }
.article-body p { font-size: 15px; }
.article-body h2 {
  font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 22px; color: #000; margin-top: 32px; line-height: 1.2;
}
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body blockquote {
  border-left: 4px solid var(--red); background: #f7f7f7;
  padding: 16px 20px; font-family: var(--head); font-style: italic;
  font-weight: 700; font-size: 19px; color: #000; line-height: 1.35;
}
.fact-box { border: 1px solid var(--line); background: #fafafa; padding: 18px 20px; font-size: 13px; }
.fact-box .fb-title {
  font-family: var(--head); font-style: italic; font-weight: 700;
  text-transform: uppercase; font-size: 13px; color: #000; margin-bottom: 10px;
}
.fact-box .fb-title::after { content: ""; display: block; width: 36px; height: 3px; background: var(--red); margin-top: 7px; }
.fact-box table { width: 100%; border-collapse: collapse; }
.fact-box td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fact-box td:first-child { color: var(--muted); padding-right: 16px; white-space: nowrap; }
.related { max-width: 760px; margin: 44px 0 0; }
.related ul { list-style: none; }
.related li { border-bottom: 1px solid var(--line); }
.related a { display: block; padding: 13px 0; color: inherit; }
.related a:hover { text-decoration: none; }
.related .t {
  font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 17px; color: #000; display: block;
}
.related a:hover .t { color: var(--red); }
.related .d { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---- Static pages ---- */
.page-body { max-width: 760px; padding: 26px 0 10px; }
.page-body > * + * { margin-top: 14px; }
.page-body p { font-size: 15px; }
.page-body h2 {
  font-family: var(--head); font-weight: 700; font-style: italic;
  font-size: 22px; color: #000; margin-top: 30px;
}
.timeline { list-style: none; border-left: 3px solid var(--red); margin-top: 20px; }
.timeline li { padding: 0 0 20px 20px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -8px; top: 6px;
  width: 13px; height: 13px; background: var(--red); border: 2px solid #fff;
}
.timeline .yr { font-family: var(--head); font-style: italic; font-weight: 700; color: #000; }
.timeline .ev { display: block; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 340px; }
  .main-grid { grid-template-columns: 1fr; }
  .card-grid { gap: 30px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .honour-grid { grid-template-columns: 1fr; }
  .site-head .wrap { flex-direction: column; align-items: flex-start; }
  .head-side { text-align: left; }
}
@media (max-width: 620px) {
  .card-grid, .foot-grid { grid-template-columns: 1fr; }
  .list-item { grid-template-columns: 1fr; }
  .brand-name { font-size: 24px; }
  .hero-main .hero-title { font-size: 24px; }
  .article-head h1 { font-size: 27px; }
  .wrap { padding: 0 18px; }
}
