/* Blog listing */
.wofdi-blog {
  --navy:    #2F3759;
  --navy-d:  #1e2440;
  --orange:  #CC6C2B;
  --orange2: #e07a35;
  --cream:   #f4f1eb;
  --white:   #ffffff;
  --ink:     #1a1c24;
  --muted:   #7c8090;
  --rule:    #e0dbd2;
  --blog-width: 820px;
  font-family: 'Barlow', sans-serif;
  color: var(--ink);
}

.wofdi-blog,
.wofdi-blog *,
.wofdi-blog *::before,
.wofdi-blog *::after {
  box-sizing: border-box;
}

.wofdi-blog .blog-layout {
  width: 100%;
  max-width: var(--blog-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── TICKER ── */
.wofdi-blog .ticker {
  background: var(--navy-d);
  overflow: hidden;
  padding: 9px 0;
  border-bottom: 2px solid var(--orange);
}
.wofdi-blog .ticker-track {
  display: flex;
  white-space: nowrap;
  animation: tick 32s linear infinite;
}
@keyframes tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.wofdi-blog .ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 0 28px;
  flex-shrink: 0;
}
.wofdi-blog .ticker-item b { color: var(--orange); font-weight: 800; margin-right: 10px; }

/* ── HERO (full width image) ── */
.wofdi-blog .blog-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--cream);
  line-height: 0;
}
.wofdi-blog .blog-hero__image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.wofdi-blog .blog-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: linear-gradient(180deg, rgba(30, 36, 64, 0.35) 0%, rgba(30, 36, 64, 0.55) 100%);
}
.wofdi-blog .blog-hero__copy {
  text-align: center;
  max-width: 640px;
}
.wofdi-blog .hero-title {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.3px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.wofdi-blog .hero-title em {
  font-style: italic;
  color: #f0c98a;
}
.wofdi-blog .hero-sub {
  margin: 8px 0 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .3px;
  line-height: 1.45;
}

.wofdi-blog .blog-page__body {
  background: var(--cream);
  padding: 48px 0 72px;
}

/* ── FEED ── */
.wofdi-blog .feed {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── POST CARD ── */
.wofdi-blog .post-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: none;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  position: relative;
  transition: box-shadow .22s;
  text-decoration: none;
  color: inherit;
}
.wofdi-blog .feed > .post-card:first-child { border-top: 1px solid var(--rule); }
.wofdi-blog .post-card:hover { box-shadow: 0 6px 32px rgba(47,55,89,.10); z-index: 2; }
.wofdi-blog .post-card--inactive {
  opacity: 0.82;
}
.wofdi-blog .post-card--inactive .card-img img {
  filter: grayscale(0.35);
}

/* Left accent bar on hover */
.wofdi-blog .post-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.wofdi-blog .post-card:hover::before { transform: scaleY(1); }

/* Layout: image right for even, left for odd handled by CSS */
.wofdi-blog .post-card-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  min-height: 0;
}
.wofdi-blog .post-card:nth-child(even) .post-card-inner {
  grid-template-columns: 280px 1fr;
}
.wofdi-blog .post-card:nth-child(even) .card-img { order: -1; }

/* Image — заполняет колонку карточки, обрезка по cover как в макете */
.wofdi-blog .card-img {
  overflow: hidden;
  position: relative;
  background: var(--white);
  min-height: 220px;
  align-self: stretch;
}
.wofdi-blog .card-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.wofdi-blog .post-card:hover .card-img img { transform: scale(1.05); }

/* Video badge */
.wofdi-blog .vbadge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 16px rgba(0,0,0,.35);
  transition: transform .22s, box-shadow .22s;
  z-index: 3;
}
.wofdi-blog .post-card:hover .vbadge {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 5px 24px rgba(0,0,0,.4);
}
.wofdi-blog .vbadge svg { fill: white; width: 18px; margin-left: 3px; }

/* Gallery count badge */
.wofdi-blog .gbadge {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(20,22,35,.78);
  backdrop-filter: blur(4px);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
  display: flex; align-items: center; gap: 4px;
}
.wofdi-blog .gbadge svg { fill: white; width: 11px; }

