/*
Theme Name: LifeDiet
Theme URI: https://lifediet.ir
Author: Customized for LifeDiet
Description: A clean, RTL-first WordPress magazine theme for diet, nutrition, healthy recipes and lifestyle content.
Version: 2.0.0
Text Domain: lifediet
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
*/
@font-face {
  font-family: 'IRANSans';
  src: url('font/IRANSansWeb.eot');
  src: url('font/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
       url('font/IRANSansWeb.woff2') format('woff2'),
       url('font/IRANSansWeb.woff') format('woff'),
       url('font/IRANSansWeb.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'IRANSans';
  src: url('font/IRANSansWeb_Bold.eot');
  src: url('font/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
       url('font/IRANSansWeb_Bold.woff2') format('woff2'),
       url('font/IRANSansWeb_Bold.woff') format('woff'),
       url('font/IRANSansWeb_Bold.ttf') format('truetype');
  font-weight: 700;
}

:root {
  --green-900: #0b3d2e;
  --green-800: #0f513d;
  --green-700: #13795b;
  --green-600: #16a06e;
  --mint-500: #8edbb8;
  --mint-200: #dff8ec;
  --cream: #fbf8ef;
  --cream-2: #f5efe0;
  --orange: #f59e0b;
  --coral: #fb7185;
  --ink: #15231d;
  --text: #33443b;
  --muted: #718178;
  --line: rgba(19, 121, 91, .14);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(15, 81, 61, .13);
  --shadow-soft: 0 14px 36px rgba(15, 81, 61, .09);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  text-align: right;
  background:
    radial-gradient(circle at 8% 4%, rgba(142, 219, 184, .25), transparent 28%),
    radial-gradient(circle at 92% 15%, rgba(245, 158, 11, .12), transparent 26%),
    linear-gradient(180deg, #fbf8ef 0%, #f5f8f1 48%, #ffffff 100%);
  color: var(--text);
  font-family: IRANSans, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 2;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, background .2s ease, border .2s ease, transform .2s ease, box-shadow .2s ease;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-inline: 22px;
}

.site-main {
  padding-top: 26px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  display: block;
  height: auto;
  right: 18px;
  top: 18px;
  width: auto;
  z-index: 100000;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--green-900);
  color: #fff;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 12px 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(19, 121, 91, .12);
  box-shadow: 0 12px 34px rgba(15, 81, 61, .06);
}

.header-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green-700), var(--mint-500));
  box-shadow: 0 14px 28px rgba(19, 121, 91, .24);
}

.leaf {
  position: absolute;
  display: block;
  width: 21px;
  height: 31px;
  border-radius: 22px 22px 4px 22px;
  background: #fff;
  opacity: .95;
}

.leaf-a {
  transform: rotate(36deg) translate(-3px, 2px);
}

.leaf-b {
  width: 17px;
  height: 25px;
  opacity: .68;
  transform: rotate(-34deg) translate(6px, -5px);
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: -.3px;
  color: var(--green-900);
  font-weight: 900;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.custom-logo-link img {
  max-height: 58px;
  width: auto;
}

.desktop-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.desktop-nav,
.mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--green-600));
  transition: width .22s ease;
}

.desktop-nav a:hover,
.desktop-nav .current-menu-item > a,
.desktop-nav .current-menu-parent > a {
  color: var(--green-700);
}

.desktop-nav a:hover::after,
.desktop-nav .current-menu-item > a::after,
.desktop-nav .current-menu-parent > a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
}

.header-cta,
.mobile-cta,
.primary-btn,
.secondary-btn,
.post-btn,
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  line-height: 1;
}

.header-cta,
.primary-btn,
.search-submit {
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-600));
  box-shadow: 0 16px 30px rgba(19, 121, 91, .22);
}

.header-cta:hover,
.primary-btn:hover,
.search-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(19, 121, 91, .28);
}

.primary-btn.small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 14px;
}

.secondary-btn {
  color: var(--green-800);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px rgba(15, 81, 61, .06);
}

.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 121, 91, .32);
}

.secondary-btn.light {
  background: rgba(255, 255, 255, .16);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  box-shadow: none;
}

.menu-btn {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  align-content: center;
  justify-items: center;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 23px;
  height: 3px;
  border-radius: 999px;
  background: var(--green-800);
}

.menu-btn span:nth-child(2) {
  width: 16px;
}

