/* ==========================================================================
   Articles page — modern editorial layout (PHP template page-articles.php).
   Uses the site-wide --rf-* tokens from reyan.css.
   ========================================================================== */
.art-page { background: #fff; color: var(--rf-ink); font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.art-page .container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Hero ---------- */
.art-hero { position: relative; padding: 96px 0 54px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #faf7f4 0%, #ffffff 100%); }
.art-hero::before { content: ""; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,123,32,.16), transparent 64%); pointer-events: none; }
.art-eyebrow { position: relative; text-transform: uppercase; letter-spacing: .24em; font-size: .78rem;
  font-weight: 700; color: var(--rf-orange); margin-bottom: 18px; }
.art-title { position: relative; font-family: "Sora", sans-serif; font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -.02em; }
.art-title span { background: linear-gradient(120deg, var(--rf-orange), var(--rf-orange-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.art-sub { position: relative; max-width: 580px; margin: 20px auto 0; color: var(--rf-muted); font-size: 1.06rem; line-height: 1.6; }

/* ---------- Featured (latest) ---------- */
.art-featured-wrap { padding: 26px 0 6px; }
.art-featured { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 26px; overflow: hidden;
  background: var(--rf-ink); color: #fff; box-shadow: 0 34px 80px -34px rgba(0,0,0,.5); }
.art-featured__media { position: relative; display: block; min-height: 400px; overflow: hidden; }
.art-featured__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--rf-ease); }
.art-featured:hover .art-featured__media img { transform: scale(1.06); }
.art-featured__body { padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.art-tag { align-self: flex-start; background: linear-gradient(120deg, var(--rf-orange), var(--rf-orange-2));
  color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 20px; }
.art-featured__body h2 { font-family: "Sora", sans-serif; font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.2; margin-bottom: 16px; }
.art-featured__body h2 a { color: #fff; }
.art-featured__body h2 a:hover { color: var(--rf-orange-2); }
.art-featured__body p { color: rgba(255,255,255,.7); margin-bottom: 24px; line-height: 1.65; }
.art-meta { display: flex; align-items: center; gap: 11px; font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 26px; }
.art-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--rf-orange); }
.art-readmore { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--rf-orange-2); }
.art-readmore svg, .art-card__more svg { transition: transform .3s var(--rf-ease); }
.art-readmore:hover svg { transform: translateX(5px); }

/* ---------- Grid ---------- */
.art-grid-wrap { padding: 60px 0 104px; }
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.art-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e8e6;
  border-radius: 20px; overflow: hidden;
  transition: transform .4s var(--rf-ease), box-shadow .4s var(--rf-ease), border-color .4s; }
.art-card:hover { transform: translateY(-8px); box-shadow: 0 28px 54px -26px rgba(0,0,0,.3); border-color: transparent; }
.art-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden;
  background: linear-gradient(135deg, #2a2a30, #15151a); }
.art-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--rf-ease); }
.art-card:hover .art-card__media img { transform: scale(1.07); }
.art-card__date { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--rf-ink);
  font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.art-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.art-card__body h3 { font-family: "Sora", sans-serif; font-size: 1.12rem; line-height: 1.32; }
.art-card__body h3 a { color: var(--rf-ink); transition: color .3s; }
.art-card__body h3 a:hover { color: var(--rf-orange); }
.art-card__body p { color: var(--rf-muted); font-size: .92rem; line-height: 1.55; flex: 1; }
.art-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-weight: 700; font-size: .85rem; color: var(--rf-orange); }
.art-card__more:hover svg { transform: translateX(4px); }

/* ---------- Podcast play button (shared listing design, podcast variant) ---------- */
.art-play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.art-play span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(244, 123, 32, .94); color: #fff; box-shadow: 0 12px 32px -8px rgba(244,123,32,.85);
  transition: transform .4s var(--rf-ease), background .3s; }
.art-featured:hover .art-play span, .art-card:hover .art-play span { transform: scale(1.12); background: var(--rf-orange); }
.art-play svg { margin-left: 3px; }
/* podcast images often have faces — darken slightly so the play button reads */
.art-card--pod .art-card__media::after, .art-featured--pod .art-featured__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.28)); }

/* ---------- Pagination ---------- */
.art-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 56px; }
.art-pager__num, .art-pager__btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 14px; border-radius: 12px; border: 1px solid #e8e8e6; background: #fff;
  font-weight: 700; font-size: .9rem; color: var(--rf-ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--rf-ease);
}
.art-pager__num:hover, .art-pager__btn:hover { border-color: var(--rf-orange); color: var(--rf-orange); transform: translateY(-2px); }
.art-pager__num.is-active {
  background: linear-gradient(120deg, var(--rf-orange), var(--rf-orange-2));
  border-color: transparent; color: #fff; box-shadow: 0 10px 22px -10px rgba(244,123,32,.7);
}
.art-pager__num.is-active:hover { color: #fff; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .art-featured { grid-template-columns: 1fr; }
  .art-featured__media { min-height: 260px; }
  .art-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .art-hero { padding: 74px 0 42px; }
  .art-featured__body { padding: 34px 26px; }
  .art-grid { grid-template-columns: 1fr; }
}
