/* ============================================================= */
/* ============ HEALTH JOURNAL — blog index + article ========== */
/* ============================================================= */

/* ---- Category cover gradients (shared by cards, hero, article) ---- */
.cover {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3a3552, #231f20);
  isolation: isolate;
}

.cover::after {
  /* soft radial sheen */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 15% 12%, rgba(255, 255, 255, 0.22), transparent 55%);
  z-index: -1;
}

.cover--chronic   { background: linear-gradient(135deg, #0f766e, #134e4a); }
.cover--nutrition { background: linear-gradient(135deg, #3f8f3a, #1f5a2e); }
.cover--skincare  { background: linear-gradient(135deg, #e26d8a, #b03f63); }
.cover--seasonal  { background: linear-gradient(135deg, #2f7fb0, #1d4e73); }
.cover--wellness  { background: linear-gradient(135deg, #ec1c3a, #a11530); }
.cover--devices   { background: linear-gradient(135deg, #6c5ce7, #3f34a3); }
.cover--lifestyle { background: linear-gradient(135deg, #d98a2b, #a85f18); }
.cover--pharmacy  { background: linear-gradient(135deg, #475569, #1e293b); }

.cover-cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
}

.cover-mark {
  position: absolute;
  right: -6px;
  bottom: -14px;
  font-size: 108px;
  line-height: 1;
  opacity: 0.16;
  transform: rotate(-8deg);
  transition: transform 0.6s var(--ease-out-expo), opacity 0.4s;
}

.cover-mark--lg {
  font-size: 220px;
  right: 4%;
  bottom: -40px;
  opacity: 0.14;
}

.dot-sep {
  opacity: 0.4;
  margin: 0 2px;
}

/* ================= HERO ================= */
.blog-hero {
  background: var(--paper);
  padding: 160px var(--pad-x) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
}

.blog-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-hero-title {
  font-family: var(--font-sans);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-top: 26px;
}

.blog-hero-title em {
  font-style: normal;
  color: var(--sage);
}

.blog-hero-sub {
  margin-top: 26px;
  max-width: 62ch;
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  opacity: 0.72;
}

/* ================= FEATURED ================= */
.blog-featured {
  background: var(--paper);
  padding: clamp(40px, 6vw, 72px) var(--pad-x);
}

.feat-card {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-soft), border-color 0.4s;
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 28, 58, 0.2);
  box-shadow: 0 26px 60px rgba(35, 31, 32, 0.14);
}

.feat-cover {
  border-radius: 18px;
  min-height: 340px;
}

.feat-card:hover .cover-mark {
  transform: rotate(0deg) scale(1.06);
}

.feat-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 26px 20px 8px;
}

.feat-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.fx-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--sage);
  padding: 5px 11px;
  border-radius: 999px;
}

.fx-read {
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.55;
}

.feat-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.feat-excerpt {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.72;
  max-width: 46ch;
}

.feat-meta {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.6;
}

.feat-cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--sage);
}

.feat-cta .btn-arrow {
  transition: transform 0.35s var(--ease-out-expo);
}

.feat-card:hover .feat-cta .btn-arrow {
  transform: translate(3px, -3px);
}

/* ================= LIST + FILTER ================= */
.blog-list {
  background: var(--paper);
  padding: clamp(32px, 4vw, 56px) var(--pad-x) clamp(64px, 8vw, 110px);
}

.bl-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.bl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.bl-heading {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bl-chip {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.25s var(--ease-out-soft);
}

.bl-chip:hover {
  border-color: var(--ink);
}

.bl-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
}

.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-soft), border-color 0.4s;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 28, 58, 0.2);
  box-shadow: 0 22px 44px rgba(35, 31, 32, 0.12);
}

.post-cover {
  aspect-ratio: 16 / 10;
}

.post-card:hover .cover-mark {
  transform: rotate(0deg) scale(1.08);
  opacity: 0.22;
}

.post-body {
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-read {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.5;
}

.post-title {
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.post-excerpt {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.7;
  flex: 1;
}

.post-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  opacity: 0.6;
}

.bl-empty {
  padding: 60px 0;
  text-align: center;
  opacity: 0.6;
}

/* ================= NEWSLETTER CTA ================= */
.blog-cta {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vw, 100px) var(--pad-x);
}

.bc-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

.blog-cta .tag {
  background: rgba(244, 241, 234, 0.08);
  color: var(--paper);
}

.bc-title {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.bc-title em {
  font-style: normal;
  color: var(--accent-soft, #f44d68);
}

.bc-sub {
  margin-top: 16px;
  opacity: 0.7;
  font-size: 15px;
  line-height: 1.6;
  max-width: 44ch;
}

.bc-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bc-form input {
  flex: 1;
  min-width: 200px;
  font: inherit;
  font-size: 15px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--btn-radius);
  padding: 15px 18px;
}

.bc-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.bc-form input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
}

.bc-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #7ee0a8;
}

/* ============================================================= */
/* ==================== ARTICLE DETAIL ========================= */
/* ============================================================= */
.article {
  background: var(--paper);
}

.art-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 150px var(--pad-x) 0;
  text-align: center;
}

.art-crumbs {
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 26px;
}

.art-crumbs a {
  transition: color 0.2s;
}

.art-crumbs a:hover {
  color: var(--sage);
}

.art-crumbs .sep {
  margin: 0 8px;
  opacity: 0.5;
}

.art-cat-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
}

.art-title {
  margin-top: 22px;
  font-family: var(--font-sans);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.art-lede {
  margin: 22px auto 0;
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
  opacity: 0.72;
}

.art-meta {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  opacity: 0.62;
}

.art-author {
  color: var(--sage);
}

.art-cover {
  max-width: var(--max-w);
  margin: clamp(40px, 5vw, 64px) auto 0;
  border-radius: 24px;
  height: clamp(220px, 34vw, 420px);
}

/* Body layout: readable column + sticky aside */
.art-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 720px) 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.art-body {
  font-size: 17px;
  line-height: 1.75;
  color: #33302f;
}

.art-body h2 {
  font-family: var(--font-sans);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 42px 0 14px;
  color: var(--ink);
}

.art-body h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 10px;
  color: var(--ink);
}

.art-body p {
  margin: 0 0 20px;
}

.art-body ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.art-body ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
}

