/* =========================
   Psych with Kumi — CLEAN CSS (v2)
   Stable for EN + ZH
   ========================= */

:root{
  --bg:#fff6f9;
  --panel:#ffffff;

  --text:#2d2a32;
  --muted:#7c6f78;
  --muted-2:#a79aa2;

  --line:#f3d6e2;

  --accent:#e88bb3;
  --accent-soft:#fde8f1;

  --shadow: 0 10px 25px rgba(232,139,179,.15);
  --shadow-strong: 0 16px 35px rgba(232,139,179,.20);

  --radius:22px;

  /* site container width */
  --max:980px;

  /* article width (posts/interviews) */
  --article-max:1000px;
}

/* ============ Base ============ */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family:'Poppins', sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 20px;
}

.section{ padding:70px 0; }

main > .section:nth-child(even){
  background:rgba(255,255,255,.45);
}

/* Type */
h1,h2,h3{ margin:0 0 10px; letter-spacing:-0.02em; }
h1{ font-size:42px; font-weight:700; letter-spacing:-0.03em; }
h2{ font-size:26px; font-weight:600; }
h3{ font-size:18px; font-weight:600; }

p{ margin:0 0 14px; }
.muted{ color:var(--muted); }

a{ color:inherit; }

/* ============ Header + Nav ============ */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:#ffffffcc;
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 0;
}

.brand{
  text-decoration:none;
  color:var(--text);
  font-weight:700;
  font-size:16px;
}

/* Works for <nav class="nav"> or any direct nav links */
.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* Language switch (EN/中文 pills) */
.lang-switch{
  margin-left:auto;
  display:flex;
  gap:8px;
  align-items:center;
}

.lang-btn{
  text-decoration:none;
  font-size:13px;
  font-weight:500;          /* not bold */
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  transition:0.2s;
}

.lang-btn:hover{
  background:var(--accent-soft);
  color:var(--accent);
}

.lang-btn.active{
  background:var(--accent-soft);
  color:var(--accent);
  border-color: rgba(232,139,179,.55);
}

/* Optional menu button */
.nav-toggle{
  display:none;
  font-family:'Poppins', sans-serif;
  font-size:14px;
  font-weight:600;
  color:var(--text);
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  box-shadow: 0 6px 14px rgba(232,139,179,.12);
}

/* Optional dropdown UL menu */
.nav-menu{
  display:flex;
  gap:10px;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
}

.nav-menu a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 12px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  transition:0.2s;
}

.nav-menu a:hover{
  background:var(--accent-soft);
  color:var(--accent);
}

.nav-menu .pill{
  background:var(--accent);
  color:#fff;
  font-weight:600;
}

/* ============ Buttons + Links ============ */
.btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border:1px solid transparent;
  box-shadow:var(--shadow);
  transition:0.2s;
}
.btn:hover{ transform:translateY(-2px); }

.btn.ghost{
  background:#fff;
  color:var(--accent);
  border:1px solid rgba(232,139,179,.55);
  box-shadow:none;
}

.btn.small{
  padding:8px 12px;
  font-size:13px;
}

.link{
  color:var(--accent);
  text-decoration:none;
  font-weight:500;
}
.link:hover{ text-decoration:underline; }

/* ============ Cards ============ */
.card{
  background:var(--panel);
  border:1px solid rgba(232,139,179,.25);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow);
  transition:0.2s;

  display:flex;
  flex-direction:column;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-strong);
}

.card-title{ margin:0 0 6px; }

/* CTA always sits at bottom */
.card .link,
.card .btn{
  margin-top:auto;
  align-self:flex-start;
}

/* Prevent "double white boxes" if you accidentally nest cards */
.card .card{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}

/* Tags row */
.meta-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.pill-tag{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:var(--accent-soft);
  color:var(--accent);
  border:1px solid var(--line);
}

/* ============ Section Head ============ */
.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.section-actions{
  display:flex;
  align-items:center;
  gap:12px;
}

/* ============ Grids ============ */
/* generic grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
  margin-top:18px;
  align-items:stretch;
}

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .grid{ grid-template-columns: 1fr; }
}

/* Interviews listing pages: /interviews/ and /zh/interviews/ */
body.interviews-page .mag-grid{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-top:20px;
}
body.interviews-page .mag-grid > *{
  width:100%;
}

/* ============ Article Pages (Posts + Interviews) ============ */
/* If your HTML is <article class="card post-content"> ... */
.post-content,
.interview{
  max-width:var(--article-max);
  margin:18px auto 0;
}

