/*
Theme Name: HealthTips Daily
Theme URI: https://blog.partyandbeyond.com
Author: H3 AI Lab
Author URI: https://h3aifilms.com
Description: A clean, minimal, AdSense-ready health and wellness blog theme with hero banner, featured posts grid, EEAT author boxes, and full mobile responsiveness.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: healthtips-daily
Tags: blog, health, wellness, clean, minimal, responsive, adsense-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --primary: #1B6CA8;
  --primary-dark: #155a8a;
  --primary-light: #e8f4fd;
  --accent: #27AE60;
  --accent-dark: #1e8449;
  --accent-light: #eafaf1;
  --text-dark: #2C3E50;
  --text-mid: #5D6D7E;
  --text-light: #95A5A6;
  --bg-white: #ffffff;
  --bg-light: #F8FAFB;
  --bg-gray: #F0F3F4;
  --border: #E5E8EA;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --content-width: 780px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { padding-left: 1.5rem; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

p { margin-bottom: 1.2rem; }

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main { flex: 1; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.site-logo img { height: 42px; width: auto; }

.site-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.site-title span { color: var(--accent); }
.site-tagline { font-size: 0.7rem; color: var(--text-light); font-family: var(--font-ui); margin-top: 1px; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; }

.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Dropdown */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: 8px 0;
  margin: 4px 0 0;
  z-index: 999;
}

.nav-menu li:hover > .sub-menu { display: block; }

.nav-menu .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.15s;
}

.nav-menu .sub-menu li a:hover {
  color: var(--primary);
  background: var(--primary-light);
  padding-left: 22px;
}

/* Mobile toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  margin: 4px 0;
  transition: all 0.3s;
}

/* Header search */
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  gap: 8px;
  width: 200px;
  transition: all 0.2s;
}

.header-search:focus-within {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(27,108,168,0.1);
}

.header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-family: var(--font-ui);
  width: 100%;
}

.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  padding: 0;
}

.header-search svg { width: 16px; height: 16px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #1B6CA8 0%, #155a8a 50%, #0d4a73 100%);
  color: white;
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 20%;
  width: 400px;
  height: 400px;
  background: rgba(39,174,96,0.1);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(39,174,96,0.25);
  color: #7deba8;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(39,174,96,0.3);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 18px;
  line-height: 1.2;
}

.hero h1 em {
  font-style: normal;
  color: #7deba8;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Hero search */
.hero-search {
  display: flex;
  background: white;
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--text-dark);
  background: none;
}

.hero-search input::placeholder { color: var(--text-light); }

.hero-search button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.hero-search button:hover { background: var(--accent-dark); }

/* Hero category pills */
.hero-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-cat-pill {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s;
}

.hero-cat-pill:hover {
  background: rgba(255,255,255,0.22);
  color: white;
  border-color: rgba(255,255,255,0.4);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-link {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.section-link:hover { color: var(--primary-dark); }

/* ============================================
   FEATURED POSTS GRID
   ============================================ */
.featured-section { padding: 64px 0; background: var(--bg-white); }

.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 24px;
}

/* Post Card */
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.post-card--large .post-card__image { aspect-ratio: 16/10; }
.post-card .post-card__image { aspect-ratio: 16/10; }

.post-card__image { overflow: hidden; }
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }

.post-card__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__image-placeholder svg { width: 48px; height: 48px; opacity: 0.3; }

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card--large .post-card__body { padding: 24px; }

.post-card__cat {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.post-card--large .post-card__title { font-size: 1.3rem; }

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--primary); }

.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-light);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.post-card__meta-author { display: flex; align-items: center; gap: 6px; }

.post-card__meta-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
}

.post-card__meta-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-card__read-time {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card__read-time svg { width: 12px; height: 12px; }

/* ============================================
   CATEGORY SHOWCASE
   ============================================ */
.categories-section {
  padding: 56px 0;
  background: var(--bg-light);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  display: block;
}

.category-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.category-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 22px;
  transition: background 0.2s;
}

.category-card:hover .category-card__icon { background: var(--primary); }
.category-card:hover .category-card__icon svg { color: white; fill: white; }

.category-card__icon svg { width: 22px; height: 22px; color: var(--primary); }

