/* MCS Blog Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
  --navy: #1B365D;
  --navy-light: #244270;
  --green: #2ECC71;
  --green-dark: #27ae60;
  --green-light: #e8f8f0;
  --text: #2c3e50;
  --text-light: #5a6c7d;
  --bg: #f7f9fb;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(27,54,93,0.08), 0 4px 14px rgba(27,54,93,0.04);
  --shadow-lg: 0 4px 12px rgba(27,54,93,0.1), 0 16px 40px rgba(27,54,93,0.06);
  --radius: 10px;
  --max-width: 760px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.site-nav {
  background: var(--navy);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-nav .logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.site-nav .logo span { color: var(--green); }
.site-nav a.back-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav a.back-link:hover { color: var(--green); }

/* HERO - blog index */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2440 100%);
  color: white;
  padding: 72px 24px 64px;
  text-align: center;
}
.blog-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.blog-hero h1 span { color: var(--green); }
.blog-hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto;
}

/* CARD GRID - blog index */
.blog-grid {
  max-width: 1080px;
  margin: -40px auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--navy));
}
.card-body { padding: 28px 24px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.card-body h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}
.card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.card-meta {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
}

/* ARTICLE PAGE */
.article-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2440 100%);
  color: white;
  padding: 64px 24px 56px;
}
.article-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.article-hero .category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--green);
  margin-bottom: 16px;
}
.article-hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-hero .meta {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.article-body {
  max-width: var(--max-width);
  margin: -20px auto 60px;
  padding: 0 24px;
}
.article-content {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 5vw, 48px);
}
.article-content h2, .article-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.article-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 8px;
}
.article-content p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}
.article-content ul, .article-content ol {
  margin: 12px 0 20px 24px;
}
.article-content li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}
.article-content li strong { color: var(--navy); }
.article-content strong { color: var(--navy); }

/* Special blocks */
.article-content .highlight {
  background: var(--green-light);
  border-left: 4px solid var(--green);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 15px;
}
.article-content .highlight ul { margin-bottom: 0; }
.article-content .warning-box {
  background: #fff8e8;
  border-left: 4px solid #e67e22;
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 15px;
}
.article-content .cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2440 100%);
  color: white;
  padding: 36px 32px;
  border-radius: var(--radius);
  margin: 40px 0 0;
  text-align: center;
}
.article-content .cta-box h3 {
  color: white;
  font-size: 22px;
  margin-bottom: 12px;
}
.article-content .cta-box p {
  color: rgba(255,255,255,0.8);
  text-align: center;
  max-width: 500px;
  margin: 0 auto 20px;
  font-size: 15px;
}
.article-content .contact-link {
  display: inline-block;
  background: var(--green);
  color: white;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}
.article-content .contact-link:hover { background: var(--green-dark); }

/* TABLE */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-content table th {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
}
.article-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.article-content table tr:nth-child(even) { background: var(--bg); }
.article-content table tr:last-child td { border-bottom: none; }

/* FOOTER */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
}
.site-footer a { color: var(--green); text-decoration: none; }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; margin-top: -24px; }
  .article-content { padding: 24px 20px; }
}

/* RELATED ARTICLES */
.related-articles {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 0 24px;
}
.related-articles h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.related-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.related-card span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.related-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--green-dark);
  font-weight: 600;
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}
