@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&display=swap');

:root {
  --bg: #F8F9FD;
  --surface: #ffffff;
  --text: #0D1B2A;
  --muted: #52667A;
  --muted2: #3A546B;
  --border: rgba(13,27,42,.09);
  --border2: rgba(13,27,42,.14);
  --brand: #0068E1;
  --brand-light: rgba(0,104,225,.07);
  --teal: #00C2AA;
  --shadow2: 0 4px 24px rgba(13,27,42,.08);
  --shadow3: 0 1px 4px rgba(13,27,42,.05);
  --r: var(--radius2, 14px);
  --max: 1080px;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* HEADER */
header { position: sticky; top: 0; z-index: 100; background: rgba(248,249,253,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--text); }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.brand span { font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text); font-family: var(--font); font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .18s; box-shadow: var(--shadow3); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(0,104,225,.22); }
.btn.primary:hover { background: #0058C7; }

/* HERO */
.hero { padding: 52px 0 16px; }
.h1 { font-size: clamp(30px,5vw,46px); font-weight: 700; letter-spacing: -.04em; margin-bottom: 12px; }
.h1 .serif { font-family: var(--font-serif); font-style: italic; color: var(--brand); }
.lead { color: var(--muted); line-height: 1.75; font-size: 16px; max-width: 640px; }

/* SEARCH */
.search-bar { margin: 28px 0 0; position: relative; max-width: 500px; }
.search-bar input { width: 100%; padding: 12px 16px 12px 42px; border: 1.5px solid var(--border2); border-radius: 999px; background: var(--surface); font-family: var(--font); font-size: 14px; color: var(--text); outline: none; transition: border-color .15s; box-shadow: var(--shadow3); }
.search-bar input:focus { border-color: var(--brand); }
.search-bar .s-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }

/* FILTERS */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 36px; }
.filter-btn { display: inline-flex; padding: 6px 14px; border: 1.5px solid var(--border2); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted2); background: var(--surface); cursor: pointer; font-family: var(--font); transition: all .16s; }
.filter-btn:hover, .filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding: 0 0 60px; }
.card { background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 22px; box-shadow: var(--shadow3); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow2); }
.card .num-badge { display: inline-flex; padding: 3px 9px; background: var(--brand-light); color: var(--brand); border-radius: 6px; font-size: 11px; font-weight: 700; margin-bottom: 12px; }
.card h2 { margin: 0 0 8px; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; flex: 1; }
.card h2 a { color: var(--text); transition: color .15s; }
.card h2 a:hover { color: var(--brand); }
.card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.meta { margin-top: auto; font-size: 11.5px; color: rgba(13,27,42,.45); display: flex; align-items: center; gap: 8px; }
.meta .tag { display: inline-flex; padding: 2px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; }

/* ARTICLE */
.article { padding: 28px 0 56px; max-width: 740px; }
.sub { font-size: 18px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.box { background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 28px 32px; margin-bottom: 18px; }
.box h2 { font-size: 20px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 14px; }
.box h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; margin-top: 20px; }
.box p { color: var(--muted); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.box ul, .box ol { padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.box ul li, .box ol li { margin-bottom: 5px; }
.cta-box { background: linear-gradient(135deg, var(--brand), #0047A8); border-radius: 16px; padding: 28px; color: #fff; margin-top: 28px; }
.cta-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.cta-box p { color: rgba(255,255,255,.8); font-size: 14px; margin-bottom: 16px; }
.cta-box .btn-cta { display: inline-flex; padding: 10px 20px; background: #fff; color: var(--brand); border-radius: 999px; font-weight: 700; font-size: 14px; font-family: var(--font); cursor: pointer; border: none; transition: all .18s; }
.cta-box .btn-cta:hover { background: #EEF5FF; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 16px 0 48px; flex-wrap: wrap; }
.page-btn { display: inline-flex; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border2); background: var(--surface); align-items: center; justify-content: center; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: all .15s; }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* FOOTER */
footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.foot-inner p { font-size: 13px; color: var(--muted); }

@media(max-width:640px){
  .grid{grid-template-columns:1fr}
  .h1{font-size:28px}
  .box{padding:20px}
  .foot-inner{flex-direction:column;align-items:flex-start}
}
