/*
Theme Name:   AriaMersad Blog
Theme URI:    https://ariamersad.com/blog
Author:       AriaMersad
Template:     publisher
Version:      1.0.0
Text Domain:  ariamersad-blog
*/

/* ─── TOKENS ──────────────────────────────────────────────────── */
:root {
  --am-teal:        #03967c;
  --am-teal-dark:   #027a65;
  --am-teal-stripe: #129a82;
  --am-dark-footer: #424342;
  --am-darker:      #222;
  --am-white:       #ffffff;
  --am-bg:          #f6f6f6;
  --am-border:      #e2e2e2;
  --am-text:        #111111;
  --am-muted:       #666;
  --am-badge-vid:   #e53935;
  --am-badge-dl:    #1565c0;
  --am-badge-sw:    #6a1aab;
  --am-badge-net:   #2e7d32;
  --am-badge-ebook: #f57c00;
  --am-badge-vmw:   #607d8b;
  --font-fa: IranSans, Tahoma, Arial, sans-serif;
}

/* ─── RESET (blog content only — header/footer use _main.min.css) ─ */
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body.am-blog-body {
  direction: rtl;
}
.am-site-wrap img,
.am-single-wrap img,
.am-sidebar img,
.am-hero-grid img { display: block; max-width: 100%; height: auto; }

.am-blog-home .am-post-item img { display: block; max-width: 100%; }

/* ─── MAIN LAYOUT ──────────────────────────────────────────────── */
.am-site-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px; }

/* ─── HERO GRID (top banner) ───────────────────────────────────── */
.am-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 6px; margin-bottom: 24px;
}
.am-hero-main { grid-column: 1 / 3; grid-row: 1 / 3; }
.am-hero-card { grid-column: 3; }
.am-hero-card:last-child { grid-column: 3; }
.am-hero-item {
  position: relative; overflow: hidden; background: #111;
  border-radius: 3px;
}
.am-hero-item img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: .88; transition: opacity .3s, transform .4s;
}
.am-hero-item:hover img { opacity: .95; transform: scale(1.03); }
.am-hero-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, rgba(0,0,0,.78) 0%, transparent 100%);
  color: #fff;
}
.am-hero-overlay h2 { font-size: 15px; line-height: 1.45; font-weight: 600; }
.am-hero-overlay .am-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 2px; margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .5px;
}

/* ─── CONTENT AREA ─────────────────────────────────────────────── */
.am-content-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px; align-items: start;
}

