:root {
  --primary: #2e7d8f;
  --primary-dark: #1f5663;
  --accent: #e8a33d;
  --text: #1f2933;
  --muted: #4a5568;
  --bg: #fbf9f4;
  --card: #ffffff;
  --border: #e6e1d6;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 86, 99, 0.08);
  --shadow-lg: 0 14px 40px rgba(31, 86, 99, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 22px;
  color: var(--primary-dark);
  display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--text);
}
.main-nav a:hover { color: var(--primary); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #2e7d8f 0%, #4ca6b9 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
}
.hero h1 {
  color: #fff;
  font-size: 48px;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}
.hero .tagline {
  font-size: 20px;
  opacity: .94;
  max-width: 640px;
  line-height: 1.55;
}
.hero .cta-row { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary { background: var(--accent); color: #1f2933; }
.btn-primary:hover { color: #1f2933; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232,163,61,.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline:hover { color: #fff; background: rgba(255,255,255,.12); }

/* Sections */
section { padding: 64px 0; }
section h2 {
  font-size: 32px;
  margin-bottom: 14px;
  text-align: center;
}
section .section-intro {
  text-align: center;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 17px;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .card-icon {
  font-size: 32px;
  margin-bottom: 14px;
  display: block;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}
.card a.card-link {
  display: inline-block;
  margin-top: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}
.card a.card-link::after { content: ' →'; }

/* Levels list */
.levels {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.level-pill {
  display: block;
  padding: 18px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dark);
  transition: all .2s;
}
.level-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Article page */
.page-header {
  background: linear-gradient(135deg, #2e7d8f 0%, #4ca6b9 100%);
  color: #fff;
  padding: 60px 0 70px;
}
.page-header h1 {
  color: #fff;
  font-size: 40px;
  max-width: 820px;
  letter-spacing: -.5px;
}
.page-header .meta {
  margin-top: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  opacity: .9;
}
.breadcrumb {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
  opacity: .92;
}
.breadcrumb a { color: #fff; text-decoration: underline; }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px;
}
.article p {
  margin-bottom: 22px;
  font-size: 17.5px;
  line-height: 1.85;
}
.article p:first-of-type::first-letter {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 56px;
  float: left;
  line-height: .9;
  margin: 6px 12px 0 0;
  color: var(--primary);
}
.article h2 {
  font-size: 26px;
  margin: 40px 0 16px;
  text-align: left;
}
.article ul { margin: 0 0 22px 24px; }
.article li { margin-bottom: 8px; }

.callout {
  background: var(--card);
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.callout h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.callout p { margin: 0; font-size: 15.5px; }

.related {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.related h2 { font-size: 26px; margin-bottom: 32px; }

/* Footer */
.site-footer {
  background: #1f2d33;
  color: #c8d3da;
  padding: 56px 0 28px;
}
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.site-footer p { font-size: 14.5px; line-height: 1.7; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c8d3da; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #354048;
  margin-top: 24px;
  padding-top: 22px;
  font-size: 13.5px;
  color: #8b97a0;
  text-align: center;
}

/* Mobile */
@media (max-width: 720px) {
  .main-nav { display: none; }
  .hero { padding: 56px 0 70px; }
  .hero h1 { font-size: 34px; }
  .hero .tagline { font-size: 17px; }
  section { padding: 48px 0; }
  section h2 { font-size: 26px; }
  .page-header h1 { font-size: 30px; }
  .article p:first-of-type::first-letter { font-size: 44px; }
  .site-footer .container { grid-template-columns: 1fr; gap: 28px; }
}
