/* HR Spot blog: matches the main site (hrspot.co.in) header/footer tokens. Mobile first. */
:root {
	--hsb-ink: #102a56;
	--hsb-deep: #0b2147;
	--hsb-body: #22304a;
	--hsb-muted: #667085;
	--hsb-line: #e5eaf2;
	--hsb-bg: #f6f8fc;
	--hsb-link: #174ea6;
	--hsb-red: #d92534;
	--hsb-red-2: #b81d2b;
	--hsb-radius: 14px;
	--hsb-font: 'Poppins', sans-serif;
	--hsb-pad: clamp(16px, 6.5vw, 96px);
}

/* ---------- Astra compatibility for the main site header/footer ---------- */
body.hsb-site { background: #fff; }
.hsb-site .hsh button, .hsb-site .hsf button { box-shadow: none; text-transform: none; letter-spacing: normal; line-height: 1.4; }
.hsb-site .hsh .hsh-top-b, .hsb-site .hsh .hsh-top-b:hover, .hsb-site .hsh .hsh-top-b:focus { background: none; padding: 0 13px; }
.hsb-site .hsh .hsh-burger, .hsb-site .hsh .hsh-burger:hover, .hsb-site .hsh .hsh-burger:focus { background: #fff; padding: 0; }
.hsb-site .hsh .hsh-x, .hsb-site .hsh .hsh-x:hover, .hsb-site .hsh .hsh-x:focus { background: #f2f5f9; padding: 0; }
.hsb-site .hsh .hsh-cta, .hsb-site .hsh .hsh-cta:focus { background: var(--hsb-red); color: #fff; padding: 0 18px; border: 0; }
.hsb-site .hsh .hsh-cta:hover { background: var(--hsb-red-2); color: #fff; }
.hsb-site .hsh p, .hsb-site .hsf p { margin-bottom: 0; }
.hsb-site .hsh ul, .hsb-site .hsf ul { margin: 0; padding: 0; }
.hsb-site .hsh-pp a, .hsb-site .hsh-drop a { text-decoration: none; }
.hsb-site .hsf h2 { font-family: var(--hsb-font); line-height: 1.25; }
.hsb-site .hsf .hsf-btn { font-family: var(--hsb-font); }
.hsb-site .hsf .hsf-btn-red, .hsb-site .hsf .hsf-btn-red:focus { background: var(--hsb-red); color: #fff; border-color: transparent; padding: 10px 20px; }
.hsb-site .hsf .hsf-btn-red:hover { background: var(--hsb-red-2); }
.hsb-site .hsf address { margin: 0; }
.admin-bar .hsh { top: 32px; }
@media (max-width: 782px) { .admin-bar .hsh { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hsh { top: 0; } }
@media (max-width: 1099px) { .hsb-site .hsh .hsh-top-b, .hsb-site .hsh .hsh-top-b:hover { padding: 15px 10px; } .hsb-site .hsh .hsh-cta { padding: 0 14px; } }
@media (max-width: 1099px) { .hsb-site .hsh .hsh-drawer-foot .hsh-cta { padding: 0 18px; } }
/* Astra wraps everything in a 1200px container; blog views use the full width. */
.hsb-page .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.hsb-page #content { padding: 0; margin: 0; background: #fff; }
.hsb-page .site-content { background: #fff; }

/* ---------- Base ---------- */
.hsb { font-family: var(--hsb-font); color: var(--hsb-body); font-size: 16px; line-height: 1.65; }
.hsb *, .hsb *::before, .hsb *::after { box-sizing: border-box; }
.hsb :where(h1, h2, h3, h4, h5, h6) { font-family: var(--hsb-font); color: var(--hsb-ink); }
.hsb a { color: var(--hsb-link); }
.hsb a:focus-visible, .hsb button:focus-visible, .hsb input:focus-visible { outline: 3px solid #ffb020; outline-offset: 2px; border-radius: 6px; }
.hsb-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--hsb-pad); padding-right: var(--hsb-pad); }
.hsb-h1 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; line-height: 1.12; letter-spacing: -0.5px; margin: 0 0 10px; }
.hsb-h2 { font-size: clamp(20px, 3.4vw, 24px); font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
.hsb-lede { font-size: 16px; color: #3d4b63; max-width: 56ch; margin: 0 0 20px; }
.hsb-lede p { margin: 0; }
.hsb-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--hsb-muted); margin: 0 0 10px; }
.hsb-count { font-size: 13px; font-weight: 600; color: var(--hsb-muted); margin: -8px 0 18px; }
.hsb-empty { padding: 24px; background: var(--hsb-bg); border-radius: var(--hsb-radius); }

.hsb-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; background: var(--hsb-red); color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.hsb-btn:hover { background: var(--hsb-red-2); color: #fff; }

/* ---------- Intro band ---------- */
.hsb-intro { background: var(--hsb-bg); border-bottom: 1px solid var(--hsb-line); padding: 28px 0 28px; }
.hsb-intro__grid { display: grid; gap: 24px; }
.hsb-intro--archive { padding: 22px 0 24px; }
.hsb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--hsb-muted); margin: 0 0 12px; }
.hsb-crumbs a { color: var(--hsb-link); font-weight: 600; text-decoration: none; }
.hsb-crumbs a:hover { text-decoration: underline; }

.hsb-search { display: flex; gap: 8px; max-width: 560px; margin: 0; }
.hsb-search input[type="search"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; font: 15px/1.2 var(--hsb-font); color: var(--hsb-body); }
.hsb-search input[type="search"]::placeholder { color: #7a879c; }
.hsb-search button, .hsb-search button:hover, .hsb-search button:focus { height: 48px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--hsb-ink); color: #fff; font: 700 15px/1 var(--hsb-font); text-transform: none; letter-spacing: normal; cursor: pointer; }
.hsb-search button:hover { background: var(--hsb-deep); }

/* ---------- Topic chips (scroll sideways on phones) ---------- */
.hsb-chips { margin: 18px 0 0; }
.hsb-chips ul { list-style: none; margin: 0; padding: 2px 0 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hsb-chips ul::-webkit-scrollbar { display: none; }
.hsb-chips li { flex: 0 0 auto; margin: 0; }
.hsb-chips a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--hsb-line); border-radius: 999px; background: #fff; color: var(--hsb-ink); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.hsb-chips a:hover { border-color: var(--hsb-ink); }
.hsb-chips a[aria-current] { background: var(--hsb-ink); border-color: var(--hsb-ink); color: #fff; }

/* ---------- Layout ---------- */
.hsb-layout { display: grid; gap: 32px; padding-top: 22px; padding-bottom: 48px; }
.hsb-layout__side { min-width: 0; }

/* ---------- Cards ---------- */
.hsb-card { position: relative; margin: 0; }
.hsb-card__media { display: block; overflow: hidden; border-radius: 10px; background: #e9eef6; }
.hsb-card__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hsb-card__ph { display: block; width: 100%; height: 100%; min-height: 80px; background: linear-gradient(135deg, #e9eef6, #d6dfee); }
.hsb-card__cat { display: inline-block; font-size: 12px; font-weight: 700; color: var(--hsb-red) !important; text-decoration: none; margin: 0 0 4px; }
.hsb-card__cat:hover { text-decoration: underline; }
.hsb-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.hsb-card__title a { color: var(--hsb-ink); text-decoration: none; }
.hsb-card__title a:hover { color: var(--hsb-link); text-decoration: underline; }
.hsb-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.hsb-card__cat { position: relative; z-index: 1; }
.hsb-card__excerpt { display: none; font-size: 14px; color: #4a5872; margin: 0 0 8px; }
.hsb-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--hsb-muted); margin: 0; }
.hsb-card__meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: #a7b1c2; vertical-align: middle; margin-right: 12px; }

/* Row card: thumbnail left, text right */
.hsb-list { display: grid; gap: 0; }
.hsb-card--row { display: grid; grid-template-columns: 34% 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hsb-line); }
.hsb-list > .hsb-card--row:first-child { padding-top: 0; }
.hsb-card--row .hsb-card__media { aspect-ratio: 16 / 10; }
.hsb-list__cta { padding: 18px 0; border-bottom: 1px solid var(--hsb-line); }

/* Feature card (blog home "Latest") */
.hsb-card--feature { background: #fff; border: 1px solid var(--hsb-line); border-radius: var(--hsb-radius); overflow: hidden; transition: box-shadow .2s; }
.hsb-card--feature:hover { box-shadow: 0 14px 34px rgba(16, 42, 86, .10); }
.hsb-card--feature .hsb-card__media { border-radius: 0; aspect-ratio: 16 / 9; }
.hsb-card--feature .hsb-card__body { padding: 16px 18px 18px; }
.hsb-card--feature .hsb-card__title { font-size: clamp(18px, 2.4vw, 22px); }
.hsb-card--feature .hsb-card__excerpt { display: block; }

/* ---------- Sidebar + CTA ---------- */
.hsb-side { display: grid; gap: 20px; }
.hsb-side__box { border: 1px solid var(--hsb-line); border-radius: var(--hsb-radius); padding: 18px 18px 10px; background: #fff; }
.hsb .hsb-side__h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--hsb-muted); margin: 0 0 10px; }
.hsb-side__list { list-style: none; margin: 0; padding: 0; }
.hsb-side__list li { margin: 0; border-top: 1px solid #eef1f6; }
.hsb-side__list li:first-child { border-top: 0; }
.hsb-side__list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 14px; font-weight: 500; color: var(--hsb-ink); text-decoration: none; }
.hsb-side__list a:hover { color: var(--hsb-link); text-decoration: underline; }
.hsb-side__list a[aria-current] { color: var(--hsb-red); font-weight: 700; }
.hsb-side__list span { color: var(--hsb-muted); font-weight: 400; font-size: 13px; }

.hsb-cta { background: linear-gradient(160deg, #0b2147 0%, #123468 100%); color: #c7d3e6; border-radius: var(--hsb-radius); padding: 22px 20px; }
.hsb .hsb-cta__title { font-size: 19px; font-weight: 800; line-height: 1.25; color: #fff; margin: 0 0 8px; }
.hsb-cta__text { font-size: 14px; margin: 0 0 16px; }
.hsb-cta .hsb-btn { width: 100%; }
.hsb-cta__call { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: #e4ebf6 !important; text-decoration: none; }
.hsb-cta__call:hover { text-decoration: underline; }
/* One course CTA per view: inline on phones/tablets, sidebar on desktop. */
.hsb-layout__side .hsb-cta--side, .hsb-article__side .hsb-cta--side { display: none; }

/* ---------- Pagination ---------- */
.hsb-pager { margin: 28px 0 0; }
.hsb-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hsb-pager li { margin: 0; }
.hsb-pager a, .hsb-pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--hsb-line); border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--hsb-ink); text-decoration: none; }
.hsb-pager a:hover { border-color: var(--hsb-ink); }
.hsb-pager .current { background: var(--hsb-ink); border-color: var(--hsb-ink); color: #fff; }
.hsb-pager .dots { border: 0; min-width: 0; padding: 0 4px; }

/* ---------- Single article ---------- */
.hsb-article-head { background: var(--hsb-bg); border-bottom: 1px solid var(--hsb-line); padding: 22px 0 22px; }
.hsb-article-title { font-size: clamp(26px, 5.6vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.4px; margin: 0 0 12px; max-width: 30ch; }
.hsb-article-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--hsb-muted); margin: 0; }
.hsb-article-meta a { font-weight: 600; text-decoration: none; }
.hsb-article-meta a:hover { text-decoration: underline; }
.hsb-article-meta__by { color: var(--hsb-body); }
.hsb-article { display: grid; gap: 32px; padding-top: 22px; padding-bottom: 48px; }
.hsb-article__main { min-width: 0; max-width: 760px; }
.hsb-article__hero { margin: 0 0 22px; }
.hsb-article__hero img { display: block; width: 100%; height: auto; border-radius: var(--hsb-radius); }

.hsb-toc { border: 1px solid var(--hsb-line); border-radius: 12px; background: var(--hsb-bg); margin: 0 0 24px; }
.hsb-toc summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: var(--hsb-ink); font-size: 15px; }
.hsb-toc .hsb-toc__list { padding: 0 16px 14px 34px; }
.hsb-toc__list { margin: 0; font-size: 14px; line-height: 1.45; }
.hsb-toc__list li { margin: 0 0 8px; }
.hsb-toc__list a { color: var(--hsb-ink); text-decoration: none; }
.hsb-toc__list a:hover, .hsb-toc__list a.is-active { color: var(--hsb-red); }

/* Article body. :where() keeps specificity low so Elementor or block styles inside a post still win. */
.hsb-prose { font-size: 17px; line-height: 1.75; color: var(--hsb-body); overflow-wrap: break-word; }
.hsb-prose :where(p, ul, ol, table, figure, blockquote, pre) { margin: 0 0 1.15em; }
.hsb-prose :where(h2) { font-size: clamp(22px, 4vw, 27px); font-weight: 700; line-height: 1.25; margin: 1.7em 0 0.6em; scroll-margin-top: 110px; }
.hsb-prose :where(h3) { font-size: clamp(18px, 3.2vw, 21px); font-weight: 700; line-height: 1.3; margin: 1.5em 0 0.5em; scroll-margin-top: 110px; }
.hsb-prose :where(h4) { font-size: 17px; font-weight: 700; margin: 1.3em 0 0.4em; }
.hsb-prose :where(ul, ol) { padding-left: 1.3em; margin-left: 0; }
.hsb-prose :where(li) { margin: 0 0 0.4em; }
.hsb-prose :where(a) { color: var(--hsb-link); text-decoration: underline; text-underline-offset: 2px; }
.hsb-prose :where(strong, b) { color: var(--hsb-ink); }
.hsb-prose :where(img) { max-width: 100%; height: auto; border-radius: 10px; }
.hsb-prose :where(blockquote) { border: 0; border-left: 4px solid var(--hsb-red); background: var(--hsb-bg); padding: 14px 18px; border-radius: 0 10px 10px 0; font-style: normal; color: var(--hsb-ink); }
.hsb-prose :where(blockquote p:last-child) { margin-bottom: 0; }
.hsb-prose :where(table) { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; border: 0; }
.hsb-prose :where(th, td) { border: 1px solid var(--hsb-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.hsb-prose :where(th) { background: var(--hsb-bg); color: var(--hsb-ink); font-weight: 700; }
.hsb-prose :where(hr) { border: 0; border-top: 1px solid var(--hsb-line); margin: 2em 0; }
.hsb-prose :where(figcaption) { font-size: 13px; color: var(--hsb-muted); margin-top: 6px; }

.hsb-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 28px; padding-top: 20px; border-top: 1px solid var(--hsb-line); }
.hsb-share span { font-size: 13px; font-weight: 700; color: var(--hsb-muted); margin-right: 4px; }
.hsb-share a, .hsb-share button, .hsb-share button:hover, .hsb-share button:focus { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--hsb-line); border-radius: 999px; background: #fff; color: var(--hsb-ink); font: 600 13px/1 var(--hsb-font); text-decoration: none; cursor: pointer; }
.hsb-share a:hover, .hsb-share button:hover { border-color: var(--hsb-ink); }
.hsb-related { margin-top: 36px; }
.hsb-comments { margin-top: 36px; }

/* Phones: author on its own line, then date and read time */
@media (max-width: 759px) {
	.hsb-card--row .hsb-card__meta span:first-child { flex-basis: 100%; }
	.hsb-card--row .hsb-card__meta span:nth-child(2)::before { display: none; }
}

/* ---------- Tablet ---------- */
@media (min-width: 760px) {
	.hsb-intro { padding: 40px 0 36px; }
	.hsb-card--row { grid-template-columns: 240px 1fr; gap: 20px; padding: 20px 0; }
	.hsb-card__title { font-size: 18px; }
	.hsb-card--row .hsb-card__excerpt { display: block; }
	.hsb-article-head { padding: 32px 0 30px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
	.hsb-intro--lead .hsb-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 56px; }
	.hsb-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 28px; padding-bottom: 72px; }
	.hsb-chips ul { flex-wrap: wrap; overflow: visible; }
	.hsb-layout__side .hsb-side { position: sticky; top: 100px; }
	.hsb-list__cta { display: none; }
	.hsb-layout__side .hsb-cta--side { display: block; }
	.hsb-article { grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 56px; padding-top: 32px; padding-bottom: 72px; }
	.hsb-article__side { position: sticky; top: 100px; align-self: start; display: grid; gap: 20px; }
	.hsb-article__side .hsb-cta--side { display: block; }
	.hsb-article__main > .hsb-cta--inline { display: none; }
	.hsb-toc { display: none; }
	.hsb-toc-side { border: 1px solid var(--hsb-line); border-radius: var(--hsb-radius); padding: 18px; max-height: calc(100vh - 360px); overflow-y: auto; }
	.hsb-toc-side .hsb-toc__list { padding-left: 18px; }
}
@media (max-width: 1099px) { .hsb-toc-side { display: none !important; } }

@media (prefers-reduced-motion: reduce) { .hsb * { transition: none !important; } }