.category-card__name {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.category-card__count {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
}

/* ============================================
   AD UNIT PLACEHOLDERS
   ============================================ */
.ad-unit {
  text-align: center;
  padding: 16px 0;
}

.ad-unit--leaderboard { max-width: 728px; margin: 0 auto; }
.ad-unit--rectangle { max-width: 336px; margin: 0 auto; }

/* ============================================
   TRENDING SECTION
   ============================================ */
.trending-section { padding: 56px 0; }

.trending-list { list-style: none; padding: 0; }

.trending-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.trending-item:last-child { border-bottom: none; }

.trending-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--border);
  width: 32px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.trending-item:first-child .trending-num { color: var(--primary); }

.trending-img {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.trending-img img { width: 100%; height: 100%; object-fit: cover; }

.trending-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--primary-light);
}

.trending-body { flex: 1; }

.trending-cat {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.trending-title a { color: inherit; }
.trending-title a:hover { color: var(--primary); }

.trending-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* ============================================
   TWO COLUMN SECTION (Women / Men)
   ============================================ */
.split-section { padding: 56px 0; background: var(--bg-light); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.split-col__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 20px;
}

.split-col__icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-col__icon svg { width: 18px; height: 18px; color: white; }

.split-col__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
}

.mini-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.mini-post:last-child { border-bottom: none; }

.mini-post__img {
  width: 70px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.mini-post__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__img-placeholder { width: 100%; height: 100%; background: var(--primary-light); }

.mini-post__title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 5px;
}

.mini-post__title a { color: inherit; }
.mini-post__title a:hover { color: var(--primary); }

.mini-post__meta {
  font-family: var(--font-ui);
  font-size: 0.73rem;
  color: var(--text-light);
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--accent) 0%, #1e8449 100%);
  padding: 64px 0;
  color: white;
  text-align: center;
}

.newsletter-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}

.newsletter-section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.newsletter-section p {
  font-family: var(--font-ui);
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 32px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  background: white;
  border-radius: 50px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 0.92rem;
  font-family: var(--font-ui);
  background: none;
  color: var(--text-dark);
  min-width: 0;
}

.newsletter-form input::placeholder { color: var(--text-light); }

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 10px 24px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--accent-dark); }
.newsletter-trust { margin-top: 14px; font-size: 0.78rem; color: rgba(255,255,255,0.6); font-family: var(--font-ui); }

/* ============================================
   CONTENT + SIDEBAR LAYOUT
   ============================================ */
.content-area { padding: 48px 0; }

.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-header { margin-bottom: 32px; }

.post-categories { margin-bottom: 12px; }

.post-cat-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 14px;
  margin-right: 6px;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

/* Post meta bar */
.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text-mid);
}

.post-meta-author { display: flex; align-items: center; gap: 8px; }

.post-meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--primary);
}

.post-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }

.post-meta-name { font-weight: 600; color: var(--text-dark); }

.post-meta-dot { color: var(--border); }

.post-reviewed {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.78rem;
}

.post-reviewed svg { width: 13px; height: 13px; }

.post-updated { color: var(--text-light); margin-left: auto; }

/* Featured image */
.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16/9;
}

.post-featured-image img { width: 100%; height: 100%; object-fit: cover; }

/* Post content */
.post-content { font-size: 1rem; line-height: 1.85; color: var(--text-dark); }

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: var(--text-dark);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.6rem 0 0.8rem;
  color: var(--text-dark);
}

.post-content p { margin-bottom: 1.4rem; }

.post-content ul, .post-content ol { margin-bottom: 1.4rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.4rem; }

.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  margin: 2rem 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-mid);
}

.post-content a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(27,108,168,0.3); }
.post-content a:hover { text-decoration-color: var(--primary); }

.post-content img {
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-content th {
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-ui);
  font-weight: 600;
}

.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.post-content tr:nth-child(even) td { background: var(--bg-light); }

/* Key takeaway box */
.key-takeaway {
  background: var(--primary-light);
  border: 1px solid rgba(27,108,168,0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 2rem 0;
}

.key-takeaway__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
}

.key-takeaway__text { font-size: 0.95rem; color: var(--text-dark); margin: 0; }

