/* ─────────────────────────────────────────────────────────────────────────────
   مجله آنلاین — the magazine band.
   Structure, cube carousel and its physics come straight from pakshoo.amary.ir
   (carousel.css / carousel.js / news-carousel.js). Only the ground is adapted:
   the reference paints this band near-black because its whole page is dark, here
   the page is cream, so the band keeps the same cream and the carousel runs its
   own light theme instead of the dark one.
   ───────────────────────────────────────────────────────────────────────────── */

.news{
  position:relative;
  z-index:1;
  background:#f8f4ee;
  padding-block:clamp(2rem,4.5vh,3.5rem) clamp(5rem,11vh,8rem);
  padding-inline:clamp(1rem,4vw,4rem);
  overflow-x:clip;
  font-family:'Vazirmatn',system-ui,sans-serif;
  color:#0b0b0b;
}

/* soft smoke drifting through the white of the band */
.news__smoke{
  position:absolute;
  inset:0;
  display:block;
  inline-size:100%;
  block-size:100%;
  pointer-events:none;
  z-index:2;            /* above the band, but the carousel card is clipped out */
}

.news__head{
  position:relative;
  z-index:3;
  max-inline-size:1280px;
  margin-inline:auto;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
  margin-block-end:clamp(2rem,4vh,3rem);
}

.news__title{
  font-family:'Estedad','Vazirmatn',sans-serif;
  font-weight:900;
  font-size:clamp(2rem,3.4vw,3rem);
  line-height:1.15;
  letter-spacing:0;
  margin:0;
  color:#0b0b0b;
}

.news__all{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  min-block-size:44px;
  font-size:.85rem;
  letter-spacing:0;
  color:rgba(11,11,11,.52);
  text-decoration:none;
  white-space:nowrap;
  transition:color .2s linear;
}
.news__all span{transition:transform .2s ease}
.news__all:hover{color:#0b0b0b}
.news__all:hover span{transform:translateX(-3px)}

/* the carousel band itself */
.news-carousel{
  position:relative;
  z-index:1;
  max-inline-size:1080px;
  margin-inline:auto;
  padding-block:1.5rem;
}

/* arrows: same 38px target as the reference, tuned for the cream ground */
.news-carousel .carousel-arrow{
  width:38px;
  height:38px;
  color:rgba(11,11,11,.82);
  background:rgba(255,255,255,.62);
  box-shadow:inset 0 0 0 1px rgba(11,11,11,.10), 0 10px 24px -16px rgba(11,11,11,.45);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
.news-carousel .carousel-arrow:not(:disabled):hover{
  color:#0b0b0b;
  background:rgba(255,255,255,.9);
  box-shadow:inset 0 0 0 1px rgba(11,11,11,.18), 0 10px 24px -14px rgba(11,11,11,.5);
  filter:none;
}

/* dots under the cube */
.news-carousel .carousel-dot{background:rgba(11,11,11,.16)}
.news-carousel .carousel-dot[aria-current="true"],
.news-carousel .carousel-dot.is-active{background:rgba(11,11,11,.62)}

@media (max-width:760px){
  .news__head{flex-direction:column;align-items:flex-start}
  .news-carousel{padding-block:1rem}
}

@media (prefers-reduced-motion:reduce){
  .news__all span{transition:none}
}
