/* =========================================================
   blog.css — فقط استایل‌های اختصاصی صفحه بلاگ
   ========================================================= */

.page-hero{padding:160px 0 70px;position:relative;overflow:hidden;background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%)}
.page-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(14,165,233,.25),transparent 50%),radial-gradient(circle at 20% 80%,rgba(245,158,11,.15),transparent 50%)}
.page-hero-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);background-size:60px 60px;mask-image:radial-gradient(ellipse at center,black 40%,transparent 80%)}
.breadcrumb{position:relative;z-index:2;display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.6);font-size:14px;margin-bottom:20px}
.breadcrumb a{color:rgba(255,255,255,.8);transition:.2s}
.breadcrumb a:hover{color:var(--gold-2)}
.breadcrumb span[aria-current]{color:var(--gold-2);font-weight:600}
.page-hero h1{position:relative;z-index:2;color:#fff;font-size:clamp(30px,4.5vw,48px);font-weight:900;line-height:1.3;margin-bottom:16px;max-width:720px}
.page-hero h1 span{color:var(--gold-2)}
.page-hero p{position:relative;z-index:2;color:rgba(255,255,255,.75);font-size:17px;max-width:600px}
.page-hero .wave{position:absolute;bottom:0;left:0;right:0;line-height:0;z-index:3}
.page-hero .wave svg{width:100%;height:60px;display:block}

/* ===== CATEGORY FILTER BAR ===== */
.filter-bar{padding:36px 0 0}
.filter-scroll{display:flex;gap:12px;overflow-x:auto;padding-bottom:12px;scrollbar-width:thin}
.filter-pill{flex-shrink:0;padding:10px 22px;border-radius:50px;border:1px solid #e2e8f0;background:#fff;color:var(--gray);font-weight:600;font-size:14px;cursor:pointer;transition:.25s;font-family:inherit}
.filter-pill:hover{border-color:var(--gold);color:var(--navy)}
.filter-pill.active{background:linear-gradient(135deg,var(--navy),var(--navy-2));border-color:transparent;color:#fff}

/* ===== BLOG LAYOUT ===== */
.blog-section{padding:50px 0 100px}
.blog-layout{display:grid;grid-template-columns:2.1fr 1fr;gap:50px;align-items:start}

/* Featured post */
.featured-post{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border-radius:24px;overflow:hidden;border:1px solid #e2e8f0;box-shadow:var(--shadow);margin-bottom:40px}
.featured-cover{position:relative;background:linear-gradient(135deg,var(--navy),var(--navy-2));min-height:260px;display:grid;place-items:center;overflow:hidden}
.featured-cover svg{width:60%;opacity:.9;position:relative;z-index:2}
.featured-cover::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 30% 30%,rgba(245,158,11,.25),transparent 60%)}
.featured-badge{position:absolute;top:18px;right:18px;background:var(--gold);color:var(--navy);font-size:12px;font-weight:800;padding:6px 14px;border-radius:50px;z-index:3}
.featured-body{padding:36px}
.post-cat{display:inline-block;font-size:12px;font-weight:800;color:var(--sky);background:rgba(14,165,233,.1);padding:5px 14px;border-radius:50px;margin-bottom:14px}
.featured-body h2{font-size:24px;font-weight:900;margin-bottom:12px;line-height:1.5}
.featured-body h2 a:hover{color:var(--gold)}
.featured-body p{color:var(--gray);font-size:15px;margin-bottom:20px}
.post-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:13px;color:var(--gray)}
.post-meta .meta-item{display:flex;align-items:center;gap:6px}
.post-meta svg{width:15px;height:15px;fill:var(--gray)}

/* Blog grid */
.blog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.blog-card{background:#fff;border-radius:20px;overflow:hidden;border:1px solid #e2e8f0;transition:.35s;display:flex;flex-direction:column}
.blog-card:hover{transform:translateY(-8px);box-shadow:var(--shadow);border-color:transparent}
.card-cover{position:relative;height:170px;background:linear-gradient(135deg,rgba(14,165,233,.12),rgba(245,158,11,.12));display:grid;place-items:center}
.card-cover svg{width:56px;height:56px;fill:var(--navy)}
.card-body{padding:24px;display:flex;flex-direction:column;flex:1}
.card-body h3{font-size:18px;font-weight:800;margin-bottom:10px;line-height:1.5}
.card-body h3 a:hover{color:var(--gold)}
.card-body p{color:var(--gray);font-size:14px;margin-bottom:18px;flex:1}
.card-body .post-meta{margin-top:auto;padding-top:14px;border-top:1px solid #f1f5f9}
.blog-card.is-hidden{display:none}

/* Pagination */
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:50px}
.pagination a,.pagination span{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;border:1px solid #e2e8f0;background:#fff;color:var(--navy);font-weight:700;font-size:14px;transition:.25s}
.pagination a:hover{border-color:var(--gold);color:var(--gold)}
.pagination .current{background:linear-gradient(135deg,var(--navy),var(--navy-2));color:#fff;border-color:transparent}
.pagination .arrow{width:auto;padding:0 18px;gap:6px;display:inline-flex}

/* ===== SIDEBAR ===== */
.sidebar{display:flex;flex-direction:column;gap:28px;position:sticky;top:110px}
.widget{background:#fff;border-radius:20px;padding:26px;border:1px solid #e2e8f0}
.widget h4{font-size:16px;font-weight:800;margin-bottom:20px;position:relative;padding-bottom:12px}
.widget h4::after{content:'';position:absolute;bottom:0;right:0;width:36px;height:3px;background:var(--gold);border-radius:3px}
.search-form{display:flex;gap:8px}
.search-form input{flex:1;padding:13px 16px;border-radius:12px;border:1px solid #e2e8f0;font-size:14px;font-family:inherit;outline:none;transition:.25s;background:var(--light)}
.search-form input:focus{border-color:var(--sky);background:#fff}
.search-form button{width:46px;border:none;border-radius:12px;background:var(--navy);color:#fff;cursor:pointer;display:grid;place-items:center;flex-shrink:0}
.search-form button svg{width:18px;height:18px;fill:#fff}
.cat-list li{margin-bottom:4px}
.cat-list button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border:none;background:transparent;border-radius:10px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;color:var(--navy);transition:.2s}
.cat-list button:hover,.cat-list button.active{background:rgba(14,165,233,.08);color:var(--sky)}
.cat-list .count{background:var(--light);color:var(--gray);font-size:12px;font-weight:700;padding:2px 9px;border-radius:50px}
.recent-post{display:flex;gap:14px;margin-bottom:16px}
.recent-post:last-child{margin-bottom:0}
.recent-thumb{width:64px;height:64px;border-radius:12px;flex-shrink:0;background:linear-gradient(135deg,var(--navy),var(--navy-2));display:grid;place-items:center}
.recent-thumb svg{width:26px;height:26px;fill:var(--gold-2)}
.recent-info h5{font-size:14px;font-weight:700;line-height:1.5;margin-bottom:6px}
.recent-info h5 a:hover{color:var(--gold)}
.recent-info time{font-size:12px;color:var(--gray)}
.tag-cloud{display:flex;flex-wrap:wrap;gap:10px}
.tag-cloud a{padding:7px 16px;border-radius:50px;background:var(--light);color:var(--gray);font-size:13px;font-weight:600;transition:.2s;border:1px solid transparent}
.tag-cloud a:hover{background:rgba(245,158,11,.12);color:var(--gold);border-color:rgba(245,158,11,.3)}
.widget-newsletter{background:linear-gradient(135deg,var(--navy),var(--navy-2));border:none;color:#fff;position:relative;overflow:hidden}
.widget-newsletter::before{content:'';position:absolute;top:-40%;left:-20%;width:140%;height:180%;background:radial-gradient(circle,rgba(245,158,11,.18),transparent 60%)}
.widget-newsletter *{position:relative;z-index:2}
.widget-newsletter h4{color:#fff}
.widget-newsletter h4::after{background:var(--gold)}
.widget-newsletter p{font-size:13px;color:rgba(255,255,255,.7);margin-bottom:18px}
.newsletter-form{display:flex;flex-direction:column;gap:10px}
.newsletter-form input{padding:13px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;font-family:inherit;font-size:14px;outline:none}
.newsletter-form input::placeholder{color:rgba(255,255,255,.5)}
.newsletter-form button{padding:13px 16px;border-radius:12px;border:none;background:linear-gradient(135deg,var(--gold),var(--gold-2));color:var(--navy);font-weight:800;cursor:pointer;font-family:inherit;font-size:14px}
.newsletter-note{font-size:12px;color:rgba(255,255,255,.55);margin-top:4px}
.newsletter-success{display:none;font-size:13px;background:rgba(34,197,94,.15);color:#4ade80;padding:10px 14px;border-radius:10px;margin-top:10px}
.newsletter-success.show{display:block}

/* ===== RESPONSIVE (blog only) ===== */
@media(max-width:992px){
  .blog-layout{grid-template-columns:1fr}
  .sidebar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:20px}
  .featured-post{grid-template-columns:1fr}
}
@media(max-width:768px){
  .blog-grid{grid-template-columns:1fr}
}
@media(max-width:600px){
  .sidebar{grid-template-columns:1fr}
  .page-hero{padding:150px 0 60px}
}
