*,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    :root {
      --blue-dark: #1a2d4a;
      --blue-header: #152238;
      --blue-accent: #3b6ea8;
      --gold: #c4a35a;
      --gold-light: #d4b87a;
      --bg-light: #f5f6f8;
      --bg-white: #ffffff;
      --text-dark: #1a2d4a;
      --text-muted: #5a6a7e;
      --text-light: #ffffff;
      --border: #e2e6ec;
      --container: 1100px;
    }

    body {
      margin: 0;
      font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
      color: var(--text-dark);
      line-height: 1.8;
      background: var(--bg-white);
    }

    img {
      max-width: 100%;
      height: auto;
      display: block;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    .container {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* ── Header (سورمه‌ای — مطابق طرح) ── */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .site-header.notes-header {
      background: var(--blue-header);
      border-bottom: none;
    }

    .site-header.notes-header .logo-mark {
      color: var(--gold);
    }

    .site-header.notes-header .logo-text strong {
      color: var(--gold-light);
    }

    .site-header.notes-header .logo-text span {
      color: rgba(255, 255, 255, 0.55);
    }

    .site-header.notes-header .nav a {
      color: rgba(255, 255, 255, 0.88);
    }

    .site-header.notes-header .nav a:hover {
      color: var(--gold);
    }

    .site-header.notes-header .nav a.active {
      color: var(--gold);
      font-weight: 600;
    }

    .site-header.notes-header .nav a.active::after {
      background: var(--gold);
    }

    .site-header.notes-header .search-btn {
      color: rgba(255, 255, 255, 0.88);
    }

    .site-header.notes-header .search-btn:hover {
      color: var(--gold);
    }

    .site-header.notes-header .menu-toggle {
      color: rgba(255, 255, 255, 0.88);
    }

    .site-header.notes-header .menu-toggle:hover {
      color: var(--gold);
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.4rem;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .menu-toggle svg {
      width: 24px;
      height: 24px;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 0;
      gap: 1rem;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      flex-wrap: wrap;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .logo-mark {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--blue-dark);
      line-height: 1;
    }

    .logo-text strong {
      display: block;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--blue-dark);
    }

    .logo-text span {
      display: block;
      font-size: 0.68rem;
      color: var(--text-muted);
      margin-top: 0.15rem;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 0.15rem;
      flex-wrap: wrap;
    }

    .nav a {
      padding: 0.45rem 0.7rem;
      font-size: 0.8rem;
      font-weight: 500;
      color: var(--text-dark);
      position: relative;
      transition: color 0.2s;
    }

    .nav a:hover {
      color: var(--blue-accent);
    }

    .nav a.active {
      color: var(--blue-dark);
      font-weight: 600;
    }

    .nav a.active::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0.7rem;
      right: 0.7rem;
      height: 2px;
      background: var(--blue-dark);
    }

    .search-btn {
      background: none;
      border: none;
      color: var(--text-dark);
      cursor: pointer;
      padding: 0.4rem;
      display: flex;
      align-items: center;
    }

    .search-btn:hover {
      color: var(--blue-accent);
    }

    .search-btn svg {
      width: 20px;
      height: 20px;
    }

    /* ── Page hero ── */
    .page-hero {
      position: relative;
      min-height: 360px;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .page-hero-bg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 72% center;
      background: #f0ece6;
      z-index: 0;
    }

    .page-hero-overlay {
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.2) 32%,
        transparent 58%
      );
    }

    .page-hero .container {
      position: relative;
      z-index: 2;
      width: 100%;
    }

    .page-hero-content {
      padding: 3.5rem 0;
      max-width: 400px;
      margin-right: auto;
      margin-left: 0;
      text-align: center;
    }

    .page-hero h1 {
      font-size: 2.25rem;
      font-weight: 700;
      color: var(--blue-dark);
      margin: 0 0 0.75rem;
      text-align: center;
    }

    .page-hero-line {
      width: 48px;
      height: 3px;
      background: var(--gold);
      margin: 0 auto 1rem;
    }

    .page-hero p {
      font-size: 0.95rem;
      color: var(--text-muted);
      margin: 0;
      line-height: 1.9;
      text-align: center;
    }

    /* ── Categories ── */
    .categories {
      background: var(--bg-white);
      border-bottom: 1px solid var(--border);
    }

    .categories-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0;
      padding: 1rem 0;
    }

    .categories-inner a {
      padding: 0.5rem 1.25rem;
      font-size: 0.85rem;
      font-weight: 500;
      color: var(--text-muted);
      position: relative;
      border-right: 1px solid var(--border);
    }

    .categories-inner a:first-child {
      border-right: none;
    }

    .categories-inner a:hover {
      color: var(--blue-dark);
    }

    .categories-inner a.active {
      color: var(--blue-dark);
      font-weight: 600;
    }

    .categories-inner a.active::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 1.25rem;
      right: 1.25rem;
      height: 2px;
      background: var(--gold);
    }

    /* ── Featured ── */
    .featured {
      padding: 3rem 0;
      background: var(--bg-white);
    }

    .featured-card {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
      background: var(--bg-light);
      border-radius: 4px;
      overflow: hidden;
      border: 1px solid var(--border);
    }

    .featured-content {
      padding: 2.5rem 2rem;
    }

    .tag-gold {
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--gold);
      margin: 0 0 0.75rem;
    }

    .featured-content h2 {
      font-size: 1.35rem;
      font-weight: 700;
      color: var(--blue-dark);
      margin: 0 0 1rem;
      line-height: 1.5;
    }

    .featured-content .excerpt {
      font-size: 0.9rem;
      color: var(--text-muted);
      margin: 0 0 1.5rem;
      line-height: 1.9;
    }

    .post-meta {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      font-size: 0.78rem;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
    }

    .post-meta span {
      display: flex;
      align-items: center;
      gap: 0.35rem;
    }

    .post-meta svg {
      width: 14px;
      height: 14px;
      color: var(--gold);
    }

    .read-link {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--blue-dark);
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: color 0.2s;
    }

    .read-link:hover {
      color: var(--gold);
    }

    .read-link .arrow {
      color: var(--gold);
      font-size: 0.85rem;
    }

    .featured-image img {
      width: 100%;
      height: 100%;
      min-height: 320px;
      object-fit: cover;
    }

    /* ── Latest posts ── */
    .latest {
      padding: 3rem 0 4rem;
      background: var(--bg-white);
    }

    .section-heading {
      text-align: center;
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--blue-dark);
      margin: 0 0 2.5rem;
      position: relative;
      padding-bottom: 0.75rem;
    }

    .section-heading::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 40px;
      height: 3px;
      background: var(--gold);
    }

    .posts-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1.5rem;
    }

    .post-card {
      background: var(--bg-white);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 1.75rem 1.5rem;
      transition: box-shadow 0.2s;
    }

    .post-card:hover {
      box-shadow: 0 6px 24px rgba(26, 45, 74, 0.08);
    }

    .post-card h3 {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--blue-dark);
      margin: 0 0 0.75rem;
      line-height: 1.55;
    }

    .post-card .excerpt {
      font-size: 0.82rem;
      color: var(--text-muted);
      margin: 0 0 1.25rem;
      line-height: 1.8;
    }

  .post-card .post-meta {
      margin-bottom: 1rem;
    }

    /* ── Quote band ── */
    .quote-band {
      background: var(--bg-light);
      padding: 3.5rem 0;
    }

    .quote-inner {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.5rem;
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
    }

    .quote-mark {
      font-size: 3.5rem;
      line-height: 1;
      color: var(--gold);
      font-family: Georgia, serif;
      flex-shrink: 0;
    }

    .quote-inner p {
      font-size: 1.05rem;
      color: var(--text-dark);
      margin: 0;
      line-height: 1.9;
      font-weight: 500;
    }

    /* ── Archive ── */
    .archive {
      padding: 3.5rem 0 4rem;
      background: var(--bg-white);
    }

    .archive-grid {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
      gap: 0;
      border-top: 1px solid var(--border);
      padding-top: 2rem;
    }

    .archive-item {
      flex: 1;
      min-width: 100px;
      max-width: 180px;
      text-align: center;
      padding: 1rem 1.5rem;
      border-right: 1px solid var(--border);
    }

    .archive-item:last-child {
      border-right: none;
    }

    .archive-item a {
      display: block;
      transition: color 0.2s;
    }

    .archive-item a:hover {
      color: var(--gold);
    }

    .archive-year {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--blue-dark);
      margin-bottom: 0.5rem;
    }

    .archive-arrow {
      color: var(--gold);
      font-size: 0.9rem;
    }

    /* ── Footer ── */
    .site-footer {
      background: var(--blue-header);
      color: rgba(255, 255, 255, 0.85);
      padding: 2rem 0;
    }

    .footer-bottom {
      text-align: center;
      font-size: 0.78rem;
      color: rgba(255, 255, 255, 0.5);
    }

    /* ── Responsive ── */
    @media (max-width: 960px) {
      .header-inner {
        padding: 0.75rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .header-right {
        flex: 1;
        gap: 0.75rem;
        flex-wrap: wrap;
        min-width: 0;
      }

      .header-right .nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        background: var(--blue-header);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 0 0.75rem;
        gap: 0;
        margin-top: 0.25rem;
      }

      .header-right .nav.is-open {
        display: flex;
      }

      .header-right .nav a {
        padding: 0.65rem 0.5rem;
        color: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }

      .header-right .nav a:last-child {
        border-bottom: none;
      }

      .header-right .nav a.active::after {
        display: none;
      }

      .header-right .nav a.active {
        color: var(--gold);
      }

      .menu-toggle {
        display: flex;
      }

      .site-header .search-btn,
      .site-header .menu-toggle {
        flex-shrink: 0;
      }

      .page-hero {
        min-height: 320px;
      }

      .page-hero-content {
        max-width: 100%;
      }

      .featured-card {
        grid-template-columns: 1fr;
      }

      .featured-image img {
        min-height: 220px;
      }

      .posts-grid {
        grid-template-columns: 1fr;
      }

      .archive-grid {
        flex-direction: column;
        align-items: stretch;
      }

      .archive-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-width: none;
      }

      .archive-item:last-child {
        border-bottom: none;
      }
    }

    @media (max-width: 560px) {
      .container {
        padding: 0 1rem;
      }

      .header-right .logo-text span {
        display: none;
      }

      .page-hero {
        min-height: 280px;
      }

      .page-hero-content {
        max-width: 100%;
      }

      .page-hero-overlay {
        background: linear-gradient(
          to bottom,
          rgba(255, 255, 255, 0.75) 0%,
          rgba(255, 255, 255, 0.35) 50%,
          transparent 100%
        );
      }

      .page-hero h1 {
        font-size: 1.75rem;
      }

      .categories-inner a {
        border-right: none;
        padding: 0.4rem 0.75rem;
      }
    }
