/* AppCoders Blog — page-specific styles + Contact Form 7 overrides */

/* ─── Blog hero ─────────────────────────────────────────────────── */

.blog-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--ink-06);
  position: relative;
  overflow: hidden;
}

/* grid + glow background — mirrors homepage */
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-06) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* cyan radial glow */
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% -10%, rgba(41,197,246,.07), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 100%, rgba(41,197,246,.04), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.blog-hero .wrap { position: relative; z-index: 1; }

.blog-hero-inner {
  max-width: 640px;
}

/* staggered fade-up */
.blog-hero .eyebrow      { animation: ah-fadein .5s ease both; }
.blog-hero .blog-hero-title { animation: ah-fadein .6s ease .1s both; }
.blog-hero .blog-hero-sub   { animation: ah-fadein .5s ease .25s both; }

.blog-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  text-wrap: balance;
}

.blog-hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-70);
  max-width: 52ch;
  line-height: 1.55;
}

/* ─── Posts section ─────────────────────────────────────────────── */

.posts-section {
  padding: 72px 0 100px;
}

/* Grid: same gap/border trick used on main site task/offer grids */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-06);
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ─── Post card ─────────────────────────────────────────────────── */

.post-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

.post-card:hover {
  background: var(--bg-soft);
}

.post-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.03);
}

.post-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  padding: 5px 10px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  background: var(--bg);
  text-transform: uppercase;
}

.cat-chip .pulse {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(41, 197, 246, 0.6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.post-card-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.03em;
}

.post-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
}

.post-card-title a {
  color: var(--ink);
  transition: color 0.2s ease;
}

.post-card-title a:hover {
  color: var(--cyan);
}

.post-card-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--ink-70);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--ink-06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-card-date {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-50);
  letter-spacing: 0.02em;
}

.post-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, gap 0.2s ease;
}

.post-card-cta:hover {
  color: var(--cyan);
  gap: 9px;
}

/* ─── Pagination ────────────────────────────────────────────────── */

.blog-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.blog-pagination .nav-links {
  display: flex !important;
  gap: 8px;
  align-items: center;
  position: static !important;
  flex-direction: row !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  font-size: 14px !important;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-70);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.blog-pagination .page-numbers:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.blog-pagination .page-numbers.current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.blog-pagination .page-numbers::after {
  display: none !important;
}

/* ─── Empty state ───────────────────────────────────────────────── */

.posts-empty {
  text-align: center;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: var(--ink-70);
}

/* ─── Article hero ──────────────────────────────────────────────── */

.article-hero {
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
}

/* grid + glow background — mirrors homepage */
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--ink-06) 1px, transparent 1px),
    linear-gradient(to bottom, var(--ink-06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* cyan radial glow */
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(41,197,246,.07), transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(41,197,246,.04), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.article-hero .wrap { position: relative; z-index: 1; }

.article-hero-inner {
  max-width: 800px;
  padding-bottom: 40px;
}

/* staggered fade-up on load */
@keyframes ah-fadein {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.article-hero .breadcrumb    { animation: ah-fadein .5s ease both; }
.article-hero .eyebrow       { animation: ah-fadein .5s ease .1s both; }
.article-hero .article-title { animation: ah-fadein .6s ease .2s both; }
.article-hero .article-meta  { animation: ah-fadein .5s ease .35s both; }
.article-thumb               { animation: ah-fadein .7s ease .45s both; }

.article-hero .breadcrumb {
  margin-bottom: 28px;
}

.article-hero .eyebrow {
  margin-bottom: 24px;
}

.article-hero .eyebrow a {
  color: inherit;
  transition: color 0.2s ease;
}

.article-hero .eyebrow a:hover {
  color: var(--ink);
}

.article-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  text-wrap: balance;
  max-width: 20ch;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-50);
  letter-spacing: 0.03em;
}

.article-sep {
  color: var(--ink-30);
}

.article-thumb {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 480px;
}

/* ─── Article + sidebar layout ──────────────────────────────────── */

.article-content-section {
  padding: 64px 0 80px;
}

.article-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.article-main {
  min-width: 0; /* prevent grid blowout */
}

/* ─── Sidebar ───────────────────────────────────────────────────── */

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 96px; /* below sticky nav */
  min-width: 0;
  width: 100%;
}

.sidebar-widget {
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
}

.sidebar-widget-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin: 0 0 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-widget-title::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex-shrink: 0;
}

/* Search widget */
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-search:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41, 197, 246, 0.14);
}

.sidebar-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  min-width: 0;
}

.sidebar-search-input::placeholder {
  color: var(--ink-30);
}

.sidebar-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--ink-03);
  color: var(--ink-70);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-search-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* Categories widget */
.sidebar-cats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-cats li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink-70);
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-cats li a:hover {
  background: var(--ink-03);
  color: var(--ink);
}

.sidebar-cat-active a {
  background: var(--ink-06);
  color: var(--ink);
  font-weight: 500;
}

.sidebar-cat-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-30);
  letter-spacing: 0.03em;
}

/* Recent posts widget */
.sidebar-recent {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-recent-item + .sidebar-recent-item {
  border-top: 1px solid var(--ink-06);
}

.sidebar-recent-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  transition: opacity 0.2s ease;
}

.sidebar-recent-link:hover {
  opacity: 0.75;
}

.sidebar-recent-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.sidebar-recent-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-recent-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-50);
  letter-spacing: 0.03em;
}

/* ─── Article body ──────────────────────────────────────────────── */

.article-content-section {
  padding: 64px 0 80px;
}

