/* --- Featured large post --- */
/* WP: Replace entire .hero-featured block with your featured post template tag */
/* e.g.  [featured_post id="123"]  or  <?php get_template_part('template-parts/hero-card'); ?> */
.hero {
  background: #f5f7f6;
  padding: 32px 24px 36px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

/* --- Featured large post --- */
/* WP: Replace entire .hero-featured block with your featured post template tag */
/* e.g.  [featured_post id="123"]  or  <?php get_template_part('template-parts/hero-card'); ?> */
.hero-featured {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  display: block;
  transition: box-shadow .2s;
}
.hero-featured:hover { box-shadow: 0 8px 28px rgba(0,0,0,.09); }
.hero-featured-img {
  width: 100%;
  height: 295px;
  overflow: hidden;
  position: relative;
  background: #d4e9de;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* WP: Replace SVG with <img src="<?php echo get_the_post_thumbnail_url(get_the_ID(),'large'); ?>" alt="..."> */
.hero-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-featured-img .ph-svg { width: 72px; height: 72px; opacity: .28; }
.hero-featured-body { padding: 20px 22px 24px; }
.h-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 7px;
}
/* WP: <?php the_category(', '); ?> */
.hero-featured-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.32;
  color: var(--text-dark);
  margin-bottom: 9px;
}
/* WP: <?php the_title(); ?> */
.hero-featured:hover .hero-featured-title { color: var(--green); }
.hero-featured-exc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* WP: <?php the_excerpt(); ?> */
.hero-meta { font-size: 12px; color: var(--text-muted); }
/* WP: <?php the_author(); ?> · <?php get_the_date(); ?> */

