/* ============================================================
   Materi PAI UNRAM — Stylesheet
   ============================================================ */

:root {
  --green-950: #06231a;
  --green-900: #0b3b2b;
  --green-800: #0f5138;
  --green-700: #146245;
  --green-600: #1a7a56;
  --green-500: #21966a;
  --green-100: #e3f3ea;
  --green-50: #f2f9f5;
  --gold-600: #b8860b;
  --gold-500: #d4a017;
  --gold-400: #e6b93a;
  --gold-100: #fbf1d6;
  --ink-900: #16211c;
  --ink-700: #3a463f;
  --ink-500: #647167;
  --ink-300: #a6b0aa;
  --paper: #fffdf8;
  --paper-alt: #f7f5ee;
  --line: #e2ddcd;
  --shadow: 0 1px 2px rgba(20, 40, 30, 0.06), 0 8px 24px rgba(20, 40, 30, 0.06);
  --radius: 14px;
  --sidebar-w: 300px;
  --header-h: 64px;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper-alt);
  color: var(--ink-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: #fff;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.topbar-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .2px; }
.brand-text span { font-size: .74rem; color: var(--gold-400); font-weight: 600; letter-spacing: .3px; }

.menu-toggle {
  display: none;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}

.top-links { display: flex; gap: 4px; }
.top-links a {
  color: #eef7f0;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s;
  white-space: nowrap;
}
.top-links a:hover, .top-links a.active { background: rgba(255,255,255,.14); }

/* ---------- Layout with sidebar ---------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
}
.sidebar h4 {
  font-family: var(--font-head);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
  margin: 18px 6px 8px;
}
.sidebar h4:first-child { margin-top: 4px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li a {
  display: flex;
  align-items: baseline;
  gap: 9px;
  text-decoration: none;
  color: var(--ink-700);
  font-size: .875rem;
  padding: 7px 10px;
  border-radius: 9px;
  transition: background .12s, color .12s;
}
.side-list li a .num {
  flex: 0 0 auto;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  color: var(--green-600);
  background: var(--green-100);
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.side-list li a:hover { background: var(--green-50); color: var(--green-800); }
.side-list li a.active { background: var(--green-800); color: #fff; }
.side-list li a.active .num { background: var(--gold-500); color: #2a1c00; }
.side-list li a .uts-tag {
  margin-left: auto;
  font-size: .62rem;
  color: var(--gold-600);
  font-weight: 700;
}

.main { min-width: 0; }

/* ---------- Cards / generic ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 22px;
}
.card h2, .card h3 { font-family: var(--font-head); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(212,160,23,.20), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.08), transparent 40%),
    linear-gradient(135deg, var(--green-900), var(--green-700) 70%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero .eyebrow { background: rgba(255,255,255,.14); color: var(--gold-400); }
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  margin: 6px 0 12px;
  line-height: 1.2;
  max-width: 760px;
}
.hero p.lead {
  max-width: 680px;
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  margin-bottom: 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.hero-meta span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: .82rem;
  font-weight: 600;
}
.hero-actions { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .87rem;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: #2a1c00; }
.btn-gold:hover { background: var(--gold-400); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-600); }
.btn-ghost { background: var(--green-50); color: var(--green-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-100); }
.btn-sm { padding: 7px 12px; font-size: .78rem; }

/* ---------- Grid of 16 sub materi (home) ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 14px;
}
.section-title h2 { font-family: var(--font-head); font-size: 1.3rem; margin: 0; color: var(--green-900); }
.section-title p { margin: 0; font-size: .85rem; color: var(--ink-500); }

.materi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.materi-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink-900);
  box-shadow: var(--shadow);
  transition: transform .14s, box-shadow .14s, border-color .14s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.materi-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-500);
  box-shadow: 0 10px 26px rgba(15,81,56,.15);
}
.materi-card .row1 { display: flex; align-items: center; justify-content: space-between; }
.materi-card .badge-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--green-700);
  background: var(--green-100);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.materi-card.uts .badge-num { color: var(--gold-600); background: var(--gold-100); }
.materi-card .subcpmk-pill {
  font-size: .68rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--green-50);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 20px;
}
.materi-card h3 { font-family: var(--font-head); font-size: 1rem; margin: 0; line-height: 1.35; color: var(--ink-900); }
.materi-card .desc { font-size: .82rem; color: var(--ink-500); margin: 0; flex: 1; }
.materi-card .bobot { font-size: .74rem; color: var(--ink-500); font-weight: 600; }
.materi-card .bobot b { color: var(--green-700); }

/* ---------- Info tiles (home overview) ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.info-tile {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.info-tile .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 700; margin-bottom: 4px; }
.info-tile .v { font-size: .95rem; font-weight: 700; color: var(--green-900); }

/* ---------- Perangkat pembelajaran (download center) ---------- */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.doc-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, var(--paper), var(--green-50));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-card .icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--green-800);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  font-size: .8rem;
}
.doc-card h4 { margin: 0; font-family: var(--font-head); font-size: .95rem; }
.doc-card p { margin: 0; font-size: .8rem; color: var(--ink-500); flex: 1; }

