#site-nav {
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

#site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 20px rgba(49, 58, 152, 0.08);
}

#nav-mobile-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

#nav-mobile-panel.is-open {
  max-height: 22rem;
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

.blog-page-hero {
  background: linear-gradient(135deg, #f4f2ff 0%, #ffffff 60%, #edecff 100%);
  border-bottom: 1px solid #e8e6f5;
}

.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.post-breadcrumb a {
  color: #313a98;
  text-decoration: none;
}

.post-breadcrumb a:hover {
  text-decoration: underline;
}

.post-hero {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #e5e7eb;
  margin-bottom: 2rem;
  box-shadow: 0 20px 50px rgba(49, 58, 152, 0.12);
}

.post-hero img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  display: block;
}

.post-hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
}

.post-hero-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  line-height: 1.1;
}

.post-hero-date .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7280;
}

.post-hero-date .day {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
}

.post-hero-date .year {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ca3af;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
  margin-bottom: 0.85rem;
}

.post-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.post-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #374151;
}

.post-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2rem 0 0.85rem;
  color: #111827;
}

.post-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: #111827;
}

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

.post-content ul,
.post-content ol {
  margin: 0.85rem 0 1.1rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.85rem;
  margin: 1.5rem 0;
}

.post-content blockquote {
  border-left: 3px solid #313a98;
  padding-left: 1rem;
  color: #4b5563;
  margin: 1.25rem 0;
  font-style: italic;
}

.post-content a {
  color: #313a98;
  font-weight: 600;
  text-decoration: underline;
}

.post-content .rte-size-sm { font-size: 0.925rem; }
.post-content .rte-size-lg { font-size: 1.125rem; }
.post-content .rte-size-xl { font-size: 1.35rem; }

.post-meta-bar {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.post-meta-bar strong {
  color: #374151;
}

.post-author-box {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  background: #f8f9fc;
  border: 1px solid #e8eaf3;
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.post-author-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #313a98, #5b67d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.post-author-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.2rem;
}

.post-author-box p {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

.related-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid #e5e7eb;
}

.related-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.post-loading {
  padding: 3rem 0;
  text-align: center;
  color: #9ca3af;
}

.post-loading-pulse {
  display: grid;
  gap: 1rem;
}

.post-loading-pulse span {
  display: block;
  height: 1rem;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: post-shimmer 1.2s infinite;
}

.post-loading-pulse .lg { height: 14rem; border-radius: 1rem; }
.post-loading-pulse .md { width: 70%; }
.post-loading-pulse .sm { width: 45%; }

@keyframes post-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
