/*
Theme Name: BaharLink
Theme URI: https://baharlink.ir
Author: BaharLink Team
Author URI: https://baharlink.ir
Description: قالب اختصاصی وردپرس برای BaharLink — مرجع تخصصی OpenVPN. سبک، سریع، مینیمال، مدرن، حرفه‌ای، امن، استاندارد و کاملاً SEO-Oriented. دارای پنل تنظیمات کامل.
Version: 1.5.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: baharlink
Tags: rtl, two-columns, custom-logo, custom-menu, featured-images, post-formats, translation-ready, seo-friendly, technical, openvpn, block-styles, wide-blocks
*/

/* =========================================================
   BaharLink WordPress Theme — Complete Stylesheet v1.1.0
   Sections:
   1.  Fonts
   2.  Reset & Base
   3.  CSS Variables (Design Tokens)
   4.  Typography
   5.  Container & Layout Utilities
   6.  App Shell & Accessibility (skip link, focus, sr-only)
   7.  Header (logo, nav, actions, mobile menu)
   8.  Search Dialog
   9.  Hero
   10. Buttons
   11. Layout Grid (content + sidebar)
   12. Categories Grid
   13. Section Title
   14. Post Cards Grid
   15. Sidebar Widgets
   16. Telegram Box / Section
   17. Single Post (header, meta, featured, tags, author, nav)
   18. Article Body (typography, blocks, code, blockquote, table, images)
   19. WordPress Block Styles (image, gallery, quote, pullquote, columns, button, separator, etc.)
   20. TOC
   21. Breadcrumbs
   22. Pagination (posts + comments)
   23. Archive Headers (category/tag/author/search)
   24. Sub-categories pills
   25. Comments (list, form, reply, pagination)
   26. Footer
   27. 404 Page
   28. Back-to-top & Reading progress
   29. Callouts & Terminal (shortcodes)
   30. Widgets (default WP widget styles)
   31. Forms (search, comment, generic)
   32. Print Styles
   33. Dark Mode
   34. Responsive Breakpoints
   ========================================================= */

/* ===== 1. Fonts ===== */
@font-face { font-family:'Vazirmatn'; src:url('assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('assets/fonts/Vazirmatn-Medium.woff2') format('woff2'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2'); font-weight:600; font-style:normal; font-display:swap; }
@font-face { font-family:'Vazirmatn'; src:url('assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); font-weight:700; font-style:normal; font-display:swap; }

/* ===== 2. Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== 3. CSS Variables (Design Tokens) ===== */
:root {
  --brand: #0d9488;
  --brand-soft: #ccfbf1;
  --brand-strong: #0f766e;
  --brand-accent: #5eead4;
  --ink: #0f172a;
  --ink-soft: #475569;
  --paper: #f8f9fa;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --card: #ffffff;
  --muted: #64748b;
  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 32px -8px rgba(0,0,0,0.12);
  --transition: 0.15s ease;
  --container: 80rem;
  --font-sans: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: #1e293b;
  line-height: 1.8;
  font-size: 15px;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ===== 4. Typography ===== */
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 700; line-height: 1.4; }
h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
h5 { font-size: 0.9375rem; }
h6 { font-size: 0.8125rem; }
p { margin-block: 1rem; }
a { color: var(--brand-strong); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand); }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 700; color: var(--ink); }
em, i { font-style: italic; }
small { font-size: 0.8125rem; }
mark { background: var(--brand-soft); color: var(--brand-strong); padding: 0.1rem 0.3rem; border-radius: 0.2rem; }
abbr[title] { text-decoration: underline dotted; cursor: help; }
hr { border: none; border-top: 1px solid var(--line); margin-block: 2rem; }

/* ===== 5. Container & Layout Utilities ===== */
.container-page { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container-page { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container-page { padding-inline: 2rem; } }

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-auto { margin-top: auto; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; }

/* ===== 6. App Shell & Accessibility ===== */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-shell > main { flex: 1 0 auto; }

.skip-link {
  position: absolute; top: -100px; right: 1rem; z-index: 9999;
  background: var(--brand); color: #fff;
  padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

*:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

/* ===== 7. Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 3.5rem; gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--ink); }
.site-logo:hover { color: var(--ink); }
.site-logo .logo-icon {
  width: 2rem; height: 2rem;
  background: var(--brand); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center; color: #fff;
  flex-shrink: 0;
}
.site-logo .logo-text { font-size: 0.875rem; }
.site-logo-custom img { max-height: 2.5rem; width: auto; }

/* Desktop Nav */
.main-nav { display: none; align-items: center; gap: 0.125rem; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.main-nav ul { list-style: none; display: flex; gap: 0.125rem; }
.main-nav a {
  padding: 0.375rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.8125rem; font-weight: 500; color: #475569;
  transition: all var(--transition); display: block;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--brand); background: var(--brand-soft); }

.header-actions { display: flex; align-items: center; gap: 0.375rem; }
.header-actions button {
  width: 2rem; height: 2rem; border: none; background: none;
  color: #64748b; border-radius: var(--radius-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all var(--transition);
}
.header-actions button:hover { color: var(--brand); background: var(--brand-soft); }
.menu-toggle { display: flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0;
  width: 88vw; max-width: 24rem; height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-panel ul { list-style: none; }
.mobile-menu-panel li { margin-bottom: 0.5rem; }
.mobile-menu-panel a {
  display: block; padding: 0.625rem 0.75rem;
  color: #1e293b; font-size: 0.875rem; font-weight: 500;
  border-radius: var(--radius-sm); transition: all var(--transition);
}
.mobile-menu-panel a:hover { background: var(--brand-soft); color: var(--brand); }
.mobile-menu-panel .sub-menu { padding-right: 1rem; margin-top: 0.25rem; }
.mobile-menu-panel .sub-menu a { font-size: 0.8125rem; color: #64748b; }
.mobile-menu-panel .menu, .mobile-menu-panel ul { padding: 0; margin: 0; }

/* ===== 8. Search Dialog ===== */
.search-dialog {
  display: none; border-top: 1px solid var(--line);
  background: #fff; padding: 0.75rem 0;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.08);
}
.search-dialog .container-page { max-width: 36rem; }

.search-form-inner {
  display: flex; gap: 0.5rem; align-items: center;
  border: 1px solid var(--line); border-radius: 0.5rem;
  padding: 0.25rem; background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-form-inner:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12);
}
.search-form-inner .search-field {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit; color: var(--ink);
}
.search-form-inner .search-field::placeholder { color: #94a3b8; }
.search-form-inner .search-submit {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; border: none;
  border-radius: var(--radius-sm); cursor: pointer; transition: background var(--transition);
  flex-shrink: 0;
}
.search-form-inner .search-submit:hover { background: var(--brand-strong); }

/* ===== 9. Hero ===== */
.hero { background: #fff; border-bottom: 1px solid var(--line); padding: 2rem 0; }
@media (min-width: 640px) { .hero { padding: 3rem 0; } }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--brand-soft); border: 1px solid #99f6e4;
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; color: var(--brand-strong);
}
.hero h1 { margin-top: 0.75rem; font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
@media (min-width: 640px) { .hero h1 { font-size: 1.875rem; } }
.hero p { margin-top: 0.5rem; font-size: 0.875rem; color: #475569; line-height: 1.75; }
.hero-highlight { color: var(--brand); }
.hero-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero-visual { display: none; }
@media (min-width: 1024px) { .hero-visual { display: flex; align-items: center; justify-content: center; } }

/* ===== 10. Buttons ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2.5rem; padding: 0 1.25rem;
  background: var(--brand); color: #fff;
  border: none; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  height: 2.5rem; padding: 0 1.25rem;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* ===== 11. Layout Grid ===== */
.layout-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .layout-grid { grid-template-columns: 1fr 280px; } }
.single-container { padding-top: 1rem; padding-bottom: 1.5rem; }

/* ===== 12. Categories Grid ===== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; transition: all var(--transition);
  text-decoration: none;
}
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); color: inherit; }
.cat-card .cat-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--brand-soft); border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center; color: var(--brand);
  transition: all var(--transition);
}
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-card .cat-name { font-size: 0.75rem; font-weight: 500; color: var(--ink); }
.cat-card:hover .cat-name { color: var(--brand); }

/* ===== 13. Section Title ===== */
.section-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem;
}
.section-title .icon { color: var(--brand); }
.section-title .view-all { margin-right: auto; font-size: 0.75rem; font-weight: 500; color: var(--brand); }

/* ===== 14. Post Cards Grid ===== */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }

.post-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition);
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: rgba(13,148,136,0.4); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; background: #f1f5f9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--brand-soft); border-radius: 9999px;
  padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 500;
  color: var(--brand-strong); align-self: flex-start;
  transition: all var(--transition);
}
.post-card-badge:hover { background: var(--brand); color: #fff; }
.post-card-title { margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.6; }
.post-card-title a { color: var(--ink); }
.post-card-title a:hover { color: var(--brand); }
.post-card-excerpt {
  margin-top: 0.5rem; font-size: 0.8125rem; color: #64748b; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.post-card-meta {
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.6875rem; color: #64748b;
}

/* Empty state */
.empty-state { text-align: center; padding: 3rem 0; }
.empty-state p { color: #64748b; font-size: 0.875rem; margin-top: 0.75rem; }

/* Single page article wrapper */
.single-page-article { max-width: 48rem; margin: 1.5rem auto 0; }
.post-card-img-link { display: block; text-decoration: none; }
.post-card-img-link:hover { opacity: 1; }
.post-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--line-soft));
}

