/* Pelud Immigration — inner pages: blog, article, services, consultation */

/* ---------- Blog index ---------- */
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { width: 100%; font: inherit; font-size: 15px; padding: 13px 16px 13px 44px; border-radius: 999px; border: 1.5px solid var(--ivory-2); background: var(--card); color: var(--text); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(192,154,91,.18); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--ivory-2); background: var(--card); color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--ink); color: #fff; }
.chip .n { opacity: .55; margin-left: 4px; font-size: 12.5px; }
.count { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--ivory-2), 0 10px 30px rgba(10,44,92,.06); transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 var(--ivory-2), 0 20px 40px rgba(10,44,92,.12); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), #24406a); position: relative; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold); font-family: "Playfair Display", Georgia, serif; font-size: 30px; font-weight: 600; letter-spacing: .04em; }
.post-card .tag { position: absolute; left: 12px; top: 12px; background: rgba(10,44,92,.85); color: var(--gold-2); font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.post-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h3 { font-size: 20px; line-height: 1.25; }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14px; color: var(--gold-ink); }
.post-card.featured { grid-column: span 2; flex-direction: row; }
.post-card.featured .thumb { aspect-ratio: auto; flex: 1 1 55%; min-height: 300px; }
.post-card.featured .body { flex: 1 1 45%; padding: 30px; justify-content: center; }
.post-card.featured h3 { font-size: 28px; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; display: none; }

