/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:     #2563eb;
  --blue-dark:#1d4ed8;
  --green:    #16a34a;
  --green-dk: #15803d;
  --bg:       #f8fafc;
  --card:     #ffffff;
  --border:   #e2e8f0;
  --text:     #1e293b;
  --muted:    #64748b;
  --radius:   10px;
  --shadow:   0 2px 12px rgba(0,0,0,.07);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.logo-text { font-size: 1.3rem; color: var(--text); letter-spacing: -.3px; }
.logo-text strong { color: var(--blue); }
.nav-main { display: flex; gap: 6px; }
.nav-main a { padding: 6px 12px; border-radius: 6px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.nav-main a:hover { background: var(--bg); color: var(--blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #0ea5e9 100%);
  color: #fff; padding: 72px 0 64px; text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero p  { font-size: 1.1rem; opacity: .9; max-width: 580px; margin: 0 auto 32px; }
.hero-search { display: flex; max-width: 500px; margin: 0 auto; gap: 8px; }
.hero-search input {
  flex: 1; padding: 14px 18px; border-radius: 8px; border: none;
  font-size: 1rem; outline: none; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.hero-search button {
  padding: 14px 22px; background: var(--green); color: #fff;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.hero-search button:hover { background: var(--green-dk); }

/* ===== SEÇÃO ===== */
.section { padding: 56px 0; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.section-sub   { color: var(--muted); margin-bottom: 32px; }

/* ===== GRID DE CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-cat  { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--blue); }
.card h3   { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--blue); text-decoration: none; }
.card-desc { font-size: .9rem; color: var(--muted); flex: 1; }
.card-meta { display: flex; gap: 16px; flex-wrap: wrap; }
.badge {
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 20px;
  background: #eff6ff; color: var(--blue);
}
.badge.green { background: #f0fdf4; color: var(--green); }
.card-link {
  display: inline-block; margin-top: 4px; font-size: .9rem; font-weight: 600;
  color: var(--blue);
}
.card-link:hover { text-decoration: none; opacity: .85; }

/* ===== ARTICLE LAYOUT ===== */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; padding: 40px 0 60px; }
.article-main {}
.article-aside { position: sticky; top: 80px; }

/* BREADCRUMB */
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--text); }

/* HERO DO ARTIGO */
.article-hero { margin-bottom: 32px; }
.article-hero .cat-tag {
  display: inline-block; background: #eff6ff; color: var(--blue);
  font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .5px; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px;
}
.article-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.article-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-bottom: 24px; }
.article-meta strong { color: var(--text); }

/* DESTAQUES (salary box) */
.info-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; background: #f0f9ff; border: 1px solid #bae6fd;
  border-radius: var(--radius); padding: 20px; margin: 28px 0;
}
.info-item { text-align: center; }
.info-item .info-val { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.info-item .info-lbl { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* CONTEÚDO DO ARTIGO */
.article-body h2 { font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; color: var(--text); border-left: 4px solid var(--blue); padding-left: 12px; }
.article-body h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 8px; }
.article-body p  { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .92rem; }
.article-body th { background: var(--blue); color: #fff; padding: 10px 14px; text-align: left; }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: #f8fafc; }

/* CTA BOTÃO */
.btn-cta {
  display: block; text-align: center;
  background: linear-gradient(90deg, var(--green) 0%, #22c55e 100%);
  color: #fff; font-size: 1.1rem; font-weight: 700;
  padding: 18px 28px; border-radius: 10px;
  margin: 32px 0; transition: opacity .15s, transform .15s;
  box-shadow: 0 4px 14px rgba(22,163,74,.35);
  text-decoration: none;
}
.btn-cta:hover { opacity: .93; transform: translateY(-1px); text-decoration: none; color: #fff; }
.btn-cta small { display: block; font-size: .8rem; font-weight: 400; opacity: .85; margin-top: 4px; }

.btn-cta-outline {
  display: block; text-align: center; border: 2px solid var(--green);
  color: var(--green); font-size: 1rem; font-weight: 600;
  padding: 14px 20px; border-radius: 10px; margin: 16px 0;
  transition: background .15s, color .15s;
}
.btn-cta-outline:hover { background: var(--green); color: #fff; text-decoration: none; }

/* SIDEBAR CARD */
.aside-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.aside-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.aside-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.aside-card ul li a { font-size: .9rem; color: var(--muted); }
.aside-card ul li a:hover { color: var(--blue); }

/* FAQ */
.faq-section { margin: 40px 0; }
.faq-section h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: #fff;
  padding: 16px 20px; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; display: flex; justify-content: space-between; align-items: center;
  color: var(--text);
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--blue); font-weight: 400; flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { display: none; padding: 0 20px 16px; color: var(--muted); font-size: .95rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }

/* ===== CATEGORIAS ===== */
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 20px 16px; text-align: center; transition: box-shadow .15s;
  text-decoration: none; color: var(--text);
}
.cat-card:hover { box-shadow: var(--shadow); text-decoration: none; color: var(--blue); }
.cat-card .cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-card .cat-name { font-weight: 600; font-size: .95rem; }
.cat-card .cat-count { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ===== FOOTER ===== */
.site-footer { background: #1e293b; color: #94a3b8; padding: 48px 0 0; margin-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: .9rem; margin-top: 12px; line-height: 1.6; }
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text strong { color: #60a5fa; }
.footer-links h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links ul li a { color: #94a3b8; font-size: .9rem; text-decoration: none; }
.footer-links ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #334155; margin-top: 40px; padding: 20px 0; }
.footer-bottom p { font-size: .82rem; color: #64748b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .article-wrap { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav-main { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
  .nav-main.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  .hero-search { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .info-box { grid-template-columns: 1fr 1fr; }
}