/* ===== 15. Sidebar Widgets ===== */
.sidebar-widget {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem;
}
.sidebar-widget h3 {
  font-size: 0.875rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.75rem; padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget li { margin-bottom: 0.5rem; }
.sidebar-widget a { font-size: 0.8125rem; color: #475569; transition: color var(--transition); }
.sidebar-widget a:hover { color: var(--brand); }

.sidebar-latest-list { list-style: none; }
.sidebar-latest-list li { margin-bottom: 0.625rem; }
.sidebar-latest-list a { display: flex; gap: 0.625rem; font-size: 0.75rem; color: #475569; align-items: center; }
.sidebar-latest-list a:hover { color: var(--brand); }
.sidebar-latest-list .thumb {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
}
.sidebar-latest-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-latest-list .thumb-placeholder svg { opacity: 0.4; }
.sidebar-latest-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.sidebar-latest-title { display: block; line-height: 1.4; font-weight: 500; color: #1e293b; }
.sidebar-latest-meta { font-size: 0.5625rem; color: #94a3b8; }

/* Sidebar Service Box */
.sidebar-service-box {
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid #99f6e4;
}
.sidebar-service-head { display: flex; align-items: center; gap: 0.5rem; }
.sidebar-service-icon {
  width: 2rem; height: 2rem; background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.sidebar-service-title { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.sidebar-service-desc { margin-top: 0.5rem; font-size: 0.6875rem; color: #475569; line-height: 1.5; }
.sidebar-service-btn {
  display: flex; height: 2rem; align-items: center; justify-content: center; gap: 0.25rem;
  background: var(--brand); color: #fff; border-radius: var(--radius-sm);
  font-size: 0.6875rem; font-weight: 600; margin-top: 0.5rem; text-decoration: none;
  transition: background var(--transition);
}
.sidebar-service-btn:hover { background: var(--brand-strong); color: #fff; }

.sidebar-features { list-style: none; font-size: 0.6875rem; color: #475569; }
.sidebar-features li { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.375rem; }

.sidebar-telegram { background: rgba(0,136,204,0.05); border: 1px solid rgba(0,136,204,0.3); }
.sidebar-telegram-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.sidebar-telegram-icon {
  width: 1.75rem; height: 1.75rem; background: #0088cc;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.sidebar-telegram-title { font-size: 0.75rem; font-weight: 700; color: var(--ink); }
.sidebar-telegram-handle { font-size: 0.625rem; color: #64748b; }

/* ===== 16. Telegram Box / Section ===== */
.telegram-section { padding: 1.5rem 0 0; }
.telegram-box {
  background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.telegram-box::before {
  content: ""; position: absolute; top: -50%; left: -10%;
  width: 12rem; height: 12rem;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.telegram-box-content {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.telegram-box-text { flex: 1; min-width: 16rem; }
.telegram-box h3 { color: #fff; margin: 0; font-size: 0.9375rem; font-weight: 700; }
.telegram-box p { color: rgba(255,255,255,0.85); font-size: 0.8125rem; margin: 0.25rem 0 0; line-height: 1.6; }
.telegram-box .btn-join {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #0088cc;
  padding: 0.625rem 1.5rem; border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 12px -2px rgba(0,0,0,0.2);
}
.telegram-box .btn-join:hover {
  transform: translateY(-2px);
  color: #005580;
  box-shadow: 0 8px 20px -4px rgba(0,0,0,0.3);
}
@media (max-width: 639px) {
  .telegram-box-content { flex-direction: column; align-items: flex-start; }
  .telegram-box .btn-join { width: 100%; justify-content: center; }
}

/* ===== 16b. Header CTA Button ===== */
.header-cta-btn {
  display: none;
  height: 2rem;
  padding: 0 0.875rem;
  background: var(--brand); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.75rem; font-weight: 600;
  align-items: center; gap: 0.25rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.header-cta-btn:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
@media (min-width: 640px) { .header-cta-btn { display: inline-flex; } }

/* ===== 16c. Homepage Categories Section ===== */
.homepage-categories-section {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
@media (min-width: 640px) { .homepage-categories-section { padding: 2.5rem 0; } }
.homepage-categories-section .cat-grid { margin-top: 0; }

/* ===== 16d. Full-width Services Section ===== */
.services-section {
  background: linear-gradient(180deg, var(--paper) 0%, #fff 100%);
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  text-align: center;
}
@media (min-width: 640px) { .services-section { padding: 4rem 0; } }
.services-head { max-width: 40rem; margin: 0 auto 2.5rem; }
.services-title {
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.5rem; position: relative; display: inline-block;
  padding-bottom: 0.625rem;
}
.services-title::after {
  content: ""; position: absolute; bottom: 0; right: 50%;
  transform: translateX(50%); width: 3rem; height: 3px;
  background: var(--brand); border-radius: 2px;
}
.services-desc { font-size: 0.9375rem; color: #475569; line-height: 1.7; margin-top: 1rem; }

.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  max-width: 60rem; margin: 0 auto;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: var(--brand);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: rgba(13,148,136,0.3);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
  width: 3.5rem; height: 3.5rem;
  background: linear-gradient(135deg, var(--brand-soft) 0%, rgba(204,251,241,0.5) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--brand);
  transition: all var(--transition);
}
.service-card-icon svg { width: 1.5rem; height: 1.5rem; }
.service-card:hover .service-card-icon {
  background: var(--brand); color: #fff;
  transform: scale(1.1) rotate(5deg);
}
.service-card-title {
  font-size: 1.0625rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.5rem;
}
.service-card-text {
  font-size: 0.8125rem; color: #64748b; line-height: 1.7; margin: 0;
}

.services-cta-wrap { margin-top: 2.5rem; }
.services-cta-btn {
  height: 3rem; padding: 0 2rem; font-size: 0.9375rem;
}

/* ===== 17. Single Post ===== */
.single-header { padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.single-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: var(--brand-soft); border: 1px solid #99f6e4;
  border-radius: 9999px; padding: 0.125rem 0.625rem;
  font-size: 0.6875rem; font-weight: 500; color: var(--brand-strong);
  text-decoration: none; transition: all var(--transition);
}
.single-badge:hover { background: var(--brand); color: #fff; }
.single-title { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
@media (min-width: 640px) { .single-title { font-size: 1.5rem; } }
.single-lead { margin-top: 0.75rem; font-size: 0.875rem; color: #475569; line-height: 1.75; }
.single-meta {
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  font-size: 0.6875rem; color: #64748b;
  align-items: center;
}
.single-meta .meta-author { display: flex; align-items: center; gap: 0.375rem; font-weight: 500; color: #475569; }
.single-meta .meta-author img { border-radius: 50%; }
.single-meta .meta-reading,
.single-meta .meta-views { display: flex; align-items: center; gap: 0.25rem; }

.single-featured {
  margin-top: 1rem; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line);
}
.single-featured img { width: 100%; height: auto; display: block; }

/* Post Tags */
.post-tags {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem;
  border-top: 1px solid var(--line); padding-top: 1rem;
}
.post-tag {
  border: 1px solid var(--line); background: #fff;
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; color: #475569; text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* Author Box */
.author-box {
  margin-top: 2rem; padding: 1.25rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; gap: 1rem; align-items: flex-start;
}
.author-avatar img { border-radius: 50%; }
.author-info h4 { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.author-info p { font-size: 0.8125rem; color: #475569; line-height: 1.7; margin: 0; }
.author-info a { display: inline-block; margin-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--brand); }

/* Post Navigation */
.post-navigation {
  margin-top: 2rem; display: grid;
  grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) { .post-navigation { grid-template-columns: 1fr 1fr; } }
.post-nav-link {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.875rem 1rem; text-decoration: none;
  display: flex; flex-direction: column; gap: 0.25rem;
  transition: all var(--transition);
}
.post-nav-link:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.post-nav-dir { font-size: 0.6875rem; color: var(--brand); font-weight: 600; }
.post-nav-title { font-size: 0.8125rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.post-nav-next { text-align: left; }

.related-posts { margin-top: 2rem; }

/* ===== 18. Article Body ===== */
.article-body {
  max-width: 720px; margin-inline: auto;
  font-size: 1rem; line-height: 1.9; color: #1e293b;
}
.article-body > * + * { margin-top: 1.5rem; }
.article-body h2 {
  font-size: 1.4rem; font-weight: 700; color: var(--ink);
  margin-top: 2.5rem; margin-bottom: 0.75rem;
  padding-right: 0.75rem; border-right: 3px solid var(--brand);
}
.article-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--ink); margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.article-body h5 { font-size: 0.9375rem; font-weight: 600; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.article-body p { margin-block: 1rem; }
.article-body a { color: var(--brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--brand); }
.article-body ul, .article-body ol { padding-right: 1.5rem; margin-block: 1rem; }
.article-body ul li { list-style: disc; margin-block: 0.5rem; line-height: 1.8; }
.article-body ol li { list-style: decimal; margin-block: 0.5rem; line-height: 1.8; }
.article-body li > ul, .article-body li > ol { margin-block: 0.5rem; }
.article-body blockquote {
  border-right: 3px solid var(--brand); background: var(--brand-soft);
  padding: 1rem 1.25rem; border-radius: 0.5rem; margin-block: 1.5rem; color: #1e293b;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: #64748b; font-style: normal; }
.article-body pre {
  background: #1e293b; color: #e2e8f0;
  padding: 1rem 1.25rem; border-radius: 0.5rem; overflow-x: auto;
  direction: ltr; text-align: left;
  font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.7; margin-block: 1.5rem;
}
.article-body pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.article-body code:not(pre code) {
  background: #f1f5f9; color: var(--brand-strong);
  padding: 0.15rem 0.4rem; border-radius: 0.25rem;
  font-size: 0.9em; font-family: var(--font-mono);
  direction: ltr; display: inline-block;
}
.article-body kbd {
  background: #f1f5f9; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 0.25rem; padding: 0.1rem 0.4rem;
  font-family: var(--font-mono); font-size: 0.8em; color: var(--ink); direction: ltr; display: inline-block;
}
.article-body table {
  width: 100%; border-collapse: collapse;
  margin-block: 1.5rem; font-size: 0.875rem;
  display: block; overflow-x: auto;
}
.article-body table th {
  background: var(--brand-soft); padding: 0.75rem 1rem;
  text-align: right; font-weight: 600; color: var(--ink);
  border-bottom: 2px solid var(--brand);
}
.article-body table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); color: #475569; }
.article-body table tr:last-child td { border-bottom: none; }
.article-body img { border-radius: 0.5rem; margin-block: 1rem; }
.article-body figure { margin-block: 1.5rem; }
.article-body figcaption {
  text-align: center; font-size: 0.75rem; color: #64748b;
  margin-top: 0.5rem; font-style: italic;
}
.article-body .wp-caption { max-width: 100%; }
.article-body .wp-caption-text { text-align: center; font-size: 0.75rem; color: #64748b; margin-top: 0.5rem; }
.article-body .alignleft { float: left; margin-inline-end: 1rem; margin-block: 0.5rem 1rem; }
.article-body .alignright { float: right; margin-inline-start: 1rem; margin-block: 0.5rem 1rem; }
.article-body .aligncenter { display: block; margin-inline: auto; }
.article-body .alignwide { max-width: 100%; }
.article-body .alignfull { max-width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; }

/* Page links (<!--nextpage-->) */
.article-body .page-links { margin-top: 1.5rem; display: flex; gap: 0.25rem; flex-wrap: wrap; }
.article-body .page-links a, .article-body .page-links span {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.375rem 0.75rem; font-size: 0.8125rem; color: #475569;
  text-decoration: none;
}
.article-body .page-links a:hover { border-color: var(--brand); color: var(--brand); }

/* ===== 19. WordPress Block Styles ===== */
.wp-block-image { margin-block: 1.5rem; }
.wp-block-image img { border-radius: 0.5rem; }
.wp-block-image figcaption { text-align: center; font-size: 0.75rem; color: #64748b; margin-top: 0.5rem; }

.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block: 1.5rem; }
.wp-block-gallery .blocks-gallery-item img { border-radius: 0.5rem; }
.wp-block-gallery figcaption { font-size: 0.75rem; color: #64748b; }

.wp-block-quote { border-right: 3px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.25rem; border-radius: 0.5rem; margin-block: 1.5rem; }
.wp-block-quote p:last-child { margin-bottom: 0; }
.wp-block-quote cite { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: #64748b; font-style: normal; }
.wp-block-quote.is-style-large { font-size: 1.125rem; }

.wp-block-pullquote { border-top: 4px solid var(--brand); border-bottom: 4px solid var(--brand); padding: 1.5rem 0; margin-block: 2rem; text-align: center; }
.wp-block-pullquote blockquote { background: none; border: none; padding: 0; }
.wp-block-pullquote p { font-size: 1.25rem; font-weight: 600; }
.wp-block-pullquote cite { font-size: 0.875rem; }

.wp-block-columns { gap: 1.5rem; margin-block: 1.5rem; }
.wp-block-column { min-width: 0; }

.wp-block-button { margin-block: 1rem; }
.wp-block-button .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--brand); color: #fff; border: none;
  border-radius: 0.5rem; padding: 0.625rem 1.5rem;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: background var(--transition); cursor: pointer;
}
.wp-block-button .wp-block-button__link:hover { background: var(--brand-strong); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; border: 1px solid var(--brand); color: var(--brand);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--brand-soft); color: var(--brand-strong); }

.wp-block-separator { border: none; border-top: 2px solid var(--line); margin-block: 2rem; }
.wp-block-separator.is-style-wide { border-top-width: 4px; }
.wp-block-separator.is-style-dots { border: none; text-align: center; }
.wp-block-separator.is-style-dots::before { content: "···"; color: #64748b; font-size: 1.5rem; letter-spacing: 0.5rem; }

.wp-block-code { background: #1e293b; color: #e2e8f0; padding: 1rem 1.25rem; border-radius: 0.5rem; direction: ltr; text-align: left; font-family: var(--font-mono); font-size: 0.875rem; overflow-x: auto; margin-block: 1.5rem; }
.wp-block-code code { background: none; color: inherit; padding: 0; }

.wp-block-table { margin-block: 1.5rem; }
.wp-block-table table { display: table; overflow-x: auto; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--line-soft); }

.wp-block-embed { margin-block: 1.5rem; }
.wp-block-embed__wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 0.5rem; }
.wp-block-embed__wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.wp-block-cover { background-size: cover; background-position: center; min-height: 280px; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem; margin-block: 1.5rem; padding: 1.5rem; color: #fff; position: relative; overflow: hidden; }
.wp-block-cover__inner-container { position: relative; z-index: 2; max-width: 48rem; text-align: center; }
.wp-block-cover.has-background-dim::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.5); z-index: 1; }

.wp-block-group { margin-block: 1.5rem; }
.wp-block-group.has-background { padding: 1.5rem; border-radius: var(--radius); }

/* ===== 20. TOC ===== */
.toc-widget h3 {
  font-size: 0.75rem; font-weight: 700; color: var(--ink);
  margin-bottom: 1rem; padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
}
.toc-widget ul { list-style: none; font-size: 0.8125rem; line-height: 1.75; }
.toc-widget li { margin-bottom: 0.25rem; }
.toc-widget a {
  display: block; padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm); color: #475569;
  transition: all var(--transition);
}
.toc-widget a:hover { background: var(--line-soft); color: var(--ink); }
.toc-widget .toc-h3 a { padding-right: 1.25rem; color: #64748b; }
.toc-widget .toc-h4 a { padding-right: 2rem; color: #94a3b8; }
.toc-widget .toc-active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }

/* ===== 21. Breadcrumbs ===== */
.breadcrumbs { font-size: 0.75rem; color: #64748b; padding: 1rem 0; }
.breadcrumbs a { color: #64748b; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 0.25rem; opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ===== 22. Pagination ===== */
.pagination, .navigation.pagination { display: flex; justify-content: center; gap: 0.25rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span,
.nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding-inline: 0.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 0.8125rem; color: #475569; transition: all var(--transition);
  text-decoration: none;
}
.pagination a:hover, .nav-links a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pagination .current, .nav-links .current { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 600; }
.pagination .dots, .nav-links .dots { border: none; background: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; }

/* ===== 23. Archive Headers ===== */
.archive-header { background: #fff; border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.archive-header-inner { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.archive-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--brand-soft); border: 1px solid #99f6e4;
  border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; color: var(--brand);
  flex-shrink: 0;
}
.archive-title { font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.archive-eyebrow { font-size: 0.6875rem; color: var(--brand); font-weight: 600; }
.archive-count {
  margin-right: auto; background: #f1f5f9; border-radius: 9999px;
  padding: 0.125rem 0.625rem; font-size: 0.75rem; font-weight: 500; color: #475569;
}
.archive-description { margin-top: 0.5rem; font-size: 0.875rem; color: #475569; }

/* ===== 24. Sub-categories pills ===== */
.sub-categories { padding: 1rem 0; }
.sub-categories .pill {
  display: inline-block; border: 1px solid var(--line); background: #fff;
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; color: #475569; margin-left: 0.5rem;
  transition: all var(--transition); text-decoration: none;
}
.sub-categories .pill:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* ===== 25. Comments ===== */
.comments-area { margin-top: 2rem; }
.comments-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.comment-list { list-style: none; }
.comment-body {
  display: flex; gap: 0.75rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.comment-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem; flex-shrink: 0;
}
.comment-avatar img { border-radius: 50%; }
.comment-content { flex: 1; min-width: 0; }
.comment-author { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.comment-meta { font-size: 0.6875rem; color: #94a3b8; margin-top: 0.125rem; }
.comment-text { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.75; color: #1e293b; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 0.6875rem; color: #64748b; margin-top: 0.5rem; display: inline-block; }
.comment-reply-link:hover { color: var(--brand); }
.comment .children { list-style: none; padding-right: 1.5rem; margin-top: 0.5rem; border-right: 2px solid var(--line); }
.comment .children .comment-body { border-bottom: none; padding-bottom: 0.5rem; }
.bypostauthor .comment-avatar { background: var(--brand-strong); }
#cancel-comment-reply-link { font-size: 0.75rem; color: #ef4444; }

/* Comment Form */
.comment-form { margin-top: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.comment-form .comment-reply-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 1rem; }
.comment-form label { font-size: 0.6875rem; font-weight: 500; color: #475569; display: block; margin-bottom: 0.25rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
  outline: none; transition: border-color var(--transition); margin-bottom: 0.75rem;
  background: #fff; color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
.comment-form textarea { resize: vertical; min-height: 5rem; }
.comment-form p { margin-bottom: 0.5rem; }
.comment-form .comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: #64748b; }
.comment-form .comment-form-cookies-consent input { width: auto; margin: 0; }
.comment-form .submit {
  background: var(--brand); color: #fff; border: none;
  border-radius: 0.5rem; padding: 0.625rem 1.5rem;
  font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  transition: background var(--transition); font-family: inherit;
}
.comment-form .submit:hover { background: var(--brand-strong); }

/* ===== 26. Footer ===== */
.site-footer {
  background: #0a0f1c;
  color: #94a3b8;
  margin-top: auto;
  position: relative;
}
/* Top accent gradient line */
.footer-top-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 30%, var(--brand-accent) 50%, var(--brand) 70%, transparent 100%);
  opacity: 0.6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 4rem 0 3rem; } }

.footer-col { display: flex; flex-direction: column; }

/* Brand column */
.footer-brand-col { gap: 0.875rem; }
.footer-brand { display: flex; align-items: center; gap: 0.625rem; }
.footer-brand-icon {
  width: 2.25rem; height: 2.25rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 12px -2px rgba(13,148,136,0.4);
}
.footer-brand-name {
  font-weight: 700; color: #fff; font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.footer-tagline {
  font-size: 0.8125rem; color: #94a3b8; line-height: 1.7; margin: 0; max-width: 22rem;
}

/* Social icons */
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.footer-social-link {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: #94a3b8;
  transition: all var(--transition);
  background: rgba(255,255,255,0.02);
}
.footer-social-link:hover {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -4px rgba(13,148,136,0.5);
}

/* Column titles */
.footer-col-title {
  font-size: 0.6875rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem; padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-col-title::after {
  content: ""; position: absolute; bottom: -1px; right: 0;
  width: 1.75rem; height: 2px; background: var(--brand);
  border-radius: 2px;
}

/* Link lists */
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links li { margin: 0; }
.footer-links a {
  font-size: 0.8125rem; color: #94a3b8;
  transition: color var(--transition), padding var(--transition);
  display: inline-flex; align-items: center; gap: 0.375rem;
  position: relative; padding-right: 0;
}
.footer-links a::before {
  content: ""; width: 0; height: 1px; background: var(--brand);
  transition: width var(--transition); margin-left: 0;
}
.footer-links a:hover {
  color: #fff;
  padding-right: 0.5rem;
}
.footer-links a:hover::before {
  width: 0.5rem; margin-left: 0.375rem;
}

/* Contact items */
.footer-contact-list { gap: 0.75rem; }
.footer-contact-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8125rem;
}
.footer-contact-icon {
  width: 1.75rem; height: 1.75rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.375rem;
  color: var(--brand-accent);
  transition: all var(--transition);
}
.footer-contact-item:hover .footer-contact-icon {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.footer-contact-item a {
  color: #cbd5e1; font-size: 0.8125rem; transition: color var(--transition);
  word-break: break-all;
}
.footer-contact-item a:hover { color: #fff; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: right; }
}
.footer-copyright {
  font-size: 0.75rem; color: #64748b; margin: 0;
}
.footer-legal {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
}
.footer-legal a {
  font-size: 0.75rem; color: #64748b; transition: color var(--transition);
}
.footer-legal a:hover { color: var(--brand-accent); }
.footer-legal-sep { color: #334155; font-size: 0.75rem; }

/* ===== 27. 404 Page ===== */
.error-404 { text-align: center; padding: 3rem 0; }
.error-404 .num {
  font-size: 5rem; font-weight: 800; color: var(--brand);
  letter-spacing: -0.05em; line-height: 1;
}
.error-404 h1 { margin-top: 1rem; font-size: 1.5rem; color: var(--ink); }
.error-404 p { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; }
.error-404-actions { margin-top: 1.5rem; display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.error-404-search { margin-top: 2rem; max-width: 24rem; margin-inline: auto; }
.error-404-links { margin-top: 2rem; }
.error-404-links p { font-size: 0.75rem; color: #64748b; margin-bottom: 0.5rem; }

/* ===== 28. Back-to-top & Reading progress ===== */
.reading-progress-bar {
  position: fixed; top: 0; right: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-accent));
  z-index: 60; transition: width 0.1s linear;
}
.back-to-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--brand); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(0.5rem);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background var(--transition);
  box-shadow: 0 8px 20px -6px rgba(13,148,136,0.5); z-index: 55;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-strong); }
@media (max-width: 639px) { .back-to-top { bottom: 1rem; left: 1rem; width: 2.5rem; height: 2.5rem; } }

/* ===== 29. Callouts & Terminal (shortcodes) ===== */
.tcallout {
  margin-block: 1.5rem; padding: 1rem 1.25rem;
  border-radius: var(--radius); border-right: 4px solid;
  display: flex; gap: 0.75rem; align-items: flex-start;
}
.tcallout--info { background: #f0f9ff; border-color: #0284c7; color: #0c4a6e; }
.tcallout--warning { background: #fffbeb; border-color: #f59e0b; color: #78350f; }
.tcallout--tip { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }
.tcallout--note { background: var(--line-soft); border-color: #64748b; color: #1e293b; }

.tterminal {
  margin-block: 1.5rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #1e293b; background: #0f172a; direction: ltr; text-align: left;
}
.tterminal__head {
  background: #1e293b; padding: 0.5rem 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid #334155;
}
.tterminal__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.tterminal__dot--red { background: #ef4444; }
.tterminal__dot--yellow { background: #f59e0b; }
.tterminal__dot--green { background: #10b981; }
.tterminal__body {
  padding: 1rem 1.25rem; color: #e2e8f0;
  font-family: var(--font-mono); font-size: 0.875rem; line-height: 1.8; overflow-x: auto;
}

/* ===== 30. Widgets (default WP widget styles) ===== */
.widget { margin-bottom: 1.5rem; }
.widget select { width: 100%; padding: 0.5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; background: #fff; color: var(--ink); }
.widget_search .search-form { display: flex; gap: 0.5rem; }
.widget_search .search-field { flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font-size: 0.875rem; }
.widget_search .search-submit { background: var(--brand); color: #fff; border: none; border-radius: var(--radius-sm); padding: 0 1rem; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 0.8125rem; }

.widget_recent_entries ul, .widget_recent_comments ul, .widget_archive ul, .widget_categories ul, .widget_meta ul, .widget_pages ul, .widget_nav_menu ul { list-style: none; }
.widget_recent_entries li, .widget_recent_comments li, .widget_archive li, .widget_categories li, .widget_meta li, .widget_pages li, .widget_nav_menu li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.widget_recent_entries li:last-child, .widget_recent_comments li:last-child { border-bottom: none; }
.widget_recent_entries a, .widget_recent_comments a, .widget_archive a, .widget_categories a, .widget_meta a, .widget_pages a, .widget_nav_menu a { color: #475569; transition: color var(--transition); }
.widget_recent_entries a:hover, .widget_recent_comments a:hover, .widget_archive a:hover, .widget_categories a:hover, .widget_meta a:hover, .widget_pages a:hover, .widget_nav_menu a:hover { color: var(--brand); }
.widget_recent_entries .post-date, .widget_recent_comments .comment-author-link { display: block; font-size: 0.6875rem; color: #94a3b8; margin-top: 0.25rem; }
.widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.widget_tag_cloud a { background: var(--line-soft); border: 1px solid var(--line); border-radius: 9999px; padding: 0.25rem 0.625rem; font-size: 0.6875rem !important; color: #475569; transition: all var(--transition); }
.widget_tag_cloud a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.widget_calendar table { width: 100%; }
.widget_calendar caption { margin-bottom: 0.5rem; font-weight: 600; }
.widget_calendar th, .widget_calendar td { text-align: center; padding: 0.375rem; font-size: 0.75rem; border: 1px solid var(--line); }
.widget_calendar tfoot a { font-size: 0.75rem; color: var(--brand); }
.widget_calendar #today { background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; }

/* ===== 31. Forms (generic) ===== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
  outline: none; transition: border-color var(--transition); background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }
input[type="checkbox"], input[type="radio"] { width: auto; margin-inline-end: 0.375rem; }
button, input[type="submit"] { cursor: pointer; font-family: inherit; }

/* ===== 32. Print Styles ===== */
@media print {
  .site-header, .site-footer, .mobile-menu, .search-dialog, .back-to-top, .reading-progress-bar, .telegram-section, .post-navigation, .comments-area, .single-sidebar, .breadcrumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; line-height: 1.5; }
  .app-shell { min-height: auto; }
  .container-page { max-width: 100%; padding: 0; }
  .article-body { max-width: 100%; }
  a { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; }
  .article-body pre, .article-body blockquote { border: 1px solid #999; background: #f5f5f5; page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  img { max-width: 100% !important; page-break-inside: avoid; }
}

/* ===== 33. Dark Mode ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f172a;
    --card: #1e293b;
    --line: #334155;
    --line-soft: #1e293b;
    --ink: #f1f5f9;
    --ink-soft: #cbd5e1;
  }
  body { color: #e2e8f0; }
  .site-header { background: rgba(15,23,42,0.92); border-bottom-color: #334155; }
  .main-nav a { color: #cbd5e1; }
  .site-logo { color: #f1f5f9; }
  .hero { background: #1e293b; }
  .post-card { background: var(--card); }
  .post-card-title a { color: #f1f5f9; }
  .post-card-meta { color: #94a3b8; border-top-color: #334155; }
  .post-card-excerpt { color: #94a3b8; }
  .sidebar-widget { background: var(--card); }
  .sidebar-widget a { color: #cbd5e1; }
  .sidebar-latest-title { color: #f1f5f9; }
  .comment-form { background: var(--card); }
  .archive-header { background: #1e293b; }
  .btn-secondary { background: #1e293b; color: #f1f5f9; }
  .article-body { color: #e2e8f0; }
  .article-body a { color: var(--brand-accent); }
  .article-body code:not(pre code) { background: #334155; color: var(--brand-accent); }
  .search-form-inner { background: #1e293b; }
  .search-form-inner .search-field { color: #f1f5f9; }
  .mobile-menu-panel { background: var(--paper); }
  .mobile-menu-panel a { color: #e2e8f0; }
  input, select, textarea, .comment-form input, .comment-form textarea { background: #0f172a; color: #f1f5f9; border-color: #334155; }
  .widget_search .search-field { background: #0f172a; color: #f1f5f9; }
  .sidebar-service-box { background: linear-gradient(135deg, rgba(13,148,136,0.15), #1e293b); }
  .post-tag { background: #0f172a; color: #cbd5e1; }
  .toc-widget a:hover { background: #334155; }
  .widget_tag_cloud a { background: #0f172a; }
  /* Footer adapts naturally — it's already dark */
  .site-footer { background: #060912; }
  .footer-bottom { background: rgba(0,0,0,0.3); }
  /* Services section + homepage categories in dark mode */
  .services-section { background: linear-gradient(180deg, var(--paper) 0%, #1e293b 100%); }
  .service-card { background: var(--card); }
  .service-card-title { color: #f1f5f9; }
  .service-card-text { color: #94a3b8; }
  .homepage-categories-section { background: var(--card); border-bottom-color: #334155; }
  .header-cta-btn { background: var(--brand); }
}

/* ===== 34. Responsive Breakpoints ===== */
@media (max-width: 1023px) {
  .layout-grid { grid-template-columns: 1fr; }
  .single-sidebar { order: -1; }
}
@media (max-width: 639px) {
  .hero h1 { font-size: 1.25rem; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.5rem 0; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body h3 { font-size: 1.0625rem; }
  .author-box { flex-direction: column; gap: 0.75rem; }
  .post-navigation { grid-template-columns: 1fr; }
  .error-404 .num { font-size: 3.5rem; }
  .container-page { padding-inline: 0.875rem; }
}
@media (min-width: 1280px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .layout-grid { grid-template-columns: 1fr 300px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   v1.5.0 — Next.js parity overlay
   Appends / overrides classes to match BaharLink Next.js UI:
   - Header: h-14, brand logo 32px, CTA h-9 px-3
   - Hero: badge with pulsing dot, teal blur glow behind image
   - PostCard: badges overlay (type/featured/popular/guide), reading-time chip
   - Services dark section (bg-ink)
   - Footer: 4 cards (border-white/10 bg-white/5)
   - Telegram section with features bullets
   - Breadcrumbs with Home icon + chevrons
   - Single post: author box (rounded-xl bg-slate-50), prev/next 2-col, related posts grid
   - TOC active state + reading-time indicator
   - Mobile TOC (collapsible)
   - Inline share bar (28x28 buttons)
   - Drop cap on first paragraph
   ========================================================= */

/* ===== Header updates ===== */
.header-inner { height: 3.5rem; gap: 1rem; }
.site-logo { gap: 0.5rem; font-weight: 700; letter-spacing: -0.01em; }
.site-logo .logo-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; }
.site-logo .logo-text { font-size: 0.875rem; font-weight: 700; }
.main-nav ul.nav-list { list-style: none; display: flex; gap: 0.125rem; padding: 0; margin: 0; }
.main-nav .nav-list a {
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.75rem; border-radius: 0.375rem;
  font-size: 0.8125rem; font-weight: 500; color: #475569;
  transition: all var(--transition); text-decoration: none;
}
.main-nav .nav-list a:hover,
.main-nav .current-menu-item > a { color: var(--brand); background: #f0fdfa; }

.header-cta-btn {
  display: none;
  height: 2.25rem;
  padding: 0 0.75rem;
  background: var(--brand); color: #fff;
  border-radius: 0.375rem;
  font-size: 0.8125rem; font-weight: 600;
  align-items: center; gap: 0.375rem;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.header-cta-btn:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); }
.header-cta-btn svg { width: 0.875rem; height: 0.875rem; }
@media (min-width: 640px) { .header-cta-btn { display: inline-flex; } }

/* Mobile menu — premium dark-ish overlay + close button */
.mobile-menu { background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(4px); }
.mobile-menu-panel {
  background: #fff;
  border-left: 1px solid var(--line);
  padding: 0;
  box-shadow: -8px 0 32px -8px rgba(0,0,0,0.15);
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-title { font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
.mobile-menu-close {
  width: 2rem; height: 2rem;
  border: none; background: transparent; color: #64748b;
  border-radius: 0.375rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
}
.mobile-menu-close:hover { background: #f1f5f9; color: var(--ink); }
.mobile-menu-panel #mobile-menu-list,
.mobile-menu-panel .menu { list-style: none; padding: 0.625rem; margin: 0; }
.mobile-menu-panel li { margin: 0; }
.mobile-menu-panel a {
  display: block; padding: 0.75rem 1rem;
  color: #1e293b; font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem; transition: all var(--transition);
}
.mobile-menu-panel a:hover { background: #f0fdfa; color: var(--brand); }
.mobile-menu-panel .sub-menu { padding-right: 1rem; margin: 0; }
.mobile-menu-panel .sub-menu a { font-size: 0.8125rem; color: #64748b; padding: 0.5rem 0.75rem; }

/* ===== Hero v1.5 ===== */
.hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
@media (min-width: 640px) { .hero { padding: 3rem 0; } }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-content { text-align: center; }
@media (min-width: 1024px) { .hero-content { text-align: right; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: #f0fdfa; border: 1px solid #99f6e4;
  border-radius: 9999px; padding: 0.25rem 0.75rem;
  font-size: 0.75rem; font-weight: 500; color: var(--brand-strong);
}
.hero-badge-dot {
  position: relative; display: inline-flex;
  width: 0.5rem; height: 0.5rem;
}
.hero-badge-ping {
  position: absolute; inset: 0;
  display: inline-flex;
  border-radius: 9999px;
  background: var(--brand);
  opacity: 0.75;
  animation: baharlinkPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hero-badge-dot-core {
  position: relative; display: inline-flex;
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: var(--brand);
}
@keyframes baharlinkPing {
  0% { transform: scale(1); opacity: 0.75; }
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
  margin-top: 0.75rem;
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  line-height: 1.3; letter-spacing: -0.01em;
}
@media (min-width: 640px) { .hero h1 { font-size: 1.875rem; } }
.hero h1 .hero-highlight { color: var(--brand); }
.hero-desc {
  margin-top: 0.5rem; font-size: 0.875rem; color: #475569;
  line-height: 1.75;
}
@media (min-width: 1024px) { .hero-desc { max-width: 32rem; } }
.hero-actions {
  margin-top: 1rem; display: flex; gap: 0.5rem;
  flex-wrap: wrap; justify-content: center;
}
@media (min-width: 1024px) { .hero-actions { justify-content: flex-start; } }
.hero-actions .btn-primary,
.hero-actions .btn-secondary { height: 2.5rem; padding: 0 1.25rem; }
.hero-actions .btn-primary svg,
.hero-actions .btn-secondary svg { width: 1rem; height: 1rem; }

.hero-visual { display: none; position: relative; }
@media (min-width: 1024px) { .hero-visual { display: block; } }
.hero-visual-glow {
  position: absolute; inset: -1rem;
  z-index: -1;
  border-radius: 1.5rem;
  background: rgba(204, 251, 241, 0.4);
  filter: blur(2rem);
  pointer-events: none;
}
.hero-visual-img,
.hero-visual-svg {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.12);
}

/* ===== Home body wrapper ===== */
.home-body { padding: 1.5rem 0; }
.home-grid { grid-template-columns: 1fr; }
@media (min-width: 1024px) { .home-grid { grid-template-columns: 1fr 300px; } }
.home-main { min-width: 0; }
.home-main > * + * { margin-top: 2rem; }
.home-sidebar { display: none; }
@media (min-width: 1024px) { .home-sidebar { display: block; } }
.home-sidebar > * + * { margin-top: 1.25rem; }

/* ===== Homepage Categories Section (no padding wrapper, just the grid) ===== */
.homepage-categories-section { background: transparent; border: none; padding: 0; }

/* ===== Cat cards v1.5 (lift-card, centered, hover swap bg) ===== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1rem; background: var(--card);
  border: 1px solid var(--line); border-radius: 0.75rem;
  text-align: center; text-decoration: none;
}
.cat-card:hover { color: inherit; }
.cat-card .cat-icon {
  width: 2.5rem; height: 2.5rem;
  background: #f0fdfa; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  transition: all var(--transition);
}
.cat-card:hover .cat-icon { background: var(--brand); color: #fff; }
.cat-card .cat-name { font-size: 0.75rem; font-weight: 500; color: var(--ink); transition: color var(--transition); }
.cat-card:hover .cat-name { color: var(--brand); }

/* ===== Section head with view-all ===== */
.home-section { /* container for tutorials list */ }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 1rem;
}
.section-title { margin-bottom: 0; }
.section-view-all {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; font-weight: 500; color: var(--brand);
  text-decoration: none;
}
.section-view-all:hover { text-decoration: underline; }
.section-view-all svg { width: 0.875rem; height: 0.875rem; }

/* ===== Post Grid (3-col on lg, 2-col on sm, 1-col mobile) ===== */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Post Card v1.5 (lift + zoom + badges overlay + reading time chip) ===== */
.post-card {
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: 0.75rem;
  border: 1px solid var(--line); background: var(--card);
  transition: transform 0.25s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.3s ease, border-color 0.25s ease;
  position: relative;
}
.post-card::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 1px transparent;
  transition: box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13,148,136,0.4);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.18), 0 4px 8px -4px rgba(0,0,0,0.06);
}
.post-card:hover::after {
  box-shadow: 0 0 0 1px rgba(13,148,136,0.35);
}
.post-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.15);
}
.post-card:focus-within::after { box-shadow: 0 0 0 2px var(--brand); }

.post-card-img-link { display: block; text-decoration: none; }
.post-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f1f5f9;
}
.post-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1);
}
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), var(--paper));
}
.post-card-img-placeholder svg { width: 3rem; height: 3rem; color: var(--brand); opacity: 0.6; }

/* Badges overlay */
.post-card-badges {
  position: absolute; inset: 0.5rem 0.5rem auto 0.5rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 0.25rem;
  pointer-events: none;
}
.post-card-type-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem; font-weight: 500;
  backdrop-filter: blur(4px);
}
.post-card-type-badge svg { width: 0.75rem; height: 0.75rem; }
.post-card-badges-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem;
}
.post-card-badge-featured,
.post-card-badge-popular,
.post-card-badge-guide {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem; font-weight: 600;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.post-card-badge-featured { background: #f59e0b; }
.post-card-badge-popular  { background: #f43f5e; }
.post-card-badge-guide    { background: var(--brand); }
.post-card-badge-featured svg,
.post-card-badge-popular svg,
.post-card-badge-guide svg { width: 0.75rem; height: 0.75rem; }

/* Reading time chip (bottom-right) */
.post-card-reading-time {
  position: absolute; bottom: 0.5rem; left: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: rgba(0,0,0,0.6); color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.post-card-reading-time svg { width: 0.75rem; height: 0.75rem; }

/* Body */
.post-card-body {
  padding: 1.25rem;
  display: flex; flex-direction: column; flex: 1;
}
.post-card-badge {
  margin-bottom: 0.5rem;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #f0fdfa; color: var(--brand-strong);
  padding: 0.125rem 0.5rem; border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.post-card-badge:hover { background: var(--brand); color: #fff; }
.post-card-title {
  margin-bottom: 0.5rem;
  font-size: 1rem; font-weight: 600; line-height: 1.6;
}
.post-card-title a {
  color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.post-card-title a:hover { color: var(--brand); }
.post-card-excerpt {
  margin-bottom: 1rem;
  font-size: 0.875rem; color: #64748b; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.post-card-meta {
  margin-top: auto; padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem; color: #64748b;
}
.post-card-date, .post-card-views {
  display: inline-flex; align-items: center; gap: 0.25rem;
}
.post-card-date svg, .post-card-views svg { width: 0.875rem; height: 0.875rem; }

/* ===== Services dark section (bg-ink) ===== */
.services-section-dark {
  background: var(--ink);
  border-radius: 0.75rem;
  padding: 1.25rem;
  color: #f8fafc;
}
.services-dark-title {
  margin-bottom: 1rem;
  font-size: 1rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 0.5rem;
}
.services-dark-title svg { width: 1rem; height: 1rem; color: #34d399; }
.services-dark-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .services-dark-grid { grid-template-columns: repeat(2, 1fr); } }
.service-dark-card {
  display: block; padding: 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.service-dark-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(255,255,255,0.1);
}
.service-dark-title {
  font-size: 0.875rem; font-weight: 600; color: #f8fafc;
  transition: color var(--transition);
}
.service-dark-card:hover .service-dark-title { color: #34d399; }
.service-dark-desc {
  margin-top: 0.25rem;
  font-size: 0.75rem; color: rgba(248, 250, 252, 0.7);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.service-dark-cta {
  margin-top: 0.5rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; font-weight: 500; color: #34d399;
}
.service-dark-cta svg { width: 0.75rem; height: 0.75rem; }

/* ===== Sidebar — Buy IP box ===== */
.sidebar-buy-ip {
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  border: 1px solid rgba(13,148,136,0.3);
  padding: 1rem;
}
.sidebar-buy-ip-head { display: flex; align-items: center; gap: 0.5rem; }
.sidebar-buy-ip-icon {
  width: 2rem; height: 2rem;
  background: var(--brand); color: #fff;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-buy-ip-icon svg { width: 1rem; height: 1rem; }
.sidebar-buy-ip-title { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.sidebar-buy-ip-desc {
  margin-top: 0.5rem;
  font-size: 0.75rem; color: #475569; line-height: 1.5;
}
.sidebar-buy-ip-btn {
  margin-top: 0.75rem;
  display: flex; height: 2.25rem; align-items: center; justify-content: center;
  gap: 0.375rem;
  background: var(--brand); color: #fff;
  border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.sidebar-buy-ip-btn:hover { background: var(--brand-strong); color: #fff; }
.sidebar-buy-ip-btn svg { width: 0.875rem; height: 0.875rem; }

/* ===== Sidebar widget (latest posts / features) v1.5 ===== */
.sidebar-widget-title {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem; font-weight: 700; color: var(--ink);
}
.sidebar-widget-title svg { width: 1rem; height: 1rem; color: var(--brand); }
.sidebar-features { list-style: none; padding: 0; }
.sidebar-features li {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem; color: #475569;
}
.sidebar-features svg { width: 0.875rem; height: 0.875rem; color: var(--brand); flex-shrink: 0; }
.sidebar-latest-link {
  display: flex; gap: 0.625rem; align-items: center;
}
.sidebar-latest-list .thumb {
  width: 3rem; height: 3rem;
  border-radius: 0.375rem; overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-latest-list .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s cubic-bezier(0.2,0.7,0.2,1); }
.sidebar-latest-list .thumb.zoom-img-wrap:hover img { transform: scale(1.06); }
.sidebar-latest-list .thumb-placeholder {
  background: #f0fdfa; color: var(--brand);
}
.sidebar-latest-list .thumb-placeholder svg { opacity: 0.6; }
.sidebar-latest-text { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; flex: 1; }
.sidebar-latest-title {
  font-size: 0.75rem; font-weight: 500; color: var(--ink);
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-latest-link:hover .sidebar-latest-title { color: var(--brand); }
.sidebar-latest-meta {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.625rem; color: #94a3b8;
}
.sidebar-latest-meta svg { width: 0.625rem; height: 0.625rem; }
.sidebar-latest-meta .sep { color: #cbd5e1; }

/* ===== Telegram section v1.5 ===== */
.telegram-section { padding: 1.5rem 0; }
.telegram-box {
  position: relative; overflow: hidden;
  border-radius: 1rem;
  background: linear-gradient(to left, #0088cc 0%, #005580 100%);
  padding: 1.5rem;
  color: #fff;
}
@media (min-width: 640px) { .telegram-box { padding: 2rem; } }
.telegram-pattern {
  position: absolute; inset: 0;
  opacity: 0.1; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, #fff 1px, transparent 1px);
  background-size: 30px 30px;
}
.telegram-box-content {
  position: relative;
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 640px) { .telegram-box-content { flex-direction: row; align-items: center; } }
.telegram-box-text {
  display: flex; align-items: center; gap: 0.75rem;
}
.telegram-icon-wrap {
  width: 3rem; height: 3rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.telegram-box h3 {
  margin: 0;
  font-size: 1rem; font-weight: 700; color: #fff;
  line-height: 1.4;
}
@media (min-width: 640px) { .telegram-box h3 { font-size: 1.125rem; } }
.telegram-box p {
  margin: 0.125rem 0 0;
  font-size: 0.75rem; color: rgba(255,255,255,0.8);
}
.telegram-box .btn-join {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; color: #0088cc;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
  transition: background var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.telegram-box .btn-join:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 12px 28px -8px rgba(0,0,0,0.4);
}
.telegram-box .btn-join svg { width: 1rem; height: 1rem; }

.telegram-features {
  position: relative; margin-top: 1rem;
  display: flex; flex-wrap: wrap; gap: 0.375rem 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.telegram-feature {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.6875rem; color: rgba(255,255,255,0.8);
}
.telegram-feature svg { width: 0.75rem; height: 0.75rem; color: rgba(255,255,255,0.6); }

/* ===== Footer v1.5 (4 cards in grid) ===== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding: 2.5rem 0;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  padding: 1rem;
}
/* Brand card */
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand-icon {
  width: 2.25rem; height: 2.25rem;
  background: var(--brand);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.footer-brand-icon svg { width: 1.25rem; height: 1.25rem; }
.footer-brand-name {
  font-size: 0.875rem; font-weight: 700; color: #fff;
}
.footer-brand-sub {
  font-size: 0.625rem; color: #94a3b8;
}
.footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.6875rem; color: #94a3b8; line-height: 1.55;
}
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.footer-social-link {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: #94a3b8;
  transition: all var(--transition);
}
.footer-social-link:hover {
  background: #0088cc; color: #fff;
  border-color: #0088cc;
}
.footer-social-link.footer-social-mail:hover {
  background: var(--brand); border-color: var(--brand);
}

/* Footer column titles */
.footer-col-title {
  display: flex; align-items: center; gap: 0.375rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  padding: 0; border: none; text-transform: none; letter-spacing: 0;
}
.footer-col-title::after { display: none; }
.footer-col-title svg { width: 0.875rem; height: 0.875rem; color: #5eead4; }

/* Quick links */
.footer-quick-list,
.footer-cats-list,
.footer-pages-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.625rem;
}
.footer-quick-list { gap: 0.625rem; }
.footer-quick-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.footer-quick-icon {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  color: #94a3b8;
  transition: all var(--transition);
}
.footer-quick-icon svg { width: 0.75rem; height: 0.75rem; }
.footer-quick-link:hover .footer-quick-icon {
  background: var(--brand); color: #fff;
  border-color: var(--brand);
}
.footer-quick-text { display: flex; flex-direction: column; }
.footer-quick-label {
  font-size: 0.6875rem; color: #cbd5e1;
  transition: color var(--transition);
}
.footer-quick-link:hover .footer-quick-label { color: #5eead4; }
.footer-quick-desc {
  font-size: 0.5625rem; color: #64748b;
}

/* Categories list */
.footer-cat-link {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
}
.footer-cat-dot {
  width: 0.25rem; height: 0.25rem;
  border-radius: 9999px;
  background: #475569;
  transition: all var(--transition);
}
.footer-cat-link:hover .footer-cat-dot {
  background: #5eead4; width: 0.5rem;
}
.footer-cat-name {
  font-size: 0.6875rem; color: #94a3b8;
  transition: color var(--transition);
}
.footer-cat-link:hover .footer-cat-name { color: #5eead4; }
.footer-cat-count {
  font-size: 0.5625rem; color: #475569;
}

/* Contact card */
.footer-telegram-featured {
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(0, 136, 204, 0.15);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
  transition: background var(--transition);
}
.footer-telegram-featured:hover { background: rgba(0, 136, 204, 0.25); }
.footer-telegram-featured svg {
  width: 1rem; height: 1rem; color: #0088cc;
}
.footer-telegram-text { display: flex; flex-direction: column; }
.footer-telegram-title { font-size: 0.6875rem; font-weight: 600; color: #fff; }
.footer-telegram-handle { font-size: 0.5625rem; color: #94a3b8; }

.footer-pages-list { gap: 0.5rem; }
.footer-page-link {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.6875rem; color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-page-link:hover { color: #5eead4; }
.footer-page-link svg { width: 0.75rem; height: 0.75rem; }

/* Footer bottom — back to top button */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 0.75rem 0;
  background: transparent;
}
.footer-bottom-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; } }
.footer-copyright { font-size: 0.625rem; color: #64748b; }
.footer-back-to-top {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.375rem;
  padding: 0.25rem 0.625rem;
  color: #94a3b8; font-size: 0.6875rem; font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.footer-back-to-top:hover { background: rgba(255,255,255,0.05); color: #fff; }
.footer-back-to-top svg { width: 0.875rem; height: 0.875rem; }

/* ===== Breadcrumbs v1.5 (Home icon + chevrons, list-based) ===== */
.breadcrumbs { padding: 0; }
.breadcrumbs-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; color: #475569;
}
.breadcrumbs-item { display: flex; align-items: center; gap: 0.25rem; }
.breadcrumbs-home-icon { color: #475569; display: inline-flex; }
.breadcrumbs-link {
  color: #475569; padding: 0 0.25rem;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs-link:hover { color: var(--brand); }
.breadcrumbs-sep { color: rgba(100, 116, 139, 0.6); display: inline-flex; }
.breadcrumbs-sep-icon { width: 0.875rem; height: 0.875rem; }
.breadcrumbs-current {
  padding: 0 0.25rem;
  font-weight: 500; color: var(--ink);
}

/* ===== Single post v1.5 ===== */
.single-container { padding-top: 1rem; padding-bottom: 1.5rem; }
.single-grid { grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 1024px) { .single-grid { grid-template-columns: 1fr 260px; } }

/* Single header */
.single-header {
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.single-header-cats {
  display: flex; align-items: center; gap: 0.5rem;
}
.single-type-label {
  font-size: 0.6875rem; color: #64748b;
}
.single-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #f0fdfa; border: 1px solid #99f6e4;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 500; color: var(--brand-strong);
  text-decoration: none; transition: all var(--transition);
}
.single-badge:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.single-title {
  margin-top: 0.75rem;
  font-size: 1.25rem; font-weight: 700; color: var(--ink); line-height: 1.4;
}
@media (min-width: 640px) { .single-title { font-size: 1.5rem; } }
.single-lead {
  margin-top: 0.75rem;
  font-size: 0.875rem; color: #475569; line-height: 1.75;
}
.single-meta {
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.6875rem; color: #64748b;
  align-items: center;
}
.single-meta .meta-author {
  display: inline-flex; align-items: center; gap: 0.375rem;
  color: #475569; text-decoration: none;
  transition: color var(--transition);
}
.single-meta .meta-author:hover { color: var(--brand); }
.single-meta .meta-author-avatar {
  width: 1.25rem; height: 1.25rem;
  border-radius: 9999px;
  background: #ccfbf1;
  color: var(--brand-strong);
  font-size: 0.5625rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.single-meta .meta-author-name { font-weight: 500; }
.single-meta .meta-date,
.single-meta .meta-reading,
.single-meta .meta-views {
  display: inline-flex; align-items: center; gap: 0.125rem;
}
.single-meta .meta-date svg,
.single-meta .meta-reading svg,
.single-meta .meta-views svg { width: 0.625rem; height: 0.625rem; }

/* Featured image */
.single-featured { margin-top: 1rem; }
.single-featured-wrap {
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
}
.single-featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* Single share row */
.single-share-row {
  margin: 1rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.share-bar-inline {
  display: flex; align-items: center; gap: 0.5rem;
}
.share-bar-label {
  font-size: 0.6875rem; font-weight: 500; color: #475569;
}
.share-bar-btn {
  width: 1.75rem; height: 1.75rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.375rem;
  background: #fff;
  color: #475569;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.share-bar-btn:hover {
  background: #f0fdfa; color: var(--brand); border-color: var(--brand);
}
.share-bar-btn[data-copied="true"] {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.share-bar-btn svg { width: 0.875rem; height: 0.875rem; }
.single-modified {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.625rem; color: #64748b;
}
.single-modified svg { width: 0.625rem; height: 0.625rem; }

/* Article body — drop cap on first paragraph */
.article-body > p:first-of-type::first-letter {
  font-size: 3.2rem;
  font-weight: 700;
  float: inline-start;
  line-height: 0.85;
  margin-inline-end: 0.5rem;
  margin-block-start: 0.35rem;
  color: var(--brand);
  font-family: var(--font-sans);
}

/* Tags */
.post-tags {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 0.375rem; align-items: center;
}
.post-tags-icon {
  color: #475569;
  display: inline-flex;
}
.post-tags-icon svg { width: 0.875rem; height: 0.875rem; }
.post-tag {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem; color: #475569;
  text-decoration: none;
  transition: all var(--transition);
}
.post-tag:hover {
  border-color: rgba(13,148,136,0.4); color: var(--brand);
}

/* Author box v1.5 (rounded-xl bg-slate-50) */
.author-box {
  margin-top: 3rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  display: flex; gap: 1rem; align-items: flex-start;
}
.author-avatar {
  width: 3.5rem; height: 3.5rem;
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar img,
.author-avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: 9999px; display: block; }
.author-avatar-initial {
  display: flex; align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem;
  background: var(--brand); color: #fff;
  border-radius: 9999px;
  font-size: 1.125rem; font-weight: 700;
}
.author-info { flex: 1; min-width: 0; }
.author-info-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.author-name { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0; }
.author-role {
  display: inline-flex; align-items: center; gap: 0.25rem;
  background: #f0fdfa; color: var(--brand-strong);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 500;
}
.author-role svg { width: 0.75rem; height: 0.75rem; }
.author-bio {
  margin-top: 0.5rem;
  font-size: 0.875rem; color: #475569; line-height: 1.75;
}
.author-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem; font-weight: 500; color: var(--brand);
  text-decoration: none;
}
.author-link:hover { text-decoration: underline; }
.author-link svg { width: 0.875rem; height: 0.875rem; }

/* Prev/Next nav v1.5 */
.post-navigation {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) { .post-navigation { grid-template-columns: 1fr 1fr; } }
.post-nav-link {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: border-color var(--transition);
}
.post-nav-link:hover {
  border-color: rgba(13,148,136,0.4);
}
.post-nav-dir {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.75rem; color: #475569;
}
.post-nav-dir svg { width: 0.875rem; height: 0.875rem; }
.post-nav-title {
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--transition);
}
.post-nav-link:hover .post-nav-title { color: var(--brand); }
.post-nav-next { text-align: left; }
.post-nav-next .post-nav-dir { justify-content: flex-end; }
.post-nav-spacer { display: none; }
@media (min-width: 640px) { .post-nav-spacer { display: block; } }

/* Related posts */
.related-posts { margin-top: 3rem; }
.related-posts-title {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.125rem; font-weight: 700; color: var(--ink);
}
.related-posts-title svg { width: 1.25rem; height: 1.25rem; color: var(--brand); }
.related-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA box */
.single-cta {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(204, 251, 241, 0.3);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: 0.75rem;
  text-align: center;
}
.single-cta h3 { font-size: 0.875rem; font-weight: 700; color: var(--ink); margin: 0; }
.single-cta-actions {
  margin-top: 0.5rem;
  display: flex; justify-content: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.single-cta-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  height: 2rem; padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.single-cta-btn svg { width: 0.75rem; height: 0.75rem; }
.single-cta-primary { background: var(--brand); color: #fff; }
.single-cta-primary:hover { background: var(--brand-strong); color: #fff; }
.single-cta-telegram {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line);
}
.single-cta-telegram:hover { border-color: rgba(13,148,136,0.4); color: var(--brand); }

/* ===== Sidebar (single) v1.5 ===== */
.single-sidebar { display: none; }
@media (min-width: 1024px) { .single-sidebar { display: block; } }
.single-sidebar-sticky { position: sticky; top: 5rem; }
.single-sidebar-sticky > * + * { margin-top: 1.25rem; }

/* Sidebar telegram box */
.sidebar-telegram {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 1rem;
  background: rgba(0, 136, 204, 0.05);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background var(--transition);
}
.sidebar-telegram:hover { background: rgba(0, 136, 204, 0.1); }
.sidebar-telegram-icon {
  width: 1.75rem; height: 1.75rem;
  background: #0088cc;
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.sidebar-telegram-icon svg { width: 0.875rem; height: 0.875rem; }
.sidebar-telegram-text { display: flex; flex-direction: column; }
.sidebar-telegram-title { font-size: 0.75rem; font-weight: 700; color: var(--ink); }
.sidebar-telegram-handle { font-size: 0.625rem; color: #64748b; }

/* Sidebar service box */
.sidebar-service-box {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 0.75rem;
  padding: 1rem;
}
.sidebar-service-head { display: flex; align-items: center; gap: 0.5rem; }
.sidebar-service-icon {
  width: 2rem; height: 2rem;
  background: var(--brand);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.sidebar-service-icon svg { width: 1rem; height: 1rem; }
.sidebar-service-title { font-size: 0.875rem; font-weight: 700; color: var(--ink); }
.sidebar-service-desc {
  margin-top: 0.5rem;
  font-size: 0.75rem; color: #475569; line-height: 1.6;
}
.sidebar-service-btn {
  display: flex; height: 2rem;
  align-items: center; justify-content: center; gap: 0.25rem;
  background: var(--brand); color: #fff;
  border-radius: 0.5rem;
  font-size: 0.75rem; font-weight: 600;
  margin-top: 0.75rem; text-decoration: none;
  transition: background var(--transition);
}
.sidebar-service-btn:hover { background: var(--brand-strong); color: #fff; }
.sidebar-service-btn svg { width: 0.75rem; height: 0.75rem; }

/* Generic sidebar widget — keep simple look */
.sidebar-widget {
  background: #fff; border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem; margin: 0;
}
.sidebar-widget > h3:not(.sidebar-widget-title) {
  font-size: 0.875rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--line);
}

/* ===== TOC v1.5 (clean, with active state + reading time) ===== */
.toc-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
.toc-widget > h3 {
  font-size: 0.75rem; font-weight: 700; color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #f1f5f9;
}
.toc-nav .toc-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.8125rem; line-height: 1.75;
}
.toc-nav .toc-list li { margin: 0; }
.toc-nav .toc-list a {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  color: #475569;
  text-decoration: none;
  transition: all var(--transition);
}
.toc-nav .toc-list a:hover {
  background: #f8fafc; color: var(--ink);
}
.toc-nav .toc-level-3 a { padding-right: 1.25rem; color: #64748b; }
.toc-nav .toc-level-4 a { padding-right: 2rem; color: #94a3b8; }
.toc-nav .toc-list a.toc-active {
  background: #f0fdfa; color: var(--brand); font-weight: 500;
}

/* Reading time indicator below TOC */
.toc-reading-time {
  margin-top: 1rem; padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: rgba(204, 251, 241, 0.6);
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.6875rem; color: var(--brand-strong);
}
.toc-reading-time svg { width: 0.75rem; height: 0.75rem; }
.toc-reading-time-text { font-weight: 500; }
.toc-current { font-weight: 700; }

/* ===== Mobile TOC (collapsible <details>) ===== */
.mobile-toc {
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  overflow: hidden;
}
.mobile-toc-trigger {
  list-style: none;
  cursor: pointer;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--ink);
  transition: background var(--transition);
}
.mobile-toc-trigger:hover { background: #f0fdfa; }
.mobile-toc-trigger::-webkit-details-marker { display: none; }
.mobile-toc-label { display: inline-flex; align-items: center; gap: 0.5rem; }
.mobile-toc-label svg { width: 1rem; height: 1rem; color: var(--brand); }
.mobile-toc-chevron { transition: transform var(--transition); color: #475569; }
.mobile-toc[open] .mobile-toc-chevron { transform: rotate(180deg); }
.mobile-toc-body {
  padding: 1rem;
  border-top: 1px solid var(--line);
}
.mobile-toc .toc-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 0.8125rem; line-height: 1.75;
}
.mobile-toc .toc-list li { margin: 0; }
.mobile-toc .toc-list a {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  color: #475569;
  text-decoration: none;
  transition: all var(--transition);
}
.mobile-toc .toc-list a:hover { background: #f8fafc; color: var(--ink); }
.mobile-toc .toc-level-3 a { padding-right: 1.25rem; }
.mobile-toc .toc-level-4 a { padding-right: 2rem; }
.mobile-toc .toc-list a.toc-active {
  background: #f0fdfa; color: var(--brand); font-weight: 500;
}

/* ===== Zoom-img-wrap (used in cards and sidebar thumbs) ===== */
.zoom-img-wrap { overflow: hidden; }
.zoom-img-wrap img { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }

/* ===== CTA Glow effect (hero primary button) ===== */
.cta-glow { position: relative; isolation: isolate; }
.cta-glow::after {
  content: ""; position: absolute; inset: -0.25rem;
  z-index: -1; border-radius: inherit;
  background: radial-gradient(circle at center, rgba(13,148,136,0.3), transparent 70%);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.cta-glow:hover::after { opacity: 1; }

/* ===== Lift-card (used by post-card, cat-card, sidebar thumbs) ===== */
.lift-card { transition: transform 0.25s cubic-bezier(0.2,0.7,0.2,1), box-shadow 0.3s ease, border-color 0.25s ease; will-change: transform; position: relative; }
.lift-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px transparent; pointer-events: none; transition: box-shadow 0.3s ease; }
.lift-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px -10px rgba(0,0,0,0.18), 0 4px 8px -4px rgba(0,0,0,0.06); }
.lift-card:hover::after { box-shadow: 0 0 0 1px rgba(13,148,136,0.35); }
.lift-card:focus-within { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(0,0,0,0.15); }
.lift-card:focus-within::after { box-shadow: 0 0 0 2px var(--brand); }

/* ===== Back to top — positioned bottom-left (RTL) ===== */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; left: 1.5rem;
  width: 2.75rem; height: 2.75rem;
  border-radius: 9999px;
  background: var(--brand); color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background var(--transition);
  box-shadow: 0 8px 24px -6px rgba(13,148,136,0.5);
  z-index: 55;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--brand-strong); }
@media (max-width: 639px) { .back-to-top { bottom: 1rem; left: 1rem; width: 2.5rem; height: 2.5rem; } }

/* ===== Dark mode parity — keep services dark + footer dark even in dark mode ===== */
@media (prefers-color-scheme: dark) {
  .hero-visual-glow { background: rgba(13, 148, 136, 0.2); }
  .single-featured-wrap { border-color: #334155; }
  .mobile-toc { background: var(--card); border-color: #334155; }
  .mobile-toc-trigger { color: #f1f5f9; }
  .mobile-toc-trigger:hover { background: rgba(13,148,136,0.1); }
  .mobile-toc-body { border-top-color: #334155; }
  .sidebar-widget { background: var(--card); }
  .sidebar-service-box { background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.3); }
  .sidebar-service-title { color: #f1f5f9; }
  .sidebar-service-desc { color: #cbd5e1; }
  .sidebar-telegram-title { color: #f1f5f9; }
  .sidebar-telegram-handle { color: #94a3b8; }
  .toc-widget { background: var(--card); border-color: #334155; }
  .toc-widget > h3 { color: #f1f5f9; border-bottom-color: #1e293b; }
  .toc-nav .toc-list a { color: #cbd5e1; }
  .toc-nav .toc-list a:hover { background: #1e293b; color: #f1f5f9; }
  .toc-reading-time { background: rgba(13,148,136,0.2); color: #5eead4; }
  .author-box { background: rgba(30,41,59,0.5); border-color: #334155; }
  .author-name { color: #f1f5f9; }
  .author-bio { color: #cbd5e1; }
  .post-nav-link { background: var(--card); border-color: #334155; }
  .post-nav-title { color: #f1f5f9; }
  .single-cta { background: rgba(13,148,136,0.1); border-color: rgba(13,148,136,0.3); }
  .single-cta h3 { color: #f1f5f9; }
  .single-cta-telegram { background: var(--card); color: #f1f5f9; border-color: #334155; }
  .post-card-badge { background: rgba(13,148,136,0.2); color: #5eead4; }
  .share-bar-btn { background: var(--card); border-color: #334155; color: #cbd5e1; }
  .share-bar-btn:hover { background: rgba(13,148,136,0.1); color: #5eead4; border-color: var(--brand); }
  .share-bar-label { color: #cbd5e1; }
  .breadcrumbs-list { color: #cbd5e1; }
  .breadcrumbs-link { color: #cbd5e1; }
  .breadcrumbs-current { color: #f1f5f9; }
  .breadcrumbs-home-icon { color: #cbd5e1; }
}

/* ===== Responsive ===== */
@media (max-width: 1023px) {
  .single-sidebar { order: 99; display: block; }
  .single-sidebar-sticky { position: static; }
  .single-grid { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .hero { padding: 1.5rem 0; }
  .hero h1 { font-size: 1.25rem; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; gap: 0.75rem; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-spacer { display: none !important; }
  .related-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 1.25rem; }
  .article-body h3 { font-size: 1.0625rem; }
  .container-page { padding-inline: 0.875rem; }
}

/* Make 3-col post grid responsive on lg */
@media (min-width: 1024px) {
  .home-main .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .home-main .post-grid { grid-template-columns: repeat(3, 1fr); }
}