/* ─── POST LIST ────────────────────────────────────────────────── */
.am-posts { display: flex; flex-direction: column; gap: 1px; }
.am-post-item {
  display: grid;
  grid-template-columns: 220px 1fr 130px;
  gap: 0; background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: 3px; margin-bottom: 12px;
  overflow: hidden; transition: box-shadow .2s;
}
.am-post-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.am-post-thumb {
  width: 220px; height: 140px; overflow: hidden; flex-shrink: 0;
}
.am-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.am-post-body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; }
.am-post-body h2 { font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.am-post-body h2 a:hover { color: var(--am-teal); }
.am-post-meta { font-size: 12px; color: var(--am-muted); margin-bottom: 8px; }
.am-post-meta span { margin-left: 12px; }
.am-post-excerpt { font-size: 13.5px; color: #444; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.am-post-side {
  border-right: 1px solid var(--am-border);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 12px 10px; gap: 8px; background: #fafafa;
}
.am-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 3px 8px; border-radius: 2px; color: #fff;
  text-transform: uppercase; letter-spacing: .4px;
}
.am-badge.video   { background: var(--am-badge-vid); }
.am-badge.download{ background: var(--am-badge-dl); }
.am-badge.software{ background: var(--am-badge-sw); }
.am-badge.network { background: var(--am-badge-net); }
.am-badge.ebook   { background: var(--am-badge-ebook); }
.am-badge.vmware  { background: var(--am-badge-vmw); }
.am-post-views { font-size: 11px; color: var(--am-muted); }
.am-readmore {
  display: inline-block; margin-top: 10px; padding: 6px 14px;
  background: var(--am-teal); color: #fff; border-radius: 3px; font-size: 13px;
  transition: background .2s;
}
.am-readmore:hover { background: var(--am-teal-dark); color: #fff; }
.am-pagination {
  display: flex; gap: 6px; align-items: center; justify-content: center;
  margin: 20px 0; padding: 16px 0;
}
.am-pagination a, .am-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--am-border);
  border-radius: 3px; font-size: 13px; background: var(--am-white);
}
.am-pagination a:hover { background: var(--am-teal); color: #fff; border-color: var(--am-teal); }
.am-pagination .current { background: var(--am-teal); color: #fff; border-color: var(--am-teal); }

/* ─── SIDEBAR ──────────────────────────────────────────────────── */
.am-sidebar { display: flex; flex-direction: column; gap: 18px; }
.am-widget {
  background: var(--am-white); border: 1px solid var(--am-border);
  border-radius: 3px; overflow: hidden;
}
.am-widget-title {
  background: #f4f4f4; border-bottom: 1px solid var(--am-border);
  padding: 10px 14px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: #333;
}
.am-widget-body { padding: 12px 14px; }
.am-random-post { display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid #f0f0f0; }
.am-random-post:last-child { border-bottom: none; }
.am-random-post img { width: 60px; height: 52px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.am-random-post .rp-title { font-size: 12.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.am-random-post .rp-count { font-size: 11px; color: #e53935; margin-top: 4px; font-weight: 600; }
.am-ebook-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-ebook-item img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; }
.am-cat-list { display: flex; flex-direction: column; gap: 0; }
.am-cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid #f2f2f2;
  font-size: 13px; transition: color .15s;
}
.am-cat-list a:hover { color: var(--am-teal); }
.am-cat-count { background: #eee; padding: 1px 7px; border-radius: 10px;
  font-size: 11px; color: #666; }
.am-instagram { text-align: center; padding: 16px; }
.am-instagram img { width: 100px; margin: 0 auto 8px; }
.am-instagram p { font-size: 13px; font-weight: 600; }

/* ─── SINGLE POST ──────────────────────────────────────────────── */
.am-single-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px; align-items: start;
  max-width: 1200px; margin: 24px auto; padding: 0 16px;
}
.am-single-main article {
  background: var(--am-white); border: 1px solid var(--am-border); border-radius: 3px;
}
.am-single-cover { width: 100%; max-height: 440px; object-fit: cover; display: block; }
.am-single-header { padding: 22px 26px 0; }
.am-single-header h1 { font-size: 24px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.am-single-meta { font-size: 12.5px; color: var(--am-muted); padding-bottom: 14px;
  border-bottom: 1px solid var(--am-border); display: flex; gap: 16px; flex-wrap: wrap; }
.am-entry-content { padding: 22px 26px; font-size: 15px; line-height: 1.85; }
.am-entry-content p { margin-bottom: 16px; }
.am-entry-content h2 { font-size: 19px; margin: 24px 0 10px; }
.am-entry-content h3 { font-size: 16px; margin: 18px 0 8px; }
.am-entry-content img { border-radius: 3px; margin: 16px 0; }
.am-entry-content a { color: var(--am-teal); }
.am-comments-area { padding: 0 26px 26px; border-top: 1px solid var(--am-border); margin-top: 8px; }
.am-comments-title { font-size: 16px; font-weight: 700; padding: 16px 0 10px; }

/* ─── UTILITIES ────────────────────────────────────────────────── */
.no-print { }

/* ─── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .am-content-wrap,
  .am-single-wrap { grid-template-columns: 1fr; }
  .am-sidebar { order: -1; }
  .am-hero-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; }
  .am-hero-main { grid-column: 1/3; grid-row: 1/2; }
  .am-hero-card { grid-column: auto; grid-row: 2; }
}
@media (max-width: 768px) {
  .am-post-item { grid-template-columns: 1fr; }
  .am-post-thumb { width: 100%; height: 200px; }
  .am-post-side { flex-direction: row; border-right: none; border-top: 1px solid var(--am-border); }
  .am-hero-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .am-hero-main { grid-column: 1; grid-row: auto; }
  .am-hero-item { height: 200px; }
}

/* Header & footer: styled exclusively by main site CSS (_main.min.css) */

/* ══════════════════════════════════════════
   SINGLE POST
══════════════════════════════════════════ */

.am-single-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}

.am-single-article {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: 3px;
    overflow: hidden;
}

/* ── تصویر بنر ── */
.am-single-cover-wrap {
    position: relative;
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: #111;
}

.am-single-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.am-single-cover-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

/* ── هدر پست ── */
.am-single-header {
    padding: 22px 26px 16px;
    border-bottom: 1px solid var(--am-border);
}

.am-single-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 14px;
    color: var(--am-text);
}

.am-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 12.5px;
    color: var(--am-muted);
}

.am-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.am-meta-item i {
    color: var(--am-teal);
    font-size: 13px;
}

.am-meta-item a {
    color: var(--am-muted);
    transition: color .18s;
}

.am-meta-item a:hover { color: var(--am-teal); }

/* ── محتوا ── */
.am-entry-content {
    padding: 24px 26px;
    font-size: 15px;
    line-height: 1.9;
    color: #222;
}

.am-entry-content p   { margin-bottom: 18px; }
.am-entry-content h2  { font-size: 19px; font-weight: 700; margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--am-teal); }
.am-entry-content h3  { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.am-entry-content h4  { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.am-entry-content img { border-radius: 4px; margin: 16px 0; max-width: 100%; }
.am-entry-content a   { color: var(--am-teal); text-decoration: underline; text-underline-offset: 3px; }
.am-entry-content a:hover { color: var(--am-teal-dark); }

.am-entry-content ul,
.am-entry-content ol  { padding-right: 22px; margin-bottom: 16px; }
.am-entry-content li  { margin-bottom: 6px; line-height: 1.8; }

.am-entry-content blockquote {
    border-right: 4px solid var(--am-teal);
    background: #f0faf8;
    padding: 14px 18px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    color: #444;
    font-style: normal;
}

.am-entry-content pre,
.am-entry-content code {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13.5px;
    direction: ltr;
    unicode-bidi: embed;
}

.am-entry-content pre {
    padding: 16px 18px;
    overflow-x: auto;
    margin: 16px 0;
    line-height: 1.7;
}

.am-entry-content code {
    padding: 2px 6px;
    font-size: 13px;
}

.am-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.am-entry-content table th,
.am-entry-content table td {
    border: 1px solid var(--am-border);
    padding: 10px 12px;
    text-align: right;
}

.am-entry-content table th {
    background: #f4f4f4;
    font-weight: 700;
}

.am-entry-content table tr:nth-child(even) { background: #fafafa; }

/* ── تگ‌ها ── */
.am-single-tags {
    padding: 16px 26px;
    border-top: 1px solid var(--am-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--am-muted);
}

.am-single-tags i { color: var(--am-teal); margin-left: 4px; }

.am-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 12.5px;
    color: #555;
    transition: background .18s, color .18s;
}

.am-tag:hover {
    background: var(--am-teal);
    color: #fff;
    border-color: var(--am-teal);
}

/* ── اشتراک‌گذاری ── */
.am-single-share {
    padding: 16px 26px;
    border-top: 1px solid var(--am-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #fafafa;
}

.am-share-label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-left: 4px;
}

.am-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: opacity .2s, transform .15s;
    color: #fff;
    text-decoration: none;
}

.am-share-btn:hover { opacity: .85; transform: translateY(-1px); color: #fff; }

.am-share-telegram  { background: #2ca5e0; }
.am-share-whatsapp  { background: #25d366; }
.am-share-linkedin  { background: #0077b5; }
.am-share-copy      { background: #555; }

/* ── پست قبلی / بعدی ── */
.am-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    border-top: 1px solid var(--am-border);
    background: var(--am-border);
}

.am-post-nav__item {
    background: var(--am-white);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background .18s;
    text-decoration: none;
}

.am-post-nav__item:hover { background: #f5fffe; }

.am-post-nav__next { text-align: left; }

.am-post-nav__label {
    font-size: 11.5px;
    color: var(--am-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.am-post-nav__next .am-post-nav__label { justify-content: flex-end; }

.am-post-nav__title {
    font-size: 13px;
    color: var(--am-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── نظرات ── */
.am-comments-area {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: 3px;
    padding: 24px 26px;
    margin-top: 16px;
}

.am-comments-area .comments-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--am-teal);
    color: var(--am-text);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .am-single-wrap {
        grid-template-columns: 1fr;
    }

    .am-sidebar { order: -1; }
}

@media (max-width: 768px) {
    .am-single-header { padding: 16px; }
    .am-single-title  { font-size: 18px; }
    .am-entry-content { padding: 16px; }
    .am-single-tags,
    .am-single-share  { padding: 12px 16px; }

    .am-post-nav { grid-template-columns: 1fr; }
    .am-post-nav__next { text-align: right; }
    .am-post-nav__next .am-post-nav__label { justify-content: flex-start; }
}
/* ══════════════════════════════════════════
   INDEX PAGE
══════════════════════════════════════════ */

/* ── Hero Grid ── */
.am-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 6px;
    margin-bottom: 24px;
}

.am-hero-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.am-hero-card {
    grid-column: 3;
}

.am-hero-item {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 3px;
}

.am-hero-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.am-hero-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .88;
    transition: opacity .3s, transform .4s;
    display: block;
}

.am-hero-item:hover img {
    opacity: .95;
    transform: scale(1.03);
}

.am-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,.80) 0%, transparent 100%);
    color: #fff;
    pointer-events: none;
}

.am-hero-overlay h2 {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    margin: 0;
    pointer-events: all;
}

.am-hero-overlay h2 a { color: #fff; }
.am-hero-overlay h2 a:hover { color: #4fd9c4; }

.am-hero-main .am-hero-overlay h2 { font-size: 20px; }

.am-hero-overlay .am-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    pointer-events: all;
}

/* ── Section heading ── */
.am-section-head {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
    gap: 10px;
}

.am-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--am-text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--am-teal);
    display: inline-block;
}

/* ── Content + Sidebar layout ── */
.am-content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 22px;
    align-items: start;
}

/* ── Post list ── */
.am-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.am-post-item {
    display: grid;
    grid-template-columns: 220px 1fr 110px;
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.am-post-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.am-post-thumb {
    width: 220px;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.am-post-thumb a { display: block; width: 100%; height: 100%; }

.am-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.am-post-item:hover .am-post-thumb img { transform: scale(1.04); }

.am-post-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.am-post-body h2 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-post-body h2 a:hover { color: var(--am-teal); }

.am-post-meta {
    font-size: 12px;
    color: var(--am-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: center;
}

.am-post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.am-post-meta i { color: var(--am-teal); }

.am-post-meta a { color: var(--am-muted); }
.am-post-meta a:hover { color: var(--am-teal); }

.am-post-excerpt {
    font-size: 13px;
    color: #555;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-readmore {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 12px;
    background: var(--am-teal);
    color: #fff;
    border-radius: 3px;
    font-size: 12.5px;
    align-self: flex-start;
    transition: background .2s;
}

.am-readmore:hover { background: var(--am-teal-dark); color: #fff; }

/* ستون سمت چپ: بج + بازدید */
.am-post-side {
    border-right: 1px solid var(--am-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    gap: 10px;
    background: #fafafa;
    text-align: center;
}

.am-post-views {
    font-size: 11px;
    color: var(--am-muted);
    line-height: 1.6;
}

.am-post-views i { color: var(--am-teal); }

/* ── Badge colors ── */
.am-badge { color: #fff; }
.am-badge.video    { background: var(--am-badge-vid); }
.am-badge.download { background: var(--am-badge-dl); }
.am-badge.software { background: var(--am-badge-sw); }
.am-badge.network  { background: var(--am-badge-net); }
.am-badge.ebook    { background: var(--am-badge-ebook); }
.am-badge.vmware   { background: var(--am-badge-vmw); }

/* ── Pagination ── */
.am-pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 16px 0;
    flex-wrap: wrap;
}

.am-pagination a,
.am-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--am-border);
    border-radius: 3px;
    font-size: 13px;
    background: var(--am-white);
    color: var(--am-text);
    gap: 4px;
}

.am-pagination a:hover {
    background: var(--am-teal);
    color: #fff;
    border-color: var(--am-teal);
}

.am-pagination .current {
    background: var(--am-teal);
    color: #fff;
    border-color: var(--am-teal);
}

/* ── Not found ── */
.am-not-found {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: 3px;
}

.am-not-found p { font-size: 15px; margin: 0 0 16px; }

/* ══════════════════════════════════════════
   RESPONSIVE – Index
══════════════════════════════════════════ */

@media (max-width: 1024px) {
    .am-content-wrap {
        grid-template-columns: 1fr;
    }

    .am-sidebar { order: -1; }

    .am-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 200px;
    }

    .am-hero-main {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .am-hero-card {
        grid-column: auto;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .am-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .am-hero-main { grid-column: 1; grid-row: auto; }
    .am-hero-item { height: 220px; }

    .am-post-item {
        grid-template-columns: 1fr;
    }

    .am-post-thumb {
        width: 100%;
        height: 200px;
    }

    .am-post-side {
        flex-direction: row;
        border-right: none;
        border-top: 1px solid var(--am-border);
        justify-content: flex-start;
        padding: 10px 14px;
    }
}
/* ══════════════════════════════════════════
   HERO GRID
══════════════════════════════════════════ */
.am-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 5px;
    margin-bottom: 22px;
    border-radius: 3px;
    overflow: hidden;
}

.am-hero-main { grid-column: 1 / 3; grid-row: 1 / 3; }
.am-hero-card { grid-column: 3; }

.am-hero-item {
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
}

.am-hero-item a { display: block; width: 100%; height: 100%; }

.am-hero-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    opacity: .85;
    transition: opacity .32s, transform .42s;
}

.am-hero-item:hover img { opacity: .95; transform: scale(1.04); }

.am-hero-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 14px 16px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.0) 100%);
    color: #fff;
    pointer-events: none;
}

.am-hero-overlay h2 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    pointer-events: all;
}

