/* ── Career Club Blog Styles ── */

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

html { background: #0a0a1a; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #c8c8e0;
  background: #0a0a1a;
  -webkit-font-smoothing: antialiased;
}

a { color: #a78bfa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav injected by /nav.js */

/* ── Page wrap ── */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Blog index hero ── */
.blog-hero {
  padding: 72px 0 48px;
  text-align: center;
}
.blog-hero-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: #7c5cfc; margin-bottom: 16px;
}
.blog-hero h1 {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.1; color: #e8e8f8;
  margin-bottom: 16px;
}
.blog-hero p {
  font-size: 18px; color: #8888aa; max-width: 500px; margin: 0 auto;
}

/* ── Post cards ── */
.blog-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px; padding-bottom: 80px;
}
.blog-card {
  background: #111128; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 28px 32px;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}
.blog-card:hover {
  border-color: rgba(124,92,252,0.4);
  transform: translateY(-2px);
}
.blog-card-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #7c5cfc; background: rgba(124,92,252,0.12);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 14px;
}
.blog-card h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px; font-weight: 700; color: #e0e0f8;
  line-height: 1.3; margin-bottom: 10px;
}
.blog-card p {
  font-size: 15px; color: #7878a0; line-height: 1.7;
  margin-bottom: 18px;
}
.blog-card-meta {
  display: flex; gap: 16px; align-items: center;
  font-size: 13px; color: #5858a0;
}
.blog-card-read {
  margin-left: auto; font-size: 13px; font-weight: 600;
  color: #a78bfa;
}

/* ── Article page ── */
.post-hero {
  padding: 64px 0 40px;
}
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #6060a0; margin-bottom: 28px;
  transition: color 0.15s;
}
.post-back:hover { color: #a78bfa; text-decoration: none; }
.post-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: #7c5cfc; background: rgba(124,92,252,0.12);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 16px;
}
.post-hero h1 {
  font-family: 'Fredoka One', sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15; color: #e8e8f8;
  margin-bottom: 18px;
}
.post-meta {
  display: flex; gap: 20px; font-size: 13px; color: #5858a0;
  margin-bottom: 32px; flex-wrap: wrap;
}
.post-divider {
  height: 1px; background: rgba(255,255,255,0.07);
  margin-bottom: 40px;
}

/* ── Article body ── */
.post-body { padding-bottom: 80px; }

.post-body h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 24px; font-weight: 700; color: #ddddf8;
  margin: 40px 0 14px; line-height: 1.25;
}
.post-body h3 {
  font-size: 18px; font-weight: 700; color: #ccccf0;
  margin: 28px 0 10px;
}
.post-body p {
  margin-bottom: 20px; color: #b0b0cc; font-size: 16px; line-height: 1.85;
}
.post-body ul, .post-body ol {
  margin: 0 0 20px 20px; color: #b0b0cc; font-size: 16px; line-height: 1.85;
}
.post-body li { margin-bottom: 8px; }
.post-body strong { color: #ddddf0; font-weight: 600; }
.post-body em { color: #a0a0c4; }

/* Tip / callout boxes */
.post-tip {
  background: rgba(124,92,252,0.1); border-left: 3px solid #7c5cfc;
  border-radius: 0 10px 10px 0; padding: 16px 20px;
  margin: 28px 0; font-size: 15px; color: #b0b0d8;
}
.post-tip strong { color: #c4b0ff; }

/* Numbered tip headers */
.tip-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #7c5cfc, #3de8f4);
  color: #fff; font-size: 14px; font-weight: 700;
  margin-right: 10px; flex-shrink: 0; vertical-align: middle;
}
.tip-heading {
  display: flex; align-items: center; margin: 36px 0 12px;
}
.tip-heading h2 {
  margin: 0; font-size: 20px;
}

/* CTA box */
.post-cta {
  background: linear-gradient(135deg, rgba(124,92,252,0.15), rgba(61,232,244,0.08));
  border: 1px solid rgba(124,92,252,0.3);
  border-radius: 16px; padding: 32px;
  text-align: center; margin: 48px 0;
}
.post-cta h3 {
  font-family: 'Fredoka One', sans-serif;
  font-size: 22px; color: #e0e0f8; margin-bottom: 10px;
}
.post-cta p {
  font-size: 15px; color: #8888b0; margin-bottom: 20px;
}
.post-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #7c5cfc, #3de8f4);
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 12px 28px; border-radius: 10px;
  transition: opacity 0.15s;
}
.post-cta-btn:hover { opacity: 0.85; text-decoration: none; }

/* ── Related posts ── */
.post-related { padding-bottom: 64px; }
.post-related h3 {
  font-size: 16px; font-weight: 700; color: #6060a0;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  background: #111128; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; padding: 20px;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: rgba(124,92,252,0.35); text-decoration: none; }
.related-card-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: #7c5cfc; margin-bottom: 8px;
  display: block;
}
.related-card h4 {
  font-size: 15px; font-weight: 600; color: #ccccf0; line-height: 1.4;
}

/* ── Footer ── */
.blog-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 24px; text-align: center;
}
.blog-footer-brand {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 18px;
  background: linear-gradient(135deg, #a78bfa, #3de8f4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: block; margin-bottom: 8px;
}
.blog-footer p { font-size: 13px; color: #4040a0; }
.blog-footer a { color: #6060b0; }
.blog-footer a:hover { color: #a78bfa; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .blog-nav-links { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-card { padding: 22px 20px; }
}
