/*
 * KrokoDent — Single Post Styles
 * assets/css/single-post.css
 */

/* ════════════════════════════════════════════════════════════════════════════
   POST HERO
   ════════════════════════════════════════════════════════════════════════════ */

.post-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  overflow-x: hidden; /* zabezpieczenie przed wyciekiem w osi X */
  background: #0a180c;
  max-width: 100%;
}

.post-hero-bg {
  position: absolute;
  inset: 0;
}

.post-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
}

.post-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8,24,12,0.10) 0%,
    rgba(8,24,12,0.35) 45%,
    rgba(8,24,12,0.88) 100%
  );
}

.post-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -15%;
  width: 65%; height: 160%;
  background: radial-gradient(circle, rgba(45,122,58,0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulseGlow 8s ease-in-out infinite;
  z-index: 1;
}

.post-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 96px 0 64px;
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}

.post-hero-inner {
  max-width: 820px;
}

/* ── Breadcrumb w hero ── */
.post-hero .breadcrumb {
  margin-bottom: 24px;
}

.post-hero .breadcrumb-list {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.post-hero .breadcrumb-list li {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
}

.post-hero .breadcrumb-list a {
  color: rgba(255,255,255,0.72);
  transition: color 0.2s;
  text-decoration: none;
}

.post-hero .breadcrumb-list a:hover {
  color: #fff;
  opacity: 1;
}

.post-hero .breadcrumb-list .sep {
  opacity: 0.35;
}

/* ── Meta (kategoria, data, czas czytania) ── */
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.post-cat-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #184a22, #2f7440);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.post-hero-date {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.post-hero-read {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-hero-read svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

/* ── Tytuł i lead ── */
.post-hero-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 24px;
}

.post-hero-lead {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 70ch;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   SCROLL PROGRESS
   ════════════════════════════════════════════════════════════════════════════ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #143a1d 0%, #2d7a3a 55%, #3c8a4e 100%);
  box-shadow: 0 0 8px rgba(45,122,58,0.50);
  transition: width 0.1s linear;
}

/* ════════════════════════════════════════════════════════════════════════════
   POST LAYOUT — artykuł + sidebar
   ════════════════════════════════════════════════════════════════════════════ */

.post-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
  padding: 80px 0 96px;
}

/* Kolumna główna (share bar + article + post-nav) */
.post-main-col {
  min-width: 0; /* zapobiega overflow w grid */
}

/* ════════════════════════════════════════════════════════════════════════════
   ARTICLE BODY — treść wpisu
   ════════════════════════════════════════════════════════════════════════════ */

.article-body {
  min-width: 0; /* bezpieczeństwo */
}

/* Intro / lead paragraph */
.article-lead {
  font-size: 19px;
  line-height: 1.72;
  color: var(--text-secondary, rgba(26,46,28,0.70));
  margin: 0 0 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(45,122,58,0.14);
}

/* Headings */
.article-body h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  color: #1a2e1c;
  margin: 64px 0 24px;
  letter-spacing: -0.015em;
  line-height: 1.22;
  padding-top: 8px;
  scroll-margin-top: 110px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  color: #1a2e1c;
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
  line-height: 1.28;
  scroll-margin-top: 110px;
}

/* Paragraphs */
.article-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary, rgba(26,46,28,0.70));
  margin: 0 0 24px;
}

.article-body p:last-child { margin-bottom: 0; }

/* Linki w treści */
.article-body a {
  color: #1f5e2a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(45,122,58,0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}

.article-body a:hover {
  color: #2d7a3a;
  text-decoration-color: #2d7a3a;
  opacity: 1;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.article-body ul li,
.article-body ol li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary, rgba(26,46,28,0.70));
  padding: 10px 0 10px 32px;
  position: relative;
  border-bottom: 1px solid rgba(45,122,58,0.07);
}

