@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --orange:       #F59C0D;
  --orange-dark:  #D4860A;
  --navy:         #162447;
  --navy-light:   #1E3A6E;
  --white:        #ffffff;
  --bg:           #F8F9FC;
  --text:         #222222;
  --text-muted:   #666666;
  --border:       #E8E8E8;
  --tag-bg:       #FFF4DC;
  --tag-color:    #B87B00;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--text); font-size: 16px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 16px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-text { font-size: 1rem; font-weight: 800; color: var(--navy); }
.logo-text span { color: var(--orange); }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.header-nav a:hover { color: var(--navy); }
.btn-main {
  background: var(--orange); color: var(--white) !important;
  padding: 8px 18px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700;
  transition: background 0.2s;
}
.btn-main:hover { background: var(--orange-dark) !important; }
@media(max-width: 640px) { .header-nav { display: none; } }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white); padding: 48px 16px 40px; text-align: center;
}
.hero-label {
  display: inline-block; background: var(--orange);
  color: var(--white); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 12px; }
.hero p { font-size: 0.95rem; color: rgba(255,255,255,0.7); max-width: 480px; margin: 0 auto 24px; }
.hero-topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-topic {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px; border-radius: 20px; font-size: 0.78rem; font-weight: 500;
}

/* ── FILTERS ── */
.filters-bar { border-bottom: 1px solid var(--border); background: var(--white); padding: 0 16px; overflow-x: auto; }
.filters-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 0; white-space: nowrap; }
.filter-btn {
  padding: 14px 16px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-muted); border: none; border-bottom: 3px solid transparent;
  background: none; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.filter-btn:hover { color: var(--navy); }
.filter-btn.active { color: var(--orange); border-bottom-color: var(--orange); font-weight: 700; }

/* ── POSTS GRID ── */
.posts-section { max-width: 1100px; margin: 0 auto; padding: 32px 16px 48px; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 20px; }

/* Mobile: 1 column. Tablet+: 2. Desktop: 3 */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width: 600px) { .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media(min-width: 900px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ── CARD ── */
.post-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: transform 0.2s, box-shadow 0.2s; display: block;
  text-decoration: none; color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(22,36,71,0.1); }
.card-image { width: 100%; height: 180px; object-fit: cover; }
.card-image-placeholder {
  width: 100%; height: 160px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.card-body { padding: 18px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.card-tag {
  background: var(--tag-bg); color: var(--tag-color);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 10px; border-radius: 4px;
}
.card-date { font-size: 0.75rem; color: var(--text-muted); }
.card-title { font-size: 0.95rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 8px; }
.card-excerpt {
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); }
.read-time { font-size: 0.75rem; color: var(--text-muted); }
.read-more { font-size: 0.78rem; font-weight: 700; color: var(--orange); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 60px 16px; color: var(--text-muted); }
.empty-state .emoji { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }

/* ── NEWSLETTER ── */
.newsletter { background: var(--bg); border-top: 1px solid var(--border); padding: 48px 16px; text-align: center; }
.newsletter-inner { max-width: 480px; margin: 0 auto; }
.newsletter h2 { font-size: 1.4rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.newsletter p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 8px; flex-direction: column; }
@media(min-width: 480px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 0.9rem; font-family: inherit; outline: none;
}
.newsletter-form input:focus { border-color: var(--orange); }
.newsletter-form button {
  background: var(--orange); color: var(--white); border: none;
  padding: 12px 22px; border-radius: 6px; font-size: 0.875rem;
  font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap;
}

/* ── FOOTER ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.5); padding: 32px 16px; text-align: center; }
.footer-logo { font-size: 0.95rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-logo span { color: var(--orange); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.75rem; }

/* ════════════════════════════════
   SINGLE POST PAGE
   ════════════════════════════════ */

/* Post Hero */
.post-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 40px 16px 32px; }
.post-hero-inner { max-width: 720px; margin: 0 auto; }
.post-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; flex-wrap: wrap; }
.post-breadcrumb a { color: rgba(255,255,255,0.5); }
.post-breadcrumb a:hover { color: var(--orange); }
.post-hero-tag { display: inline-block; background: var(--orange); color: var(--white); font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.post-hero h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); font-weight: 800; line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 16px; }
.post-hero-meta { display: flex; align-items: center; gap: 16px; font-size: 0.8rem; color: rgba(255,255,255,0.55); flex-wrap: wrap; }

/* Cover image */
.post-cover { max-width: 720px; margin: 0 auto; padding: 0 16px; transform: translateY(-24px); }
.post-cover img { width: 100%; height: 240px; object-fit: cover; border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
@media(min-width: 600px) { .post-cover img { height: 340px; } }

/* Post body wrapper */
.post-content-wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 60px; }

