:root {
  --ink: #14161c;
  --navy: #0f2a4a;
  --navy-d: #0b2038;
  --paper: #faf8f5;
  --gold: #e8a020;
  --gold-d: #b87a12;
  --muted: #6b7280;
  --line: #e5e1d8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.7; font-size: 17px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: 2.6rem; margin-bottom: 0.6em; }
h2 { font-size: 1.9rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.45rem; margin: 1.3em 0 0.4em; }
p { margin-bottom: 1.1em; }
a { color: var(--gold-d); }
img { max-width: 100%; height: auto; }

/* header */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.35rem; color: #fff; letter-spacing: 0.05em; }
.brand span em { color: var(--gold); font-style: normal; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: #d7d3c8; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--gold); }

/* hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 70%); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: 3.2rem; text-transform: uppercase; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { color: #c9c4b8; font-size: 1.15rem; max-width: 640px; }
.hero-cta { margin-top: 24px; display: flex; gap: 14px; flex-wrap: wrap; }

/* buttons */
.btn { display: inline-block; background: var(--gold); color: var(--navy-d); border: none; padding: 13px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--gold-d); color: #fff; }
.btn-outline { display: inline-block; background: transparent; color: #fff; border: 2px solid var(--gold); padding: 11px 28px; border-radius: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; }
.btn-outline:hover { background: var(--gold); color: var(--navy-d); }

/* sections */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { margin: 0; text-transform: uppercase; font-size: 2rem; }
.section-head a { font-weight: 600; }

/* cards */
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.engine-card { background: var(--navy); color: #fff; border-radius: 12px; padding: 26px 22px; text-decoration: none; position: relative; overflow: hidden; }
.engine-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--gold); }
.engine-card h3 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; text-transform: uppercase; }
.engine-card p { color: #a8a294; font-size: 0.92rem; margin: 0; }
.engine-card:hover { transform: translateY(-2px); }

/* post cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card .pc-body { padding: 18px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--ink); }
.post-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.post-card .pc-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-d); margin-bottom: 8px; }

/* article */
.article-head { background: var(--navy); color: #fff; padding: 48px 0 40px; }
.article-head h1 { font-size: 2.8rem; }
.article-head .meta { color: #a8a294; font-size: 0.92rem; margin-top: 12px; }
.author-box { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 28px 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-initials { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-box strong { display: block; }
.author-box p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.prose { max-width: 760px; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--navy); color: #fff; font-family: 'Barlow Condensed'; font-size: 1.05rem; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.toc strong { font-family: 'Barlow Condensed'; font-size: 1.2rem; text-transform: uppercase; }
.toc ul { margin: 10px 0 0 1.2em; }
.callout { background: #fff7ed; border-left: 5px solid var(--gold); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 1.4em 0; }
.quick-answer { background: var(--navy); color: #fff; border-radius: 12px; padding: 20px 24px; margin: 0 0 24px; }
.quick-answer strong { font-family: 'Barlow Condensed'; font-size: 1.25rem; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }
.quick-answer p { margin: 0; color: #e8e4da; }
.tldr-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 28px; }
.tldr-box strong { font-family: 'Barlow Condensed'; font-size: 1.25rem; text-transform: uppercase; }
.tldr-box ul { margin: 10px 0 0 1.2em; }
.tldr-box li { margin-bottom: 6px; }

/* key facts box (scholarship pages) */
.facts { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 22px; margin: 0 0 28px; }
.fact-row { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fact-row:last-child { border-bottom: none; }
.fact-row span { width: 130px; flex-shrink: 0; font-weight: 600; color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.fact-row strong { color: var(--navy); }
.countdown { display: inline-block; background: var(--gold); color: var(--navy-d); font-style: normal; font-weight: 700; font-size: 0.82rem; padding: 2px 10px; border-radius: 20px; margin-left: 8px; white-space: nowrap; }

/* scholarship database */
.filter-bar { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; margin: 24px 0 30px; }
.filter-bar input, .filter-bar select { padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; background: #fff; }
.sch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.sch-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.sch-card:hover { border-color: var(--gold); }
.sch-card .pc-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-d); margin-bottom: 8px; }
.sch-card h3 { margin: 0 0 8px; font-size: 1.35rem; color: var(--ink); }
.sch-card p { color: var(--muted); font-size: 0.92rem; margin: 0 0 12px; flex: 1; }
.sch-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--navy); }
.sch-meta .days { background: var(--gold); color: var(--navy-d); padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; white-space: nowrap; }

/* deadlines list */
.deadline-list { margin-top: 24px; }
.deadline-month { margin: 34px 0 14px; text-transform: uppercase; font-size: 1.8rem; }
.deadline-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; text-decoration: none; color: inherit; }
.deadline-row:hover { border-color: var(--gold); }
.deadline-row h3 { margin: 0; font-size: 1.25rem; }
.deadline-row .d-country { color: var(--muted); font-size: 0.88rem; }
.deadline-when { text-align: right; flex-shrink: 0; }
.deadline-when strong { display: block; color: var(--navy); }
.deadline-when .days { font-size: 0.82rem; font-weight: 700; color: var(--gold-d); }

/* alerts CTA */
.cta { background: var(--navy); color: #fff; border-radius: 16px; padding: 46px 40px; text-align: center; }
.cta h2 { color: #fff; text-transform: uppercase; margin: 0 0 12px; font-size: 2.2rem; }
.cta p { color: #c9c4b8; max-width: 620px; margin: 0 auto 20px; }
.cta .btn { margin-top: 6px; }

/* tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; color: inherit; }
.tool-card h3 { margin: 0 0 6px; color: var(--ink); }
.tool-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* footer */
.site-footer { background: var(--navy); color: #a8a294; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 44px 20px 20px; }
.footer-grid strong { color: #fff; display: block; margin-bottom: 10px; font-family: 'Barlow Condensed'; font-size: 1.15rem; text-transform: uppercase; }
.footer-grid a { display: block; color: #a8a294; text-decoration: none; margin-bottom: 7px; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-base { border-top: 1px solid #2c3d55; padding: 18px 20px; font-size: 0.85rem; text-align: center; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .article-head h1 { font-size: 2rem; }
  .main-nav { display: none; }
  .filter-bar { grid-template-columns: 1fr; }
  .deadline-row { flex-direction: column; align-items: flex-start; }
  .deadline-when { text-align: left; }
}
