/* ===== Blog — Mr. Keyman =====
   Brand palette: --black:#212121, --yellow:#ffc158, --white:#fff
   Font: Evolventa, Arial, sans-serif (inherited)
*/

.blog-page,
.author-page,
.article-page {
  background: #fff;
  color: #212121;
  font-family: Evolventa, Arial, sans-serif;
  line-height: 1.6;
}

.blog-page .container,
.article-page .container,
.author-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ===== Hero (index/category/tag) ===== */
.blog-hero {
  padding: 90px 0;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-bottom: 1px solid #eee;
}
.blog-hero--small { padding: 60px 0 40px; }
@media (max-width: 720px) {
  .blog-hero { padding: 60px 0; }
  .blog-hero--small { padding: 40px 0 28px; }
}

.blog-hero__title {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 14px;
  font-weight: 800;
  color: #212121;
}
.blog-hero__lead {
  font-size: 18px;
  line-height: 1.5;
  max-width: 780px;
  color: #444;
  margin: 0;
}
/* ===== City pills under hero lead ===== */
.blog-hero__cities {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.blog-hero__cities-label {
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-right: 4px;
}
.blog-hero__city {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e6e6e6;
  font-size: 13px;
  font-weight: 600;
  color: #212121;
  text-decoration: none;
  transition: all 0.15s ease;
}
.blog-hero__city:hover {
  background: #ffc158;
  border-color: #ffc158;
  transform: translateY(-1px);
}
.blog-hero__city--more {
  color: #888;
  background: transparent;
  border-color: transparent;
  font-style: italic;
  font-weight: 500;
  pointer-events: none;
}
@media (max-width: 720px) {
  .blog-hero__cities { margin-top: 18px; gap: 6px; }
  .blog-hero__city { padding: 5px 10px; font-size: 12px; }
}


/* ===== Featured ===== */
.blog-featured {
  padding: 90px 0;
  background: #fafafa;
}
@media (max-width: 720px) {
  .blog-featured { padding: 60px 0; }
}
.blog-featured__badge {
  display: inline-block;
  background: #ffc158;
  color: #212121;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.blog-featured__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.blog-featured__inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.blog-featured__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 280px;
}
.blog-featured__body { padding: 28px; }
.blog-featured__category {
  font-size: 13px;
  font-weight: 700;
  color: #ffc158;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.blog-featured__title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 12px;
}
.blog-featured__excerpt { color: #444; margin: 0 0 14px; }
.blog-featured__meta { color: #888; font-size: 14px; }

@media (max-width: 720px) {
  .blog-featured__inner { grid-template-columns: 1fr; }
  .blog-featured__hero img { min-height: 200px; }
  .blog-featured__body { padding: 20px; }
  .blog-featured__title { font-size: 22px; }
}

/* ===== Layout (list + sidebar) ===== */
.blog-page .blog-layout,
.blog-layout.container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  padding: 90px 20px;
}
.blog-list { min-width: 0; }
.blog-empty { color: #888; padding: 32px 0; }

@media (max-width: 980px) {
  .blog-page .blog-layout,
  .blog-layout.container { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .blog-page .blog-layout,
  .blog-layout.container { padding: 60px 20px; }
}

/* ===== Sidebar ===== */
.blog-sidebar { display: flex; flex-direction: column; gap: 20px; }
.blog-sidebar__block {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
}
.blog-sidebar__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #212121;
}
.blog-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-sidebar__list li { margin-bottom: 6px; }
.blog-sidebar__list a {
  color: #212121;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 0.15s;
}
.blog-sidebar__list a:hover { color: #ffc158; }

/* ===== Sidebar CTA (auto locksmith) ===== */
.blog-sidebar__cta {
  background: linear-gradient(165deg, #2a2a2a 0%, #1a1a1a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.blog-sidebar__cta::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 193, 88, 0.18), transparent 70%);
  pointer-events: none;
}

.blog-sidebar__cta-badge {
  display: inline-block;
  background: rgba(255, 193, 88, 0.15);
  border: 1px solid rgba(255, 193, 88, 0.3);
  color: #ffc158;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.blog-sidebar__cta-title {
  font-size: 19px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.blog-sidebar__cta-subtitle {
  font-size: 14px;
  line-height: 1.4;
  color: #ffc158;
  font-weight: 600;
  margin: 0 0 14px;
}

.blog-sidebar__cta-text {
  font-size: 13px;
  line-height: 1.55;
  color: #c8c8c8;
  margin: 0 0 14px;
}
.blog-sidebar__cta-text strong {
  color: #ffc158;
  font-weight: 700;
}

.blog-sidebar__cta-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.blog-sidebar__cta-features li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: #d8d8d8;
  line-height: 1.4;
}
.blog-sidebar__cta-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #ffc158;
  border-bottom: 2px solid #ffc158;
  transform: rotate(-45deg);
}

.blog-sidebar__cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  background: #ffc158;
  color: #212121;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s;
  box-shadow: 0 8px 24px rgba(255, 193, 88, 0.25);
}
.blog-sidebar__cta-btn:hover {
  background: #ffb938;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 193, 88, 0.35);
}
.blog-sidebar__cta-btn-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.blog-sidebar__cta-btn-phone {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.blog-sidebar__cta-foot {
  margin-top: 12px;
  font-size: 11px;
  color: #888;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ===== Article grid + cards ===== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.article-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .article-grid--3 { grid-template-columns: 1fr; }
}

.article-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.article-card__link { text-decoration: none; color: inherit; display: block; }
.article-card__hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.article-card__body { padding: 18px; }
.article-card__category {
  font-size: 12px;
  font-weight: 700;
  color: #ffc158;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.article-card__title {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 8px;
  color: #212121;
}
.article-card__excerpt {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta { font-size: 13px; color: #888; }
.article-card__meta .dot { margin: 0 6px; }

/* ===== Pagination ===== */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  padding: 16px 0;
}
.blog-pagination__link {
  text-decoration: none;
  color: #212121;
  background: #fafafa;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #eee;
  font-size: 14px;
}
.blog-pagination__link:hover:not(.is-disabled) { background: #ffc158; }
.blog-pagination__link.is-disabled { color: #aaa; pointer-events: none; }
.blog-pagination__info { color: #666; font-size: 14px; }

/* ===== Article page ===== */
.article-hero { padding: 90px 0 40px; background: #fff; }
@media (max-width: 720px) {
  .article-hero { padding: 60px 0 30px; }
}
.article-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}
.article-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.article-breadcrumb a:hover { color: #ffc158; }
.article-breadcrumb .sep { margin: 0 6px; color: #ccc; }

.article-hero__category {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #ffc158;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.article-hero__title {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 16px;
  color: #212121;
}
@media (max-width: 720px) {
  .article-hero__title { font-size: 28px; }
}

.article-lead {
  font-size: 19px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 22px;
  max-width: 800px;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
}
.article-hero__meta .dot { color: #ccc; }
.article-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.article-hero__author-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.article-hero__author-name { display: block; font-weight: 700; color: #212121; }
.article-hero__author-title { display: block; font-size: 12px; color: #888; }

.article-figure {
  margin: 0 auto 28px;
  padding-top: 8px;
}
.article-figure img {
  width: 100%;
  border-radius: 14px;
  display: block;
  max-height: 520px;
  object-fit: cover;
}
.article-figure figcaption {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 8px;
}

.article-page .article-layout,
.article-layout.container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  padding: 90px 20px;
}
@media (max-width: 980px) {
  .article-page .article-layout,
  .article-layout.container { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .article-page .article-layout,
  .article-layout.container { padding: 60px 20px; }
}

.article-main { min-width: 0; }

/* TOC */
.article-toc {
  background: #fafafa;
  border-left: 4px solid #ffc158;
  padding: 18px 22px;
  border-radius: 6px;
  margin: 0 0 28px;
}
.article-toc__title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
  margin-bottom: 10px;
}
.article-toc__list {
  margin: 0;
  padding-left: 18px;
  list-style: decimal;
}
.article-toc__list .toc-h3 { margin-left: 16px; list-style: lower-alpha; }
.article-toc__list a {
  color: #212121;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.7;
}
.article-toc__list a:hover { color: #ffc158; }

/* Article body — readable typography */
.article-body { font-size: 17px; line-height: 1.7; color: #2a2a2a; }
.article-body h2 {
  font-size: 26px;
  margin: 36px 0 14px;
  font-weight: 800;
  scroll-margin-top: 80px;
}
.article-body h3 {
  font-size: 21px;
  margin: 28px 0 10px;
  font-weight: 700;
  scroll-margin-top: 80px;
}
.article-body p { margin: 0 0 16px; }
.article-body a { color: #b9821b; text-decoration: underline; }
.article-body a:hover { color: #ffc158; }
.article-body ul, .article-body ol { margin: 12px 0 18px; padding-left: 26px; }
.article-body li { margin-bottom: 6px; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0; }
.article-body blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: #fafafa;
  border-left: 4px solid #ffc158;
  font-style: italic;
  color: #444;
}
.article-body code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.article-body table th,
.article-body table td {
  border: 1px solid #eee;
  padding: 10px;
  text-align: left;
}
.article-body table th { background: #fafafa; font-weight: 700; }

/* FAQs */
.article-faqs { margin: 40px 0 28px; }
.article-faqs__title {
  font-size: 24px;
  margin: 0 0 16px;
  font-weight: 800;
}
.article-faqs__list { list-style: none; padding: 0; margin: 0; }
.article-faqs__item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
}
.article-faqs__item details summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
}
.article-faqs__item details summary::-webkit-details-marker { display: none; }
.article-faqs__item details summary::after {
  content: "+";
  float: right;
  font-size: 20px;
  color: #ffc158;
}
.article-faqs__item details[open] summary::after { content: "−"; }
.article-faqs__answer {
  padding: 0 16px 16px;
  color: #444;
  line-height: 1.65;
}

/* Author card at end of article */
.article-author-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  margin: 32px 0;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.article-author-card__photo img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
}
.article-author-card__name { font-weight: 800; font-size: 17px; }
.article-author-card__title { font-size: 13px; color: #888; margin-bottom: 8px; }
.article-author-card__bio { font-size: 14px; color: #444; margin: 0 0 8px; }
.article-author-card__cta {
  font-size: 14px;
  font-weight: 700;
  color: #b9821b;
  text-decoration: none;
}

/* Tags row */
.article-tags { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tag {
  font-size: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  color: #555;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.article-tag:hover { background: #ffc158; color: #212121; }

/* Related articles */
.article-related { margin: 42px 0 0; }
.article-related__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
}

/* ===== Author profile page ===== */
.author-hero { padding: 36px 0 24px; background: linear-gradient(180deg, #fff, #fafafa); border-bottom: 1px solid #eee; }
.author-hero__inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 14px;
}
.author-hero__photo {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.author-hero__name { font-size: 32px; font-weight: 800; margin: 0; }
.author-hero__title { color: #888; font-size: 15px; margin: 4px 0 14px; }
.author-hero__lead { font-size: 17px; color: #333; max-width: 720px; margin: 0 0 14px; }
.author-hero__creds { list-style: none; padding: 0; margin: 0 0 14px; font-size: 14px; color: #444; display: flex; flex-wrap: wrap; gap: 16px; }
.author-hero__social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.author-hero__social a {
  font-size: 13px;
  background: #fff;
  border: 1px solid #eee;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: #333;
}
.author-hero__social a:hover { background: #ffc158; }

@media (max-width: 720px) {
  .author-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .author-hero__photo { margin: 0 auto; }
}

.author-bio {
  padding: 28px 20px;
  font-size: 17px;
  line-height: 1.7;
  max-width: 880px;
  color: #2a2a2a;
}
.author-articles-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 18px;
}


/* ===== Article bottom CTA (full-width, after content) ===== */
.article-bottom-cta {
  background: linear-gradient(135deg, #ffc158 0%, #ffb938 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.article-bottom-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.25), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(33, 33, 33, 0.08), transparent 40%);
  pointer-events: none;
}
.article-bottom-cta .container { position: relative; }

.article-bottom-cta__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.article-bottom-cta__badge {
  display: inline-block;
  background: #212121;
  color: #ffc158;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.article-bottom-cta__title {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  color: #212121;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.article-bottom-cta__text {
  font-size: 16px;
  line-height: 1.55;
  color: #333;
  margin: 0 0 14px;
  max-width: 640px;
}
.article-bottom-cta__text strong {
  color: #212121;
  font-weight: 700;
}

.article-bottom-cta__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.article-bottom-cta__features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #212121;
}
.article-bottom-cta__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 2px solid #212121;
  border-bottom: 2px solid #212121;
  transform: rotate(-45deg);
}

.article-bottom-cta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  background: #212121;
  color: #fff;
  padding: 20px 32px;
  border-radius: 12px;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s;
  box-shadow: 0 12px 32px rgba(33, 33, 33, 0.25);
  min-width: 240px;
}
.article-bottom-cta__btn:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(33, 33, 33, 0.4);
}
.article-bottom-cta__btn-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffc158;
}
.article-bottom-cta__btn-phone {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.article-bottom-cta__btn-hint {
  font-size: 11px;
  color: #aaa;
  margin-top: 2px;
}

@media (max-width: 800px) {
  .article-bottom-cta { padding: 50px 0; }
  .article-bottom-cta__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .article-bottom-cta__title { font-size: 24px; }
  .article-bottom-cta__btn {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
  }
  .article-bottom-cta__btn-phone { font-size: 22px; }
  .article-bottom-cta__features { gap: 6px 14px; }
}
