/* ================= لیست مقالات — مجله آفریقا اپتیک =================
   تم روشن با رنگ رز سایت. همه‌ی کلاس‌ها با پیشوند ar- تا با blog.css و Style.css تداخل نکند. */
.ar{
  --ink:#1d1d1f; --sub:#6e6e73; --line:#ece6e7; --fill:#f7f3f3; --bg:#fbf9f8;
  --rose:#ad848c; --rose-d:#8a6169; --rose-s:#e7d3d6; --gold:#b08d57;
  --ease:cubic-bezier(.2,.8,.2,1);
  --gutter:max(16px, calc((100% - 1240px) / 2 + 24px));
  direction:rtl;color:var(--ink);background:var(--bg);font-family:PeydaRegular,Tahoma,sans-serif;line-height:1.7;
  padding:28px var(--gutter) 90px;overflow-x:clip
}
.ar *{box-sizing:border-box}
.ar h1,.ar h2,.ar h3,.ar p{margin:0}
.ar h1,.ar h2,.ar h3{font-family:Bold,PeydaRegular,sans-serif;font-weight:normal}
.ar a:link,.ar a:visited,.ar a:hover{color:inherit;text-decoration:none;transition:color .3s}
.ar img{display:block;max-width:none;border:0}

@keyframes arRise{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes arSheen{to{background-position:-200% 0}}
@keyframes arGlare{0%,40%{left:-60%}100%{left:140%}}

/* ================= سرتیتر ================= */
.ar-head{position:relative;display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:26px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.ar-badge{display:inline-flex;align-items:center;gap:9px;padding:6px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-family:DemiBold,PeydaRegular;font-size:12.5px;color:var(--rose-d)}
.ar-badge i{width:7px;height:7px;border-radius:50%;background:var(--rose);box-shadow:0 0 0 4px rgba(173,132,140,.18)}
.ar-head h1{margin-top:14px !important;font-size:clamp(30px,4.4vw,58px);line-height:1.3;letter-spacing:-.02em;animation:arRise .9s var(--ease) both}
.ar-head h1 em{font-style:normal;background:linear-gradient(90deg,var(--rose-d),var(--rose),#d9b7bd,var(--gold),var(--rose-d));background-size:200% 100%;
  -webkit-background-clip:text;background-clip:text;color:transparent;animation:arSheen 7s linear infinite}
.ar-sub{max-width:520px;margin-top:8px !important;font-size:15px;color:var(--sub);animation:arRise .9s var(--ease) .1s both}
.ar-lat{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:clamp(46px,7vw,110px);line-height:.9;color:transparent;-webkit-text-stroke:1px rgba(173,132,140,.35);direction:ltr;user-select:none}

/* ================= منتخب‌ها: یک کارت بزرگ + دو کارت کوچک ================= */
.ar-feat{display:grid;grid-template-columns:1.55fr 1fr;grid-template-rows:1fr 1fr;gap:16px;margin-bottom:34px}
.ar-fcard{position:relative;isolation:isolate;display:block;min-height:220px;border-radius:28px;overflow:hidden;background:var(--fill);color:#fff;
  box-shadow:0 30px 60px -44px rgba(43,28,31,.7);animation:arRise .9s var(--ease) both}
.ar-fcard:first-child{grid-row:span 2;min-height:460px}
.ar-fcard:nth-child(2){animation-delay:.1s}.ar-fcard:nth-child(3){animation-delay:.2s}
.ar-fcard img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform 1.2s var(--ease)}
.ar-fcard::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top,rgba(29,18,21,.88) 0%,rgba(29,18,21,.35) 45%,rgba(29,18,21,0) 70%)}
.ar-fcard::after{content:"";position:absolute;top:0;bottom:0;left:-60%;width:30%;z-index:0;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.22),transparent);transform:skewX(-18deg)}
.ar-fcard:hover img{transform:scale(1.06)}
.ar-fcard:hover::after{animation:arGlare 1s var(--ease)}
.ar-fbody{position:absolute;right:0;left:0;bottom:0;padding:24px 26px;display:flex;flex-direction:column;gap:8px}
.ar-pick{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;background:rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.25);font-size:11.5px}
.ar-fcard h3{font-size:clamp(18px,1.6vw,22px);line-height:1.6;color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ar-fcard:first-child h3{font-size:clamp(22px,2.4vw,32px);-webkit-line-clamp:3}
.ar-fcard p{font-size:13.5px;line-height:2;color:rgba(255,255,255,.78);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ar-fcard:not(:first-child) p{display:none}
.ar-go{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--rose-s)}
.ar-go svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--ease)}
.ar-fcard:hover .ar-go svg,.ar-item:hover .ar-go svg{transform:translateX(-5px)}

