/*
 * KrokoDent — Blog Complete Styles
 * assets/css/blog.css
 *
 * Zawiera WSZYSTKIE style specyficzne dla bloga:
 * hero, breadcrumb, filter bar, featured post, siatka kart,
 * sidebar, newsletter sekcja, paginacja, stany AJAX + overrides wtyczki Newsletter
 *
 * Enqueue w functions.php (lub przez krokodent_enqueue_blog_scripts):
 *   wp_enqueue_style('krokodent-blog', .../assets/css/blog.css, [], VERSION);
 */

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

.hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  padding: 96px 0;
  background: var(--bg-dark, #f8f9f7);
  border-bottom: 1px solid rgba(22, 82, 36, 0.18);
  overflow: hidden;
  overflow-x: hidden;
  max-width: 100%;
}

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

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

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,24,12,0.82) 0%, rgba(10,28,15,0.65) 55%, rgba(8,24,12,0.78) 100%);
  z-index: 1;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
  padding-top: 32px; /* miejsce na breadcrumb */
}

.hero .h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
}

/* ════════════════════════════════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════════════════════════════════ */

.breadcrumb {
  position: relative;
  z-index: 3;
  margin-bottom: 20px;
}

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

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

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

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

.breadcrumb-list .sep {
  opacity: 0.4;
}

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

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

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

.breadcrumb-list a:hover {
  color: #fff;
}

.breadcrumb-list .sep {
  opacity: 0.4;
}

/* ════════════════════════════════════════════════════════════════════════════
   BLOG SECTION — wrapper
   ════════════════════════════════════════════════════════════════════════════ */

.blog-section {
  padding: 96px 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   BLOG LAYOUT — dwukolumnowy grid (main + sidebar)
   ════════════════════════════════════════════════════════════════════════════ */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════════════════════
   FILTER BAR
   ════════════════════════════════════════════════════════════════════════════ */

.blog-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.blog-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(45,122,58,0.22);
  background: rgba(255,255,255,0.7);
  color: rgba(26,46,28,0.70);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans, 'Inter', sans-serif);
  text-decoration: none; /* dla <a> */
}

.filter-tag:hover {
  background: linear-gradient(135deg, #256531 0%, #3c8a4e 100%);
  color: #fff;
  border-color: #2d7a3a;
  opacity: 1;
}

.filter-tag.active {
  background: linear-gradient(135deg, #143a1d 0%, #1f5e2a 100%);
  color: #fff;
  border-color: #143a1d;
  cursor: default;
  pointer-events: none;
}

/* Liczba wpisów w nawiasie */
.filter-tag-count {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}

.filter-tag.active .filter-tag-count,
.filter-tag:hover .filter-tag-count {
  opacity: 0.85;
}

.blog-count {
  font-size: 14px;
  color: rgba(26,46,28,0.45);
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════════
   FEATURED POST (wyróżniony — pierwszy wpis)
   ════════════════════════════════════════════════════════════════════════════ */

.blog-featured {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,46,28,0.14);
  margin-bottom: 48px;
  background: #fff;
  border: 1px solid rgba(45,122,58,0.12);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,46,28,0.16);
  opacity: 1;
}

.featured-img-wrap {
  position: relative;
  overflow: hidden;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
  min-height: 360px;
}

.blog-featured:hover .featured-img-wrap img {
  transform: scale(1.05);
}

.featured-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,24,12,0.25) 0%, transparent 60%);
}

.featured-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  background: linear-gradient(135deg, #184a22 0%, #2f7440 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
}

.featured-body {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

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

.featured-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2d7a3a;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(45,122,58,0.1);
  border: 1px solid rgba(45,122,58,0.2);
}

.featured-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #1a2e1c;
  margin: 0 0 24px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.featured-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26,46,28,0.70);
  margin: 0 0 32px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #2d7a3a;
  letter-spacing: 0.03em;
  transition: gap 0.2s ease;
  text-decoration: none;
}

