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

:root {
  --accent: #664cdd;
  --accent-hover: #5338c9;
  --purple: #664cdd;
  --purple-light: #8277ff;
  --navy: #0d1221;
  --text: #37373d;
  --text-light: #666;
  --text-muted: #878787;
  --bg: #ffffff;
  --bg-warm: #fcfbfa;
  --bg-warm-alt: #f9f6f4;
  --border: #e8e5e1;
  --green: #14523d;
  --yellow: #ffe669;
  --max-width: 1200px;
  --content-width: 760px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(13,18,33,0.06);
  --shadow-md: 0 4px 16px rgba(13,18,33,0.08);
  --shadow-lg: 0 8px 32px rgba(13,18,33,0.1);
  --transition: 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
table { max-width: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent-hover); }

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

/* ============ HEADER ============ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 72px;
}
.site-header .nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header .nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header .nav-right a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #0d1221;
  text-decoration: none;
  transition: color var(--transition);
}
.site-header .nav-right a:hover { color: #664cdd; }
.site-header .nav-right .btn-primary { background: #0d1221; }
.site-header .nav-right .btn-primary:hover { background: #1a1f33; }
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 28px;
  width: auto;
}
.logo:hover { opacity: 0.85; }
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #0d1221;
  text-decoration: none;
  transition: color var(--transition);
}
.site-header nav a:hover { color: #664cdd; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff !important; transform: translateY(-1px); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(160deg, #0d1221 0%, #140a3e 60%, #664cdd 100%);
  padding: 80px 0;
  text-align: center;
  border-bottom: none;
}
.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1.5px;
}
.hero h1 span { color: var(--purple-light); }
.hero p {
  font-size: 1.15em;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  background: var(--bg);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.testimonials h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 32px;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.testimonial-grid blockquote {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-grid blockquote:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.testimonial-grid blockquote p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: italic;
}
.testimonial-grid cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: block;
}

/* ============ FEATURED POSTS SECTION ============ */
.featured-posts { padding: 0; margin-bottom: 48px; }
.featured-posts > h2,
.all-posts > h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}

main { padding: 64px 0; }