.am-hero-main .am-hero-overlay h2 { font-size: 19px; }

.am-hero-overlay h2 a { color: #fff; }
.am-hero-overlay h2 a:hover { color: #4fd9c4; }

.am-hero-overlay .am-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 2px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    pointer-events: all;
}

.am-hero-meta {
    display: flex;
    gap: 10px;
    margin-top: 7px;
    font-size: 12px;
    color: rgba(255,255,255,.75);
    flex-wrap: wrap;
}

.am-hero-meta i { color: #4fd9c4; margin-left: 3px; }

/* ══════════════════════════════════════════
   CONTENT + SIDEBAR GRID
══════════════════════════════════════════ */
.am-content-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

/* ══════════════════════════════════════════
   MIX LISTING: پست بزرگ
══════════════════════════════════════════ */
.am-mix-big {
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
    display: grid;
    grid-template-columns: 1fr;
}

.am-mix-big__thumb {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #111;
}

.am-mix-big__thumb a { display: block; width: 100%; height: 100%; }

.am-mix-big__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s;
}

.am-mix-big:hover .am-mix-big__thumb img { transform: scale(1.03); }

.am-mix-big__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 2px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .4px;
    z-index: 2;
}

.am-mix-big__body {
    padding: 18px 20px 20px;
}

.am-mix-big__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 10px;
}