/* ── TYPOGRAPHY ── */
.post-body { font-size: 1rem; line-height: 1.8; color: #2a2a2a; }
.post-body h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 36px 0 12px; line-height: 1.3; }
.post-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.post-body p { margin-bottom: 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 18px; }
.post-body li { margin-bottom: 8px; line-height: 1.7; }
.post-body strong { font-weight: 700; color: var(--navy); }
.post-body a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote {
  border-left: 4px solid var(--orange); padding: 14px 20px;
  margin: 24px 0; background: var(--tag-bg); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-muted);
}
.post-body blockquote p { margin-bottom: 0; }
.post-body img { width: 100%; border-radius: 10px; margin: 24px 0; }
.post-body .img-caption { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: -16px; margin-bottom: 24px; }

/* Skill card - for numbered skill sections */
.skill-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; margin: 20px 0;
  border-left: 4px solid var(--orange);
}
.skill-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.skill-num { background: var(--orange); color: var(--white); width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem; flex-shrink: 0; }
.skill-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0; }
.skill-card p { font-size: 0.88rem; color: #444; margin: 0 0 12px; line-height: 1.7; }
.skill-card p:last-child { margin-bottom: 0; }

/* Tool pills */
.tool-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tool-pill { background: var(--tag-bg); color: var(--tag-color); border: 1px solid #F0D080; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.tool-pill.dark { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Callout box */
.callout { background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 20px 0; }
.callout-title { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.callout p, .callout ul { margin: 0; font-size: 0.875rem; color: #444; }
.callout ul { padding-left: 18px; }
.callout li { margin-bottom: 5px; }

/* Takeaways box */
.takeaways { background: var(--navy); color: var(--white); border-radius: 12px; padding: 24px; margin: 28px 0; }
.takeaways h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.takeaways ul { padding-left: 18px; margin: 0; }
.takeaways li { color: rgba(255,255,255,0.85); margin-bottom: 8px; font-size: 0.875rem; line-height: 1.6; }

/* CTA box */
.cta-box { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); border-radius: 12px; padding: 24px; margin: 28px 0; text-align: center; }
.cta-box p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 16px; }
.cta-box a { display: inline-block; background: var(--orange); color: var(--white); padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 0.875rem; text-decoration: none; }

/* Roadmap steps */
.roadmap-step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 32px; height: 32px; background: var(--orange); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
.step-text strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.step-text span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Salary table */
.salary-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 16px 0; border-radius: 8px; overflow: hidden; }
.salary-table th { background: var(--navy); color: var(--white); padding: 12px 16px; text-align: left; font-weight: 600; font-size: 0.78rem; }
.salary-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); color: #333; }
.salary-table tr:last-child td { border-bottom: none; }
.salary-table tr:nth-child(even) td { background: var(--bg); }
.salary-amount { font-weight: 700; color: var(--navy); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 700; color: var(--navy); font-size: 0.9rem; margin-bottom: 6px; display: flex; gap: 10px; align-items: flex-start; }
.faq-q::before { content: 'Q'; background: var(--orange); color: var(--white); min-width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.65rem; flex-shrink: 0; margin-top: 1px; }
.faq-a { font-size: 0.85rem; color: #555; line-height: 1.7; padding-left: 32px; }

/* Post tags */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 36px 0 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-tag { background: var(--tag-bg); color: var(--tag-color); padding: 5px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; border: 1px solid #F0D080; }

/* Back link */
.back-link { font-size: 0.85rem; font-weight: 600; color: var(--navy); display: inline-flex; align-items: center; gap: 5px; }
.back-link:hover { color: var(--orange); }

/* Related posts */
.related-posts { background: var(--bg); border-top: 1px solid var(--border); padding: 40px 16px; }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-inner h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media(min-width: 600px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 900px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* Divider */
hr.divider { border: none; border-top: 1px dashed var(--border); margin: 32px 0; }

/* Post actions — like + share */
.post-actions { display: flex; align-items: center; gap: 10px; margin: 28px 0 8px; }
.like-btn { display: flex; align-items: center; gap: 7px; background: none; border: 1.5px solid var(--border); border-radius: 24px; padding: 9px 18px; font-size: 0.875rem; font-weight: 600; color: var(--text); cursor: pointer; transition: all 0.2s; font-family: inherit; }
.like-btn:hover { border-color: #e05555; color: #e05555; }
.like-btn.liked { border-color: #e05555; background: #fff0f0; color: #e05555; }
.like-btn .like-icon { font-size: 1rem; transition: transform 0.2s; display: inline-block; }
.like-btn.liked .like-icon { transform: scale(1.2); }
.share-btn { display: flex; align-items: center; gap: 6px; background: var(--orange); border: none; border-radius: 24px; padding: 9px 18px; font-size: 0.875rem; font-weight: 600; color: var(--white); cursor: pointer; transition: background 0.2s; font-family: inherit; }