/* --- Small cards row --- */
/* WP: [recent_posts count="3" exclude_featured="true"] */
.hero-small-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  margin-top: 16px;
}
.hero-small-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.hero-small-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.hero-small-thumb {
  height: 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-small-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-small-thumb svg { width: 34px; height: 34px; opacity: .45; }
.hero-small-body { padding: 10px 12px 13px; }
.hs-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
.hs-title {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-small-card:hover .hs-title { color: var(--green); }

/* Thumb colour palettes */
.th-green  { background: #d3ead9; }
.th-blue   { background: #d4e5f8; }
.th-amber  { background: #faead2; }
.th-rose   { background: #f8d5df; }
.th-teal   { background: #c9e6e0; }
.th-purple { background: #e0dbf8; }
.th-sky    { background: #d0eaf8; }

/* --- Trending sidebar --- */
/* WP: [popular_posts count="4" orderby="views"] */
.trending-box { flex-shrink: 0; }
.trend-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  margin-bottom: 4px;
}
.trend-hd svg { width: 17px; height: 17px; stroke: var(--green); fill: none; stroke-width: 2; }
.trend-list { display: flex; flex-direction: column; }
.trend-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}
.trend-item:last-child { border-bottom: none; }
.trend-item:hover { opacity: .75; }
.trend-thumb {
  width: 70px;
  height: 62px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.trend-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trend-thumb svg { width: 26px; height: 26px; opacity: .5; }
.t-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
.t-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}
.trend-item:hover .t-title { color: var(--green); }

/* ════════════════════════════════════
   SHARED SECTION STYLES
   ════════════════════════════════════ */
.section { padding: 50px 24px; }
.section--alt { background: var(--white); }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 13px;
  border-bottom: 2px solid var(--green);
}
.section-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -.3px;
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 3px;
}
.see-all::after { content: '→'; }
.see-all:hover { text-decoration: underline; }

/* ════════════════════════════════════
   EXPLORE BY TOPIC  (slider — unchanged)
   ════════════════════════════════════ */
.explore-section {
  background: var(--white);
  padding: 46px 24px;
  border-bottom: 1px solid var(--border);
}
.explore-inner { max-width: 1200px; margin: 0 auto; }
.explore-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.explore-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}
.slider-wrapper { overflow: hidden; position: relative; }
.topic-slider {
  display: flex;
  gap: 18px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.topic-slide-card {
  flex: 0 0 calc(25% - 13.5px);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s;
}
.topic-slide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,.12); }
.topic-img-ph {
  width: 100%;
  height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topic-img-ph svg { opacity: .7; }
.bg-teal    { background: #0d9488; }
.bg-sky     { background: #0ea5e9; }
.bg-violet  { background: #7c3aed; }
.bg-rose    { background: #e11d48; }
.bg-amber   { background: #d97706; }
.bg-emerald { background: #059669; }
.bg-indigo  { background: #4338ca; }
.bg-pink    { background: #db2777; }
.topic-slide-label {
  padding: 12px 15px 15px;
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color .15s;
}
.topic-slide-card:hover .topic-slide-label { color: var(--green); }
.slider-nav { display: flex; gap: 9px; }
.slider-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.slider-btn:hover { border-color: var(--green); background: var(--green-light); }
.slider-btn svg { width: 17px; height: 17px; stroke: var(--text-mid); fill: none; stroke-width: 2; transition: stroke .15s; }
.slider-btn:hover svg { stroke: var(--green); }
.slider-btn:disabled { opacity: .35; cursor: default; pointer-events: none; }
.slider-dots { display: flex; justify-content: center; gap: 7px; margin-top: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .2s, transform .2s; }
.dot.active { background: var(--green); transform: scale(1.25); }

/* ════════════════════════════════════
   RECOMMENDED READS  — tabbed (image 2)
   ════════════════════════════════════ */
/*
  WORDPRESS NOTES
  ──────────────────────────────────────
  Each .rr-panel contains 6 article rows.
  Replace each .rr-item block with:
      [recent_posts category="SLUG" count="6" layout="list"]
  Or using PHP:
      <?php
        $q = new WP_Query(['category_name'=>'fitness','posts_per_page'=>6]);
        while($q->have_posts()){ $q->the_post(); get_template_part('parts/rr-item'); }
      ?>
  The .rr-tab buttons map to WP category slugs:
    Top Reads       → orderby=views (needs plugin, e.g. WP-PostViews)
    Fitness         → category_name="fitness"
    Mental Well-Being → category_name="mental-health"
    Product Reviews → category_name="product-reviews"
    Recipes         → category_name="recipes"
    Skin Care       → category_name="skin-care"
*/
.rr-section { background: var(--bg); padding: 50px 24px; }
.rr-inner { max-width: 1200px; margin: 0 auto; }
.rr-heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -.3px;
}
.rr-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.rr-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.rr-tab:hover { border-color: var(--green); color: var(--green); }
.rr-tab.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 600;
}
.rr-panel { display: none; }
.rr-panel.active { display: block; }

/* 2-column list layout  */
.rr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}
.rr-item {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.rr-item:hover { opacity: .8; }
.rr-thumb {
  width: 86px; height: 76px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.rr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rr-thumb svg { opacity: .5; }
.rr-body { flex: 1; min-width: 0; }
.rr-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 4px;
}
/* WP: <?php the_category(); ?> */
.rr-title {
  font-family: var(--serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* WP: <?php the_title(); ?> */
.rr-item:hover .rr-title { color: var(--green); }
.rr-title.linked { color: var(--green); }
.rr-meta { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
/* WP: <?php the_date(); ?> · <?php echo get_reading_time(); ?> */

/* ════════════════════════════════════
   ARTICLE CARD GRID
   ════════════════════════════════════ */
.card-grid { display: grid; gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4,1fr); }
.card-grid--3 { grid-template-columns: repeat(3,1fr); }
.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.card-thumb {
  height: 152px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb svg { opacity: .45; }
.card-body { padding: 14px 16px 18px; }
.card-cat {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); display: block; margin-bottom: 6px;
}
.card-title {
  font-family: var(--serif);
  font-size: 15px; font-weight: 600;
  line-height: 1.4; color: var(--text-dark); margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card:hover .card-title { color: var(--green); }
.card-meta { font-size: 12px; color: var(--text-muted); }

/* Lead + sidebar layout */
.lead-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; align-items: start; }
.lead-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: block;
  transition: box-shadow .2s;
}
.lead-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.lead-thumb {
  height: 255px;
  background: linear-gradient(135deg,#1a6e4a,#2d9464);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.lead-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lead-thumb svg { width: 68px; height: 68px; fill: rgba(255,255,255,.35); }
.lead-body { padding: 20px 22px 24px; }
.lead-title {
  font-family: var(--serif); font-size: 22px; font-weight: 700;
  line-height: 1.3; margin-bottom: 10px; color: var(--text-dark);
}
.lead-card:hover .lead-title { color: var(--green); }
.lead-exc { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin-bottom: 11px; }
.sidebar-list { display: flex; flex-direction: column; gap: 12px; }
.sidebar-item {
  display: flex; gap: 12px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
  align-items: flex-start; transition: transform .15s, border-color .15s;
}
.sidebar-item:hover { transform: translateX(3px); border-color: var(--green); }
.sidebar-thumb {
  width: 66px; height: 66px; border-radius: 7px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-cat { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.sidebar-title { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.4; margin: 4px 0 4px; color: var(--text-dark); }
.sidebar-meta { font-size: 11px; color: var(--text-muted); }

/* ════════════════════════════════════
   EXPERTS
   ════════════════════════════════════ */
.expert-strip { background: var(--white); padding: 46px 24px; }
.expert-inner { max-width: 1200px; margin: 0 auto; }
.expert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 22px; }
.expert-card { text-align: center; padding: 22px 14px; border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .2s; }
.expert-card:hover { border-color: var(--green); }
.expert-av { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 11px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.expert-name { font-weight: 700; font-size: 14.5px; margin-bottom: 3px; }
.expert-role { font-size: 12px; color: var(--text-muted); }
