@font-face {
  font-family: "Shabnam";
  src: url("/assets/fonts/shabnam.woff2") format("woff2"), url("/assets/fonts/shabnam.woff") format("woff");
  font-display: swap;
}

:root {
  --red: #ee293e;
  --red-dark: #c81d30;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f7f8;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Shabnam", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
}
a { color: var(--red-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { display: block; width: 140px; height: auto; }
.menu { display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; margin-inline-start: auto; }
.menu a { color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.menu a:hover { background: var(--bg); text-decoration: none; }
.menu a.cta { background: var(--red); color: #fff; }
.menu a.cta:hover { background: var(--red-dark); }

main.wrap { padding-top: 24px; padding-bottom: 48px; }
.hero { text-align: center; padding: 24px 0 8px; }
.hero h1 { margin: 0 0 4px; font-size: 30px; }
.hero p { margin: 0 0 8px; color: var(--muted); }
.hero.small h1 { font-size: 26px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs span { margin: 0 4px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-img { display: block; aspect-ratio: 16 / 9; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h2 { font-size: 17px; line-height: 1.7; margin: 0; }
.card h2 a { color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card time { margin-top: auto; font-size: 13px; color: var(--muted); }
.chip { display: inline-block; align-self: flex-start; font-size: 13px; padding: 1px 10px; border-radius: 999px; background: #fdecee; color: var(--red-dark); }
.chip:hover { text-decoration: none; background: #fbd9dd; }

.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px clamp(16px, 4vw, 48px) 32px; max-width: 860px; margin: 0 auto; }
.post h1 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.6; margin: 4px 0 8px; }
.post .meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.post .meta span { margin: 0 4px; }
.featured { margin: 0 0 20px; }
.featured img { border-radius: var(--radius); display: block; width: 100%; max-height: 440px; object-fit: contain; background: #fff; }
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 0 0 20px; }
.toc summary { cursor: pointer; font-weight: bold; }
.toc ol { margin: 8px 0 0; padding-inline-start: 20px; }
.toc .toc-h3 { margin-inline-start: 16px; list-style: circle; }

.content { font-size: 17px; overflow-wrap: anywhere; }
.content h2 { font-size: 23px; margin: 32px 0 8px; line-height: 1.6; }
.content h3 { font-size: 19px; margin: 24px 0 8px; line-height: 1.6; }
.content figure { margin: 20px 0; }
.content img { border-radius: 8px; }
.content figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.content .alignleft { float: left; margin: 0 16px 8px 0; }
.content .alignright { float: right; margin: 0 0 8px 16px; }
.content .wp-block-image, .content .wp-block-image figure { text-align: center; }
.content blockquote, .content .wp-block-pullquote { margin: 20px 0; padding: 8px 16px; border-inline-start: 4px solid var(--red); background: var(--bg); border-radius: 8px; }
.content .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.content pre { direction: ltr; text-align: left; background: #f6f8fa; padding: 12px; border-radius: 8px; overflow-x: auto; font-size: 14px; }
.content code { direction: ltr; unicode-bidi: embed; }
.content .table-wrap { overflow-x: auto; }
.content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.content th, .content td { border: 1px solid var(--line); padding: 6px 10px; }
.content th { background: var(--bg); }
.content iframe { max-width: 100%; }
.content .wp-block-gallery ul, .content .blocks-gallery-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.content .wp-block-gallery figure { margin: 0; }
.content .embed-link { direction: ltr; text-align: left; }
.content::after { content: ""; display: block; clear: both; }

.wp-pros-cons { border-radius: var(--radius); padding: 12px; margin: 20px 0; }
.wppc-boxs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wppc-box { background: #fff; border-radius: 8px; padding: 12px 16px; }
.wppc-header { display: flex; align-items: center; gap: 8px; }
.wppc-content-title { margin: 0; font-size: 17px; }
.wp-pros-cons-list { margin: 8px 0 0; padding-inline-start: 20px; }
@media (max-width: 640px) { .wppc-boxs { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; }
.cta-box { margin-top: 28px; padding: 16px 20px; border-radius: var(--radius); background: #fdecee; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cta-box p { margin: 0; }
.button { display: inline-block; background: var(--red); color: #fff; padding: 8px 18px; border-radius: 8px; }
.button:hover { background: var(--red-dark); text-decoration: none; }
.related { max-width: 1120px; margin: 32px auto 0; }
.related h2 { font-size: 22px; margin: 0; }

.site-footer { background: var(--red); color: #fff; padding: 24px 0; font-size: 14px; }
.footer-row { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; opacity: .9; }

@media (max-width: 720px) {
  .header-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
  .logo { align-self: center; }
  .menu { margin: 0; }
  .alignleft, .alignright { float: none; margin: 0 auto; }
}
.wppc-box-symbol { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.wppc-box-symbol img { width: 18px !important; border-radius: 0; }
.pros-content .wppc-box-symbol { background: #28b914; }
.cons-content .wppc-box-symbol { background: var(--red); }
