:root {
  --green: #075f38;
  --green-dark: #043d25;
  --gold: #d6a928;
  --ink: #173126;
  --muted: #65736c;
  --card: rgba(255,255,255,.94);
  --line: rgba(7,95,56,.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #183c2b url("background-kumpulan-quote.jpg") center/cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 35, 22, .48);
  pointer-events: none;
  z-index: -1;
}

.page-shell {
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.page-header {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 16px 20px 20px;
}

.back-index {
  position: absolute;
  left: 0;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.back-index:hover { background: rgba(0,0,0,.4); }

.eyebrow {
  color: #f0cf69;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
}

h1 {
  margin: 6px 0 2px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.page-header p { margin: 4px 0 0; opacity: .9; }

.week-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 14px 0 24px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 18px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}

.week-nav button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(7,95,56,.9);
  cursor: pointer;
}
.week-nav button:first-child { justify-self: start; }
.week-nav button:last-child { justify-self: end; }
.week-nav button:disabled { opacity: .38; cursor: not-allowed; }
.week-nav button:not(:disabled):hover { transform: translateY(-1px); }

.week-label { text-align: center; color: #fff; }
.week-label strong { display: block; font-size: 18px; letter-spacing: 1px; }
.week-label span { display: block; margin-top: 3px; font-size: 12px; opacity: .85; }

.status {
  margin: 0 0 14px;
  text-align: center;
  color: #fff;
  font-size: 14px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.quote-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quote-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,0,0,.22); }

.day-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(7,95,56,.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.quote-card h2 {
  margin: 15px 0 7px;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.25;
  color: var(--green-dark);
}

.subtitle {
  margin: 0 0 14px;
  color: #8a6a10;
  font-weight: 700;
  font-size: 14px;
}

.excerpt {
  margin: 0;
  color: #48574f;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}
.read-link:hover { text-decoration: underline; }

.quote-card.empty {
  opacity: .6;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  font-size: 22px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 1050px) {
  .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 18px, 600px); padding-top: 12px; }
  .back-index { position: static; margin-bottom: 14px; }
  .week-nav { grid-template-columns: 1fr; }
  .week-nav button:first-child,
  .week-nav button:last-child { justify-self: stretch; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-card { min-height: 0; }
}

@media (min-width: 1051px) {
  .quote-card:nth-child(5),
  .quote-card:nth-child(6),
  .quote-card:nth-child(7) {
    transform: translateX(calc(50% + 9px));
  }
}