/* Medical disclaimer box */
.medical-disclaimer {
  background: #fffbeb;
  border: 1px solid #f6d860;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 2rem 0;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #856404;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.medical-disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }

.author-box__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-box__title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.author-box__bio {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-box__links { display: flex; gap: 10px; }

.author-box__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 12px;
  transition: all 0.2s;
}

.author-box__link:hover { background: var(--primary); color: white; }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar { position: sticky; top: 86px; }

.widget {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title::before {
  content: '';
  width: 4px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
  display: block;
}

/* Widget: popular posts */
.widget-posts { list-style: none; padding: 0; }

.widget-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.widget-post:last-child { border-bottom: none; }

.widget-post__img {
  width: 60px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--primary-light);
}

.widget-post__img img { width: 100%; height: 100%; object-fit: cover; }

.widget-post__title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

.widget-post__title a { color: inherit; }
.widget-post__title a:hover { color: var(--primary); }

.widget-post__date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* Widget: categories */
.widget-cats { list-style: none; padding: 0; }

.widget-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.85rem;
}

.widget-cat:last-child { border-bottom: none; }

.widget-cat a { color: var(--text-dark); font-weight: 500; }
.widget-cat a:hover { color: var(--primary); }

.widget-cat__count {
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Widget: author bio */
.widget-author { text-align: center; }

.widget-author__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.widget-author__avatar img { width: 100%; height: 100%; object-fit: cover; }
.widget-author__name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 800; color: var(--text-dark); }
.widget-author__title { font-family: var(--font-ui); font-size: 0.78rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.widget-author__bio { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; }

/* Widget: disclaimer */
.widget-disclaimer {
  background: #fffbeb;
  border-color: #f6d860;
}

.widget-disclaimer .widget-title { color: #856404; border-color: #f6d860; }
.widget-disclaimer .widget-title::before { background: #f6c30a; }
.widget-disclaimer p { font-family: var(--font-ui); font-size: 0.8rem; color: #856404; line-height: 1.5; margin: 0; }

/* Widget: newsletter */
.widget-newsletter__input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.widget-newsletter__input:focus { border-color: var(--primary); }

.widget-newsletter__btn {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.widget-newsletter__btn:hover { background: var(--primary-dark); }

/* ============================================
   POST NAVIGATION
   ============================================ */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.post-nav-link {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s;
}

.post-nav-link:hover { border-color: var(--primary); background: var(--primary-light); }

.post-nav-link--next { text-align: right; }

.post-nav-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 6px;
}

.post-nav-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
}

/* ============================================
   ARCHIVE / BLOG PAGE
   ============================================ */
.archive-header {
  background: var(--primary);
  color: white;
  padding: 48px 0;
  margin-bottom: 0;
}

.archive-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.archive-header p {
  font-family: var(--font-ui);
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.2s;
}

.page-numbers:hover, .page-numbers.current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #1a252f;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { }

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--accent); }

.footer-desc {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.6);
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.footer-social a:hover { background: var(--primary); color: white; }
.footer-social svg { width: 16px; height: 16px; }

.footer-widget h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-newsletter__input {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: white;
  margin-bottom: 8px;
  outline: none;
}

.footer-newsletter__input::placeholder { color: rgba(255,255,255,0.4); }
.footer-newsletter__input:focus { border-color: var(--primary); }

.footer-newsletter__btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-newsletter__btn:hover { background: var(--accent-dark); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: white; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid .post-card--large { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .header-search { display: none; }

  .primary-nav { display: none; }
  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 999;
    padding: 16px;
  }

  .primary-nav.is-open .nav-menu { flex-direction: column; gap: 0; }
  .primary-nav.is-open .nav-menu > li > a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--border); }
  .primary-nav.is-open .sub-menu { display: block; position: static; box-shadow: none; border: none; padding-left: 16px; }

  .mobile-menu-toggle { display: block; }

  .site-header { position: relative; }

  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 1.9rem; }

  .featured-grid { grid-template-columns: 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .split-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .post-title { font-size: 1.5rem; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-search { flex-direction: column; border-radius: var(--radius-md); }
  .hero-search button { border-radius: var(--radius-sm); }
  .newsletter-form { flex-direction: column; border-radius: var(--radius-md); }
  .newsletter-form button { border-radius: var(--radius-sm); }
}