/* ================= نوار ابزار ================= */
.ar-tools{position:sticky;top:var(--ar-top,12px);z-index:5;display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px;padding:10px 10px 10px 14px;border-radius:22px;
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--line);box-shadow:0 14px 30px -26px rgba(43,28,31,.5)}
.ar-tools h2{font-size:18px;padding:0 6px}
.ar-count{font-size:13px;color:var(--sub)}
.ar-count b{font-family:DemiBold,PeydaRegular;font-weight:normal;color:var(--rose-d)}
.ar-search{flex:1;min-width:200px;display:flex;align-items:center;gap:8px;height:44px;padding:0 14px;border-radius:14px;background:var(--fill);transition:box-shadow .3s,background .3s}
.ar-search:focus-within{background:#fff;box-shadow:0 0 0 2px var(--rose)}
.ar-search svg{flex:none;width:18px;height:18px;fill:none;stroke:var(--sub);stroke-width:2;stroke-linecap:round}
.ar-search input{flex:1;min-width:0;border:0;background:none;outline:0;font:inherit;font-size:14px;color:var(--ink)}
.ar-seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:var(--fill)}
.ar-seg button{height:36px;padding:0 14px;border:0;border-radius:10px;background:none;font:inherit;font-size:13px;color:var(--sub);cursor:pointer;transition:background .3s,color .3s,box-shadow .3s}
.ar-seg button.on{background:#fff;color:var(--ink);box-shadow:0 2px 8px -3px rgba(0,0,0,.18)}

/* ================= شبکه‌ی مقالات ================= */
.ar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:18px}
.ar-item{position:relative;display:flex;flex-direction:column;border-radius:26px;overflow:hidden;background:#fff;border:1px solid var(--line);
  transition:transform .5s var(--ease),box-shadow .5s var(--ease),border-color .4s,opacity .6s var(--ease)}
.ar-item:hover{transform:translateY(-5px);box-shadow:0 30px 60px -36px rgba(138,97,105,.55);border-color:rgba(173,132,140,.35)}
.ar-img{position:relative;display:block;aspect-ratio:16/10;margin:8px 8px 0;border-radius:20px;overflow:hidden;background:var(--fill)}
.ar-img img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.ar-item:hover .ar-img img{transform:scale(1.07)}
/* عدسی کوچکی که روی عکس ظاهر می‌شود */
.ar-img::after{content:"";position:absolute;left:14px;top:14px;width:42px;height:42px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.9),rgba(255,255,255,.35) 60%,rgba(255,255,255,.15));box-shadow:inset 0 0 0 2px rgba(255,255,255,.75);
  -webkit-backdrop-filter:blur(2px) brightness(1.1);backdrop-filter:blur(2px) brightness(1.1);opacity:0;transform:scale(.6);transition:opacity .4s,transform .5s var(--ease)}
.ar-item:hover .ar-img::after{opacity:1;transform:none}
.ar-body{display:flex;flex-direction:column;gap:8px;flex:1;padding:16px 18px 18px}
.ar-num{font-family:Georgia,serif;font-style:italic;font-size:13px;color:var(--rose)}
.ar-body h2{font-size:16.5px;line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ar-body h2 a:hover{color:var(--rose-d)}
.ar-body p{font-size:13.5px;line-height:2;color:var(--sub);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ar-body .ar-go{margin-top:auto;padding-top:6px;color:var(--rose-d);font-family:DemiBold,PeydaRegular}
.ar-item.is-hide{display:none}
.ar-item.in{animation:arRise .7s var(--ease) both;animation-delay:calc(var(--i,0) * 50ms)}

.ar-empty{display:none;padding:60px 20px;text-align:center;border-radius:26px;background:#fff;border:1px dashed var(--line);color:var(--sub)}
.ar-empty svg{display:block;width:120px;margin:0 auto 14px;fill:none;stroke:var(--rose);stroke-width:2.4;stroke-linecap:round}

@media (max-width:900px){
  .ar-feat{grid-template-columns:1fr 1fr;grid-template-rows:auto}
  .ar-fcard:first-child{grid-column:1 / -1;grid-row:auto;min-height:340px}
  .ar-lat{display:none}
}
@media (max-width:560px){
  .ar{padding:18px 12px 70px}
  .ar-feat{grid-template-columns:1fr}
  .ar-fcard,.ar-fcard:first-child{min-height:260px}
  .ar-tools{position:static}
  .ar-seg{width:100%}.ar-seg button{flex:1}
  .ar-grid{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){.ar *{animation:none!important;transition:none!important}}