.article-body ul li:last-child,
.article-body ol li:last-child {
  border-bottom: none;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #184a22, #2f7440);
  box-shadow: 0 0 6px rgba(45,122,58,0.3);
}

.article-body ol {
  counter-reset: kd-item;
}

.article-body ol li {
  padding-left: 42px;
  counter-increment: kd-item;
}

.article-body ol li::before {
  content: counter(kd-item);
  position: absolute;
  left: 0;
  top: 11px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #184a22, #2f7440);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Highlight / info box */
.article-highlight,
.article-body blockquote {
  background: linear-gradient(135deg, #eaf2ec 0%, #deeee1 100%);
  border-left: 4px solid #2d7a3a;
  border-radius: 0 16px 16px 0;
  padding: 28px 36px;
  margin: 40px 0;
}

.article-highlight p,
.article-body blockquote p {
  font-size: 16px;
  color: #1a3320;
  margin: 0;
  line-height: 1.72;
}

.article-highlight p strong,
.article-body blockquote p strong {
  color: #143a1d;
}

/* Procedure grid (custom HTML block) */
.procedure-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.procedure-card {
  background: #fff;
  border: 1px solid rgba(45,122,58,0.14);
  border-radius: 24px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(26,46,28,0.07);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.procedure-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #143a1d, #2f7b3f);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.procedure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,46,28,0.12);
  border-color: rgba(45,122,58,0.28);
}

.procedure-card:hover::before {
  transform: scaleX(1);
}

.procedure-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eaf5ec, #d4ecda);
  border: 1px solid rgba(45,122,58,0.18);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.procedure-icon svg {
  width: 22px;
  height: 22px;
  stroke: #1f5e2a;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.procedure-card h3 {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #1a2e1c;
  margin: 0 0 8px;
  line-height: 1.3;
}

.procedure-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary, rgba(26,46,28,0.70));
  margin: 0;
}

/* Divider */
.article-divider {
  border: none;
  border-top: 1px solid rgba(45,122,58,0.14);
  margin: 64px 0;
}

/* Obrazki w treści */
.article-body img {
  border-radius: 16px;
  margin: 32px 0;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 20px rgba(26,46,28,0.10);
}

/* ════════════════════════════════════════════════════════════════════════════
   SHARE BAR — poza <article>, bez konfliktów z .article-body a
   ════════════════════════════════════════════════════════════════════════════ */

.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(45,122,58,0.14);
  border-radius: 9999px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(26,46,28,0.07);
}

.share-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(26,46,28,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none !important;
  font-family: var(--font-sans, 'Inter', sans-serif);
  background: none;
  -webkit-appearance: none;
}

.share-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Facebook */
.share-fb {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.share-fb:hover { background: #0d65d9; color: #fff; opacity: 1; }

/* X / Twitter */
.share-x {
  background: #000;
  color: #fff;
  border-color: #000;
}
.share-x:hover { background: #222; color: #fff; opacity: 1; }

/* Kopiuj link */
.share-link {
  background: rgba(255,255,255,0.7);
  color: rgba(26,46,28,0.70);
  border-color: rgba(45,122,58,0.20);
}
.share-link:hover {
  background: #fff;
  border-color: rgba(45,122,58,0.35);
  color: #1a2e1c;
  opacity: 1;
}

/* Stan "Skopiowano" */
.share-link.copied {
  background: rgba(45,122,58,0.10);
  color: #1f5e2a;
  border-color: rgba(45,122,58,0.30);
}

/* ════════════════════════════════════════════════════════════════════════════
   TAGS
   ════════════════════════════════════════════════════════════════════════════ */

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(45,122,58,0.14);
}

.article-tag {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(26,46,28,0.70);
  border: 1.5px solid rgba(45,122,58,0.18);
  background: rgba(255,255,255,0.7);
  transition: all 0.2s ease;
  text-decoration: none;
}

.article-tag:hover {
  background: linear-gradient(135deg, #184a22, #2f7440);
  color: #fff;
  border-color: #2d7a3a;
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════════════════
   POST NAV — poprzedni / następny
   ════════════════════════════════════════════════════════════════════════════ */

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.post-nav-item {
  background: #fff;
  border: 1px solid rgba(45,122,58,0.14);
  border-radius: 24px;
  padding: 24px 28px;
  transition: all 0.25s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(26,46,28,0.07);
}

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

.post-nav-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,46,28,0.12);
  border-color: rgba(45,122,58,0.28);
  opacity: 1;
}

.post-nav-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d7a3a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.post-nav-item.next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 16px;
  font-weight: 600;
  color: #1a2e1c;
  line-height: 1.35;
}

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════════════════════ */

.sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(45,122,58,0.13);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 2px 14px rgba(26,46,28,0.07);
}