.mobile-menu {
  position: fixed;
  inset: 0 -310px 0 auto;
  width: 300px;
  height: 100vh;
  z-index: 1001;
  padding: 22px;
  background: linear-gradient(180deg, var(--green-900), var(--green-800));
  color: #fff;
  transition: right .28s ease;
  overflow-y: auto;
  box-shadow: -18px 0 48px rgba(0, 0, 0, .22);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  font-weight: 900;
}

.mobile-close {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.mobile-nav li + li {
  margin-top: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  padding: 12px 0;
  color: #fff;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.mobile-cta {
  width: 100%;
  margin-top: 22px;
  color: var(--green-900);
  background: #fff;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 20, 14, .52);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero-section {
  padding: 10px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: center;
  gap: 30px;
}

.hero-copy {
  position: relative;
  padding: 54px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(11, 61, 46, .96), rgba(19, 121, 91, .94)),
    radial-gradient(circle at 20% 25%, rgba(255,255,255,.18), transparent 26%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-copy::after {
  content: "";
  position: absolute;
  left: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow.dark {
  background: rgba(19, 121, 91, .1);
  color: var(--green-800);
}

.hero-copy h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.42;
  letter-spacing: -.7px;
  font-weight: 950;
}

.hero-copy p {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  line-height: 2.25;
  font-weight: 600;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-panel {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.48)),
    radial-gradient(circle at 75% 20%, rgba(251, 113, 133, .16), transparent 28%),
    radial-gradient(circle at 18% 70%, rgba(142, 219, 184, .38), transparent 30%);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.nutrition-card,
.metric-row,
.mini-card {
  position: absolute;
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 18px 45px rgba(15, 81, 61, .12);
}

.main-card {
  top: 46px;
  right: 34px;
  left: 34px;
  padding: 30px;
  display: grid;
  gap: 10px;
}

.card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--mint-200);
  font-size: 30px;
}

.nutrition-card strong {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.55;
}

.nutrition-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 2;
}

.metric-row {
  right: 34px;
  left: 34px;
  bottom: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.metric-row div {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
}

.metric-row strong {
  display: block;
  color: var(--green-700);
  font-size: 28px;
  line-height: 1.1;
}

.metric-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-card {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  color: var(--green-900);
  font-weight: 950;
}

.mini-card {
  top: 224px;
  right: 18px;
}

.mini-card.alt {
  top: 288px;
  left: 18px;
  right: auto;
  color: #8a4f00;
  background: rgba(255, 248, 224, .9);
}

/* Sections */
.section-head {
  margin-bottom: 20px;
}

.section-head span {
  display: block;
  margin-bottom: 5px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 950;
}

.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.5;
  font-weight: 950;
}

.section-head.between {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  color: var(--green-700);
  font-weight: 950;
  white-space: nowrap;
}

.category-section,
.posts-section,
.featured-section,
.related-posts {
  margin-top: 34px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  min-height: 178px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(19, 121, 91, .12);
  box-shadow: var(--shadow-soft);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(19, 121, 91, .3);
}

.category-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--mint-200);
  font-size: 26px;
}

.category-card strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.category-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.9;
}

/* Featured */
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid rgba(19, 121, 91, .13);
  box-shadow: var(--shadow);
}

.featured-image,
.featured-placeholder {
  min-height: 390px;
  background: linear-gradient(135deg, var(--mint-200), var(--cream-2));
}

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

.featured-info {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge,
.post-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--mint-200);
  color: var(--green-800);
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
}

.featured-info h2 {
  margin: 15px 0 12px;
  color: var(--ink);
  font-size: clamp(25px, 3.5vw, 40px);
  line-height: 1.55;
  font-weight: 950;
}

.featured-info h2 a:hover,
.post-title a:hover,
.single-content a:hover,
.breadcrumb a:hover {
  color: var(--green-700);
}

.featured-info p {
  margin: 0;
  color: var(--muted);
  line-height: 2.15;
  font-weight: 650;
}

.featured-meta,
.post-meta,
.single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.featured-meta {
  margin: 18px 0 24px;
}

/* Posts */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.posts-grid.compact {
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(19, 121, 91, .12);
  box-shadow: var(--shadow-soft);
}

.post-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 48px rgba(15, 81, 61, .14);
}

.post-thumb {
  position: relative;
  display: block;
  height: 225px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--mint-200), var(--cream-2));
}