/* Body — типографика в стиле hero */
.wofdi-blog .card-body {
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  min-width: 0;
  font-family: 'Open Sans', sans-serif;
}

.wofdi-blog .tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wofdi-blog .tag-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.wofdi-blog .tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 2px;
}
.wofdi-blog .tag-filled { background: var(--navy); color: white; }
.wofdi-blog .tag-filled.orange { background: var(--orange); }
.wofdi-blog .tag-outline { border: 1.5px solid var(--rule); color: var(--muted); }
.wofdi-blog .tag-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

/* Title */
.wofdi-blog .card-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.3px;
  margin: 0 0 10px;
  transition: color .18s;
}
.wofdi-blog .post-card:hover .card-title { color: var(--navy); }

/* Excerpt */
.wofdi-blog .card-excerpt {
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .3px;
  color: var(--muted);
  flex: 1;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

/* Footer */
.wofdi-blog .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--rule);
  gap: 12px;
  flex-wrap: wrap;
}
.wofdi-blog .read-link {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: none;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap .18s;
}
.wofdi-blog .post-card:hover .read-link { gap: 9px; }
.wofdi-blog .read-link svg { fill: var(--orange); }

/* Share */
.wofdi-blog .share-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.wofdi-blog .s-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rule);
  margin-right: 3px;
}
.wofdi-blog .share-row .sb {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 3px;
  box-shadow: none;
  background-image: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: transparent;
  font-size: 0;
  line-height: 0;
  vertical-align: top;
  transition: opacity 0.15s, transform 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.wofdi-blog .share-row .sb:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

.wofdi-blog .share-row .sb.fb { background: #1877F2; }
.wofdi-blog .share-row .sb.tw { background: #000; }
.wofdi-blog .share-row .sb.wa { background: #25D366; }
.wofdi-blog .share-row .sb.li { background: #0A66C2; }
.wofdi-blog .share-row .sb.cp { background: var(--navy); }

.wofdi-blog .share-row .sb svg {
  display: block;
  fill: #fff;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ── DIVIDER between cards ── */
.wofdi-blog .feed-divider {
  height: 1px;
  background: var(--rule);
  display: none; /* borders on cards handle it */
}

/* ── PAGINATION ── */
.wofdi-blog .pager {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 0 8px;
}
.wofdi-blog .p-btn {
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1.5px solid var(--rule);
  background: var(--white);
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 3px;
  transition: border-color .15s, color .15s, background .15s;
}
.wofdi-blog .p-btn:hover { border-color: var(--orange); color: var(--orange); }
.wofdi-blog .p-btn.active { background: var(--navy); color: white; border-color: var(--navy); }
.wofdi-blog .p-btn.arr { background: var(--orange); color: white; border-color: var(--orange); }
.wofdi-blog .p-btn.arr:hover { background: var(--orange2); border-color: var(--orange2); }
.wofdi-blog .p-btn.arr.off { background: var(--rule); color: var(--muted); border-color: var(--rule); pointer-events: none; }
.wofdi-blog .p-btn svg { fill: currentColor; width: 13px; }
.wofdi-blog .p-sep { color: var(--muted); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; padding: 0 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .wofdi-blog .hero-title {
    font-size: 26px;
  }
  .wofdi-blog .blog-page__body {
    padding: 28px 0 48px;
  }
  .wofdi-blog .post-card-inner,
  .wofdi-blog .post-card:nth-child(even) .post-card-inner {
    grid-template-columns: 1fr;
  }
  .wofdi-blog .post-card:nth-child(even) .card-img { order: 0; }
  .wofdi-blog .card-img,
  .wofdi-blog .card-img img {
    min-height: 180px;
    max-height: 220px;
  }
  .wofdi-blog .card-body { padding: 18px 16px 16px; }
  .wofdi-blog .card-title { font-size: 18px; }
}

.wofdi-blog .blog-pager {
  margin-top: 40px;
}