/* RK Consulting -- shared styles for the Articles pages (matches index.html) */
:root {
  --navy: #13305E;
  --navy-dark: #0C2142;
  --white: #FFFFFF;
  --soft: #F3F5F9;
  --ink: #1B2433;
  --muted: #4A5568;
  --accent: #C9A227;
  --accent-ink: #13305E;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "DM Sans", Arial, sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; font-size: 18px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3.4vw, 34px); color: var(--navy); }
h3 { font-size: 22px; color: var(--navy); }
p { margin: 0 0 16px; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.btn { display: inline-block; padding: 14px 28px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-navy { background: var(--navy); color: var(--white); }

header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 22px; }
.brand img { width: 52px; height: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 16px; }
.nav-links a { text-decoration: none; opacity: .9; }
.nav-links a:hover, .nav-links a.current { opacity: 1; color: var(--accent); }
.nav-links .btn { padding: 10px 20px; opacity: 1; }
.nav-links .btn:hover { color: var(--accent-ink); }

/* Page banner */
.banner { background: linear-gradient(100deg, rgba(12,33,66,.96) 0%, rgba(19,48,94,.88) 60%, rgba(19,48,94,.7) 100%), url("/images/seminar-room.jpg") center/cover; color: var(--white); padding: 84px 0 72px; }
.banner h1 { font-size: clamp(34px, 5vw, 54px); max-width: 860px; }
.banner p { font-size: clamp(18px, 2.2vw, 21px); max-width: 680px; opacity: .95; margin: 0; }
.banner .byline { font-weight: 700; color: var(--accent); font-size: 17px; }

/* Articles list */
.list { background: var(--soft); padding: 72px 0 88px; }
.article-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.article-card { background: var(--white); border-radius: 10px; border-top: 4px solid var(--accent); padding: 32px 28px; box-shadow: 0 4px 18px rgba(19,48,94,.08); display: flex; flex-direction: column; }
.article-card h2 { font-size: 24px; }
.article-card h2 a { text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); }
.article-card .by { font-size: 15px; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.article-card p { color: var(--muted); font-size: 17px; flex: 1; }
.article-card .btn { align-self: flex-start; margin-top: 8px; }

/* Book box on the list page */
.book-box { display: flex; gap: 28px; align-items: center; background: var(--navy); color: var(--white); border-radius: 12px; padding: 28px 32px; margin-bottom: 36px; }
.book-box img { width: 120px; height: auto; border-radius: 4px; box-shadow: 0 8px 22px rgba(0,0,0,.35); flex-shrink: 0; }
.book-box h2 { color: var(--white); font-size: 28px; margin-bottom: 6px; }
.book-box p { color: rgba(255,255,255,.9); margin-bottom: 16px; font-style: italic; }
@media (max-width: 520px) { .book-box { flex-direction: column; text-align: center; padding: 26px 20px; } }

/* Single article */
.article { padding: 64px 0 80px; }
.article .body { max-width: 720px; margin: 0 auto; }
.article .body p, .article .body li { font-size: 19px; }
.article .body h2 { margin-top: 48px; padding-top: 40px; border-top: 1px solid #DDE2EA; }
.article .body h3 { margin-top: 32px; }
.article .body ul { margin: 0 0 20px; padding-left: 26px; }
.article .body li { margin-bottom: 6px; }
.article .key { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 700; color: var(--navy); border-left: 4px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; }
.article .math { background: var(--soft); border-radius: 10px; padding: 24px 28px; margin: 24px 0; border-left: 4px solid var(--accent); }
.article .math p:last-child { margin: 0; }
.article .cta-box { background: var(--navy); color: var(--white); border-radius: 12px; padding: 40px 36px; margin-top: 56px; }
.article .cta-box h2 { color: var(--white); border: 0; margin-top: 0; padding-top: 0; }
.article .cta-box p { color: rgba(255,255,255,.92); }
.article .cta-box a.inline { color: var(--accent); font-weight: 700; }
.article .signoff { margin-top: 24px; }
.article .signoff strong { color: var(--white); }
.article .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.back { display: inline-block; margin-top: 40px; color: var(--navy); font-weight: 700; text-decoration: none; }
.back:hover { color: var(--accent); }

footer { background: var(--navy-dark); color: rgba(255,255,255,.85); padding: 44px 0; font-size: 15px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .f-brand { display: flex; align-items: center; gap: 14px; }
footer img { width: 64px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .banner { padding: 60px 0 52px; }
  .list { padding: 48px 0 64px; }
  .article { padding: 44px 0 60px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .brand span { font-size: 19px; }
  .brand img { width: 44px; }
  .article-cards { grid-template-columns: 1fr; }
  .article .body p, .article .body li { font-size: 18px; }
  .article .cta-box { padding: 30px 22px; }
}
