﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --orange: #F58220;
      --orange-dark: #e67410;
      --orange-light: #FFF3E8;
      --blue: #1F5AA6;
      --blue-light: #EEF6FF;
      --bg: #FAF7F2;
      --text: #2A2A2A;
      --text-muted: rgba(42, 42, 42, 0.65);
      --white: #ffffff;
      --radius: 16px;
      --radius-lg: 24px;
      --shadow: 0 4px 24px rgba(42, 42, 42, 0.06);
      --shadow-hover: 0 8px 32px rgba(42, 42, 42, 0.1);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Vazirmatn', Tahoma, sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.7;
      overflow-x: hidden;
    }

    a { text-decoration: none; color: inherit; }
    img { max-width: 100%; height: auto; display: block; }
    ul { list-style: none; }

    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Header */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(250, 247, 242, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(42, 42, 42, 0.06);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 0;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .logo img {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      object-fit: cover;
    }

    .logo-text { font-size: 13px; font-weight: 700; line-height: 1.5; }
    .logo-text span { display: block; color: var(--orange); font-size: 15px; }

    .nav { display: flex; align-items: center; gap: 4px; }

    .nav a {
      padding: 8px 14px;
      border-radius: 10px;
      font-size: 14px;
      color: var(--text-muted);
      transition: color 0.2s, background 0.2s;
    }

    .nav a:hover { color: var(--blue); background: var(--white); }
    .nav a.active { color: var(--orange); font-weight: 600; }

    .header-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 10px 22px;
      border-radius: 12px;
      font-family: inherit;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      border: 2px solid transparent;
      transition: all 0.2s;
    }

    .btn-outline {
      background: var(--white);
      border-color: var(--blue);
      color: var(--blue);
    }

    .btn-outline:hover { background: var(--blue-light); }

    .btn-primary {
      background: var(--orange);
      color: var(--white);
      box-shadow: 0 2px 12px rgba(245, 130, 32, 0.3);
    }

    .btn-primary:hover { background: var(--orange-dark); }

    .mobile-nav {
      display: none;
      overflow-x: auto;
      gap: 4px;
      padding: 8px 0 10px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .mobile-nav a {
      flex-shrink: 0;
      padding: 6px 12px;
      font-size: 12px;
      color: var(--text-muted);
      border-radius: 8px;
    }

    .mobile-nav a.active { color: var(--orange); font-weight: 600; }

    /* Breadcrumb */
    .breadcrumb {
      padding: 16px 0 8px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .breadcrumb a { color: var(--blue); }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb span { margin: 0 8px; opacity: 0.5; }

    /* Hero */
    .blog-hero {
      background: var(--white);
      padding: 0 0 8px;
    }

    .blog-hero .breadcrumb {
      padding: 12px 0 4px;
    }

    .blog-hero-inner {
      display: grid;
      grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
      align-items: center;
      gap: 8px 20px;
      padding: 0;
    }

    .blog-hero-character {
      justify-self: start;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .blog-hero-character img {
      width: 100%;
      max-width: 340px;
      object-fit: contain;
    }

    .blog-hero-center {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 480px;
      width: 100%;
      justify-self: center;
    }

    .blog-hero-center h1 {
      font-size: clamp(28px, 3.8vw, 40px);
      font-weight: 800;
      color: var(--blue);
      line-height: 1.35;
      margin-bottom: 10px;
    }

    .blog-hero-title-line {
      width: 56px;
      height: 4px;
      background: var(--orange);
      border-radius: 4px;
      margin-bottom: 12px;
    }

    .blog-hero-center p {
      font-size: 15px;
      color: var(--text-muted);
      line-height: 1.75;
      max-width: 420px;
    }

    .blog-hero-deco {
      justify-self: end;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .blog-hero-deco img {
      width: 100%;
      max-width: 320px;
      object-fit: contain;
    }

    /* Search bar */
    .blog-search-wrap {
      padding: 12px 0 28px;
    }

    .blog-search-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--white);
      border-radius: 50px;
      padding: 6px 8px 6px 20px;
      box-shadow: var(--shadow);
      border: 1px solid rgba(42, 42, 42, 0.06);
    }

    .blog-search-field {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 10px;
      min-width: 0;
    }

    .blog-search-field svg {
      flex-shrink: 0;
      color: var(--text-muted);
    }

    .blog-search-field input {
      flex: 1;
      border: none;
      outline: none;
      font-family: inherit;
      font-size: 14px;
      color: var(--text);
      background: transparent;
      min-width: 0;
    }

    .blog-search-field input::placeholder { color: var(--text-muted); }

    .blog-search-select {
      flex-shrink: 0;
      position: relative;
    }

    .blog-search-select select {
      appearance: none;
      border: none;
      background: var(--bg);
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      padding: 12px 20px 12px 44px;
      border-radius: 50px;
      cursor: pointer;
      outline: none;
    }

    .blog-search-select::after {
      content: '';
      position: absolute;
      left: 18px;
      top: 50%;
      transform: translateY(-50%);
      border: 5px solid transparent;
      border-top-color: var(--text-muted);
      pointer-events: none;
    }

    /* Layout */
    .blog-layout {
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 28px;
      align-items: start;
      padding-bottom: 48px;
    }

    /* Sidebar */
    .sidebar-widget {
      background: var(--white);
      border-radius: var(--radius-lg);
      padding: 22px;
      box-shadow: var(--shadow);
      margin-bottom: 20px;
    }

    .sidebar-widget h3 {
      font-size: 15px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 16px;
    }

    .sidebar-widget.popular {
      background: var(--blue-light);
    }

    .category-list li {
      margin-bottom: 4px;
    }

    .category-list a {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      transition: background 0.2s;
    }

    .category-list a:hover { background: rgba(255, 255, 255, 0.7); }

    .cat-icon {
      width: 32px;
      height: 32px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .cat-icon svg { width: 18px; height: 18px; }

    .popular-list li {
      margin-bottom: 14px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(31, 90, 166, 0.1);
    }

    .popular-list li:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .popular-list a {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .popular-thumb {
      flex-shrink: 0;
      width: 64px;
      height: 64px;
      border-radius: 12px;
      overflow: hidden;
    }

    .popular-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .popular-info p {
      font-size: 12px;
      font-weight: 600;
      line-height: 1.55;
      color: var(--text);
      margin-bottom: 4px;
    }

    .popular-info span {
      font-size: 11px;
      color: var(--text-muted);
    }

    .sidebar-more {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-top: 16px;
      font-size: 13px;
      font-weight: 600;
      color: var(--blue);
    }

    .sidebar-more:hover { color: var(--orange); }

    /* Blog cards */
    .blog-list {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .blog-card {
      display: flex;
      gap: 20px;
      background: var(--white);
      border-radius: var(--radius-lg);
      overflow: hidden;
      box-shadow: var(--shadow);
      transition: transform 0.25s, box-shadow 0.25s;
    }

    .blog-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }

    .blog-card-img {
      flex-shrink: 0;
      width: 240px;
      min-height: 180px;
      overflow: hidden;
    }

    .blog-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .blog-card-body {
      flex: 1;
      padding: 20px 20px 20px 0;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .blog-tag {
      align-self: flex-start;
      padding: 4px 12px;
      border-radius: 50px;
      font-size: 11px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .tag-blue { background: #E3F2FD; color: #1565C0; }
    .tag-green { background: #E8F5E9; color: #2E7D32; }
    .tag-purple { background: #F3E5F5; color: #7B1FA2; }

    .blog-card-body h2 {
      font-size: 16px;
      font-weight: 700;
      color: var(--blue);
      line-height: 1.55;
      margin-bottom: 10px;
    }

    .blog-excerpt {
      font-size: 13px;
      color: var(--text-muted);
      line-height: 1.85;
      margin-bottom: 14px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .blog-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      font-size: 11px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .blog-meta span {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .blog-read-more {
      margin-top: auto;
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 13px;
      font-weight: 600;
      color: var(--orange);
    }

    .blog-read-more:hover { color: var(--orange-dark); }

    /* Newsletter */
    .newsletter {
      background: var(--bg);
      border-radius: var(--radius-lg);
      padding: 32px 40px;
      margin-bottom: 56px;
      box-shadow: var(--shadow);
      overflow: hidden;
      border: 1px solid rgba(42, 42, 42, 0.04);
    }

    .newsletter-inner {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 24px;
      min-height: 200px;
    }

    .newsletter-form {
      justify-self: start;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      flex-direction: column;
      align-items: flex-start;
    }

    .newsletter-form-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .form-feedback {
      width: 100%;
      padding: 8px 12px;
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.6;
    }

    .form-feedback[hidden] { display: none; }

    .form-feedback--success {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .form-feedback--error {
      background: #FFEBEE;
      color: #C62828;
    }

    .newsletter-input-wrap {
      display: flex;
      align-items: center;
      gap: 8px;
      background: var(--white);
      border-radius: 50px;
      padding: 4px 16px 4px 4px;
      border: 1px solid rgba(42, 42, 42, 0.08);
      min-width: 240px;
    }

    .newsletter-input-wrap svg {
      flex-shrink: 0;
      color: var(--text-muted);
      margin-right: 4px;
    }

    .newsletter-input-wrap input {
      flex: 1;
      border: none;
      outline: none;
      background: transparent;
      font-family: inherit;
      font-size: 13px;
      padding: 10px 0;
      min-width: 0;
    }

    .newsletter-input-wrap input::placeholder { color: var(--text-muted); }

    .newsletter-text {
      text-align: center;
      max-width: 340px;
      justify-self: center;
    }

    .newsletter-text h3 {
      font-size: 15px;
      font-weight: 700;
      color: var(--blue);
      margin-bottom: 8px;
      line-height: 1.6;
    }

    .newsletter-text p {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.8;
    }

    .newsletter-visual {
      justify-self: end;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      margin-left: -12px;
    }

    .newsletter-visual img {
      max-width: 380px;
      width: 100%;
      object-fit: contain;
    }

    /* Footer */
    .footer {
      background: var(--white);
      border-top: 1px solid rgba(42, 42, 42, 0.06);
      padding: 48px 0 24px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr 1fr;
      gap: 32px;
      margin-bottom: 36px;
    }

    .footer-col h4 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 16px;
      color: var(--blue);
    }

    .footer-col a {
      display: block;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 10px;
      transition: color 0.2s;
    }

    .footer-col a:hover { color: var(--orange); }

    .footer-contact li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .footer-contact svg {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      margin-top: 2px;
      color: var(--orange);
    }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding-top: 24px;
      border-top: 1px solid rgba(42, 42, 42, 0.06);
    }

    .footer-brand {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .footer-brand img {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      object-fit: cover;
    }

    .social-links { display: flex; gap: 10px; }

    .social-links a {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      transition: background 0.2s, color 0.2s;
    }

    .social-links a:hover { background: var(--orange-light); color: var(--orange); }
    .social-links svg { width: 18px; height: 18px; }

    .copyright {
      font-size: 12px;
      color: var(--text-muted);
      text-align: left;
    }

    /* Responsive */
    @media (max-width: 1024px) {
      .nav { display: none; }
      .mobile-nav { display: flex; }
      .blog-layout { grid-template-columns: 1fr; }
      .sidebar-widget.popular { order: -1; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 768px) {
      .blog-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
      }

      .blog-hero-character,
      .blog-hero-deco { display: none; }

      .blog-card {
        flex-direction: column;
      }

      .blog-card-img {
        width: 100%;
        min-height: 180px;
      }

      .blog-card-body {
        padding: 0 20px 20px;
      }

      .newsletter-inner {
        grid-template-columns: 1fr;
        text-align: center;
      }

      .newsletter-form,
      .newsletter-visual {
        justify-self: center;
      }

      .newsletter-visual { order: -1; }
    }

    @media (max-width: 480px) {
      .blog-search-bar {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 12px;
      }

      .blog-search-select { width: 100%; }
      .blog-search-select select { width: 100%; }

      .newsletter-form { flex-direction: column; width: 100%; }
      .newsletter-input-wrap { min-width: 0; width: 100%; }

      .footer-grid { grid-template-columns: 1fr; }
      .header-actions .btn-outline { display: none; }
      .footer-bottom { flex-direction: column; text-align: center; }
      .copyright { text-align: center; }
    }