.post-thumb img,
.thumb-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  display: block;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.65), transparent 26%),
    linear-gradient(135deg, var(--mint-200), var(--cream-2));
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, .92);
  color: var(--green-800);
}

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

.post-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.75;
  font-weight: 950;
}

.post-meta {
  margin-bottom: 12px;
  font-size: 12px;
}

.post-excerpt {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.05;
  font-weight: 650;
}

.post-btn {
  margin-top: auto;
  width: fit-content;
  min-height: 42px;
  padding: 0 18px;
  color: var(--green-800);
  background: var(--mint-200);
}

.post-btn:hover {
  color: #fff;
  background: var(--green-700);
  transform: translateY(-2px);
}

/* CTA */
.cta-section {
  margin-top: 44px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: var(--shadow);
}

.cta-section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.55;
  font-weight: 950;
}

.cta-section p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  line-height: 2.15;
}

/* Archive / Search */
.archive-hero {
  padding-top: 8px;
}

.archive-box {
  padding: 42px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(11, 61, 46, .94), rgba(19, 121, 91, .9));
  color: #fff;
  box-shadow: var(--shadow);
}

.archive-box h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.5;
  font-weight: 950;
}

.archive-box p {
  max-width: 840px;
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 2.15;
}

.category-strip {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-strip a,
.single-tags a,
.archive-pagination a,
.archive-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 900;
}

.category-strip a:hover,
.single-tags a:hover,
.archive-pagination a:hover {
  background: var(--mint-200);
}

.archive-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-pagination .current {
  color: #fff;
  background: var(--green-700);
}

