/* ================================================================
   Remote Work Union — Blog shared styles
   Used by blog/index.html and all article pages
   ================================================================ */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #003BB5 0%, #1A84FF 60%, #40A0FF 100%);
  min-height: 100vh;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  padding: 48px 24px 72px;
}

/* ── Navigation ─────────────────────────────────────────────── */
.blog-nav {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-nav-back:hover { color: #fff; }

.blog-nav-home {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-nav-home:hover { color: rgba(255,255,255,0.65); }

/* ── Page header ────────────────────────────────────────────── */
.blog-header {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 40px;
  text-align: center;
}

.blog-header h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.blog-header p {
  margin-top: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ── Article grid (blog landing) ────────────────────────────── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  body { padding: 32px 16px 56px; }
  .blog-header h1 { font-size: 26px; }
}

/* ── Article card ───────────────────────────────────────────── */
.article-card {
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  background: rgba(255,255,255,0.15);
}

.article-card-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.article-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.article-card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 8px;
}

.article-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 14px;
}

.article-card-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.article-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  margin-top: auto;
  align-self: flex-start;
}
.article-card:hover .article-card-cta { color: #fff; }

/* ── Single article layout ──────────────────────────────────── */
.article-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.article-hero-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 32px;
  display: block;
}

.article-hero-placeholder {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin-bottom: 32px;
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 12px;
}

.article-h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 12px;
}

.article-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  line-height: 1.5;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  margin-bottom: 32px;
}
.article-meta-dot { color: rgba(255,255,255,0.2); }

.article-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 36px;
}

/* ── Article body typography ────────────────────────────────── */
.article-body {
  font-size: 15.5px;
  line-height: 1.74;
  color: rgba(255,255,255,0.82);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #fff;
  margin-top: 42px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-top: 28px;
  margin-bottom: 10px;
  line-height: 1.3;
}

.article-body p { margin-bottom: 18px; }

.article-body ul,
.article-body ol {
  padding-left: 22px;
  margin-bottom: 18px;
}

.article-body li { margin-bottom: 7px; }

.article-body strong { color: #fff; font-weight: 600; }

.article-body a {
  color: #4ade80;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.article-body a:hover { color: #86efac; }

.article-body blockquote {
  border-left: 3px solid rgba(74,222,128,0.5);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: rgba(255,255,255,0.72);
}

/* ── CTA block ──────────────────────────────────────────────── */
.blog-cta-block {
  margin-top: 56px;
  padding: 30px 32px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  text-align: center;
}

.blog-cta-block h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-cta-block p {
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  margin-bottom: 22px;
  line-height: 1.5;
}

.blog-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: linear-gradient(90deg, #4ade80, #22d3a5);
  color: #052e16;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
}
.blog-cta-btn:hover { filter: brightness(1.08); transform: scale(1.02); }

/* ── Footer ─────────────────────────────────────────────────── */
.blog-footer {
  width: 100%;
  max-width: 960px;
  margin: 56px auto 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
}
.blog-footer a {
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-footer a:hover { color: rgba(255,255,255,0.72); }

@media (max-width: 600px) {
  .article-h1 { font-size: 24px; }
  .article-body { font-size: 15px; }
  .blog-cta-block { padding: 22px 20px; }
}
