/* NI Auto Blog – Frontend Styles v1.2.0 */

/* ── Reading time badge ─────────────────────────────────── */
.niab-reading-time {
  display: inline-block;
  background: #eaf4fb;
  color: #1a5276;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
}

/* ── Table of Contents ──────────────────────────────────── */
.niab-toc {
  background: #f8fbff;
  border: 1px solid #c8dff0;
  border-left: 4px solid #2e86c1;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
}

.niab-toc-title {
  display: block;
  color: #1a5276;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.niab-toc ol {
  margin: 0;
  padding-left: 20px;
}

.niab-toc li {
  margin: 5px 0;
  line-height: 1.5;
}

.niab-toc a {
  color: #2e86c1;
  text-decoration: none;
}

.niab-toc a:hover {
  text-decoration: underline;
  color: #1a5276;
}

/* ── CTA Box ────────────────────────────────────────────── */
.niab-cta-box {
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
  border-radius: 12px;
  padding: 28px 30px;
  margin: 32px 0;
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 18px rgba(46, 134, 193, .35);
}

.niab-cta-headline {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: #fff;
}

.niab-cta-doctor {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 2px;
  color: #d6eaf8;
}

.niab-cta-subtitle {
  font-size: 13px;
  color: #a9cce3;
  margin: 0 0 18px;
}

.niab-cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.niab-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}

.niab-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.niab-cta-wa {
  background: #25d366;
  color: #fff;
}

.niab-cta-tel {
  background: #fff;
  color: #1a5276;
}

.niab-cta-book {
  background: #f39c12;
  color: #fff;
}

/* ── Author Box ─────────────────────────────────────────── */
.niab-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f4f8fc;
  border: 1px solid #d5e8f5;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 32px 0 16px;
}

.niab-author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #2e86c1;
}

.niab-author-info {
  flex: 1;
}

.niab-author-name {
  font-size: 16px;
  font-weight: 800;
  color: #1a5276;
  margin: 0 0 2px;
}

.niab-author-title {
  font-size: 13px;
  color: #5d7a8f;
  margin: 0 0 8px;
}

.niab-author-bio {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 600px) {
  .niab-author-box { flex-direction: column; align-items: center; text-align: center; }
  .niab-cta-buttons { flex-direction: column; align-items: center; }
  .niab-cta-btn { width: 100%; justify-content: center; }
}