.article-body {
  min-width: 0;
  font-size: 18px;
  line-height: 1.72;
  color: var(--ink);
}

/* Article nav also removes the old centred max-width since it lives in the grid column */

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 56px 0 18px;
  color: var(--ink);
}

.article-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 40px 0 14px;
  color: var(--ink);
}

.article-body h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  margin: 32px 0 10px;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--cyan-600);
}

.article-body ul,
.article-body ol {
  padding-left: 28px;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-body li {
  font-size: 18px;
  line-height: 1.6;
}

.article-body blockquote {
  margin: 36px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--cyan);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--ink-70);
}

.article-body blockquote p {
  margin: 0;
  font-size: 17px;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--ink-06);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.article-body pre {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
  padding: 24px 28px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 0 0 28px;
}

.article-body pre code {
  background: none;
  padding: 0;
  font-size: 14px;
  color: inherit;
}

.article-body img {
  border-radius: var(--radius-md);
  margin: 8px 0 28px;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--ink-06);
  margin: 48px 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 0 0 28px;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ink-06);
}

.article-body th {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-50);
  font-weight: 500;
}

/* ─── Article post navigation ───────────────────────────────────── */

.article-nav {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-06);
}

.article-nav-inner {
  display: flex;
  gap: 24px;
}

.article-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.article-nav-link:hover {
  border-color: var(--ink-12);
  background: var(--bg-soft);
}

.article-nav-next {
  text-align: right;
  align-items: flex-end;
}

.article-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.article-nav-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}

/* ─── Article contact section ───────────────────────────────────── */

.article-contact {
  padding: 100px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--ink-06);
}

.article-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.article-contact-head {
  position: sticky;
  top: 100px;
}

.article-contact-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 0;
  text-wrap: balance;
}

.article-contact-sub {
  margin-top: 16px;
  font-size: 16px;
  color: var(--ink-70);
  line-height: 1.55;
  max-width: 40ch;
}

/* ─── Contact Form 7 overrides ──────────────────────────────────── */

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wpcf7-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wpcf7-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.wpcf7-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  text-transform: uppercase;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(41, 197, 246, 0.14);
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}

.wpcf7-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230a0a0a' stroke-opacity='.4' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  align-self: flex-start;
}

.wpcf7-form input[type="submit"]:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Validation errors */
.wpcf7-not-valid-tip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #E11D48;
  letter-spacing: 0.03em;
  margin-top: 5px;
  display: block;
}

.wpcf7-not-valid {
  border-color: #E11D48 !important;
}

.wpcf7-response-output {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin: 0;
  border: none !important;
}

.wpcf7-mail-sent-ok {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted,
.wpcf7-validation-errors,
.wpcf7-acceptance-missing {
  background: rgba(244, 63, 94, 0.08);
  color: #E11D48;
}

/* CF7 placeholder fallback */
.cf7-placeholder {
  padding: 32px;
  border: 1px dashed var(--ink-12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--ink-70);
  font-size: 15px;
  line-height: 1.55;
}

.cf7-placeholder code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--ink-06);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* ─── Hero two-column layout ─────────────────────────────────── */

.hero-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: center;
}

/* ─── Right-side automation animation panel ─────────────────── */

.hero-anim {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 340px;
  border: 1px solid var(--ink-06);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(41,197,246,.06), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(41,197,246,.04), transparent 60%),
    #fff;
  flex-shrink: 0;
}

.hero-anim .wf-grid {
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 60%, transparent 90%);
}

/* Float animation that preserves the centering translateX */
@keyframes ha-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

.hero-anim .wf-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  animation: ha-float 7s ease-in-out infinite;
  min-width: 164px;
  z-index: 2;
}

.ha-n1 { top: 8%;    animation-delay: 0s;  }
.ha-n2 { top: 40%;   animation-delay: -2.5s; }
.ha-n3 { bottom: 8%; animation-delay: -4.5s; }

.hero-anim .wf-brain-ring {
  width: 74%;
  height: 74%;
  border-color: var(--ink-06);
}

.hero-anim .wf-spark { position: absolute; }
.hero-anim .s1 { top: 22%;    left: 22%;  }
.hero-anim .s2 { top: 56%;    right: 18%; }
.hero-anim .s3 { bottom: 22%; left: 46%;  }

/* ─── Article hero border (matches blog index) ───────────────── */

.article-hero {
  border-bottom: 1px solid var(--ink-06);
}

/* ─── Responsive ────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .hero-row {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-with-sidebar {
    grid-template-columns: 1fr 260px;
    gap: 36px;
  }

  .article-contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-contact-head {
    position: static;
  }
}

@media (max-width: 700px) {
  /* Sidebar drops below article only on phones */
  .article-with-sidebar {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .hero-row {
    grid-template-columns: 1fr;
  }

  .hero-anim {
    display: none;
  }

  .blog-hero {
    padding: 40px 0 36px;
  }

  .posts-section {
    padding: 48px 0 72px;
  }

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

  .post-card-body {
    padding: 22px 22px 26px;
  }

  .article-hero {
    padding: 36px 0 0;
  }

  .article-title {
    font-size: 32px;
  }

  .article-content-section {
    padding: 48px 0 64px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-nav-inner {
    flex-direction: column;
  }

  .article-nav-next {
    text-align: left;
    align-items: flex-start;
  }

  .article-contact {
    padding: 72px 0;
  }

  .wpcf7-form .form-row {
    grid-template-columns: 1fr;
  }

  .article-contact-title {
    font-size: 30px;
  }

  .article-sidebar {
    grid-template-columns: 1fr;
    position: static;
  }
}
