/* InSkill blog: blog home / archives / search, and the article page. Builds on course.css (header, footer, buttons, cards). */

/* ---------- hero (blog home & archives) ---------- */
.ik-hero--blog .ik-bhero { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding-top: 52px; padding-bottom: 54px; }
.ik-hero--blog h1 { max-width: 22ch; }
.ik-hero--blog .ik-hero__tag { max-width: 60ch; margin-bottom: 26px; }

.ik-bsearch { display: flex; align-items: center; gap: 10px; width: min(620px, 100%); padding: 6px 6px 6px 16px; background: #fff; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 10, 50, .35); color: var(--ik-muted); }
.ik-bsearch input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 4px; color: var(--ik-ink); background: transparent; }
.ik-bsearch .ik-btn { padding: 11px 22px; }

.ik-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ik-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.ik-chips a:hover { background: rgba(255, 255, 255, .22); }
.ik-chips a.is-active { background: #fff; color: var(--ik-blue-d) !important; border-color: #fff; }
.ik-chips small { opacity: .8; font-size: 12px; }

/* ---------- generated visual (posts have no images) ---------- */
.ik-vis { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; color: rgba(255, 255, 255, .92); background: linear-gradient(135deg, #1d5ff0, #0b2a7a); }
.ik-vis::before { content: ""; position: absolute; inset: 0; opacity: .9; background:
	repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px),
	repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 28px),
	radial-gradient(circle at 78% 24%, rgba(255, 255, 255, .28), transparent 46%); }
.ik-vis__ic { position: relative; width: 56px; height: 56px; stroke-width: 1.5; filter: drop-shadow(0 8px 14px rgba(0, 10, 50, .35)); }
.ik-vis__tag { position: absolute; left: 14px; bottom: 12px; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; font-weight: 700; letter-spacing: .03em; backdrop-filter: blur(4px); }
.ik-vis--0 { background: linear-gradient(135deg, #2563eb, #0b2a7a); }
.ik-vis--1 { background: linear-gradient(135deg, #0ea5e9, #1e3a8a); }
.ik-vis--2 { background: linear-gradient(135deg, #6366f1, #1e1b6b); }
.ik-vis--3 { background: linear-gradient(135deg, #0891b2, #0c3b6e); }
.ik-vis--4 { background: linear-gradient(135deg, #3b82f6, #4338ca); }
.ik-vis--5 { background: linear-gradient(135deg, #1d4ed8, #0f766e); }
.ik-vis--img { background: #0b1f55; }
.ik-vis--img::before { display: none; }
.ik-vis--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- list layout ---------- */
.ik-bmain { padding-top: 28px; padding-bottom: 64px; }
.ik-bmain__h { margin: 34px 0 16px; }
.ik-bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.ik-bcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ik-line); border-radius: var(--ik-r); box-shadow: var(--ik-shadow); overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.ik-bcard:hover { transform: translateY(-3px); border-color: #b9cdf8; box-shadow: 0 2px 4px rgba(15, 27, 61, .06), 0 18px 36px rgba(15, 27, 61, .12); }
.ik-bcard__vis { display: block; text-decoration: none !important; }
.ik-bcard:hover .ik-vis__ic { transform: scale(1.08); }
.ik-vis__ic { transition: transform .25s; }
.ik-bcard__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ik-bcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 26px; }
.ik-chip { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--ik-sky); color: var(--ik-blue-d) !important; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-decoration: none !important; }
a.ik-chip:hover { background: #d8e5ff; }
.ik-chip--hot { background: #fff3d6; color: #9a5b00 !important; }
.ik-chip--course { background: #e3f7ec; color: #11703a !important; }
.ik-bcard__t { font-size: 19px; line-height: 1.32; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.ik-bcard__t a { color: var(--ik-ink) !important; text-decoration: none !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ik-bcard__t a:hover { color: var(--ik-blue) !important; }
.ik-bcard__ex { margin: 0; font-size: 15px; color: var(--ik-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ik-bcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ik-muted); }
.ik-bcard__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ik-bcard__meta .ik-i { width: 15px; height: 15px; }
.ik-bcard__go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13.5px; color: var(--ik-blue) !important; text-decoration: none !important; }
.ik-bcard__go .ik-i { width: 15px; height: 15px; transition: transform .2s; }
.ik-bcard:hover .ik-bcard__go .ik-i { transform: translateX(3px); }

/* featured (newest) post */
.ik-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff; border: 1px solid var(--ik-line); border-radius: 18px; box-shadow: var(--ik-shadow); overflow: hidden; }
.ik-feature__vis { display: block; text-decoration: none !important; }
.ik-feature__vis .ik-vis { height: 100%; aspect-ratio: auto; min-height: 280px; }
.ik-feature__vis .ik-vis__ic { width: 84px; height: 84px; }
.ik-feature__body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 32px 36px; }
.ik-feature__body h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.ik-feature__body h2 a { color: var(--ik-ink) !important; text-decoration: none !important; }
.ik-feature__body h2 a:hover { color: var(--ik-blue) !important; }
.ik-feature__body p { margin: 0; color: var(--ik-muted); font-size: 16.5px; }
.ik-feature .ik-bcard__meta { margin-top: 0; padding-top: 0; }

/* pager */
.ik-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.ik-pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--ik-line); color: var(--ik-ink) !important; font-weight: 600; text-decoration: none !important; }
.ik-pager a.page-numbers:hover { border-color: var(--ik-blue); color: var(--ik-blue) !important; }
.ik-pager .page-numbers.current { background: var(--ik-blue); border-color: var(--ik-blue); color: #fff !important; box-shadow: 0 6px 14px rgba(29, 95, 240, .3); }
.ik-pager .page-numbers.dots { border: 0; background: none; min-width: 20px; padding: 0; }
.ik-pager__note { text-align: center; color: var(--ik-muted); font-size: 14px; margin: 12px 0 0; }

.ik-empty { text-align: center; padding: 56px 24px; }
.ik-empty__ic { width: 44px; height: 44px; color: var(--ik-blue); margin-bottom: 8px; }
.ik-empty h2 { font-size: 24px; margin-bottom: 6px; }
.ik-empty p { color: var(--ik-muted); margin: 0 0 18px; }

/* call-to-action band */
.ik-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 56px; padding: 32px 36px; border-radius: 18px; color: #fff;
	background: radial-gradient(circle at 85% 20%, rgba(120, 170, 255, .4), transparent 50%), linear-gradient(120deg, #06133a, #0c2670 55%, #1858e6); box-shadow: 0 20px 44px rgba(12, 38, 112, .3); }
.ik-cta h2 { color: #fff !important; font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.ik-cta p { margin: 0; color: #cfe0ff; max-width: 52ch; }
.ik-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ik-btn--light { background: #fff; color: var(--ik-blue-d) !important; }
.ik-btn--light:hover { background: #eaf1ff; }
.ik-btn--ghost-light { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .55); }
.ik-btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }

/* ---------- article page ---------- */
.ik-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 90; background: transparent; pointer-events: none; }
.admin-bar .ik-progress { top: 32px; }
.ik-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4f8cff, #1d5ff0); border-radius: 0 3px 3px 0; transition: width .08s linear; }

.ik-hero--article .ik-ahero { position: relative; padding-top: 48px; padding-bottom: 50px; }
.ik-hero--article .ik-badge { text-decoration: none !important; color: #fff !important; }
.ik-hero--article h1 { color: #fff !important; font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin: 16px 0 18px; max-width: 26ch; }
.ik-ameta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: #cfe0ff; font-size: 15px; }
.ik-ameta li { display: inline-flex; align-items: center; gap: 8px; }
.ik-ameta .ik-i { width: 17px; height: 17px; }

.ik-alayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.ik-article { background: #fff; border: 1px solid var(--ik-line); border-radius: 18px; box-shadow: var(--ik-shadow); padding: 40px 48px 32px; min-width: 0; }
/* aside column spans the whole article height so the sticky tools card has room to travel */
.ik-aside { align-self: stretch; }
.ik-aside__stick { position: sticky; top: calc(var(--ik-header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.admin-bar .ik-aside__stick { top: calc(var(--ik-header-h) + 48px); }

.ik-prose--article { font-size: 17.5px; line-height: 1.85; color: #243055; max-width: 72ch; }
.ik-prose--article p { margin: 0 0 18px; }
.ik-prose--article h2 { font-size: 27px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; margin: 42px 0 14px; scroll-margin-top: calc(var(--ik-header-h) + 24px); }
.ik-prose--article h3 { font-size: 21px; font-weight: 700; margin: 30px 0 10px; scroll-margin-top: calc(var(--ik-header-h) + 24px); }
.ik-prose--article h2:first-child, .ik-prose--article h3:first-child { margin-top: 0; }
.ik-prose--article ul { margin: 6px 0 20px; }
.ik-prose--article ul li { padding: 4px 0 4px 28px; }
.ik-prose--article ul li::before { top: 15px; }
.ik-prose--article ol { margin: 6px 0 20px 24px; }
.ik-prose--article ol li { padding: 4px 0 4px 6px; }
.ik-prose--article strong { color: var(--ik-ink); }
.ik-prose--article blockquote { margin: 24px 0; padding: 16px 22px; border-left: 4px solid var(--ik-blue); background: var(--ik-sky); border-radius: 0 12px 12px 0; color: var(--ik-ink); }
.ik-prose--article figure { margin: 26px 0; }
.ik-prose--article figure img, .ik-prose--article img { border-radius: 12px; height: auto; }
.ik-prose--article table { margin: 22px 0; font-size: 15.5px; line-height: 1.55; border: 1px solid var(--ik-line); border-radius: 12px; }
.ik-prose--article th { background: var(--ik-sky); color: var(--ik-ink); font-weight: 700; }
.ik-prose--article tr:nth-child(even) td { background: #f8faff; }
.ik-prose--article a { color: var(--ik-blue); }
.ik-prose--article span[style] { font-size: inherit !important; font-family: inherit !important; color: inherit !important; }
/* old posts carry inline Word/Elementor styles (e.g. font-weight:400 inside headings): headings keep our design */
.ik-prose--article :is(h2, h3, h4, h5, h6), .ik-prose--article :is(h2, h3, h4, h5, h6) * { font-weight: 700 !important; font-family: var(--ik-font) !important; color: var(--ik-ink) !important; font-size: inherit !important; }
.ik-prose--article h2, .ik-prose--article h2 * { font-weight: 800 !important; }
.ik-prose--article h4 { font-size: 19px; line-height: 1.35; margin: 28px 0 8px; }
.ik-prose--article :is(h5, h6) { font-size: 17.5px; line-height: 1.4; margin: 24px 0 6px; }
.ik-prose--article h5 { color: var(--ik-blue-d) !important; }
.ik-prose--article h5 * { color: var(--ik-blue-d) !important; }

.ik-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--ik-line); }
.ik-share strong { margin-right: 4px; }
.ik-share a, .ik-share button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #cfd8ec; background: #fff; color: var(--ik-ink) !important; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.ik-share a:hover, .ik-share button:hover { border-color: var(--ik-blue); color: var(--ik-blue) !important; }
.ik-share .ik-i { width: 16px; height: 16px; }
.ik-share button.is-done { border-color: var(--ik-green); color: var(--ik-green) !important; }

.ik-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.ik-prevnext__a { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border: 1px solid var(--ik-line); border-radius: 12px; background: #f8faff; color: var(--ik-ink) !important; text-decoration: none !important; }
.ik-prevnext__a:hover { border-color: #b9cdf8; background: var(--ik-sky); }
.ik-prevnext__a small { display: inline-flex; align-items: center; gap: 4px; color: var(--ik-blue); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.ik-prevnext__a small .ik-i { width: 14px; height: 14px; }
.ik-prevnext__a span { font-weight: 600; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ik-prevnext__a--next { text-align: right; align-items: flex-end; grid-column: 2; }
.ik-prevnext__a:only-child { grid-column: 1 / -1; }

/* contents list */
.ik-toc ol { display: flex; flex-direction: column; gap: 1px; }
.ik-toc a { display: block; padding: 5px 10px; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ik-muted) !important; text-decoration: none !important; }
.ik-toc a:hover { color: var(--ik-blue) !important; background: #f4f8ff; }
.ik-toc a.is-active { color: var(--ik-blue-d) !important; border-left-color: var(--ik-blue); background: var(--ik-sky); font-weight: 600; }
.ik-toc__l3 a { padding-left: 24px; font-size: 13.5px; }

.ik-sidecta { text-align: left; background: linear-gradient(180deg, #f4f8ff, #fff); }
.ik-sidecta__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, #4f8cff, #1b3fae); color: #fff; margin-bottom: 12px; }
.ik-sidecta h2 { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.ik-sidecta p { margin: 0 0 14px; color: var(--ik-muted); font-size: 15px; }
.ik-sidecta__link { display: block; text-align: center; margin-top: 12px; font-size: 14.5px; font-weight: 600; }

.ik-moreposts { padding-bottom: 64px; }
.ik-moreposts .ik-h2 { margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
	.ik-bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ik-alayout { grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; }
	.ik-article { padding: 32px 30px 26px; }
}

@media (max-width: 900px) {
	.ik-feature { grid-template-columns: 1fr; }
	.ik-feature__vis .ik-vis { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
	.ik-feature__body { padding: 24px; }
	.ik-alayout { grid-template-columns: 1fr; }
	.ik-aside__stick { position: static; top: auto !important; }
	.ik-toc { display: none; }
	.ik-progress { top: 0; }
	.ik-cta { padding: 26px 24px; }
}

@media (max-width: 640px) {
	.ik-bgrid { grid-template-columns: 1fr; }
	.ik-article { padding: 24px 20px 22px; border-radius: 14px; }
	.ik-prose--article { font-size: 16.5px; line-height: 1.8; }
	.ik-prose--article h2 { font-size: 23px; margin-top: 34px; }
	.ik-prevnext { grid-template-columns: 1fr; }
	.ik-prevnext__a--next { grid-column: 1; text-align: left; align-items: flex-start; }
	.ik-bsearch { flex-wrap: wrap; padding: 8px; }
	.ik-bsearch .ik-i { display: none; }
	.ik-bsearch input { flex: 1 1 100%; padding: 8px 10px; }
	.ik-bsearch .ik-btn { width: 100%; }
	.ik-hero--blog .ik-bhero { padding-top: 36px; padding-bottom: 38px; }
}
