/* BizTrak blog: listing, post page, lead box. Plain CSS because the site's compiled Tailwind lacks these utilities. */
:root {
    --bt-navy: #003299;
    --bt-navy-deep: #00226b;
    --bt-green: #34cc67;
    --bt-green-dark: #1f9d4c;
    --bt-ink: #111827;
    --bt-text: #374151;
    --bt-muted: #6b7280;
    --bt-line: #e5e7eb;
    --bt-soft: #f3f6fd;
    --bt-card: #ffffff;
    --bt-page: #f8fafc;
}
.dark {
    --bt-ink: #f9fafb;
    --bt-text: #d1d5db;
    --bt-muted: #9ca3af;
    --bt-line: #374151;
    --bt-soft: #1f2937;
    --bt-card: #111827;
    --bt-page: #0b1120;
}

.bt-blog { background: var(--bt-page); color: var(--bt-text); }
.bt-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .bt-wrap { padding: 0 1.5rem; } }

/* ---------- Hero ---------- */
.bt-hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(52, 204, 103, .28), transparent 60%), linear-gradient(135deg, var(--bt-navy) 0%, var(--bt-navy-deep) 100%); color: #fff; padding: 3.5rem 0 4.5rem; }
.bt-crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 1.25rem; }
.bt-crumbs a { color: rgba(255, 255, 255, .85); }
.bt-crumbs a:hover { color: #fff; text-decoration: underline; }
.bt-kicker { display: inline-flex; align-items: center; gap: .5rem; background: rgba(52, 204, 103, .16); color: var(--bt-green); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 999px; }
.bt-hero h1 { margin-top: 1rem; font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; max-width: 18ch; }
.bt-hero p.bt-intro { margin-top: 1rem; font-size: 1.15rem; line-height: 1.6; color: rgba(255, 255, 255, .85); max-width: 46rem; }
.bt-hero-row { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1024px) { .bt-hero-row { grid-template-columns: 1.4fr 1fr; } }
.bt-search { display: flex; background: #fff; border-radius: .9rem; padding: .35rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.bt-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .75rem .9rem; font-size: 1rem; color: #111827; outline: none; }
.bt-search button { background: var(--bt-green); color: var(--bt-navy); font-weight: 800; border-radius: .7rem; padding: .7rem 1.2rem; }
.bt-search button:hover { background: #2fb85d; }
.bt-hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.bt-hero-points span::before { content: "✓"; color: var(--bt-green); font-weight: 800; margin-right: .4rem; }

/* ---------- Category chips ---------- */
.bt-chips { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem 0 .25rem; margin-top: -2.2rem; scrollbar-width: none; }
.bt-chips::-webkit-scrollbar { display: none; }
.bt-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; background: var(--bt-card); color: var(--bt-ink); border: 1px solid var(--bt-line); border-radius: 999px; padding: .55rem 1rem; font-size: .9rem; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 34, 107, .08); transition: border-color .15s, color .15s; }
.bt-chip small { color: var(--bt-muted); font-weight: 600; }
.bt-chip:hover { border-color: var(--bt-green); color: var(--bt-green-dark); }
.bt-chip.is-active { background: var(--bt-green); border-color: var(--bt-green); color: var(--bt-navy); }
.bt-chip.is-active small { color: var(--bt-navy); }

/* ---------- Sections ---------- */
.bt-section { padding: 2.5rem 0; }
.bt-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bt-section-head h2 { font-size: 1.5rem; font-weight: 800; color: var(--bt-ink); }
.bt-section-head p { color: var(--bt-muted); }

/* ---------- Cards ---------- */
.bt-cover { position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bt-navy); }
.bt-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bt-cover-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 800; font-size: 1.5rem; }
.bt-card { display: flex; flex-direction: column; background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: 1.1rem; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 34, 107, .06); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.bt-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 34, 107, .14); }
.bt-card:hover .bt-cover img { transform: scale(1.03); }
.bt-card-body { display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.25rem 1.3rem; flex: 1; }
.bt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; font-size: .8rem; color: var(--bt-muted); }
.bt-tag { background: rgba(52, 204, 103, .14); color: var(--bt-green-dark); font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.dark .bt-tag { color: var(--bt-green); }
.bt-card h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 800; color: var(--bt-ink); }
.bt-card h3 a::after { content: ""; position: absolute; inset: 0; }
.bt-card { position: relative; }
.bt-card p { font-size: .95rem; line-height: 1.55; color: var(--bt-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bt-read { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .9rem; color: var(--bt-green-dark); }
.dark .bt-read { color: var(--bt-green); }
.bt-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .bt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bt-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Featured: big horizontal card */
.bt-featured { display: grid; background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: 1.4rem; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 34, 107, .12); position: relative; }
@media (min-width: 900px) { .bt-featured { grid-template-columns: 1.15fr 1fr; } }
.bt-featured .bt-card-body { padding: 1.6rem; justify-content: center; gap: .9rem; }
@media (min-width: 900px) { .bt-featured .bt-card-body { padding: 2.25rem; } }
.bt-featured h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; font-weight: 800; color: var(--bt-ink); }
.bt-featured h2 a::after { content: ""; position: absolute; inset: 0; }
.bt-featured p { font-size: 1.02rem; line-height: 1.6; color: var(--bt-muted); }
.bt-featured:hover .bt-cover img { transform: scale(1.03); }
.bt-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: .8rem; padding: .8rem 1.35rem; font-weight: 800; transition: background-color .15s, color .15s, border-color .15s; }
.bt-btn-green { background: var(--bt-green); color: var(--bt-navy); }
.bt-btn-green:hover { background: #2fb85d; }
.bt-btn-navy { background: var(--bt-navy); color: #fff; }
.bt-btn-navy:hover { background: var(--bt-navy-deep); }
.bt-btn-ghost { border: 2px solid rgba(255, 255, 255, .9); color: #fff; }
.bt-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.bt-btn-line { border: 2px solid var(--bt-line); color: var(--bt-ink); }
.bt-btn-line:hover { border-color: var(--bt-green); }

/* ---------- Lead box (free toolkit) ---------- */
.bt-lead { display: grid; gap: 1.5rem; background: linear-gradient(135deg, var(--bt-navy) 0%, var(--bt-navy-deep) 100%); color: #fff; border-radius: 1.4rem; padding: 1.6rem; box-shadow: 0 18px 40px rgba(0, 34, 107, .25); overflow: hidden; position: relative; }
@media (min-width: 900px) { .bt-lead { grid-template-columns: 1fr 1.05fr; padding: 2.5rem; align-items: center; } }
.bt-lead h2, .bt-lead h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.2; font-weight: 800; color: #fff; }
.bt-lead p { color: rgba(255, 255, 255, .85); line-height: 1.6; }
.bt-lead ul { margin-top: .9rem; display: grid; gap: .45rem; }
.bt-lead li { display: flex; gap: .55rem; color: rgba(255, 255, 255, .92); }
.bt-lead li::before { content: "✓"; color: var(--bt-green); font-weight: 800; }
.bt-lead form { background: #fff; color: #111827; border-radius: 1rem; padding: 1.25rem; display: grid; gap: .75rem; }
.bt-lead label { display: block; font-size: .82rem; font-weight: 700; color: #374151; margin-bottom: .3rem; }
.bt-lead input[type=text], .bt-lead input[type=tel], .bt-lead input[type=email], .bt-lead select { width: 100%; border: 1px solid #d1d5db; border-radius: .65rem; padding: .7rem .8rem; font-size: 1rem; color: #111827; background: #fff; }
.bt-lead input:focus, .bt-lead select:focus { outline: 2px solid var(--bt-green); outline-offset: 1px; border-color: var(--bt-green); }
.bt-lead .bt-two { display: grid; gap: .75rem; }
@media (min-width: 560px) { .bt-lead .bt-two { grid-template-columns: 1fr 1fr; } }
.bt-lead .bt-check { display: flex; gap: .55rem; align-items: flex-start; font-size: .85rem; color: #4b5563; font-weight: 500; }
.bt-lead .bt-check input { margin-top: .2rem; }
.bt-lead .bt-fine { font-size: .78rem; color: #6b7280; }
.bt-lead .bt-error { font-size: .82rem; color: #b91c1c; margin-top: .25rem; }
.bt-lead .bt-success { background: #fff; color: #111827; border-radius: 1rem; padding: 1.5rem; display: grid; gap: .8rem; }
.bt-lead .bt-success h3 { color: var(--bt-navy); font-size: 1.35rem; }
.bt-lead .bt-success p { color: #4b5563; }
.bt-lead-badge { position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(52, 204, 103, .18); }

/* ---------- Post page ---------- */
.bt-post-hero { padding: 2.75rem 0 6.5rem; }
.bt-post-hero h1 { max-width: 26ch; }
.bt-post-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1.1rem; font-size: .92rem; color: rgba(255, 255, 255, .8); }
.bt-post-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.bt-post-cover { margin-top: -5rem; border-radius: 1.3rem; overflow: hidden; box-shadow: 0 20px 45px rgba(0, 34, 107, .25); aspect-ratio: 1200 / 630; background: var(--bt-navy); }
.bt-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.bt-post-layout { display: grid; gap: 2.5rem; padding: 2.5rem 0 3rem; }
@media (min-width: 1024px) { .bt-post-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; } }
.bt-aside { display: grid; gap: 1.25rem; align-content: start; }
@media (min-width: 1024px) { .bt-aside-sticky { position: sticky; top: 6rem; display: grid; gap: 1.25rem; } }
.bt-box { background: var(--bt-card); border: 1px solid var(--bt-line); border-radius: 1.1rem; padding: 1.25rem; }
.bt-box h4 { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bt-muted); margin-bottom: .75rem; }
.bt-toc ol { display: grid; gap: .55rem; counter-reset: toc; }
.bt-toc li { counter-increment: toc; display: flex; gap: .55rem; font-size: .92rem; line-height: 1.4; }
.bt-toc li::before { content: counter(toc); flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--bt-soft); color: var(--bt-navy); font-size: .75rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.dark .bt-toc li::before { color: #fff; }
.bt-toc a { color: var(--bt-text); }
.bt-toc a:hover, .bt-toc a.is-current { color: var(--bt-green-dark); font-weight: 700; }
.bt-try { background: linear-gradient(160deg, var(--bt-navy) 0%, var(--bt-navy-deep) 100%); color: #fff; border: 0; }
.bt-try h4 { color: var(--bt-green); }
.bt-try strong { display: block; font-size: 1.25rem; line-height: 1.3; }
.bt-try p { margin-top: .5rem; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.bt-try .bt-btn { width: 100%; margin-top: .9rem; }
.bt-try .bt-try-alt { display: block; text-align: center; margin-top: .7rem; font-size: .88rem; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.bt-share { display: flex; gap: .5rem; flex-wrap: wrap; }
.bt-share a { flex: 1; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1px solid var(--bt-line); border-radius: .7rem; padding: .55rem; font-size: .85rem; font-weight: 700; color: var(--bt-ink); }
.bt-share a:hover { border-color: var(--bt-green); }

/* Article text */
.article-body { font-size: 1.075rem; line-height: 1.8; color: var(--bt-text); max-width: 72ch; }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-size: 1.65rem; line-height: 1.3; font-weight: 800; color: var(--bt-navy); margin-top: 2.1em; scroll-margin-top: 6rem; }
.article-body h3 { font-size: 1.25rem; line-height: 1.35; font-weight: 700; color: var(--bt-ink); margin-top: 1.7em; }
.dark .article-body h2 { color: #fff; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li + li { margin-top: .45em; }
.article-body li::marker { color: var(--bt-green-dark); font-weight: 700; }
.article-body a { color: var(--bt-green-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.dark .article-body a { color: var(--bt-green); }
.article-body strong { color: var(--bt-ink); }
.article-body blockquote { border-left: 4px solid var(--bt-green); background: rgba(52, 204, 103, .08); padding: 1em 1.25em; border-radius: .6rem; color: var(--bt-ink); }
.article-body table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--bt-line); padding: .65em .85em; text-align: left; vertical-align: top; }
.article-body th { background: var(--bt-navy); color: #fff; }
.article-body tbody tr:nth-child(even) td { background: var(--bt-soft); }
.article-body img { border-radius: 1rem; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); max-width: 100%; height: auto; }
.article-body .bt-callout { background: var(--bt-soft); border: 1px solid var(--bt-line); border-radius: 1rem; padding: 1.25em 1.5em; }
.article-body .bt-callout > * + * { margin-top: .6em; }
.article-body .bt-inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--bt-soft); border: 1px dashed var(--bt-green); border-radius: 1rem; padding: 1.1rem 1.25rem; }
.article-body .bt-inline-cta p { margin: 0; font-weight: 700; color: var(--bt-ink); }
.article-body .bt-inline-cta p span { display: block; font-weight: 500; color: var(--bt-muted); font-size: .95rem; }
.article-body .bt-inline-cta a, .article-body .bt-inline-cta a:hover { text-decoration: none; color: var(--bt-navy); }

/* End-of-post CTA */
.bt-cta { background: var(--bt-navy); color: #fff; border-radius: 1.2rem; padding: 1.75rem; margin-top: 2.5rem; box-shadow: 0 10px 25px rgba(0, 50, 153, .25); }
.bt-cta-kicker { color: var(--bt-green); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.bt-cta h2 { margin-top: .4rem; font-size: 1.6rem; line-height: 1.25; font-weight: 800; color: #fff; }
.bt-cta-text { margin-top: .6rem; color: rgba(255, 255, 255, .85); }
.bt-cta-buttons { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 640px) { .bt-cta { padding: 1.25rem; } .bt-cta-buttons .bt-btn { width: 100%; } }

/* Mobile sticky bar on posts */
.bt-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--bt-line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); transform: translateY(110%); transition: transform .25s ease; }
.dark .bt-sticky-bar { background: rgba(17, 24, 39, .97); }
.bt-sticky-bar.is-shown { transform: translateY(0); }
.bt-sticky-bar .bt-btn { flex: 1; padding: .7rem .5rem; font-size: .92rem; }
@media (min-width: 1024px) { .bt-sticky-bar { display: none; } }
/* The bar has its own WhatsApp button, so the site's floating one steps aside while it shows */
.floating-whatsapp { transition: opacity .2s ease, transform .2s ease; }
body.bt-bar-on .floating-whatsapp { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* Pagination from Laravel stays readable */
.bt-pages nav { display: flex; justify-content: center; }

.bt-empty { text-align: center; padding: 3rem 1rem; background: var(--bt-card); border: 1px dashed var(--bt-line); border-radius: 1.1rem; }
.bt-empty h3 { font-size: 1.25rem; font-weight: 800; color: var(--bt-ink); }
.bt-empty p { color: var(--bt-muted); margin-top: .4rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