.read-more .arrow {
  transition: transform 0.2s ease;
}

.blog-featured:hover .read-more {
  gap: 12px;
  opacity: 1;
}

.blog-featured:hover .read-more .arrow {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════════════════════
   POSTS GRID — siatka 3 kolumny
   ════════════════════════════════════════════════════════════════════════════ */

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ════════════════════════════════════════════════════════════════════════════
   POST CARD
   ════════════════════════════════════════════════════════════════════════════ */

.post-card {
  background: #ffffff;
  border: 1px solid rgba(45,122,58,0.12);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 2px 14px rgba(26,46,28,0.07);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #143a1d 0%, #2f7b3f 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 2;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26,46,28,0.14);
  border-color: rgba(45,122,58,0.28);
  opacity: 1;
}

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

.post-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.post-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  display: block;
}

.post-card:hover .post-img-wrap img {
  transform: scale(1.07);
}

.post-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,25,12,0.45) 100%);
}

.post-body {
  padding: 24px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

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

.post-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(26,46,28,0.45);
  flex-shrink: 0;
}

.post-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2d7a3a;
}

.post-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 600;
  color: #1a2e1c;
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #2d7a3a;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(45,122,58,0.10);
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
  text-decoration: none;
}

.post-read-more .arrow {
  transition: transform 0.2s ease;
}

.post-card:hover .post-read-more {
  gap: 10px;
}

.post-card:hover .post-read-more .arrow {
  transform: translateX(3px);
}

/* ════════════════════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════════════════════ */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 64px;
}

/* Bazowy styl — .page-btn (nasze klasy) lub .page-numbers (WordPress) */
.pagination .page-btn,
.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(45,122,58,0.22);
  background: rgba(255,255,255,0.7);
  color: rgba(26,46,28,0.70);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  font-family: var(--font-sans, 'Inter', sans-serif);
}

.pagination .page-btn:hover,
.pagination .page-numbers:hover {
  background: linear-gradient(135deg, #256531, #3c8a4e);
  color: #fff;
  border-color: #2d7a3a;
  opacity: 1;
  box-shadow: 0 4px 12px rgba(45,122,58,0.20);
}

/* Aktywna (bieżąca) strona — wyraźniejsza od hover */
.pagination .page-btn.active,
.pagination .page-numbers.current {
  background: linear-gradient(135deg, #143a1d, #1f5e2a);
  color: #fff;
  border-color: #143a1d;
  opacity: 1;
  box-shadow: 0 4px 16px rgba(20,58,29,0.40);
  cursor: default;
  font-weight: 700;
  transform: none;
  pointer-events: none; /* kliknięcie bieżącej strony nic nie robi */
}

.pagination .page-btn.prev-next,
.pagination .page-numbers.prev,
.pagination .page-numbers.next {
  width: auto;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 13px;
}

.pagination .page-btn.dots,
.pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
  color: rgba(26,46,28,0.45);
}

.pagination .page-btn.dots:hover,
.pagination .page-numbers.dots:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  color: rgba(26,46,28,0.45);
}

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

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

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

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

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

/* 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;
}

.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);
}

/* Popular posts */
.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.popular-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(45,122,58,0.10);
  color: #2d7a3a;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.popular-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a2e1c;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.popular-title:hover {
  color: #2d7a3a;
}

.popular-date {
  font-size: 12px;
  color: rgba(26,46,28,0.45);
  margin-top: 3px;
  display: block;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  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;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

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

/* Sidebar CTA card */
.sidebar-cta {
  background: linear-gradient(135deg, #0d3317 0%, #1f5e2a 100%);
  border-radius: 24px;
  padding: 32px;
  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 24px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

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

/* ════════════════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION
   ════════════════════════════════════════════════════════════════════════════ */

.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;
}

.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;
}

/* Natywny formularz (fallback lub własny) */
.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 (wtyczka: wordpress.org/plugins/newsletter)
   Klasy .tnp-* są generowane przez wtyczkę
   ════════════════════════════════════════════════════════════════════════════ */

/* Sekcja główna */
.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"],
.tnp-main-wrap .tnp-firstname,
.tnp-main-wrap input[type="text"] {
  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);
  box-shadow: none;
  -webkit-appearance: none;
}