.am-mix-big__title a:hover { color: var(--am-teal); }

.am-mix-big__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 14px;
    font-size: 12px;
    color: var(--am-muted);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--am-border);
}

.am-mix-big__meta span { display: flex; align-items: center; gap: 4px; }
.am-mix-big__meta i    { color: var(--am-teal); }
.am-mix-big__meta a    { color: var(--am-muted); }
.am-mix-big__meta a:hover { color: var(--am-teal); }

.am-mix-big__excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════
   MIX LISTING: پست‌های کوچک thumbnail
══════════════════════════════════════════ */
.am-mix-small-grid {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--am-border);
    border: 1px solid var(--am-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 20px;
}

.am-mix-small {
    display: grid;
    grid-template-columns: 110px 1fr;
    background: var(--am-white);
    transition: background .18s;
}

.am-mix-small:hover { background: #f8fffd; }

.am-mix-small__thumb {
    position: relative;
    width: 110px;
    height: 80px;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.am-mix-small__thumb a { display: block; width: 100%; height: 100%; }

.am-mix-small__thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s;
}

.am-mix-small:hover .am-mix-small__thumb img { transform: scale(1.05); }

.am-mix-small__badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 2px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .3px;
    z-index: 2;
}

.am-mix-small__body {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.am-mix-small__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.am-mix-small__title a:hover { color: var(--am-teal); }

.am-mix-small__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 11px;
    color: var(--am-muted);
}

