.post-page {
  --post-text: #111827;
  --post-muted: #6b7280;
  --post-navy: #162435;
  --post-gold: #ab874b;
  --post-bg: #f3f4f6;
  --post-surface: #ffffff;
  --post-line: #e5e7eb;
  --post-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);

  background: var(--post-bg);
  color: var(--post-text);
}

.post-page a {
  color: inherit;
  text-decoration: none;
}


/* Hero */
.post-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 12% 10%, rgba(171, 135, 75, 0.16), transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(22, 36, 53, 0.12), transparent 60%),
    #ffffff;
  position: relative;
  overflow: hidden;
}

.post-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    linear-gradient(135deg, rgba(171, 135, 75, 0.12) 0 1px, transparent 1px 100%),
    linear-gradient(225deg, rgba(22, 36, 53, 0.08) 0 1px, transparent 1px 100%);
  background-size: 24px 24px;
}

.post-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: start;
}

.post-hero-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--post-navy);
  background: rgba(171, 135, 75, 0.12);
  border: 1px solid rgba(171, 135, 75, 0.35);
}

.post-hero-category i {
  color: var(--post-gold);
  font-size: 14px;
}

.post-hero-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--post-navy);
}

.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  color: var(--post-muted);
  font-size: 12px;
}

.post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--post-line);
}

.post-meta-item i {
  color: var(--post-gold);
  font-size: 14px;
}

.post-featured-figure {
  margin: 0 0 24px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--post-shadow);
}

.post-featured-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Content */
.post-content {
  padding: 36px 0 80px;
}

.post-article {
  background: var(--post-surface);
  border: 1px solid var(--post-line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--post-shadow);
}

.post-body {
  font-size: 16px;
  line-height: 1.9;
  color: #374151;
}

.post-body p {
  margin: 0 0 16px;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--post-navy);
  margin: 26px 0 12px;
  line-height: 1.5;
}

.post-body h2 { font-size: 24px; }
.post-body h3 { font-size: 20px; }
.post-body h4 { font-size: 18px; }

.post-body ul,
.post-body ol {
  margin: 0 20px 18px;
  padding: 0;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body img,
.post-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.post-body blockquote {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(171, 135, 75, 0.1);
  border: 1px solid rgba(171, 135, 75, 0.2);
  color: #1f2937;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--post-muted);
  background: #ffffff;
  border: 1px solid var(--post-line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.post-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  color: var(--post-navy);
}

/* Navigation */
.post-nav {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--post-line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.post-nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--post-line);
  background: #f9fafb;
  color: var(--post-navy);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.post-nav-item a:hover {
  background: rgba(171, 135, 75, 0.12);
  transform: translateY(-1px);
}

/* Related articles */
.post-related {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--post-line);
}

.post-related-title {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  color: var(--post-navy);
}

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

.post-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--post-surface);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid var(--post-line);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.post-card-media {
  display: block;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #eef2f7;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.06);
}

.post-card-media-fallback {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 10%, rgba(171, 135, 75, 0.18), transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(22, 36, 53, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(171, 135, 75, 0.1), rgba(255, 255, 255, 0));
}

.post-card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  color: var(--post-muted);
  font-size: 12px;
}

.post-category,
.post-read,
.post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--post-line);
}

.post-category {
  color: var(--post-navy);
  font-weight: 600;
}

.post-meta i {
  font-size: 14px;
  color: var(--post-gold);
}

.post-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
  color: var(--post-navy);
  margin: 0;
}

.post-excerpt {
  font-size: 14px;
  line-height: 1.9;
  color: var(--post-muted);
}

.post-actions {
  margin-top: 2px;
  display: flex;
  justify-content: flex-start;
}

.post-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--post-navy);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.post-more i {
  font-size: 16px;
  color: var(--post-gold);
}

.post-more:hover {
  background: rgba(171, 135, 75, 0.1);
  transform: translateY(-1px);
}

/* Back to blog */
.post-back {
  margin-top: 28px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--post-line);
  color: var(--post-navy);
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.post-back-link:hover {
  background: rgba(171, 135, 75, 0.12);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .post-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .post-hero {
    padding: 56px 0 36px;
  }

  .post-article {
    padding: 24px;
  }

  .post-nav {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .post-page .container {
    padding: 0 16px;
  }

  .post-related-grid {
    grid-template-columns: 1fr;
  }

  .post-card-media {
    height: 190px;
  }
}