.sidebar-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2d7a3a;
  margin: 0 0 8px;
  display: block;
}

.sidebar-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  font-weight: 600;
  color: #1a2e1c;
  margin: 0 0 20px;
}

/* ── TOC ── */
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list li {
  position: relative;
}

.toc-list a {
  font-size: 14px;
  color: rgba(26,46,28,0.70);
  font-weight: 500;
  padding: 7px 10px 7px 16px;
  display: block;
  border-radius: 8px;
  transition: all 0.2s ease;
  line-height: 1.4;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.toc-list a:hover {
  background: rgba(45,122,58,0.07);
  color: #1f5e2a;
  border-left-color: #2d7a3a;
  opacity: 1;
}

.toc-list a.active-toc {
  color: #1f5e2a;
  font-weight: 600;
  background: rgba(45,122,58,0.09);
  border-left-color: #2d7a3a;
}

/* TOC puste = ukryj kartę */
#toc-card:has(#toc:empty) {
  display: none;
}

/* ── Autor ── */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(45,122,58,0.25);
}

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

.author-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a2e1c;
  margin: 0 0 3px;
}

.author-role {
  font-size: 12px;
  color: #2d7a3a;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.author-bio {
  font-size: 13px;
  color: rgba(26,46,28,0.70);
  line-height: 1.6;
  margin: 0;
}

/* ── Powiązane wpisy ── */
.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.related-thumb {
  width: 70px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(45,122,58,0.12);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.related-item:hover .related-thumb img {
  transform: scale(1.07);
}

.related-info a {
  text-decoration: none;
}

.related-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2e1c;
  line-height: 1.35;
  margin: 0 0 4px;
  display: block;
  transition: color 0.2s;
}

.related-item:hover .related-title {
  color: #1f5e2a;
}

.related-date {
  font-size: 12px;
  color: rgba(26,46,28,0.45);
}

/* ── CTA sidebar ── */
.sidebar-cta {
  background: linear-gradient(135deg, #0d3317 0%, #1f5e2a 100%);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 80%; height: 150%;
  background: radial-gradient(circle, rgba(45,122,58,0.30) 0%, transparent 65%);
  pointer-events: none;
}

.sidebar-cta-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #84b38c;
  margin: 0 0 8px;
  display: block;
  position: relative;
  z-index: 1;
}

.sidebar-cta-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.sidebar-cta-text {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin: 0 0 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 13px 24px;
}

/* Sidebar newsletter input */
.sidebar-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(45,122,58,0.22);
  background: rgba(255,255,255,0.9);
  color: #1a2e1c;
  font-size: 14px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  margin-bottom: 10px;
  -webkit-appearance: none;
  display: block;
}

.sidebar-input:focus {
  outline: none;
  border-color: #2d7a3a;
  box-shadow: 0 0 0 3px rgba(45,122,58,0.15);
}

.sidebar-input::placeholder {
  color: rgba(26,46,28,0.38);
}

/* ════════════════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION (taka sama jak na archive)
   ════════════════════════════════════════════════════════════════════════════ */