.am-mix-small__meta i { color: var(--am-teal); margin-left: 2px; }

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.am-badge { color: #fff !important; }
.am-badge.video    { background: var(--am-badge-vid) !important; }
.am-badge.download { background: var(--am-badge-dl)  !important; }
.am-badge.software { background: var(--am-badge-sw)  !important; }
.am-badge.network  { background: var(--am-badge-net) !important; }
.am-badge.ebook    { background: var(--am-badge-ebook) !important; }
.am-badge.vmware   { background: var(--am-badge-vmw) !important; }

/* ══════════════════════════════════════════
   READ MORE
══════════════════════════════════════════ */
.am-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--am-teal);
    color: #fff;
    border-radius: 3px;
    font-size: 13px;
    transition: background .2s;
    align-self: flex-start;
}

.am-readmore:hover { background: var(--am-teal-dark); color: #fff; }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
.am-pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin: 16px 0 24px;
    flex-wrap: wrap;
}

.am-pagination a,
.am-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--am-border);
    border-radius: 3px;
    font-size: 13px;
    background: var(--am-white);
    color: var(--am-text);
    gap: 5px;
    transition: background .18s, color .18s, border-color .18s;
}

.am-pagination a:hover {
    background: var(--am-teal);
    color: #fff;
    border-color: var(--am-teal);
}

