/* ══ PAGE ══ */
.page-wrap { max-width: 1380px; margin: 0 auto; padding: 0 2.5rem; }
 
/* Section label */
.sec-label { display: flex; align-items: center; gap: 1rem; padding: 2.5rem 0 1.25rem; }
.sec-bar { width: 4px; height: 22px; background: var(--p); border-radius: 2px; flex-shrink: 0; }
.sec-label h2 { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2); white-space: nowrap; }
.sec-line { flex: 1; height: 1px; background: var(--line); }
.sec-label a { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink4); transition: color 0.2s; white-space: nowrap; }
.sec-label a:hover { color: var(--p); }
 
/* Category pill */
.cat-pill { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p); }
.paid-badge { background: var(--p); color: #fff; font-family: var(--mono); font-size: 0.52rem; letter-spacing: 0.1em; padding: 0.18rem 0.5rem; border-radius: 2px; display: inline-block; vertical-align: middle; margin-left: 5px; }
 
/* Read arrow */
.read-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.22); padding: 0.45rem 1rem; border-radius: 4px; transition: all 0.2s; cursor: pointer; }
.read-arrow:hover { background: var(--p); border-color: var(--p); color: #fff; }
 
/* ─── IMAGE CONTAINERS — object-fit:cover, never crops badly ─── */
/* Every image wrapper uses position:relative + overflow:hidden.
   The <img> inside gets position:absolute; inset:0; width:100%; height:100%; object-fit:cover
   This ensures the image fills the space perfectly without distortion. */
 
.img-box {
  position: relative;
  overflow: hidden;
  background: var(--surf2);
  flex-shrink: 0;
}
 
/* Placeholder shown when WP has no featured image — 
   WP: use has_post_thumbnail() to conditionally show placeholder or <img> */
.img-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
}
.img-ph svg { opacity: 0.18; }
.img-ph span { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink4); }
 
/* WP image tag — paste inside every .img-box:
   <img src="<?php echo get_the_post_thumbnail_url(get_the_ID(),'large'); ?>"
        alt="<?php the_title_attribute(); ?>"
        style="position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;"> */
 
/* ══════════════════════════════
   ① HERO — WP: post 1, date DESC
══════════════════════════════ */
.hero-wrap { padding-top: 2rem; padding-bottom: 2.5rem; }
 
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  min-height: 480px;
}
 
/* Left big hero */
.hero-main { position: relative; background: var(--ink); }
 
.hero-main .img-box {
  position: absolute;
  inset: 0;
}
 
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,6,18,0.93) 0%, rgba(8,6,18,0.4) 55%, transparent 100%);
  z-index: 1; pointer-events: none;
}
 
.hero-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2rem 2.5rem 2.5rem;
  z-index: 2;
}
 
.hero-cat-badge { background: var(--p); color: #fff; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.75rem; border-radius: 2px; display: inline-block; margin-bottom: 0.85rem; }
 
.hero-title { font-family: var(--serif); font-size: 2.3rem; font-weight: 400; color: #fff; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
 
.hero-excerpt { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.65; margin-bottom: 1.5rem; max-width: 500px; }
 
/* Right stack — posts 2,3,4 */
/* WP: offset=1, posts_per_page=3, date DESC */
.hero-stack { border-left: 1px solid var(--line); display: flex; flex-direction: column; background: var(--white); }
 
.stack-post { flex: 1; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.18s; overflow: hidden; }
.stack-post:last-child { border-bottom: none; }
.stack-post:hover { background: var(--off); }
 
.stack-post .img-box { width: 100%; height: 130px; flex-shrink: 0; }
 
.stack-cat-badge { position: absolute; top: 0.6rem; left: 0.6rem; background: rgba(255,255,255,0.92); color: var(--p); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em; padding: 0.18rem 0.55rem; border-radius: 2px; z-index: 2; }
 
.stack-body { padding: 0.9rem 1.1rem 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.stack-title { font-family: var(--serif); font-size: 0.97rem; line-height: 1.3; color: var(--ink); }
 
/* ══════════════════════════════
   ② 4-COL GRID — WP: posts 5–8, date DESC
══════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  margin-bottom: 2.5rem;
}
 
.grid-post { background: var(--white); cursor: pointer; transition: background 0.18s; display: flex; flex-direction: column; }
.grid-post:hover { background: var(--off); }
 
.grid-post .img-box { width: 100%; height: 180px; }
 
.grid-cat-tag { position: absolute; bottom: 0.6rem; left: 0.6rem; background: rgba(255,255,255,0.9); color: var(--p); font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.1em; padding: 0.18rem 0.55rem; border-radius: 2px; z-index: 2; }
 
.grid-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.grid-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; color: var(--ink); flex: 1; }
.grid-excerpt { font-size: 0.78rem; color: var(--ink3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.grid-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; border-top: 1px solid var(--line); margin-top: auto; }
.read-time { font-family: var(--mono); font-size: 0.6rem; color: var(--ink4); }
.read-link { font-family: var(--mono); font-size: 0.6rem; color: var(--p); }
 
/* ══════════════════════════════
   ③ FEATURE + LIST — WP: post 9 + posts 10–14
══════════════════════════════ */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; margin-bottom: 2.5rem; }
 
.feature-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; box-shadow: 0 2px 16px rgba(0,0,0,0.05); transition: box-shadow 0.2s; background: var(--white); }
.feature-card:hover { box-shadow: 0 6px 30px rgba(0,0,0,0.1); }
 
.feature-card .img-box { width: 100%; height: 260px; }
 
.feature-cat-badge { position: absolute; top: 0.85rem; left: 0.85rem; background: var(--p); color: #fff; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; padding: 0.25rem 0.7rem; border-radius: 2px; z-index: 2; }
 
.feature-body { padding: 1.4rem 1.5rem 1.5rem; }
.feature-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; color: var(--ink); margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.feature-excerpt { font-size: 0.84rem; color: var(--ink3); line-height: 1.65; margin-bottom: 1rem; }
.feature-foot { border-top: 1px solid var(--line); padding-top: 1rem; }
 
/* List posts */
.list-posts { display: flex; flex-direction: column; }
.list-post { display: grid; grid-template-columns: 88px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity 0.18s; }
.list-post:first-child { padding-top: 0; }
.list-post:last-child { border-bottom: none; }
.list-post:hover { opacity: 0.7; }
 
.list-post .img-box { height: 66px; border-radius: 6px; width: 88px; flex-shrink: 0; }
 
.list-body { display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; }
.list-cat { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--p); text-transform: uppercase; }
.list-title { font-family: var(--serif); font-size: 0.92rem; line-height: 1.3; color: var(--ink); }
 
/* ══════════════════════════════
   ④ MORE + MOST READ — WP: posts 15–19 + most-read
══════════════════════════════ */
.bottom-section { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
 
.more-list { display: flex; flex-direction: column; }
.more-post { display: grid; grid-template-columns: 110px 1fr; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: opacity 0.18s; }
.more-post:last-child { border-bottom: none; }
.more-post:hover { opacity: 0.7; }
.more-post .img-box { height: 76px; border-radius: 6px; width: 110px; flex-shrink: 0; }
.more-body { display: flex; flex-direction: column; justify-content: center; gap: 0.35rem; }
.more-cat { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; color: var(--p); text-transform: uppercase; }
.more-title { font-family: var(--serif); font-size: 1rem; line-height: 1.3; color: var(--ink); }
 
/* Most read widget */
.mr-widget { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; position: sticky; top: 120px; }
.w-head { padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 0.55rem; }
.w-head-bar { width: 3px; height: 14px; background: var(--p); border-radius: 2px; flex-shrink: 0; }
.w-head span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); }
 