.art-body ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}

.art-body strong {
  font-weight: 650;
  color: var(--ink);
}

.art-body blockquote {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid var(--sage);
  background: rgba(236, 28, 58, 0.05);
  border-radius: 0 14px 14px 0;
  font-size: 16px;
  line-height: 1.6;
  font-style: italic;
  color: #443f3e;
}

.art-disclaimer {
  margin-top: 44px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  opacity: 0.75;
}

.art-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.art-share-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.art-share a {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.25s var(--ease-out-soft);
}

.art-share a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* Aside / author card */
.art-aside {
  position: sticky;
  top: 110px;
}

.art-authorcard {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  background: #fff;
}

.aa-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 14px;
}

.aa-name {
  font-weight: 600;
  font-size: 15px;
}

.aa-role {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.55;
  margin-top: 2px;
}

.aa-bio {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.72;
}

.aa-cta {
  margin-top: 20px;
}

/* Related */
.art-related {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) var(--pad-x);
}

.ar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ar-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 34px;
}

.ar-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ar-all {
  font-weight: 600;
  color: var(--sage);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .feat-card {
    grid-template-columns: 1fr;
  }

  .feat-cover {
    min-height: 220px;
  }

  .feat-body {
    padding: 8px 8px 16px;
  }

  .bl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .art-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .art-aside {
    position: static;
  }

  .art-authorcard {
    max-width: 720px;
  }

  .bc-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .bl-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding-top: 130px;
  }

  .art-head {
    padding-top: 120px;
  }

  .bl-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- Photo covers (real images on cards) ---- */
.cover--photo {
  background-size: cover;
  background-position: center;
}

.cover--photo::after {
  display: none;
}

.cover--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0) 34%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.30) 100%);
}

.cover--photo .cover-cat {
  z-index: 2;
}

.cover--photo .cover-mark {
  display: none;
}

/* ---- Article hero: reference photo framed on the category gradient ---- */
.art-cover--framed {
  display: flex;
  align-items: center;
  justify-content: center;
}

.art-cover-img {
  max-width: min(52%, 560px);
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(20, 15, 18, 0.28), 0 10px 22px rgba(20, 15, 18, 0.18);
}

@media (max-width: 620px) {
  .art-cover-img {
    max-width: 72%;
  }
}