.tnp-main-wrap .tnp-email::placeholder,
.tnp-main-wrap input[type="email"]::placeholder {
  color: rgba(26,46,28,0.40);
}

.tnp-main-wrap .tnp-email:focus,
.tnp-main-wrap input[type="email"]:focus {
  outline: none;
  border-color: #2d7a3a;
  box-shadow: 0 0 0 3px rgba(45,122,58,0.18);
  background: #fff;
}

.tnp-main-wrap .tnp-submit,
.tnp-main-wrap input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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;
  letter-spacing: 0.02em;
  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-main-wrap .tnp-result {
  text-align: center;
  font-size: 15px;
  padding: 16px 24px;
  border-radius: 16px;
  margin: 16px auto 0;
  max-width: 620px;
  background: rgba(45,122,58,0.08);
  color: #1f5e2a;
  border: 1px solid rgba(45,122,58,0.20);
}

/* Sidebar newsletter plugin */
.tnp-sidebar-wrap form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tnp-sidebar-wrap .tnp-email,
.tnp-sidebar-wrap input[type="email"],
.tnp-sidebar-wrap .tnp-firstname,
.tnp-sidebar-wrap input[type="text"] {
  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-email::placeholder,
.tnp-sidebar-wrap input[type="email"]::placeholder {
  color: rgba(26,46,28,0.38);
}

.tnp-sidebar-wrap .tnp-email:focus,
.tnp-sidebar-wrap input[type="email"]:focus {
  outline: none;
  border-color: #2d7a3a;
  box-shadow: 0 0 0 3px rgba(45,122,58,0.15);
}

.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;
  text-align: center;
}

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

/* ════════════════════════════════════════════════════════════════════════════
   STAN ŁADOWANIA AJAX
   ════════════════════════════════════════════════════════════════════════════ */

.blog-is-loading {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 64px 0;
}

.blog-spinner__ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(45,122,58,0.14);
  border-top-color: #2d7a3a;
  border-radius: 50%;
  animation: kdSpin 0.75s linear infinite;
}

@keyframes kdSpin { to { transform: rotate(360deg); } }

.blog-spinner__text {
  font-size: 14px;
  color: rgba(26,46,28,0.45);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMACJA WEJŚCIA KART (po AJAX)
   ════════════════════════════════════════════════════════════════════════════ */

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

.kd-animate-in {
  animation: kdFadeUp 0.42s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ════════════════════════════════════════════════════════════════════════════
   BRAK WPISÓW
   ════════════════════════════════════════════════════════════════════════════ */

.no-posts {
  text-align: center;
  padding: 80px 24px 96px;
  color: rgba(26,46,28,0.45);
}

.no-posts-icon {
  font-size: 52px;
  display: block;
  margin-bottom: 16px;
}

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

.no-posts-desc {
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   ANIMACJE GLOBALNE
   ════════════════════════════════════════════════════════════════════════════ */

@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
   ════════════════════════════════════════════════════════════════════════════ */

/* Siatka postów: 3→2 kolumny */
@media (max-width: 1100px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

/* Featured post: dwukolumnowy → jednokolumnowy */
@media (max-width: 900px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .featured-img-wrap img {
    min-height: 260px;
  }

  .featured-body {
    padding: 40px 32px;
  }
}

/* Siatka postów: 2→1 kolumna */
@media (max-width: 640px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-filter-bar {
    flex-direction: column;
    align-items: 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) {
  .kd-animate-in,
  .blog-spinner__ring,
  .hero::before,
  .hero-content {
    animation: none;
  }
  .kd-animate-in {
    opacity: 1;
    transform: none;
  }
}
