/* ── Reset & Base ─────────────────────────────────── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Background ───────────────────────────────────── */
body {
  min-height: 100vh;
  background-color: #2c2c2c;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
}

/* ── Header (H1 + Nav) ────────────────────────────── */
.page-header {
  width: 100%;
  max-width: 860px;
  text-align: center;
  margin-bottom: 24px;
}

h1 {
  font-size: 2.2em;
  color: #f0ece4;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: #f0ece4;
  font-family: Arial, sans-serif;
  font-size: 0.9em;
  font-weight: bold;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background-color: rgba(255,255,255,0.15);
  text-decoration: none;
}

/* ── Paper Sheet ──────────────────────────────────── */
.paper {
  width: 100%;
  max-width: 860px;
  background-color: #fffef9;
  padding: 60px 70px;
  border-radius: 2px;
  border-top: 1px solid rgba(255,255,255,0.75);

  /* Layered shadow = realistic paper lift */
  box-shadow:
    0 1px 1px  rgba(0,0,0,0.20),
    0 2px 4px  rgba(0,0,0,0.15),
    0 6px 12px rgba(0,0,0,0.12),
    0 16px 40px rgba(0,0,0,0.10);
}

/* ── Headings inside Paper ────────────────────────── */
.paper h2 {
  font-size: 1.3em;
  color: #1a1a1a;
  margin-top: 1.6em;
  margin-bottom: 0.2em;
  border-bottom: 1px solid #d0cdc6;
  padding-bottom: 4px;
}

.paper h2:first-child {
  margin-top: 0;
}

.paper h3 {
  font-size: 0.95em;
  font-weight: normal;
  font-style: italic;
  color: #555;
  margin-bottom: 0.8em;
}

/* ── Lists inside Paper ───────────────────────────── */
.paper ul {
  margin-left: 1.4em;
  margin-bottom: 1.2em;
}

.paper ul li {
  font-size: 1em;
  line-height: 1.8;
  color: #1a1a1a;
}

/* ── Body Text ────────────────────────────────────── */
.paper p {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 1.2em;
  text-align: left;
  color: #1a1a1a;
}

.paper p:last-child {
  margin-bottom: 0;
}

/* ── Links inside Paper ───────────────────────────── */
.paper-link {
  color: #1a1a1a;
  text-decoration: underline;
  transition: color 0.2s;
}

.paper-link:hover {
  color: #0A66C2;
}

/* ── Footer ───────────────────────────────────────── */
.site-footer {
  width: 100%;
  max-width: 860px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 24px 0 8px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
  transform: scale(1.12);
}

/* ── Certificate Thumbnail ────────────────────────── */
.cert-thumb-link {
  display: inline-block;
  margin-top: 1em;
}

.cert-thumb {
  width: 50%;
  max-width: 100%;
  display: block;
  border-radius: 4px;
  border: 1px solid #d0cdc6;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.12),
    0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cert-thumb-link:hover .cert-thumb {
  transform: scale(1.02);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.18),
    0 10px 28px rgba(0,0,0,0.12);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 600px) {
  body {
    padding: 0 0 40px;
  }

  .page-header {
    padding: 24px 16px 0;
  }

  .paper {
    border-radius: 0;
    box-shadow: none;
    padding: 32px 20px;
  }
}
