:root {
    --bg-body: #ffffff;
    --bg-soft: #faf9f6;
    --bg-card: #ffffff;
    --olive: #5f6b54;
    --olive-dark: #48523f;
    --olive-light: #eef1eb;
    --rosegold: #c59b87;
    --rosegold-light: #f8f1ee;
    --text-main: #1f201d;
    --text-muted: #6c6d68;
    --border: #eae8e3;
    --radius: 10px;
    --transition: all 0.25s ease;
    --container: 1200px;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    direction: rtl;
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.85;
    font-size: 15px;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
  }
  
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
  }
  
  /* Header */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 20px;
  }
  
  .site-brand {
    display: flex;
    flex-direction: column;
  }
  
  .site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
  }
  
  .site-title span {
    color: var(--olive);
  }
  
  .site-tagline {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: -4px;
  }
  
  .main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  
  .main-nav a {
    font-size: 0.94rem;
    font-weight: 500;
    position: relative;
    padding-block: 6px;
  }
  
  .main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    background: var(--rosegold);
    transition: var(--transition);
  }
  
  .main-nav a:hover::after,
  .main-nav a.is-active::after {
    width: 100%;
  }
  
  .main-nav a:hover,
  .main-nav a.is-active {
    color: var(--olive);
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .icon-btn {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
  }
  
  .icon-btn:hover {
    border-color: var(--olive);
    color: var(--olive);
  }
  
  .mobile-toggle {
    display: none;
  }
  
  .header-search-bar {
    display: none;
    padding-block: 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
  }
  
  .header-search-bar.is-open {
    display: block;
  }
  
  .header-search-form {
    display: flex;
    gap: 10px;
    max-width: 540px;
    margin-inline: auto;
  }
  
  .header-search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.92rem;
    background: #fff;
    outline: none;
  }
  
  .header-search-form input:focus {
    border-color: var(--olive);
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
  }
  
  .btn-olive {
    background: var(--olive);
    color: #fff;
  }
  
  .btn-olive:hover {
    background: var(--olive-dark);
  }
  
  /* Category Bar */
  .category-bar-wrap {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding-block: 15px;
  }
  
  .category-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  
  .category-bar::-webkit-scrollbar {
    display: none;
  }
  
  .cat-pill {
    white-space: nowrap;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
  }
  
  .cat-pill:hover {
    border-color: var(--rosegold);
    color: var(--text-main);
  }
  
  .cat-pill.is-active {
    background: var(--olive);
    border-color: var(--olive);
    color: #fff;
  }
  
  /* Sections */
  .section-space {
    padding-block: 44px 72px;
  }
  
  .section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  
  .section-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
  }
  
  .section-title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rosegold);
    margin-right: 10px;
    vertical-align: middle;
  }
  
  .section-link {
    font-size: 0.88rem;
    color: var(--olive);
    font-weight: 500;
  }
  
  .section-link:hover {
    color: var(--rosegold);
  }
  
  /* Grids */
  .posts-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 26px;
  }
  
  .posts-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 26px;
  }
  
  .layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 44px;
    align-items: start;
  }
  
  /* Card */
  .post-card {
    display: flex;
    flex-direction: column;
  }
  
  .post-card.is-hidden {
    display: none;
  }
  
  .post-card-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--olive-light), var(--rosegold-light));
    aspect-ratio: 4 / 5;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .post-card:hover .post-card-media img {
    transform: scale(1.04);
  }
  
  .placeholder-label {
    font-size: 0.85rem;
    color: var(--olive);
    opacity: 0.8;
  }
  
  .post-card-cat {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--olive);
    background: var(--olive-light);
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
  }
  
  .post-card-title {
    margin: 0 0 8px;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.55;
  }
  
  .post-card-title a:hover {
    color: var(--olive);
  }
  
  .post-card-excerpt {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
  }
  
  .post-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rosegold);
  }
  
  /* Sidebar */
  .site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 26px;
    position: sticky;
    top: 96px;
  }
  
  .widget {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
  }
  
  .widget-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  
  .widget ul li {
    padding-block: 8px;
    border-bottom: 1px dashed var(--border);
    font-size: 0.88rem;
  }
  
  .widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .widget ul li a {
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
  }
  
  .widget ul li a:hover {
    color: var(--olive);
  }
  
  .sidebar-search-form {
    display: flex;
    gap: 8px;
  }
  
  .sidebar-search-form input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
    outline: none;
  }
  
  .sidebar-search-form input:focus {
    border-color: var(--olive);
  }
  
  .sidebar-search-form button {
    padding: 9px 14px;
    border: none;
    border-radius: 8px;
    background: var(--olive);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
  }
  
  .sidebar-mini-post {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  .sidebar-mini-thumb {
    width: 56px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--olive-light), var(--rosegold-light));
  }
  
  .sidebar-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .sidebar-mini-info h4 {
    margin: 0 0 4px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-main);
  }
  
  .sidebar-mini-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  /* Single Post & Page */
  .archive-header {
    margin-bottom: 32px;
  }
  
  .archive-title {
    margin: 0 0 6px;
    font-size: 1.75rem;
    font-weight: 700;
  }
  
  .archive-desc {
    color: var(--text-muted);
    margin: 0;
  }
  
  .single-article-header {
    margin-bottom: 26px;
  }
  
  .single-title {
    margin: 12px 0 14px;
    font-size: 1.95rem;
    font-weight: 700;
    line-height: 1.45;
  }
  
  .single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  .single-featured-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--olive-light), var(--rosegold-light));
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .entry-content {
    font-size: 1.02rem;
    line-height: 2;
    color: #2c2d29;
  }
  
  .entry-content h2,
  .entry-content h3 {
    margin-top: 1.9em;
    margin-bottom: 0.6em;
    color: var(--text-main);
  }
  
  .entry-content p {
    margin-bottom: 1.35em;
  }
  
  .entry-content blockquote {
    margin: 1.8em 0;
    padding: 18px 24px;
    background: var(--bg-soft);
    border-right: 3px solid var(--rosegold);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
  }
  
  .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
  }
  
  .post-tags span {
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-muted);
  }
  
  .page-container {
    max-width: 800px;
    margin-inline: auto;
  }
  
  /* Comments (Static UI) */
  .comments-area {
    margin-top: 48px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
  }
  
  .comments-title {
    font-size: 1.25rem;
    margin: 0 0 24px;
  }
  
  .comment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 36px;
  }
  
  .comment-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 22px;
  }
  
  .comment-reply-card {
    margin-right: 34px;
    border-right: 2px solid var(--rosegold);
  }
  
  .comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .comment-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--olive-light);
    color: var(--olive);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
  }
  
  .comment-author-name {
    font-weight: 700;
    font-size: 0.92rem;
  }
  
  .comment-date {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
  }
  
  .comment-body p {
    margin: 0;
    font-size: 0.92rem;
  }
  
  .comment-respond {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
  }
  
  .comment-reply-title {
    margin: 0 0 16px;
    font-size: 1.12rem;
  }
  
  .comment-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  
  .comment-form .full-col {
    grid-column: 1 / -1;
  }
  
  .comment-form label {
    display: block;
    font-size: 0.84rem;
    font-weight: 500;
    margin-bottom: 6px;
  }
  
  .comment-form input,
  .comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
    outline: none;
  }
  
  .comment-form input:focus,
  .comment-form textarea:focus {
    border-color: var(--olive);
  }
  
  /* Footer */
  .site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    padding-block: 42px 24px;
  }
  
  .footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
  }
  
  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .footer-nav a {
    font-size: 0.88rem;
    color: var(--text-muted);
  }
  
  .footer-nav a:hover {
    color: var(--olive);
  }
  
  .footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
  }
  
  @media (max-width: 992px) {
    .posts-grid-3 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  
    .layout-with-sidebar {
      grid-template-columns: 1fr;
    }
  
    .site-sidebar {
      position: static;
    }
  }
  
  @media (max-width: 768px) {
    .mobile-toggle {
      display: inline-flex;
    }
  
    .main-nav {
      display: none;
      position: absolute;
      top: 100%;
      right: 0;
      left: 0;
      background: #fff;
      border-bottom: 1px solid var(--border);
      padding: 18px 24px;
    }
  
    .main-nav.is-open {
      display: block;
    }
  
    .main-nav ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
  
    .posts-grid-3,
    .posts-grid-2,
    .comment-form {
      grid-template-columns: 1fr;
    }
  
    .single-title {
      font-size: 1.5rem;
    }
  }