/* Shared look for the Aepp content pages (exam papers, syllabus) — same brand as the homepage */
:root {
  --blue: #1a5ebd;
  --blue-deep: #123f80;
  --blue-soft: #dde7fa;
  --coral: #ff5f6d;
  --orange: #ffa53a;
  --bg: #f5f6fb;
  --card: #ffffff;
  --text: #171c2b;
  --muted: #5a6275;
  --border: #e1e5f0;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Manrope", system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--blue); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 246, 251, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-deep); text-decoration: none; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--blue); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-outline { border: 2px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

.hero { color: #fff; background: linear-gradient(120deg, var(--coral), #ff7a55 45%, var(--orange)); padding: 56px 0 64px; }
.crumbs { font-size: .9rem; opacity: .9; margin-bottom: 14px; }
.crumbs a { color: #fff; }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.hero p { font-size: 1.12rem; max-width: 680px; margin-top: 14px; opacity: .96; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips span { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .95rem; }

section { padding: 56px 0; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 800; line-height: 1.2; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.note { background: var(--blue-soft); border-radius: 16px; padding: 16px 20px; margin-top: 18px; }
.warn { background: #fff4e5; border-left: 4px solid var(--orange); border-radius: 0 16px 16px 0; padding: 16px 20px; margin-top: 18px; }

.toplist { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; }
.toplist div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.toplist b { color: var(--blue); }

.exam-year { margin-top: 26px; }
.exam-year h2 { font-size: 1.45rem; margin-bottom: 12px; }
.papers { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.paper h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; color: var(--blue-deep); }
.paper ul { list-style: none; display: grid; gap: 8px; }
.paper li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; align-items: baseline; }
.paper .th { font-weight: 800; }
.paper .th small { display: block; color: var(--muted); font-weight: 600; font-size: .8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: .85rem; color: #3b4357; }
.yearnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.yearnav a { background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--blue-deep); }
.yearnav a:hover { border-color: var(--blue); }

.chapters { display: grid; gap: 12px; margin-top: 18px; }
.chapter { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.chapter h3 { font-size: 1.08rem; font-weight: 800; }
.chapter h3 small { color: var(--muted); font-weight: 700; margin-right: 6px; }
.chapter p { grid-column: 1 / -1; color: var(--muted); }
.tier { border-radius: 999px; padding: 4px 12px; font-size: .82rem; font-weight: 800; white-space: nowrap; }
.tier.high { background: #ffe0e3; color: #b3132a; }
.tier.moderate { background: #fff1d6; color: #8a5300; }
.tier.foundational { background: var(--blue-soft); color: var(--blue-deep); }
.tier.low { background: #eceef4; color: #4c5468; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; color: var(--muted); font-size: .92rem; }

.cta-card { background: linear-gradient(120deg, var(--coral), var(--orange)); color: #fff; border-radius: 28px; padding: 44px 28px; text-align: center; }
.cta-card h2 { color: #fff; }
.cta-card p { max-width: 560px; margin: 8px auto 22px; opacity: .95; }
.cta-card .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

footer { padding: 32px 0 44px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--blue); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .chapter { grid-template-columns: 1fr; }
  .paper li { grid-template-columns: 78px 1fr; }
}

/* Link to the official exam paper (PDF) on each exam card */
.paper .pdf-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  font-weight: 700; font-size: .92rem; color: var(--blue); text-decoration: none;
}
.paper .pdf-link::before {
  content: "PDF"; font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  color: #fff; background: #e5484d; border-radius: 6px; padding: 3px 6px;
}
.paper .pdf-link:hover { text-decoration: underline; }
