/* Blog styles — matches main site aesthetic */

:root {
  --navy: #0A2540;
  --navy-dark: #061A30;
  --blue: #1F6FEB;
  --blue-light: #E8F0FE;
  --gold: #C9A86A;
  --gray-900: #1a1a1a;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-200: #e2e8f0;
  --gray-100: #f7fafc;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 40px rgba(10, 37, 64, 0.12);
  --radius: 10px;
  --max-w: 1200px;
  --article-w: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Header / Nav (mirrors main site) ---- */
header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(10, 37, 64, 0.15);
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-sub { font-size: 0.72rem; color: var(--gray-500); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
nav a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--navy); text-decoration: none; }
nav a.active { color: var(--navy); font-weight: 600; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-dark); text-decoration: none; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* ---- Article layout ---- */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3160 100%);
  color: white;
  padding: 60px 24px 80px;
}
.article-hero-inner {
  max-width: var(--article-w);
  margin: 0 auto;
}
.article-eyebrow {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}
.article-meta .dot { color: rgba(255,255,255,0.4); }

.article-body {
  max-width: var(--article-w);
  margin: 60px auto 0;
  padding: 0 24px;
}
.article-body p,
.article-body ul,
.article-body ol {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 22px;
}
.article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  color: var(--navy);
  margin: 44px 0 16px;
  letter-spacing: -0.01em;
  font-weight: 700;
  line-height: 1.25;
}
.article-body h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 32px 0 12px;
  font-weight: 600;
}
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); font-weight: 600; }
.article-body a { color: var(--blue); font-weight: 500; }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-style: italic;
  color: var(--gray-700);
  font-size: 1.15rem;
}

/* ---- Post CTA at bottom ---- */
.post-cta {
  max-width: var(--article-w);
  margin: 56px auto 0;
  padding: 32px 28px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d3160 100%);
  color: white;
  border-radius: 14px;
  text-align: center;
}
.post-cta h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: white;
}
.post-cta p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 20px;
}
.post-cta .btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.15s;
}
.post-cta .btn-gold:hover { transform: translateY(-1px); text-decoration: none; }

/* ---- Blog index (listing page) ---- */
.blog-index-hero {
  padding: 60px 24px 40px;
  text-align: center;
  background: var(--gray-100);
}
.blog-index-hero .eyebrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-index-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.blog-index-hero p {
  color: var(--gray-700);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.post-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.post-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}
.post-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.post-card a:hover { text-decoration: none; }
.post-card-content { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.post-category {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.post-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.post-card p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}
.post-card-meta {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}
.post-card-read {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}

.blog-empty {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
  color: var(--gray-500);
  padding: 40px 24px;
}

/* ---- Footer (mirrors main site) ---- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
  font-size: 0.9rem;
  margin-top: 80px;
}
.footer-simple {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-simple .footer-links {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.footer-simple .footer-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-simple .footer-links a:hover { color: white; text-decoration: none; }
.footer-simple .disclosure {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-simple .copyright {
  margin-top: 20px;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

/* ---- Mobile ---- */
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  nav ul.open { display: flex; }
  .article-hero { padding: 40px 20px 60px; }
  .article-body { margin-top: 40px; padding: 0 20px; }
  .article-body p, .article-body ul, .article-body ol { font-size: 1rem; }
  .article-body h2 { font-size: 1.4rem; margin: 32px 0 12px; }
  .post-grid { padding: 40px 20px 60px; gap: 18px; }
  .post-cta { margin: 40px 20px 0; padding: 26px 22px; }
}
