/* ==== Archive/Search pages — same spirit as Single Product/Article ==== */

:root{
  --brand:#6b74ff;
  --brand-2:#7a4be1;
  --text:#1f2937;
  --muted:#6b7280;
  --bg:#f6f7fb;
  --card:#ffffff;
  --radius:16px;
  --shadow:0 10px 30px rgba(15,23,42,.06);
}

html[dir="rtl"] .single-article-container{ direction: rtl; }

/* Wrapper blocks reused from article */
.bein-single-article{
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px 0;
  overflow: hidden;
}
.bein-single-article .blog-container{
  display:grid; grid-template-columns: 1fr; gap:22px; padding:24px; background:var(--card);
}
@media (max-width: 560px){ .bein-single-article .blog-container{ padding:18px; } }

.blog-title-section{
  border-bottom:1px dashed #eceff3; padding-bottom:12px; margin-bottom:12px;
}
.blog_title{ margin:0 0 8px; font-weight:800; color:var(--text); font-size: clamp(1.4rem, 2vw, 2rem); }
.blog-short-description{
  margin:10px 0 0; background:#fbfbfd; border:1px solid #eef0f5; border-inline-start:4px solid var(--brand);
  color:#475569; line-height:1.8; padding:12px 14px; border-radius:12px;
}

/* Search bar */
.bein-searchbar{
  display:flex; gap:8px; align-items:center; margin-top:10px; flex-wrap:wrap;
}
.bein-searchbar__input{
  flex:1 1 260px; min-height:46px; border:1px solid #e5e7eb; border-radius:12px; padding:10px 12px;
  background:#f9fafb; transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.bein-searchbar__input:focus{
  outline:0; background:#fff; border-color:#7a4be1; box-shadow:0 0 0 3px rgba(124,58,237,.12);
}
.btn{
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
  border-radius:12px; padding:10px 14px; font-weight:800; text-decoration:none; border:1px solid transparent;
}
.btn-primary{
  background:linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff; box-shadow:0 10px 22px rgba(107,116,255,.28);
}
.btn-primary:hover{ transform:translateY(-1px); box-shadow:0 14px 28px rgba(107,116,255,.36); }

/* Grid of posts (reuse) */
.blog-tabs-section{ background:var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding:18px; }
.posts-grid{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:18px; }
@media (max-width: 992px){ .posts-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){ .posts-grid{ grid-template-columns:1fr; } }

/* Post card (reuse styles) */
.post-card{
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06);
    transition: transform .12s ease, box-shadow .12s ease;
    display: flex;
    flex-direction: column;
    padding: 14px;
}
.post-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.post-card .thumb img{
    display: block;
    width: 100%;
    height: auto;
    background: #fbfbfd;
    border-radius: 16px;
}
.post-card .blog-card-content{ padding:12px 14px; }
.post-card .blog-title{ margin:0 0 6px; font-size:1rem; font-weight:800; color:#111827; }
.post-card .blog-title a{ color:inherit; text-decoration:none; }
.post-card .blog-title a:hover{ color:#7a4be1; }
.post-card .view-details-link{
    display: block;
    text-align: center;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.post-card .view-details-link:hover{ text-decoration:underline; }

/* Pagination */
.bein-pagination{ margin-top:16px; display:flex; justify-content:center; }
.bein-pagination .page-numbers{
  display:inline-flex; min-width:38px; height:38px; align-items:center; justify-content:center;
  margin:0 4px; padding:0 10px; border:1px solid #e5e7eb; border-radius:10px; background:#fff; color:#374151; text-decoration:none;
}
.bein-pagination .current{
  background:linear-gradient(135deg,#667eea,#7a4be1); color:#fff; border-color:transparent;
}

/* SR only */
.sr-only{
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip: rect(0 0 0 0) !important; white-space:nowrap !important; border:0 !important;
}