.newsletter-section {
  position: relative;
  overflow: hidden;
  background-color: #eaf2ec;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(45,122,58,0.07) 0, transparent 56%),
    radial-gradient(circle at 75% 75%, rgba(45,122,58,0.05) 0, transparent 52%),
    repeating-linear-gradient(0deg, rgba(45,122,58,0.05) 0 1px, transparent 1px 84px),
    repeating-linear-gradient(90deg, rgba(45,122,58,0.04) 0 1px, transparent 1px 84px);
  border-top: 1px solid rgba(45,122,58,0.18);
  border-bottom: 1px solid rgba(45,122,58,0.18);
}

.newsletter-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2d7a3a;
  margin: 0 0 16px;
  display: inline-block;
}

.newsletter-title {
  margin: 0 0 12px;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(30px, 4.1vw, 46px);
  line-height: 1.2;
  color: #1a2e1c;
}

.newsletter-desc {
  margin: 0 auto 32px;
  max-width: 62ch;
  color: rgba(26,46,28,0.70);
  font-size: 17px;
  line-height: 1.65;
}

.newsletter-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  align-items: center;
}

.newsletter-input {
  width: 100%;
  padding: 14px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(45,122,58,0.25);
  background: rgba(255,255,255,0.85);
  color: #1a2e1c;
  font-size: 15px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  -webkit-appearance: none;
}

.newsletter-input::placeholder { color: rgba(26,46,28,0.40); }

.newsletter-input:focus {
  outline: none;
  border-color: #2d7a3a;
  box-shadow: 0 0 0 3px rgba(45,122,58,0.18);
  background: #fff;
}

/* Newsletter plugin overrides */
.tnp-main-wrap form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  align-items: center;
}

.tnp-main-wrap .tnp-email,
.tnp-main-wrap input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(45,122,58,0.25);
  background: rgba(255,255,255,0.85);
  color: #1a2e1c;
  font-size: 15px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  -webkit-appearance: none;
  box-shadow: none;
}

.tnp-main-wrap .tnp-submit,
.tnp-main-wrap input[type="submit"] {
  padding: 14px 32px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #184a22 0%, #256531 50%, #2f7440 100%);
  color: #fff;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #2d7a3a;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  -webkit-appearance: none;
}

.tnp-main-wrap .tnp-submit:hover,
.tnp-main-wrap input[type="submit"]:hover {
  background: linear-gradient(135deg, #256531 0%, #3c8a4e 100%);
  box-shadow: 0 6px 20px rgba(45,122,58,0.35);
  transform: translateY(-2px);
}

.tnp-sidebar-wrap form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnp-sidebar-wrap .tnp-email,
.tnp-sidebar-wrap input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(45,122,58,0.22);
  background: rgba(255,255,255,0.9);
  color: #1a2e1c;
  font-size: 14px;
  font-family: var(--font-sans, 'Inter', sans-serif);
  -webkit-appearance: none;
  box-shadow: none;
}

.tnp-sidebar-wrap .tnp-submit,
.tnp-sidebar-wrap input[type="submit"] {
  width: 100%;
  padding: 13px 24px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #184a22 0%, #256531 50%, #2f7440 100%);
  color: #fff;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid #2d7a3a;
  cursor: pointer;
  transition: all 0.25s ease;
  -webkit-appearance: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════════════════════════════ */

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .post-hero {
    min-height: 50vh;
  }

  .post-hero-content {
    padding: 64px 0 48px;
  }

  .share-bar {
    border-radius: 16px;
    padding: 16px;
  }

  .procedure-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }

  .post-nav-item.next {
    text-align: left;
  }

  .post-nav-item.next .post-nav-label {
    justify-content: flex-start;
  }

  .newsletter-form,
  .tnp-main-wrap form {
    grid-template-columns: 1fr;
  }

  .newsletter-form .btn,
  .tnp-main-wrap input[type="submit"] {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .post-hero::before,
  .post-hero-content {
    animation: none;
  }

  .post-hero-content {
    opacity: 1;
    transform: none;
  }
}