/* ============ BLOG GRID SECTION ============ */
.blog-grid-section { padding: 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5em;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}
.post-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============ BLOG CARD GRID ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--purple-light);
}
.card-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: rgba(102, 76, 221, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  align-self: flex-start;
}
.card-tag.accent {
  background: rgba(102, 76, 221, 0.12);
  color: var(--accent);
}
.blog-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.blog-card h3 a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}
.blog-card h3 a:hover { color: var(--accent); }
.blog-card > p {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-meta time { font-weight: 500; }
.read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-time::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* ============ PAGINATION ============ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.page-link {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  user-select: none;
  padding: 8px 14px;
  border-radius: 8px;
  line-height: 1;
}
.page-link:hover:not(.disabled):not(.active) {
  color: var(--navy);
  background: var(--bg-warm);
}
.page-link.active {
  color: var(--accent);
  font-weight: 700;
  background: rgba(102, 76, 221, 0.06);
}
.page-link.disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

/* ============ POST LIST ============ */
.post-list { list-style: none; padding: 0; }
.post-list li {
  padding: 24px 28px;
  margin-bottom: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-list li:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-list h2 { font-size: 1.35em; margin-bottom: 8px; font-weight: 600; letter-spacing: -0.3px; }
.post-list h2 a { color: var(--navy); text-decoration: none; }
.post-list h2 a:hover { color: var(--accent); }
.post-list .excerpt { color: var(--text-light); font-size: 15px; margin-bottom: 12px; line-height: 1.6; }
.post-list .meta { font-size: 13px; margin-bottom: 0; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }

/* ============ TAGS ============ */
.tag {
  background: #f2f0ff;
  border: 1px solid #e0dcff;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  display: inline-block;
}

/* ============ ARTICLE ============ */
article { margin-bottom: 48px; }
article h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--navy);
  letter-spacing: -1px;
}
article .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
article h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.55em;
  font-weight: 600;
  margin: 48px 0 16px;
  color: var(--navy);
  letter-spacing: -0.5px;
}
article h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--navy);
}
article p { margin-bottom: 20px; color: var(--text); }
article ul, article ol { margin-bottom: 24px; padding-left: 24px; }
article li { margin-bottom: 10px; color: var(--text); }
article li::marker { color: var(--accent); }
article strong { color: var(--navy); font-weight: 600; }
article blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  background: var(--bg-warm);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}
article blockquote p { margin-bottom: 0; }
article code {
  background: var(--bg-warm-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--purple);
  font-weight: 500;
}
article pre {
  background: var(--navy);
  color: #e4e4e7;
  padding: 24px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 32px 0;
  font-size: 14px;
  line-height: 1.7;
}
article pre code { background: none; padding: 0; color: inherit; font-weight: 400; }
article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
article a { color: var(--accent); font-weight: 500; }
article a:hover { text-decoration: underline; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.back-link:hover { color: var(--accent); }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 24px 0;
  font-size: 16px;
}
th, td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
}
th {
  background: var(--bg-warm);
  font-weight: 600;
  color: var(--navy);
}
tbody tr:nth-child(even) {
  background: var(--bg-warm-alt);
}
tbody tr:hover {
  background: var(--purple-light);
  color: #fff;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #312730;
  color: rgba(255,255,255,0.7);
  padding: 0;
  margin-top: 0;
}
.footer-cta {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 56px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-cta h3 {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.footer-cta .btn-primary {
  white-space: nowrap;
  padding: 12px 28px;
  font-size: 15px;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand a {
  display: inline-flex;
  align-items: center;
}
.footer-brand a:hover { opacity: 0.85; }
.footer-brand img {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 14px;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition), background var(--transition);
}
.footer-social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
  padding: 5px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ============ 404 ============ */
.error-page { text-align: center; padding: 120px 0; }
.error-page h1 { font-size: 6em; font-weight: 700; color: var(--border); letter-spacing: -4px; }
.error-page p { color: var(--text-light); font-size: 1.1em; margin-top: 12px; }

/* ============ RESPONSIVE ============ */
/* ============ TABLET (768px) ============ */
@media (max-width: 768px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .content-container { padding: 0 20px; }

  /* Header */
  .site-header .container { height: 56px; }
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 14px; }
  .btn-primary { padding: 8px 16px; font-size: 13px; white-space: nowrap; }
  .logo img { height: 24px; }

  /* Hero */
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 2em; letter-spacing: -1px; }
  .hero p { font-size: 1em; }

  /* Post list */
  .post-list h2 { font-size: 1.15em; }
  .post-list li { padding: 20px 20px; margin-bottom: 12px; }
  .post-list .excerpt { font-size: 14px; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card { padding: 24px; }
  .section-header { flex-direction: column; gap: 4px; }

  /* Articles */
  main { padding: 40px 0; }
  article h1 { font-size: 1.7em; letter-spacing: -0.5px; margin-bottom: 12px; }
  article h2 { font-size: 1.25em; margin: 36px 0 12px; }
  article h3 { font-size: 1.1em; margin: 28px 0 10px; }
  article p { margin-bottom: 16px; }
  article ul, article ol { padding-left: 20px; }
  article blockquote { padding: 16px 20px; margin: 24px 0; }
  article pre { padding: 16px; font-size: 13px; margin: 24px 0; }
  article img { margin: 24px 0; }

  /* Tables — horizontal scroll on mobile */
  article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  th, td { padding: 10px 12px; font-size: 14px; }

  /* Testimonials */
  .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonials { padding: 48px 0; }

  /* Footer */
  .footer-cta { flex-direction: column; text-align: center; padding: 40px 0; gap: 20px; }
  .footer-cta h3 { font-size: 22px; }
  .footer-columns { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Pagination */
  .pagination { gap: 2px; margin-top: 36px; padding-top: 24px; }
  .page-link { padding: 8px 12px; font-size: 13px; }
}

/* ============ MOBILE (480px) ============ */
@media (max-width: 480px) {
  body { font-size: 15px; line-height: 1.65; }
  .container { padding: 0 16px; }
  .content-container { padding: 0 16px; }

  /* Header */
  .site-header .container { height: auto; min-height: 52px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .logo { flex-shrink: 0; }
  .logo img { height: 22px; }
  .site-header nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .site-header nav > a:not(.btn-primary) { font-size: 13px; padding: 4px 0; }
  .btn-primary { padding: 7px 14px; font-size: 12px; border-radius: 6px; white-space: nowrap; }

  /* Hero */
  .hero { padding: 36px 0; }
  .hero h1 { font-size: 1.6em; }
  .hero p { font-size: 0.95em; }

  /* Post list */
  .post-list h2 { font-size: 1.05em; line-height: 1.35; }
  .post-list li { padding: 16px 16px; margin-bottom: 10px; }
  .post-list .excerpt { font-size: 13px; line-height: 1.5; margin-bottom: 6px; }
  .post-list .meta { font-size: 12px; }
  .latest-posts > h2 { font-size: 0.95em; margin-bottom: 20px; }

  /* Articles */
  main { padding: 32px 0; }
  article h1 { font-size: 1.45em; }
  article h2 { font-size: 1.15em; margin: 32px 0 10px; }
  article h3 { font-size: 1.05em; }
  article p { font-size: 15px; }
  article li { font-size: 15px; margin-bottom: 8px; }
  article blockquote { padding: 14px 16px; font-size: 15px; }
  article pre { padding: 14px; font-size: 12px; border-radius: 8px; }
  article img { border-radius: 8px; margin: 20px 0; }

  /* Tables */
  th, td { padding: 8px 10px; font-size: 13px; }

  /* Tags */
  .tag { font-size: 11px; padding: 2px 8px; }

  /* Back link */
  .back-link { font-size: 13px; margin-top: 24px; padding-top: 24px; }

  /* Footer */
  .footer-columns { grid-template-columns: 1fr; gap: 28px; }
  .footer-cta h3 { font-size: 20px; line-height: 1.3; }
  .footer-cta .btn-primary { width: 100%; text-align: center; }
  .footer-col a { font-size: 14px; }
  .footer-bottom p { font-size: 12px; }

  /* Pagination */
  .pagination { gap: 0; flex-wrap: wrap; justify-content: center; }
  .page-link { padding: 8px 10px; font-size: 13px; }
}

/* ============ SMALL MOBILE (360px) ============ */
@media (max-width: 360px) {
  .site-header .container { justify-content: center; text-align: center; }
  .site-header nav { justify-content: center; width: 100%; }
  .logo { width: 100%; justify-content: center; }
  .hero h1 { font-size: 1.4em; }
  article h1 { font-size: 1.3em; }
}

/* Author byline */
.post-meta {
  color: #666;
  font-size: 0.95em;
  margin: -0.5em 0 1.5em;
}

/* Breadcrumb navigation */
.breadcrumb {
  margin: 0 0 1.5em;
  font-size: 0.9em;
  color: #666;
}
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 0.5em;
  color: #999;
}
.breadcrumb a {
  color: #666;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: #333;
  text-decoration: underline;
}
.breadcrumb li[aria-current="page"] {
  color: #333;
}

/* Author pages */
.author-header { margin-bottom: 1.5em; }
.author-role { font-size: 1.1em; color: #555; margin-top: -0.5em; }
.author-bio { margin-bottom: 2em; line-height: 1.7; }
.author-posts h2 { margin-bottom: 0.8em; }
.author-posts .post-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.author-posts .post-list li {
  margin: 0;
  background: linear-gradient(160deg, #0d1221 0%, #140a3e 60%, #664cdd 100%);
  border-radius: 10px;
  padding: 20px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.author-posts .post-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.author-posts .post-list h3 { font-size: 1.05em; margin: 0; }
.author-posts .post-list h3 a { color: #fff; text-decoration: none; }
.author-posts .post-list h3 a:hover { color: #ffe669; }
.author-posts .post-list .meta { color: rgba(255,255,255,0.55); }

/* Author credentials box */
.author-credentials {
  background: #f8f9fa;
  border-left: 3px solid #333;
  padding: 1em 1.5em;
  margin-bottom: 2em;
  border-radius: 0 4px 4px 0;
}
.author-credentials ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.author-credentials li {
  margin-bottom: 0.4em;
  font-size: 0.95em;
  line-height: 1.5;
}
.author-credentials li:last-child { margin-bottom: 0; }

/* Post hero banner */
.post-hero {
  background: linear-gradient(160deg, #0d1221 0%, #140a3e 60%, #664cdd 100%);
  padding: 2.5em 2em 2em;
  margin: 0 0 2em 0;
  border-radius: 8px;
}
.post-hero h1 {
  color: #fff !important;
  font-size: 1.8em;
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}
.post-hero .post-meta {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0;
}
.post-hero .post-meta a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.3);
}
.post-hero .post-meta a:hover {
  color: #fff;
  text-decoration-color: #ffe669;
}
@media (max-width: 600px) {
  .post-hero { padding: 1.5em 1.2em 1.2em; }
  .post-hero h1 { font-size: 1.4em; }
}

/* Language switcher */
.lang-switch {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.lang-switch a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}
.lang-switch a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.lang-switch a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

/* All posts compact list */
.all-posts { padding: 0; }
.compact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.compact-list li:first-child { padding-top: 0; }
.compact-list li:last-child { border-bottom: none; }
.compact-list li a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95em;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.compact-list li a:hover { color: var(--accent); }
.compact-meta {
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .compact-list li {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }
  .compact-list li a { font-size: 0.9em; }
  .compact-meta { font-size: 12px; }
}

/* Card grid layout */
.card-grid-section { padding: 0; }
.card-grid-section > h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.post-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, #0d1221 0%, #140a3e 60%, #664cdd 100%);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  padding: 28px 24px 24px;
  min-height: 200px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.post-card-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}
.post-card h3 {
  color: #fff;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.post-card-meta {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-top: 12px;
  font-weight: 500;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; gap: 14px; }
  .post-card h3 { font-size: 0.95em; }
}

/* ============ RELATED READING (in-post) ============ */
.related-reading {
  background: linear-gradient(160deg, #0d1221 0%, #140a3e 60%, #664cdd 100%);
  border-radius: 10px;
  padding: 28px 32px 24px;
  margin: 2em 0;
}
.related-reading h2 {
  color: #fff;
  font-size: 1.3em;
  margin: 0 0 16px 0;
  letter-spacing: -0.3px;
}
.related-reading ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-reading li {
  margin: 0;
}
.related-reading li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02em;
  padding: 10px 16px;
  display: block;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  transition: background 0.2s ease;
}
.related-reading li a:hover {
  background: rgba(255,255,255,0.16);
  color: #ffe669;
}