.am-pagination .current {
    background: var(--am-teal);
    color: #fff;
    border-color: var(--am-teal);
    font-weight: 700;
}

/* ══════════════════════════════════════════
   NOT FOUND
══════════════════════════════════════════ */
.am-not-found {
    text-align: center;
    padding: 60px 20px;
    background: var(--am-white);
    border: 1px solid var(--am-border);
    border-radius: 3px;
    color: #aaa;
}

.am-not-found i    { font-size: 48px; display: block; margin-bottom: 12px; }
.am-not-found p    { font-size: 15px; margin: 0 0 16px; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .am-content-wrap { grid-template-columns: 1fr; }
    .am-sidebar { order: -1; }

    .am-hero-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 200px 180px;
    }

    .am-hero-main { grid-column: 1 / 3; grid-row: 1 / 2; }
    .am-hero-card { grid-column: auto; grid-row: 2; }
}

@media (max-width: 768px) {
    .am-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .am-hero-main,
    .am-hero-card { grid-column: 1; grid-row: auto; }
    .am-hero-item { height: 220px; }

    .am-mix-big__thumb { height: 200px; }
    .am-mix-big__title { font-size: 16px; }

    .am-mix-small__thumb { width: 90px; height: 68px; }
    .am-mix-small__title { font-size: 12.5px; }
}