.search-wrap {
  max-width: 760px;
  margin-top: 22px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-field {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(19, 121, 91, .18);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.search-field:focus {
  border-color: rgba(19, 121, 91, .5);
  box-shadow: 0 0 0 4px rgba(142, 219, 184, .25);
}

.search-submit {
  min-width: 124px;
}

.empty-box {
  grid-column: 1 / -1;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.empty-box h2 {
  margin: 0 0 8px;
  color: var(--ink);
}

.empty-box p {
  margin: 0;
  color: var(--muted);
}

/* Single / Page */
.content-layout {
  max-width: 980px;
}

.single-wrap {
  padding: clamp(22px, 4vw, 46px);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(19, 121, 91, .12);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.breadcrumb a {
  color: var(--green-800);
}

.breadcrumb .current {
  max-width: 520px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.single-title {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.55;
  font-weight: 950;
  letter-spacing: -.3px;
}

.single-meta {
  margin-bottom: 24px;
}

.single-thumb {
  margin: 0 0 26px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mint-200);
}

.single-thumb img {
  width: 100%;
}

.notice-box {
  margin-bottom: 28px;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7df, #fff);
  border: 1px solid rgba(245, 158, 11, .24);
}

.notice-box strong {
  display: block;
  color: #875300;
  font-weight: 950;
  margin-bottom: 4px;
}

.notice-box p {
  margin: 0;
  color: #725b2e;
  line-height: 2;
  font-size: 14px;
  font-weight: 700;
}

.single-content,
.page-content {
  color: #2f4238;
  font-size: 17px;
  line-height: 2.35;
}

.single-content > *:first-child {
  margin-top: 0;
}

.single-content p,
.page-content p {
  margin: 0 0 22px;
}

.single-content h2,
.single-content h3,
.single-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
  margin: 34px 0 14px;
  color: var(--green-900);
  line-height: 1.6;
  font-weight: 950;
}

.single-content h2,
.page-content h2 {
  font-size: 28px;
}

.single-content h3,
.page-content h3 {
  font-size: 23px;
}

.single-content ul,
.single-content ol,
.page-content ul,
.page-content ol {
  margin: 0 0 22px;
  padding-right: 24px;
}

.single-content li,
.page-content li {
  margin-bottom: 8px;
}

.single-content a,
.page-content a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.single-content blockquote,
.page-content blockquote {
  margin: 28px 0;
  padding: 24px;
  border-radius: 24px;
  border-right: 5px solid var(--green-700);
  background: #f3fbf7;
  color: var(--green-900);
  font-weight: 800;
}

.single-content table,
.page-content table {
  width: 100%;
  margin: 28px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.single-content th,
.page-content th {
  background: var(--green-800);
  color: #fff;
}

.single-content th,
.single-content td,
.page-content th,
.page-content td {
  padding: 13px 15px;
  border: 1px solid rgba(19, 121, 91, .13);
}

.single-content img,
.page-content img {
  border-radius: 22px;
  margin: 22px auto;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.share-box {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.share-title {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 950;
}

.share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 112px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--mint-200);
  color: var(--green-800);
  font-weight: 950;
}

.share-links a:hover {
  color: #fff;
  background: var(--green-700);
}

.author-box {
  margin-top: 32px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  border-radius: 24px;
  background: #f8fbf5;
  border: 1px solid var(--line);
}

.author-avatar img {
  border-radius: 50%;
}

.author-box h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.author-box p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
  font-size: 14px;
  font-weight: 700;
}

.related-posts {
  margin-bottom: 18px;
}

.page-wrap {
  max-width: 980px;
  margin: 0 auto;
}

.page-links {
  margin-top: 24px;
}

/* 404 */
.not-found-page {
  padding: 34px 22px 24px;
}

.not-found-inner {
  padding: 64px 24px;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-code {
  color: var(--green-700);
  font-size: clamp(80px, 16vw, 150px);
  line-height: 1;
  font-weight: 950;
}

.not-found-inner h1 {
  margin: 10px 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 950;
}

.not-found-inner p {
  margin: 0 0 24px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding: 42px 0 24px;
  background: linear-gradient(180deg, rgba(11, 61, 46, .96), #082b20);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .75fr;
  gap: 22px;
}

.footer-brand,
.footer-links {
  padding: 24px;
  border-radius: 26px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}

.site-footer .brand-text strong {
  color: #fff;
}

.site-footer .brand-text small,
.footer-brand p,
.footer-note {
  color: rgba(255,255,255,.72);
}

.footer-brand p {
  margin: 18px 0 0;
  line-height: 2.1;
  font-weight: 650;
}

.footer-note {
  font-size: 13px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

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

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

.footer-links a {
  display: inline-flex;
  color: rgba(255,255,255,.75);
  font-weight: 800;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(-3px);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
}

.socials a:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.socials img {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  margin-top: 20px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.64);
  font-size: 13px;
  font-weight: 700;
}

/* WordPress alignment */
.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1100px) {
  .desktop-nav {
    gap: 14px;
  }

  .desktop-nav a {
    font-size: 13px;
  }

  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .desktop-menu,
  .header-actions {
    display: none;
  }

  .menu-btn {
    display: grid;
    margin-right: auto;
  }

  .header-wrap {
    justify-content: space-between;
  }

  .hero-grid,
  .featured-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 370px;
  }

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

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

  .featured-image,
  .featured-image img {
    min-height: 300px;
  }

  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 15px;
  }

  .site-main {
    padding-top: 16px;
  }

  .brand-mark {
    width: 43px;
    height: 43px;
    border-radius: 15px;
  }

  .brand-text strong {
    font-size: 20px;
  }

  .hero-copy {
    padding: 28px 22px;
    border-radius: 28px;
  }

  .hero-copy p {
    font-size: 15px;
    line-height: 2.1;
  }

  .hero-actions,
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .search-submit,
  .post-btn {
    width: 100%;
  }

  .hero-panel {
    min-height: 330px;
    border-radius: 28px;
  }

  .main-card {
    top: 24px;
    right: 18px;
    left: 18px;
    padding: 22px;
  }

  .nutrition-card strong {
    font-size: 20px;
  }

  .metric-row {
    right: 18px;
    left: 18px;
    bottom: 22px;
    grid-template-columns: 1fr;
  }

  .mini-card,
  .mini-card.alt {
    display: none;
  }

  .category-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: auto;
  }

  .featured-info,
  .archive-box,
  .cta-section,
  .single-wrap {
    padding: 24px 20px;
    border-radius: 26px;
  }

  .featured-image,
  .featured-image img,
  .post-thumb {
    min-height: auto;
    height: 230px;
  }

  .section-head.between,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .single-content,
  .page-content {
    font-size: 15px;
    line-height: 2.2;
  }

  .single-content h2,
  .page-content h2 {
    font-size: 23px;
  }

  .single-content h3,
  .page-content h3 {
    font-size: 20px;
  }

  .author-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .share-links a {
    flex: 1 1 calc(50% - 8px);
  }

  .mobile-menu {
    width: 86vw;
    right: -90vw;
  }
}