/* ---------- Detail materi page ---------- */
.materi-header {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.materi-header::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px);
}
.materi-header .top-row { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }
.materi-header .num-big {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.materi-header h1 { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0 0 4px; }
.materi-header .tahap { color: var(--gold-400); font-weight: 700; font-size: .84rem; }
.materi-header .kemampuan { position: relative; z-index: 1; margin-top: 16px; color: rgba(255,255,255,.92); font-size: .95rem; max-width: 800px; }
.materi-header .chips { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.materi-header .chips span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); padding: 5px 11px; border-radius: 20px; font-size: .76rem; font-weight: 700; }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.pager a { flex: 1; }
.pager a.disabled { pointer-events: none; opacity: .35; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 780px) { .two-col { grid-template-columns: 1fr; } }

dl.kv { margin: 0; }
dl.kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 700; margin-top: 14px; }
dl.kv dt:first-child { margin-top: 0; }
dl.kv dd { margin: 4px 0 0; font-size: .92rem; }

ul.tick { list-style: none; margin: 0; padding: 0; }
ul.tick li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: .92rem;
  border-bottom: 1px dashed var(--line);
}
ul.tick li:last-child { border-bottom: none; }
ul.tick li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: var(--green-600);
  font-weight: 800;
}

.task-box {
  background: var(--gold-100);
  border: 1px solid #ecd48f;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 6px;
}
.task-box h4 { margin: 0 0 6px; font-family: var(--font-head); color: #6b4c07; font-size: .9rem; }
.task-box p { margin: 4px 0 0; font-size: .9rem; }
.task-box .luaran { margin-top: 8px; font-size: .82rem; color: #6b4c07; font-weight: 700; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .86rem;
  min-width: 560px;
}
table.data th, table.data td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  background: var(--green-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: var(--green-50); }
table.data td.center { text-align: center; }

/* ---------- Perangkat pembelajaran embed (sub 1) ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab-btn {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .84rem;
  cursor: pointer;
  color: var(--ink-700);
}
.tab-btn.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doc-header h3 { margin: 0 0 4px; font-family: var(--font-head); }
.doc-header .sub { font-size: .82rem; color: var(--ink-500); margin: 0; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list span {
  background: var(--green-50);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: .8rem;
}

.note {
  background: var(--green-50);
  border-left: 4px solid var(--green-600);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .86rem;
  color: var(--ink-700);
}
.note.gold { background: var(--gold-100); border-left-color: var(--gold-500); color: #5a3f06; }

.grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.grade-tile {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 6px;
  background: var(--paper);
}
.grade-tile .huruf { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--green-700); }
.grade-tile .rentang { font-size: .72rem; color: var(--ink-500); margin-top: 2px; }

/* ---------- forms (tes & admin) ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink-700); margin-bottom: 6px; }
.field input[type="text"], .field input[type="password"], .field input[type="number"], .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: .92rem;
  background: var(--paper);
  color: var(--ink-900);
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--green-500); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.soal-block { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px dashed var(--line); }
.soal-block:last-child { border-bottom: none; }
.soal-q { font-weight: 700; margin: 0 0 10px; font-size: .96rem; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: .88rem;
  transition: border-color .12s, background .12s;
}
.opt-item:hover { border-color: var(--green-500); background: var(--green-50); }
.opt-item input { margin-top: 3px; accent-color: var(--green-700); flex-shrink: 0; }
.opt-item.selected { border-color: var(--green-600); background: var(--green-50); }

.progress-bar { height: 8px; border-radius: 20px; background: var(--line); overflow: hidden; margin: 10px 0 4px; }
.progress-bar > span { display: block; height: 100%; background: var(--green-600); border-radius: 20px; transition: width .2s; }
.progress-label { font-size: .74rem; color: var(--ink-500); font-weight: 600; }

.week-divider {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-800);
  border-bottom: 2px solid var(--green-100);
  padding-bottom: 6px;
  margin: 26px 0 14px;
}
.week-divider:first-child { margin-top: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.stat-tile .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--green-700); }
.stat-tile .lbl { font-size: .74rem; color: var(--ink-500); font-weight: 600; margin-top: 2px; }

.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .82rem; }
.bar-row .bar-label { flex: 0 0 64px; color: var(--ink-500); }
.bar-row .bar-track { flex: 1; height: 14px; background: var(--paper-alt); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.bar-row .bar-fill { height: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-500)); }
.bar-row .bar-count { flex: 0 0 26px; text-align: right; font-weight: 700; color: var(--green-800); }

.toggle-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--ink-300); border-radius: 30px; transition: background .15s;
}
.toggle-slider::before {
  content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: transform .15s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--green-600); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

.kelas-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
}
.kelas-row:last-child { border-bottom: none; }
.kelas-row .name { font-weight: 700; flex: 1 1 220px; min-width: 180px; }
.kelas-row .meta { font-size: .78rem; color: var(--ink-500); }
.toggle-group { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; color: var(--ink-700); }

.badge-status { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.badge-status.on { background: var(--green-100); color: var(--green-700); }
.badge-status.off { background: #f0ece0; color: var(--ink-500); }

.essay-answer {
  background: var(--paper-alt); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: .85rem; white-space: pre-wrap; margin: 6px 0 10px;
}

.locked-overlay {
  text-align: center; padding: 40px 20px; color: var(--ink-500);
}
.locked-overlay .icon { font-size: 2.2rem; margin-bottom: 10px; }

/* ---------- grid evaluasi diri (benar/salah per soal) ---------- */
.eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
}
.eval-cell {
  border: 1px solid var(--line); border-radius: 10px; padding: 6px 4px;
  text-align: center; background: var(--paper);
}
.eval-cell .qno { display: block; font-size: .68rem; color: var(--ink-500); font-weight: 700; }
.eval-cell .mark { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.eval-cell.ok { border-color: var(--green-500); background: var(--green-50); }
.eval-cell.ok .mark { color: var(--green-700); }
.eval-cell.no { border-color: var(--gold-500); background: var(--gold-100); }
.eval-cell.no .mark { color: var(--gold-600); }

/* ---------- embed slide (Google Slides) ---------- */
.embed-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-alt);
}
.embed-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  background: var(--green-950);
  color: rgba(255,255,255,.75);
  padding: 30px 24px;
  font-size: .82rem;
  margin-top: 40px;
}
footer.site .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer.site strong { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: var(--header-h);
    height: calc(100vh - var(--header-h));
    width: min(320px, 84vw);
    z-index: 50;
    max-height: none;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 30px rgba(0,0,0,.25); }
  .menu-toggle { display: inline-flex; }
  .top-links { display: none; }
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0; top: var(--header-h);
    background: rgba(6,35,26,.45);
    z-index: 45;
  }
  .sidebar-backdrop.show { display: block; }
}
@media (max-width: 560px) {
  .hero { padding: 28px 20px; }
  .materi-header { padding: 22px 18px; }
  .card { padding: 18px; }
}