.mr-item { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background 0.18s; }
.mr-item:last-child { border-bottom: none; }
.mr-item:hover { background: var(--off); }
.mr-num { font-family: var(--serif); font-style: italic; font-size: 1.55rem; color: var(--line2); line-height: 1; min-width: 22px; padding-top: 1px; }
.mr-title { font-family: var(--sans); font-size: 0.8rem; font-weight: 400; color: var(--ink2); line-height: 1.4; }
 
/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,0.4); margin-top: 2rem; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; top: 0; right: 0; width: 480px; height: 100%; background: repeating-linear-gradient(-45deg, transparent, transparent 28px, rgba(91,63,166,0.07) 28px, rgba(91,63,166,0.07) 29px); pointer-events: none; }
footer::after { content: ''; position: absolute; top: -80px; right: -80px; width: 380px; height: 380px; border: 1px solid rgba(91,63,166,0.12); border-radius: 50%; pointer-events: none; }
.footer-circle { position: absolute; top: 40px; right: 130px; width: 200px; height: 200px; border: 1px solid rgba(91,63,166,0.08); border-radius: 50%; pointer-events: none; }
 
.footer-main { max-width: 1380px; margin: 0 auto; padding: 4rem 2.5rem 2.5rem; position: relative; z-index: 1; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; }
 
.footer-logo-wrap { display: flex; align-items: flex-end; gap: 1px; margin-bottom: 0.3rem; text-decoration: none; }
.fl-black { font-family: var(--syne); font-weight: 800; font-size: 2.2rem; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.fl-purple { font-family: var(--syne); font-weight: 800; font-size: 1rem; color: var(--p2); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 7px; border-bottom: 2.5px solid var(--p2); padding-bottom: 1px; line-height: 1; display: inline-block; }
.footer-tagline { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.18); margin-bottom: 1.1rem; }
.footer-desc { font-size: 0.8rem; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,0.3); margin-bottom: 1.5rem; max-width: 300px; }
 
.social-row { display: flex; gap: 0.55rem; }
.soc-btn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.2s; flex-shrink: 0; text-decoration: none; }
.soc-btn:hover { border-color: var(--p2); color: var(--p2); background: rgba(91,63,166,0.12); }
 
.footer-col h4 { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a { font-size: 0.8rem; font-weight: 300; color: rgba(255,255,255,0.32); transition: color 0.2s; }
.footer-col ul a:hover { color: rgba(255,255,255,0.8); }
 
.footer-div { max-width: 1380px; margin: 0 auto; height: 1px; background: rgba(255,255,255,0.06); position: relative; z-index: 1; }
.footer-bot { max-width: 1380px; margin: 0 auto; padding: 1.25rem 2.5rem; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.footer-bot-left { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; color: rgba(255,255,255,0.18); }
.footer-bot-right { display: flex; gap: 1.5rem; }
.footer-bot-right a { font-family: var(--mono); font-size: 0.58rem; color: rgba(255,255,255,0.18); transition: color 0.2s; }
.footer-bot-right a:hover { color: rgba(255,255,255,0.6); }
 
/* Scroll top */
.scroll-top { position: fixed; bottom: 1.75rem; right: 1.75rem; width: 42px; height: 42px; background: var(--ink); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s, background 0.2s; z-index: 999; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--p); }
 
/* Fade up */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
 
/* img hover zoom inside img-box */
.img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }
.stack-post:hover .img-box img,
.grid-post:hover .img-box img,
.feature-card:hover .img-box img,
.list-post:hover .img-box img,
.more-post:hover .img-box img { transform: scale(1.04); }