:root {
  --nhanya-cream: #F5E0C9;
  --nhanya-primary: #E8933E;
  --nhanya-secondary: #E85D4A;
  --nhanya-accent: #C67C3B;
  --nhanya-ink: #2C2C2C;
  --nhanya-muted: #6b5f52;
  --nhanya-line: #e7d5bb;
  --nhanya-maroon: #461310;
}

/* ---------- Blog listing grid ---------- */

.nhanya-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 90px;
}

.nhanya-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--nhanya-line);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(70, 19, 16, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.nhanya-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(70, 19, 16, 0.14);
}

.nhanya-blog-card-image {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--nhanya-cream);
}

.nhanya-blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.nhanya-blog-card:hover .nhanya-blog-card-image img {
  transform: scale(1.045);
}

.nhanya-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 18px;
}

.nhanya-blog-card-title {
  margin: 0 0 10px;
  color: var(--nhanya-primary);
  font-family: "Figtree", Sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.nhanya-blog-card-excerpt {
  margin: 0 0 18px;
  color: var(--nhanya-muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.nhanya-blog-card-readmore {
  align-self: flex-start;
  margin-top: auto;
  color: var(--nhanya-secondary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nhanya-blog-card:hover .nhanya-blog-card-readmore {
  color: var(--nhanya-primary);
}

.nhanya-blog-card-date {
  padding: 12px 24px;
  border-top: 1px solid var(--nhanya-line);
  background: #fbf6ee;
  color: var(--nhanya-muted);
  font-size: 12px;
}

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

@media (max-width: 640px) {
  .nhanya-blog-grid { grid-template-columns: 1fr; gap: 24px; padding: 16px 16px 60px; }
  .nhanya-blog-card-image { height: 190px; }
}

/* ---------- Single post ---------- */

.nhanya-post-main .page-header {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 24px 0;
}

.nhanya-post-main .entry-title {
  color: var(--nhanya-primary);
  font-family: "Figtree", Sans-serif;
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}

.nhanya-post-hero {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.nhanya-post-hero img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--nhanya-cream);
}

.nhanya-post-main .page-content {
  max-width: 900px;
  margin: 32px auto 0;
  padding: 0 24px 60px;
  color: var(--nhanya-ink);
  font-size: 17px;
  line-height: 1.8;
}

.nhanya-post-main .page-content h2.wp-block-heading {
  margin: 1.8em 0 0.6em;
  color: var(--nhanya-primary);
  font-family: "Figtree", Sans-serif;
  font-size: 26px;
  line-height: 1.3;
}

.nhanya-post-main .page-content h3.wp-block-heading,
.nhanya-post-main .page-content h4 {
  margin: 1.6em 0 0.5em;
  color: var(--nhanya-accent);
  font-family: "Figtree", Sans-serif;
  font-size: 20px;
  line-height: 1.35;
}

.nhanya-post-main .page-content p { margin: 0 0 1.2em; }

.nhanya-post-main .page-content a {
  color: var(--nhanya-secondary);
  font-weight: 600;
}

.nhanya-post-main .page-content ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.nhanya-post-main .page-content li { margin-bottom: 0.5em; }

.nhanya-post-main table {
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 0 0 1.2em;
}
.nhanya-post-main th,
.nhanya-post-main td {
  padding: 8px 12px;
  border: 1px solid var(--nhanya-line);
  white-space: nowrap;
}

.nhanya-related-posts {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.nhanya-related-posts h2 {
  margin: 0 0 20px;
  color: var(--nhanya-primary);
  font-family: "Figtree", Sans-serif;
  font-size: 22px;
}

.nhanya-related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nhanya-related-card {
  display: block;
  padding: 16px 18px;
  background: var(--nhanya-cream);
  border-radius: 12px;
  color: var(--nhanya-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.nhanya-related-card:hover { color: var(--nhanya-secondary); }

@media (max-width: 700px) {
  .nhanya-related-posts-grid { grid-template-columns: 1fr; }
  .nhanya-post-hero img { height: 220px; }
}