/* Make them feel like one centered white block */
.post-content.card,
.interview.card{
  padding:30px;
}

/* Article images */
.post-content img,
.interview img{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  margin:14px auto;
  border-radius:16px;
  box-shadow:0 8px 18px rgba(232,139,179,.15);
}

/* ============ Universal Article Footer (for ALL posts/interviews) ============ */
.article-footer{
  margin-top:40px;
  padding-top:18px;
  border-top:1px solid var(--line);

  font-size:12px;
  line-height:1.6;
  color:var(--muted-2);
}

.article-footer .article-meta{ margin-bottom:4px; }
.article-footer .article-note{ margin-bottom:8px; }

.article-footer strong{
  font-weight:400;
  color:inherit;
}

/* ============ Posts list (JS generated) ============ */
#postList > *,
#postsList > *{
  height:100%;
  display:flex;
  flex-direction:column;
}
#postList > * .btn,
#postList > * .link,
#postsList > * .btn,
#postsList > * .link{
  margin-top:auto;
  align-self:flex-start;
}

/* ============ Coming Soon (disable) ============ */
.coming-soon{
  pointer-events:none;
  opacity:.6;
  cursor:not-allowed;
  text-decoration:none;
}

/* ============ Site Footer ============ */
.site-footer{
  border-top:1px solid var(--line);
  padding:30px 0;
  margin-top:60px;
  background:#ffffffcc;
  font-size:13px;
  color:var(--muted-2);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}

/* ============ Utilities ============ */
.hidden{ display:none; }
[hidden]{ display:none !important; }

/* ============ Homepage profile layout (text left, image right) ============ */
/* IMPORTANT:
   Only activates if you wrap the profile area with class="profile-card"
   and inside it you have .profile-text and .profile-media
*/
.profile-card{
  display:flex;
  gap:20px;
  align-items:stretch;
}

.profile-text{ flex:1; min-width:280px; }
.profile-media{ flex:1; min-width:280px; }

.profile-media img{
  width:100%;
  max-height:420px;
  object-fit:cover;
  border-radius:16px;
  display:block;
}

/* ============ Mobile ============ */
@media (max-width:900px){
  .nav-toggle{ display:inline-block; }

  .nav-menu{
    display:none;
    position:absolute;
    right:20px;
    top:64px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:10px;
    flex-direction:column;
    align-items:stretch;
    min-width:220px;
    box-shadow:var(--shadow);
  }
  .nav-menu.open{ display:flex; }

  .lang-switch{ margin-left:0; }

  .post-content.card,
  .interview.card{ padding:22px; }

  .profile-card{ flex-direction:column; }
}
/* =========================
   HERO FIX (force white box + correct image size)
   ========================= */

.hero .hero-card{
  padding: 34px;                /* card already white via .card */
}

.hero .hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;   /* 左闊右窄 */
  gap: 28px;
  align-items: center;
}

.hero .hero-media{
  width: 100%;
}

.hero img.profile-image{
  width: 100%;
  max-height: 340px;            /* ✅ 圖片唔會再爆 */
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Mobile: stack */
@media (max-width: 900px){
  .hero .hero-card{ padding: 22px; }
  .hero .hero-grid{ grid-template-columns: 1fr; }
  .hero img.profile-image{ max-height: 360px; }
}
/* =========================
   HERO — force 1 white card, text left / image right
   Matches your current HTML exactly
   ========================= */

.hero{
  padding: 60px 0;               /* 令 hero 同其他 section 一致 */
}

.hero .hero-card{
  padding: 34px;                 /* 比普通 card 大少少，好睇 */
}

/* 左右排版 */
.hero .hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr; /* 左闊右窄，圖唔會太大 */
  gap: 28px;
  align-items: center;
}

/* 右邊圖片容器 */
.hero .hero-media{
  width: 100%;
}

/* 你張相用 class="profile-image" —— 直接鎖死佢大小 */
.hero img.profile-image{
  width: 100%;
  max-height: 340px;             /* ✅ 限制高度，唔會再爆 */
  object-fit: cover;             /* ✅ 剪裁保持靚 */
  border-radius: 16px;
  display: block;
}

/* 手機：上下排 */
@media (max-width: 900px){
  .hero{ padding: 40px 0; }
  .hero .hero-card{ padding: 22px; }
  .hero .hero-grid{ grid-template-columns: 1fr; }
  .hero img.profile-image{ max-height: 360px; }
}