/* ---------- Article ---------- */
.article-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--muted-dark); font-size: 15px; margin-top: 22px; }
.article-hero .meta .by { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; }
.article-hero .meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.article-hero .tag { display: inline-block; background: rgba(192,154,91,.15); color: var(--gold-2); font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: -120px 0 36px; box-shadow: 0 30px 60px rgba(10,44,92,.25); position: relative; aspect-ratio: 16 / 8; background: var(--navy); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 18px; line-height: 1.75; color: #1d3a66; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 28px; margin-top: 1.7em; }
.prose ul, .prose ol { margin-bottom: 0; padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--gold-ink); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose blockquote { margin-left: 0; margin-right: 0; margin-bottom: 0; border-left: 4px solid var(--gold); padding: 6px 0 6px 20px; font-family: "Playfair Display", Georgia, serif; font-size: 22px; color: var(--ink); }
.prose a { color: var(--gold-ink); }
.fr-note { margin-bottom: 26px; }
.aside { position: sticky; top: 120px; display: grid; gap: 18px; }
.cta-card { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.cta-card::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, rgba(192,154,91,.35), transparent); }
.cta-card h3 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.cta-card p { color: var(--muted-dark); font-size: 15px; margin: 0 0 18px; }
.cta-card .btn { width: 100%; position: relative; z-index: 1; }
.cta-card .btn + .btn { margin-top: 10px; }
.cta-card .btn.ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-card .btn.ghost:hover { border-color: #fff; }
.share { background: var(--card); border-radius: var(--radius); padding: 18px 20px; font-size: 14px; color: var(--muted); box-shadow: 0 1px 0 var(--ivory-2); }
.share b { display: block; color: var(--ink); margin-bottom: 6px; }
.share a { color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.article-end { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--ivory-2); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.related { background: var(--ivory-2); }
.related .posts { grid-template-columns: repeat(3, 1fr); }
.progress-bar { position: fixed; top: 96px; left: 0; height: 3px; background: var(--gold); width: 0; z-index: 61; transition: width .1s linear; }

/* ---------- Services ---------- */
.svc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
.svc-nav { position: sticky; top: 120px; display: grid; gap: 2px; }
.svc-nav h4 { font-family: Inter, sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.svc-nav h4:first-child { margin-top: 0; }
.svc-nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 7px 12px; border-radius: 10px; border-left: 2px solid transparent; transition: all .2s; }
.svc-nav a:hover { color: var(--ink); background: var(--card); }
.svc-nav a.on { color: var(--ink); background: var(--card); border-left-color: var(--gold); font-weight: 600; }
.svc-group-title { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); font-family: Inter, sans-serif; margin: 10px 0 18px; }
.svc-group-title:not(:first-child) { margin-top: 56px; }
.svc { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: 0 1px 0 var(--ivory-2), 0 10px 30px rgba(10,44,92,.05); scroll-margin-top: 120px; }
.svc + .svc { margin-top: 22px; }
.svc-top { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.svc-code { display: inline-grid; place-items: center; min-width: 64px; height: 64px; padding: 0 12px; border-radius: 16px; background: var(--navy); color: var(--gold); font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; flex: none; }
.svc-title { flex: 1 1 300px; display: flex; gap: 18px; align-items: center; }
.svc-title h3 { font-size: 28px; }
.svc-title p { margin: 4px 0 0; color: var(--muted); }
.svc-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 6px; }
.svc-facts > span { background: var(--ivory); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; color: var(--ink); }
.svc-facts > span > b { color: var(--gold-ink); font-weight: 600; }
.svc > p.lead { font-size: 17px; color: #d3dbe7; margin: 18px 0 0; }
.acc { border-top: 1px solid var(--ivory-2); margin-top: 22px; }
.acc details { border-bottom: 1px solid var(--ivory-2); }
.acc summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 16px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--gold-ink); border-bottom: 2px solid var(--gold-ink); transform: translateY(-70%) rotate(45deg); transition: transform .25s; }
.acc details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc .in { padding: 0 0 20px; color: #d3dbe7; font-size: 15.5px; }
.acc .in ul { margin: 0; padding-left: 1.2em; }
.acc .in li + li { margin-top: 6px; }
.acc .in p { margin: 0 0 10px; }
.faq dt { font-weight: 600; color: var(--ink); margin-top: 14px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 4px 0 0; color: #c3cddb; }
.svc-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.svc-cta small { color: var(--muted); font-size: 13px; }
.svc-reads { font-size: 14px; color: var(--muted); }
.svc-reads a { color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.svc-reads a:hover { text-decoration: underline; }

/* ---------- Consultation ---------- */
.consult { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.form-card { background: var(--card); border-radius: 22px; padding: 34px; box-shadow: 0 1px 0 var(--ivory-2), 0 20px 50px rgba(10,44,92,.08); margin-top: -110px; position: relative; z-index: 2; }
.steps { display: flex; gap: 8px; margin-bottom: 26px; }
.steps span { flex: 1; height: 5px; border-radius: 4px; background: var(--ivory-2); position: relative; overflow: hidden; }
.steps span::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.steps span.done::after { transform: none; }
.step-label { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 6px; }
.step h2 { font-size: 30px; margin-bottom: 6px; }
.step > p { color: var(--muted); margin: 0 0 24px; }
.step { display: none; animation: stepIn .45s cubic-bezier(.2,.7,.2,1); }
.step.on { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 15.5px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ivory-2); background: var(--card); color: var(--text); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(192,154,91,.18); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: #d0533f; }
.field .err { display: none; color: #b8402d; font-size: 13px; }
.field.bad .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cards label { position: relative; cursor: pointer; }
.cards input { position: absolute; opacity: 0; pointer-events: none; }
.cards .c { display: grid; gap: 2px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--ivory-2); background: var(--card); transition: all .2s; height: 100%; }
.cards .c b { color: var(--ink); font-size: 15px; }
.cards .c small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.cards label:hover .c { border-color: var(--ink); }
.cards input:checked + .c { border-color: var(--gold); background: var(--card-2); box-shadow: 0 0 0 3px rgba(192,154,91,.2); }
.cards input:focus-visible + .c { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #c3cddb; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.review { background: var(--ivory); border-radius: 14px; padding: 18px; display: grid; gap: 8px; font-size: 14.5px; }
.review div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; color: var(--ink); font-weight: 500; word-break: break-word; }
.done-screen { text-align: center; padding: 20px 0; }
.done-screen .tick { width: 80px; height: 80px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; animation: pop .6s cubic-bezier(.2,1.6,.4,1); }
.done-screen .tick svg { width: 40px; height: 40px; color: var(--ink); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.done-screen h2 { font-size: 32px; margin-bottom: 10px; }
.done-screen p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; }
.side-info { display: grid; gap: 18px; }
.info-card { background: var(--card); border-radius: 18px; padding: 24px; box-shadow: 0 1px 0 var(--ivory-2); }
.info-card h3 { font-size: 21px; margin-bottom: 12px; }
.info-card ol { margin: 0; padding-left: 1.2em; color: #c3cddb; }
.info-card li + li { margin-top: 8px; }
.info-card .row { display: flex; gap: 12px; align-items: center; }
.info-card .row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }
.info-card .row b { color: var(--ink); display: block; }
.info-card .row small { color: var(--muted); }
.info-card a { color: var(--gold-ink); font-weight: 600; text-decoration: none; }
.dev-note { font-size: 13px; color: var(--muted); border: 1px dashed #cdbf9f; border-radius: 12px; padding: 12px 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .posts, .related .posts { grid-template-columns: repeat(2, 1fr); }
  .article-wrap { grid-template-columns: 1fr; gap: 36px; }
  .aside { position: static; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-nav { position: static; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .svc-nav h4 { display: none; }
  .svc-nav a { white-space: nowrap; background: var(--card); border-left: 0; border: 1.5px solid var(--ivory-2); border-radius: 999px; }
  .svc-nav a.on { border-color: var(--gold); }
  .consult { grid-template-columns: minmax(0, 1fr); }
  .consult > * { min-width: 0; }
}
@media (max-width: 640px) {
  .posts, .related .posts { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: auto; flex-direction: column; }
  .post-card.featured .thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card.featured .body { padding: 18px 20px 22px; }
  .post-card.featured h3 { font-size: 22px; }
  .article-cover { margin-top: -80px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .svc { padding: 22px; }
  .svc-title h3 { font-size: 24px; }
  .svc-code { min-width: 54px; height: 54px; font-size: 19px; }
  .form-card { padding: 22px; margin-top: -80px; }
  .fields { grid-template-columns: 1fr; }
  .review div { grid-template-columns: 1fr; gap: 0; }
  .step h2 { font-size: 25px; }
}
