/* «المقالات» — «الملصق»: the latest article as the big lead story, the next two as rows beside it.
   Every card has a round arrow button (inside the card's link). Plain light background. */
.mct-articles{padding-block:110px 120px;background:var(--mct-light)}
.mar-top{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.mar-empty{margin-top:40px;color:var(--mct-mute)}
.mar-cards{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;margin-top:50px}
.mar-cards.is-one{grid-template-columns:1fr}
.mar-side{display:grid;grid-template-rows:1fr 1fr;gap:28px}
.mar-side:has(> :only-child){grid-template-rows:1fr} /* only two articles: the row fills the height */
.mar-more{display:flex;justify-content:center;margin-top:46px}

.mar-card{position:relative;display:block;color:var(--mct-ink);text-decoration:none;border-radius:22px;overflow:hidden;transition:translate .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s}
.mar-card:hover,.mar-card:focus-visible{color:var(--mct-ink);box-shadow:0 30px 50px -30px rgb(var(--mct-ink-rgb) / .55)}
.mar-ph{display:block;overflow:hidden;background:var(--mct-paper-2)}
.mar-ph img{width:100%;height:100%;object-fit:cover;display:block;transition:scale 1.1s cubic-bezier(.2,.8,.2,1)}
.mar-card:hover .mar-ph img,.mar-card:focus-visible .mar-ph img{scale:1.07}
.mar-chip{display:inline-flex;padding:3px 11px;border-radius:999px;background:var(--mct-orange-soft);color:var(--mct-orange-txt);font-size:12.5px;font-weight:700}
.mar-title{margin:0;font-weight:800;line-height:1.5;color:inherit}
.mar-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:13px;color:var(--mct-mute)}
.mar-meta span{display:inline-flex;align-items:center;gap:5px}
.mar-meta i{width:4px;height:4px;border-radius:50%;background:currentColor;opacity:.5}
.mar-meta .mct-i{width:14px;height:14px}

/* the round arrow button: turns orange and points up-forward on hover */
.mar-go{position:absolute;z-index:3;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--mct-ink);color:#fff6e6;transition:background .35s, color .35s, scale .35s}
.mar-go .mct-i{width:20px;height:20px;transition:rotate .35s cubic-bezier(.2,.8,.2,1)}
[dir="ltr"] .mar-go .mct-i{transform:scaleX(-1)}
.mar-card:hover .mar-go,.mar-card:focus-visible .mar-go{background:var(--mct-orange);color:var(--mct-ink);scale:1.08}
.mar-card:hover .mar-go .mct-i,.mar-card:focus-visible .mar-go .mct-i{rotate:45deg}
[dir="ltr"] .mar-card:hover .mar-go .mct-i,[dir="ltr"] .mar-card:focus-visible .mar-go .mct-i{rotate:-45deg}

/* the big lead story: photo fills the card, text over a dark fade */
.mar-card.is-big{min-height:520px;color:#fff;isolation:isolate}
.mar-card.is-big:hover,.mar-card.is-big:focus-visible{color:#fff}
.is-big .mar-ph{position:absolute;inset:0;z-index:-2}
.is-big::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(to top, rgb(var(--mct-stage-rgb) / .94) 0%, rgb(var(--mct-stage-rgb) / .55) 45%, rgb(var(--mct-stage-rgb) / .05) 75%)}
.is-big .mar-body{position:absolute;inset:auto 0 0;display:grid;gap:12px;justify-items:start;padding:34px;padding-inline-end:100px}
.is-big .mar-chip{background:var(--mct-orange);color:var(--mct-ink)}
.is-big .mar-title{font-size:clamp(22px,2.2vw,30px);line-height:1.45}
.mar-ex{font-size:15px;line-height:1.85;color:#eadbc6;max-width:56ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.is-big .mar-meta{color:#d9c6ad}
.is-big .mar-go{inset-inline-end:30px;bottom:34px;width:56px;height:56px;background:var(--mct-cream);color:var(--mct-ink)}

/* the side rows: square photo + text */
.mar-card.is-row{display:grid;grid-template-columns:40% 1fr;gap:20px;align-items:center;padding:12px;background:var(--mct-card);border:1px solid #ebe2d3}
.mar-card.is-row:hover,.mar-card.is-row:focus-visible{translate:0 -5px}
.is-row .mar-ph{height:100%;min-height:200px;border-radius:15px}
.is-row .mar-body{display:grid;gap:8px;justify-items:start;padding-block:10px 56px;padding-inline-end:10px}
.mar-no{font-size:14px;font-weight:900;color:var(--mct-gold);letter-spacing:.04em}
.is-row .mar-title{font-size:18px}
.is-row .mar-go{inset-inline-end:16px;bottom:16px;width:42px;height:42px}
.is-row .mar-go .mct-i{width:18px;height:18px}

@media (max-width:1000px){
  .mar-cards{grid-template-columns:1fr}
  .mar-card.is-big{min-height:460px}
}
@media (max-width:640px){
  .mct-articles{padding-block:80px 96px}
  .mar-cards,.mar-side{gap:16px}
  .mar-card.is-big{min-height:440px}
  .is-big .mar-body{padding:22px;padding-inline-end:22px;padding-bottom:88px}
  .is-big .mar-go{inset-inline-end:auto;inset-inline-start:22px;bottom:22px;width:50px;height:50px}
  .mar-card.is-row{grid-template-columns:36% 1fr;gap:14px;padding:10px}
  .is-row .mar-ph{min-height:140px}
  .is-row .mar-title{font-size:16px}
  .is-row .mar-body{padding-bottom:50px}
  .is-row .mar-go{width:38px;height:38px;inset-inline-end:12px;bottom:12px}
}
@media (prefers-reduced-motion: reduce){.mar-card,.mar-ph img,.mar-go,.mar-go .mct-i{transition:none}}
