/* InvoiceFast Blog Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-blue: #2563EB;
  --brand-dark: #1E40AF;
  --brand-amber: #F59E0B;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --bg-light: #F9FAFB;
  --bg-white: #FFFFFF;
  --border: #E5E7EB;
  --radius: 8px;
  --max-width: 800px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: linear-gradient(135deg, #1E40AF 0%, #4361ee 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30,64,175,0.28);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}

.logo a {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
}

.nav-links a {
  margin-right: 28px;
  font-weight: 500;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.cta-button {
  background: #F59E0B;
  color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.cta-button:hover { background: #D97706; transform: translateY(-1px); }

@media (max-width: 600px) {
  .navbar { padding: 12px 20px; }
  .nav-links { display: none; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
}

.breadcrumb ol {
  max-width: 1100px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb li + li::before { content: '›'; margin-right: 0.4rem; }
.breadcrumb a { color: var(--brand-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Main Layout ── */
.page-wrapper {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .page-wrapper { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ── Article ── */
article.blog-post {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.article-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-meta .tag {
  background: #EFF6FF;
  color: var(--brand-blue);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 500;
}

h1.article-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

@media (max-width: 600px) {
  h1.article-title { font-size: 1.5rem; }
  article.blog-post { padding: 1.5rem; }
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ── Headings ── */
h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text-primary); }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text-primary); }

/* ── Text Content ── */
p { margin-bottom: 1rem; }
ul, ol { margin: 0.75rem 0 1rem 1.5rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ── Table ── */
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.invoice-table th {
  background: var(--brand-dark);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.invoice-table td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.invoice-table tr:nth-child(even) td { background: #F8FAFC; }

/* ── Callout / Info Box ── */
.callout {
  background: #EFF6FF;
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

.callout.warning {
  background: #FFFBEB;
  border-left-color: var(--brand-amber);
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  text-align: center;
  margin: 2.5rem 0 1rem;
}

.cta-banner h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.5rem;
}

.cta-banner p { color: rgba(255,255,255,0.88); margin-bottom: 1.25rem; }

.btn-cta {
  display: inline-block;
  background: var(--brand-amber);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-cta:hover { background: #D97706; transform: translateY(-1px); }

/* ── Related Guides ── */
.related-guides {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.related-guides h2 { margin-top: 0; font-size: 1.2rem; }

.related-guides ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.related-guides li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.related-guides li:last-child { border-bottom: none; }

.related-guides a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

/* ── Calculator CTA Card (replaces blocked iframe) ── */
.calc-cta-card {
  background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
  border: 2px solid #4361ee;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.calc-cta-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }

.calc-cta-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1E40AF;
  margin: 0 0 0.75rem;
}

.calc-cta-card p {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.calc-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #1E40AF 0%, #4361ee 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(67,97,238,0.35);
}

.calc-cta-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.calc-cta-note {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  color: #6B7280 !important;
  margin-bottom: 0 !important;
}

.related-guides a:hover { text-decoration: underline; }

/* ── Calculator Embed ── */
.calculator-embed {
  margin: 1.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

.sidebar-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.sidebar-card h3 { margin-top: 0; font-size: 1rem; color: var(--text-primary); }

.sidebar-card ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.sidebar-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
  color: var(--brand-blue);
  text-decoration: none;
}

.sidebar-card a:hover { text-decoration: underline; }

.sidebar-cta {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-dark));
  color: #fff;
  text-align: center;
}

.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin: 0.5rem 0 1rem; }

.btn-sidebar {
  display: inline-block;
  background: var(--brand-amber);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-sidebar:hover { background: #D97706; }

/* ── Hub Pages ── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.hub-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow 0.2s, transform 0.15s;
  display: block;
}

.hub-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.hub-card h3 { font-size: 0.95rem; color: var(--brand-blue); margin: 0 0 0.35rem; }
.hub-card p { font-size: 0.82rem; color: var(--text-secondary); margin: 0; }

.article-list { list-style: none; padding: 0; margin: 1rem 0; }

.article-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.article-list li:last-child { border-bottom: none; }
.article-list a { color: var(--brand-blue); text-decoration: none; font-weight: 500; }
.article-list a:hover { text-decoration: underline; }
.article-list .desc { display: block; font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.15rem; }

/* ── Hub full layout ── */
.hub-wrapper {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.hub-hero {
  background: linear-gradient(135deg, #1E40AF 0%, #4361ee 100%);
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(30,64,175,0.25);
}

.hub-hero h1 { font-size: 1.9rem; font-weight: 800; margin-bottom: 0.6rem; color: #fff; }
.hub-hero p { color: rgba(255,255,255,0.88); font-size: 1.05rem; line-height: 1.6; }

.hub-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border-left: 4px solid #4361ee;
}

.hub-section h2 { margin-top: 0; font-size: 1.2rem; font-weight: 700; color: #1E40AF; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 0.75rem; }

.article-list a { color: #4361ee; }
.article-list a:hover { color: #1E40AF; text-decoration: underline; }

/* ── Footer ── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.footer-brand span { color: var(--brand-amber); }

.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
