/* ============================================================
   PASA TEST BLOG — Shared CSS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #060B18;
  --bg-2:       #0C1524;
  --bg-card:    #111C2E;
  --blue-4:     #60A5FA;
  --blue-5:     #3B82F6;
  --blue-6:     #2563EB;
  --gold:       #F59E0B;
  --green:      #10B981;
  --text:       #F1F5F9;
  --text-2:     #94A3B8;
  --text-3:     #475569;
  --border:     rgba(59,130,246,.14);
  --border-h:   rgba(59,130,246,.4);
  --r:          12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:       #F4F7FF;
    --bg-2:     #EBF0FF;
    --bg-card:  #FFFFFF;
    --text:     #0F172A;
    --text-2:   #475569;
    --text-3:   #94A3B8;
    --border:   rgba(37,99,235,.12);
    --border-h: rgba(37,99,235,.35);
  }
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---- NAVBAR ---- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; transition: background .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(6,11,24,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
@media (prefers-color-scheme: light) { .nav.scrolled { background: rgba(244,247,255,.96); } }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; color: var(--blue-4); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .active { color: var(--blue-4); }
.btn-nav { background: var(--blue-6); color: #fff !important; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background .2s; }
.btn-nav:hover { background: var(--blue-5) !important; }
@media (max-width: 720px) { .nav-links { display: none; } }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-2); border-radius: 2px; transition: all .3s; }
@media (max-width: 720px) { .hamburger { display: flex; } }

.mobile-menu { display: none; position: fixed; inset: 0; z-index: 99; background: var(--bg-2); flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 20px; font-weight: 600; color: var(--text-2); }
.mobile-menu a:hover { color: var(--text); }

/* ---- BLOG LISTING ---- */
.blog-hero { padding: 120px 0 60px; text-align: center; }
.blog-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; color: var(--text); margin-bottom: 16px; }
.blog-hero p { font-size: 1.1rem; color: var(--text-2); max-width: 560px; margin: 0 auto; }

.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 32px; }
.pill { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; font-weight: 500; color: var(--text-2); transition: all .2s; cursor: pointer; }
.pill:hover, .pill.active { border-color: var(--blue-5); color: var(--blue-4); background: rgba(59,130,246,.08); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-bottom: 80px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; text-decoration: none; color: inherit; }
.post-card:hover { border-color: var(--border-h); transform: translateY(-2px); }
.post-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-4); }
.post-card-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); line-height: 1.3; }
.post-card-excerpt { font-size: 14px; color: var(--text-2); line-height: 1.6; flex: 1; }
.post-card-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.post-card-read { font-size: 13px; color: var(--blue-4); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* ---- BLOG POST ---- */
.post-header { padding: 120px 0 48px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-3); transition: color .2s; }
.breadcrumb a:hover { color: var(--blue-4); }
.breadcrumb span { color: var(--text-3); }

.post-cat-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--blue-5); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-4); margin-bottom: 20px; }
.post-title { font-family: 'Syne', sans-serif; font-size: clamp(1.7rem, 4vw, 2.8rem); font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 20px; }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-3); margin-bottom: 40px; flex-wrap: wrap; }
.post-meta span { display: flex; align-items: center; gap: 5px; }

.post-body { padding-bottom: 64px; }
.post-body h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 40px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.post-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 28px 0 12px; }
.post-body p { margin-bottom: 16px; color: var(--text-2); line-height: 1.75; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 16px 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.post-body li { line-height: 1.7; }
.post-body a { color: var(--blue-4); text-decoration: underline; text-decoration-color: rgba(96,165,250,.3); }
.post-body a:hover { text-decoration-color: var(--blue-4); }

/* ---- FAQ SECTION ---- */
.faq-section { border-top: 1px solid var(--border); padding: 48px 0; }
.faq-section h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; padding: 18px 20px; text-align: left; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: background .2s; }
.faq-q:hover { background: rgba(59,130,246,.05); }
.faq-q svg { flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 20px 18px; font-size: 14px; color: var(--text-2); line-height: 1.75; }
.faq-item.open .faq-a { display: block; }

/* ---- CTA ---- */
.cta-section { background: linear-gradient(135deg, rgba(37,99,235,.15) 0%, rgba(59,130,246,.08) 100%); border: 1px solid var(--border-h); border-radius: 20px; padding: 48px 40px; text-align: center; margin: 48px 0 80px; }
.cta-section h2 { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.cta-section p { color: var(--text-2); margin-bottom: 28px; font-size: 15px; }
.btn-cta { display: inline-block; background: var(--blue-6); color: #fff; font-weight: 700; font-size: 16px; padding: 14px 32px; border-radius: 10px; transition: background .2s, transform .2s; }
.btn-cta:hover { background: var(--blue-5); transform: translateY(-1px); }

/* ---- RELATED POSTS ---- */
.related-section { border-top: 1px solid var(--border); padding: 48px 0 80px; }
.related-section h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; font-size: 13px; color: var(--text-3); }
.footer a { color: var(--text-3); margin: 0 8px; transition: color .2s; }
.footer a:hover { color: var(--blue-4); }
