/* Blogs of India Forth — frontend */
.boif, .boif * { box-sizing: border-box; }
.boif {
	--ink: var(--boif-ink, #1f2733);
	--accent: var(--boif-accent, #345a79);
	--accent-soft: color-mix(in srgb, var(--accent) 9%, #fff);
	--accent-deep: color-mix(in srgb, var(--accent) 68%, #0d1117);
	--text: #29313d;
	--muted: #66707e;
	--line: #e2e6ea;
	--paper: #f4f5f7;
	font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	color: var(--text);
	line-height: 1.6;
	max-width: 1260px;
	margin: 0 auto;
	padding: 24px 20px 70px;
}
.boif img { max-width: 100%; height: auto; display: block; }
.boif a { text-decoration: none; }
.boif h1, .boif h2, .boif h3, .boif h4 { font-family: 'Cormorant Garamond', Georgia, serif; color: var(--ink); margin: 0; letter-spacing: .005em; }
.boif .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.boif :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, #fff); outline-offset: 2px; }

/* ---------- Layout ---------- */
.boif-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 38px; align-items: start; }
.boif-main { min-width: 0; }
.boif-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.boif-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Listing banner ---------- */
.boif-banner {
	display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; padding: 40px 44px; border-radius: 24px; color: #fff;
	background: radial-gradient(circle at 12% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 46%), radial-gradient(circle at 92% 90%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 50%), linear-gradient(135deg, #151b24, var(--ink) 55%, #2b3544);
	background-size: 140% 140%, 140% 140%, 100% 100%; animation: boif-drift 14s ease-in-out infinite alternate;
	box-shadow: 0 26px 50px -30px rgba(15, 20, 28, .7);
}
@keyframes boif-drift { to { background-position: 100% 100%, 0 0, 0 0; } }
.boif-banner h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; }
.boif-banner p { margin: 10px 0 0; max-width: 520px; color: rgba(255, 255, 255, .82); font-size: 1.04rem; }
.boif-search { display: flex; align-items: center; width: min(360px, 100%); background: #fff; border-radius: 999px; padding: 5px 5px 5px 20px; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .6); }
.boif-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 0; box-shadow: none; }
.boif-search button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--accent); transition: background .25s, transform .25s; }
.boif-search button:hover { background: var(--accent-deep); transform: scale(1.06); }
.boif-found { margin: 0 0 20px; color: var(--muted); }
.boif-found a { margin-left: 10px; color: var(--accent); font-weight: 700; }

/* ---------- Cards ---------- */
.boif-card {
	--cat: var(--accent);
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
	border: 1px solid var(--line); border-top: 4px solid var(--cat);
	box-shadow: 0 8px 24px -16px rgba(20, 27, 38, .35);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s;
	animation: boif-rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms);
}
@keyframes boif-rise { from { opacity: 0; transform: translateY(22px); } }
.boif-card:hover { transform: translateY(-6px); border-color: var(--cat); box-shadow: 0 26px 46px -24px var(--cat), 0 8px 18px -12px rgba(20, 27, 38, .25); }
.boif-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.boif-card__media .boif-img, .boif-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.boif-card:hover .boif-img { transform: scale(1.07); }
.boif-ph { display: grid; place-items: center; min-height: 100%; color: rgba(255, 255, 255, .55); background: linear-gradient(135deg, var(--cat), #1c222c); }
.boif-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.boif-chip { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; line-height: 1.3; color: #fff; background: var(--cat, var(--accent)); }
.boif-card__title { font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
.boif-card__title a { color: var(--ink); background: linear-gradient(var(--cat), var(--cat)) 0 100% / 0 2px no-repeat; transition: background-size .4s, color .3s; }
.boif-card:hover .boif-card__title a { background-size: 100% 2px; }
.boif-card__excerpt { margin: 0; color: var(--muted); font-size: .95rem; }
.boif-card__foot { width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.boif-byline { display: flex; align-items: center; gap: 10px; min-width: 0; }
.boif-av { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--cat, var(--accent)); }
.boif-av--ini { display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--cat, var(--accent)); }
.boif-byline__txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.boif-byline__txt strong { color: var(--ink); font-size: .9rem; }
.boif-byline__txt span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.boif-byline__txt i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.boif-more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: var(--cat, var(--accent)); }
.boif-more svg { transition: transform .3s; }
.boif-more:hover svg { transform: translateX(5px); }

/* Featured (first) card: image fills the card, text sits on a dark fade */
.boif-card.is-featured { grid-column: 1 / -1; min-height: 470px; border-radius: 24px; border-top-width: 1px; justify-content: flex-end; color: #fff; }
.boif-card.is-featured .boif-card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.boif-card.is-featured .boif-card__body { position: relative; z-index: 1; padding: 150px 40px 36px; gap: 14px; background: linear-gradient(to top, rgba(14, 18, 25, .94) 0%, rgba(14, 18, 25, .78) 52%, rgba(14, 18, 25, 0) 100%); pointer-events: none; }
.boif-card.is-featured .boif-card__body a { pointer-events: auto; }
.boif-card.is-featured .boif-card__title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 760px; }
.boif-card.is-featured .boif-card__title a { color: #fff; }
.boif-card.is-featured .boif-card__excerpt { color: rgba(255, 255, 255, .86); max-width: 720px; font-size: 1.02rem; }
.boif-card.is-featured .boif-card__foot { border-top-color: rgba(255, 255, 255, .22); }
.boif-card.is-featured .boif-byline__txt strong { color: #fff; }
.boif-card.is-featured .boif-byline__txt span { color: rgba(255, 255, 255, .78); }
.boif-card.is-featured .boif-more { color: #fff; padding: 9px 18px; border-radius: 999px; background: var(--cat); transition: background .3s, transform .3s; }
.boif-card.is-featured .boif-more:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--cat) 80%, #000); }

/* ---------- Sidebar ---------- */
.boif-side { position: sticky; top: 96px; } /* JS (frontend.js) sets the exact top so it never drifts */
.boif-side__inner { padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 46px -30px rgba(20, 27, 38, .45); }
.boif-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-bottom: 12px; padding: 13px 20px; border-radius: 999px; font-weight: 700; font-size: .98rem; transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.boif-btn:hover { transform: translateY(-2px); }
/* First button: rich accent gradient + forced white text (the theme's link colour was turning the label dark on dark) */
.boif a.boif-btn--solid { color: #fff !important; background: linear-gradient(135deg, #25405c 0%, #345a79 58%, #3e6d8c 100%); box-shadow: 0 14px 26px -16px rgba(26, 48, 71, .85), inset 0 1px 0 rgba(255, 255, 255, .22); }
.boif a.boif-btn--solid:hover { color: #fff !important; background: linear-gradient(135deg, #1a3047 0%, #25405c 58%, #345a79 100%); }
.boif a.boif-btn--solid span, .boif a.boif-btn--solid svg { color: #fff !important; }
.boif-btn--solid svg { transition: transform .3s; }
.boif-btn--solid:hover svg { transform: translateX(4px); }
.boif-btn--line { color: var(--ink); border: 2px solid var(--accent); background: #fff; }
.boif a.boif-btn--line:hover { color: #fff !important; background: var(--accent); }
.boif-btn--podcast { color: #345a79; border: 2px solid var(--line); background: #fff; }
.boif a.boif-btn--podcast:hover { color: #fff !important; background: #345a79; border-color: #345a79; }

.boif-side__title { font-size: 1.6rem; margin: 24px 0 8px; font-weight: 700; }
.boif-cats { list-style: none; margin: 0; padding: 0; }
.boif-cats a { --cat: var(--accent); display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 3px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .94rem; transition: background .25s, color .25s, padding .25s; }
.boif-cats a::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--cat); flex: none; }
.boif-cats a span { flex: 1; }
.boif-cats a em { font-style: normal; font-size: .76rem; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 999px; background: var(--paper); color: var(--muted); }
.boif-cats a:hover { background: color-mix(in srgb, var(--cat) 9%, #fff); padding-left: 16px; }
.boif-cats a.is-active { background: color-mix(in srgb, var(--cat) 13%, #fff); color: var(--ink); font-weight: 700; box-shadow: inset 3px 0 0 var(--cat); }
.boif-cats a.is-active em { background: var(--cat); color: #fff; }

.boif-sub { margin-top: 24px; padding: 22px 18px; border-radius: 16px; text-align: center; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff); }
.boif-sub__title { font-size: 1.25rem; line-height: 1.3; margin-bottom: 14px; font-weight: 700; }
.boif-sub__form input[type="email"] { width: 100%; padding: 12px 15px; border-radius: 10px; border: 1px solid #cfd6dd; background: #fff; color: var(--ink); font: inherit; margin-bottom: 10px; box-shadow: none; }
.boif-sub__form input[type="email"]:focus { border-color: var(--accent); outline: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.boif-sub__form button { width: 100%; padding: 12px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); transition: transform .25s, filter .25s; }
.boif-sub__form button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.boif-sub__form button[disabled] { opacity: .65; cursor: wait; }
.boif-sub__msg { margin: 10px 0 0; min-height: 1.3em; font-size: .88rem; font-weight: 600; }
.boif-sub__msg.is-ok { color: #1a7a43; }
.boif-sub__msg.is-err { color: #b3261e; }
.boif-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* ---------- Pager / empty ---------- */
.boif-pager { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.boif-pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: all .25s; }
.boif-pager a:hover { border-color: var(--accent); color: var(--accent); }
.boif-pager a.is-active { color: #fff; border-color: transparent; background: var(--accent); }
.boif-empty, .boif-notice { text-align: center; padding: 70px 20px; border-radius: 20px; background: var(--paper); }
.boif-empty h3, .boif-notice h3 { font-size: 2rem; margin-bottom: 8px; }

/* ---------- Single ---------- */
.boif-progress { position: fixed; left: 0; right: 0; top: 0; height: 4px; z-index: 9990; }
.boif-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); }
.boif-hero { padding: 6px 0 4px; }
.boif-hero__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.boif-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.1; font-weight: 700; }
.boif-hero__meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 24px; }
.boif-hero__info { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-weight: 600; font-size: .94rem; }
.boif-read { display: inline-flex; align-items: center; gap: 6px; }
/* ---------- Writer box ---------- */
@property --boif-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes boif-spin { to { --boif-ang: 360deg; } }
.boif {
	--crux-a: #334a85;
	--crux-b: #46497f;
	--ring: conic-gradient(from var(--boif-ang, 0deg), var(--cat, var(--accent)), #6366f1, #06b6d4, #4f86a8, var(--cat, var(--accent)));
}
/* Theme-proofing: themes often put frames/padding on images */
.boif .boif-av { border: 0 !important; padding: 0 !important; border-radius: 50% !important; max-width: none !important; object-fit: cover; }

.boif .boif-author {
	--cat: var(--accent);
	position: relative; display: inline-flex; align-items: center; gap: 16px; margin: 0; padding: 9px 12px 9px 9px;
	border: 2px solid transparent; border-radius: 999px; cursor: pointer; font: inherit; text-align: left; color: var(--ink);
	background: linear-gradient(#fff, #fbfcfc) padding-box, var(--ring) border-box;
	box-shadow: 0 18px 34px -24px color-mix(in srgb, var(--cat) 80%, #000), 0 2px 6px -2px rgba(15, 23, 42, .12);
	animation: boif-spin 8s linear infinite;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.boif .boif-author:hover, .boif .boif-author:focus-visible { transform: translateY(-3px); box-shadow: 0 26px 40px -22px color-mix(in srgb, var(--cat) 90%, #000), 0 4px 10px -4px rgba(15, 23, 42, .16); animation-duration: 3.5s; outline: 0; }
.boif .boif-author:focus-visible { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cat) 28%, transparent), 0 18px 34px -24px var(--cat); }
.boif .boif-author:active { transform: translateY(-1px) scale(.99); }
.boif .boif-author__ring { flex: none; display: grid; place-items: center; padding: 3px; border-radius: 50%; background: var(--ring); animation: boif-spin 6s linear infinite; }
.boif .boif-author__ring .boif-av { width: 66px; height: 66px; display: block; border: 3px solid #fff !important; background: #fff; box-shadow: none !important; }
.boif .boif-author__ring .boif-av--ini { display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--cat); }
.boif .boif-author__txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.15; padding-right: 4px; }
.boif .boif-author__txt small { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cat); }
.boif .boif-author__txt strong { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: .005em; }
.boif .boif-author__go { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, #fff); transition: background .3s, color .3s, transform .3s; }
.boif .boif-author__go svg { width: 16px; height: 16px; }
.boif .boif-author:hover .boif-author__go { color: #fff; background: var(--cat); transform: translateX(3px); }

/* ---------- 3-D tool dock: audio + crux + language in one raised box ---------- */
.boif .boif-toolbar {
	position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; margin: 30px 0 34px; padding: 16px;
	border-radius: 30px; border: 1px solid rgba(255, 255, 255, .9);
	background: linear-gradient(150deg, #ffffff 0%, #f2f6f7 52%, #e4ebee 100%);
	box-shadow:
		inset 0 2px 0 #fff,
		inset 0 -3px 8px rgba(15, 23, 42, .06),
		0 7px 0 #d2dce0,
		0 8px 0 #c1ccd2,
		0 26px 40px -14px rgba(15, 23, 42, .38);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.boif .boif-toolbar:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 8px rgba(15, 23, 42, .06), 0 9px 0 #d2dce0, 0 10px 0 #c1ccd2, 0 34px 48px -16px rgba(15, 23, 42, .42); }

/* Audio — calm slate-blue */
.boif .boif-audio { display: flex; align-items: center; gap: 14px; flex: 1 1 300px; min-height: 64px; padding: 8px 22px 8px 8px; border-radius: 999px; color: #fff; background: linear-gradient(135deg, #25405c 0%, #345a79 58%, #3e6d8c 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 0 #1a3047, 0 14px 22px -12px rgba(26, 48, 71, .75); }
.boif .boif-audio__btn { width: 48px; height: 48px; min-width: 48px; min-height: 48px; flex: none; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 50% !important; cursor: pointer; display: grid; place-items: center; color: #25405c !important; background: #fff !important; box-shadow: 0 3px 0 #b9c8d6, 0 8px 14px -6px rgba(0, 0, 0, .45); -webkit-appearance: none; appearance: none; transition: transform .25s, box-shadow .25s; }
.boif .boif-audio__btn:hover { transform: scale(1.07); }
.boif .boif-audio__btn:active { transform: scale(.96); box-shadow: 0 1px 0 #b9c8d6; }
.boif .boif-audio__btn svg { color: #25405c !important; fill: currentColor; }
.boif-audio .i-pause { display: none; }
.boif-audio.is-playing .i-play { display: none; }
.boif-audio.is-playing .i-pause { display: block; }
.boif-audio__mid { flex: 1; min-width: 0; }
.boif .boif-audio__label { display: block; font-size: .84rem; font-weight: 700; letter-spacing: .01em; margin-bottom: 7px; color: #fff !important; opacity: .95; }
.boif-audio__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .24); cursor: pointer; overflow: hidden; }
.boif-audio__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #a9cfe6, #fff); border-radius: 6px; }
.boif .boif-audio__time { font-size: .84rem; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; color: #fff !important; }

/* Crux button — modern indigo/violet (replaces the red/pink look) */
.boif .boif-crux-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin: 0; padding: 0 28px !important; min-height: 64px; border: 0 !important; border-radius: 999px !important; cursor: pointer; font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 1rem; letter-spacing: .01em; text-transform: none; line-height: 1.2; color: #fff !important; background: linear-gradient(135deg, var(--crux-a), var(--crux-b)) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 4px 0 #232f5a, 0 14px 22px -12px rgba(51, 74, 133, .8); -webkit-appearance: none; appearance: none; transition: transform .25s, box-shadow .25s; }
.boif .boif-crux-btn span, .boif .boif-crux-btn svg { color: #fff !important; position: relative; }
.boif-crux-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .3) 50%, transparent 65%); transform: translateX(-120%); animation: boif-shine 4s infinite 1.5s; }
@keyframes boif-shine { to { transform: translateX(120%); } }
.boif .boif-crux-btn:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 7px 0 #232f5a, 0 20px 28px -14px rgba(51, 74, 133, .85); }
.boif .boif-crux-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 1px 0 #232f5a; }

/* Language pill — the dropdown list floats OUT of the box instead of stretching it */
.boif .boif-translate { position: relative; z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 0 12px 0 20px; min-height: 64px; border: 0; border-radius: 999px; color: var(--ink); background: linear-gradient(180deg, #fff, #f3f6f7); box-shadow: inset 0 1px 0 #fff, 0 4px 0 #cfd9de, 0 14px 22px -14px rgba(15, 23, 42, .4); }
.boif .boif-translate > svg { flex: none; color: var(--ink); }
.boif .boif-translate__box { position: static; line-height: 1; min-width: 150px; }
.boif-translate__box img, .boif-translate__box a { display: inline-block; vertical-align: middle; }
.boif .boif-translate__box *:focus { outline: 0 !important; }
.boif .boif-translate__box *:focus-visible { outline: 2px solid color-mix(in srgb, var(--crux-a) 60%, #fff) !important; outline-offset: 2px; border-radius: 8px; }

/* GTranslate wrappers: neutral, no extra boxes/borders (covers its dropdown-with-flags + older switcher markup) */
.boif .boif-translate__box .gtranslate_wrapper,
.boif .boif-translate__box .gt_switcher_wrapper,
.boif .boif-translate__box .gt_switcher,
.boif .boif-translate__box .switcher,
.boif .boif-translate__box .gt_float_switcher { position: static !important; width: auto !important; height: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; font-family: 'Nunito', system-ui, sans-serif !important; font-size: 1rem !important; }
.boif .boif-translate__box .gt_selected,
.boif .boif-translate__box .selected,
.boif .boif-translate__box .gt_current_lang { background: transparent !important; border: 0 !important; padding: 0 !important; }
.boif .boif-translate__box .gt_selected a,
.boif .boif-translate__box .selected a,
.boif .boif-translate__box a.gt_switcher-popup,
.boif .boif-translate__box .gt_current_lang a { display: inline-flex !important; align-items: center; gap: 10px; padding: 10px 6px !important; border: 0 !important; background: transparent !important; color: var(--ink) !important; font-weight: 800 !important; font-size: 1rem !important; line-height: 1.2 !important; text-decoration: none !important; white-space: nowrap; width: auto !important; }
.boif .boif-translate__box .gt_selected a img,
.boif .boif-translate__box .selected a img,
.boif .boif-translate__box a.gt_switcher-popup img { width: 28px !important; height: auto !important; border: 0 !important; padding: 0 !important; background: transparent !important; border-radius: 5px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }

/* The floating list — absolutely positioned under the dock, never inside the flow */
.boif .boif-translate__box .gt_option,
.boif .boif-translate__box .option,
.boif .boif-translate__box .gt_dropdown_list {
	position: absolute !important; z-index: 99990 !important; top: calc(100% + 14px) !important; right: 0 !important; left: auto !important;
	width: min(300px, 86vw) !important; max-height: 300px !important; margin: 0 !important; padding: 8px !important; overflow-x: hidden !important; overflow-y: auto !important;
	background: #fff !important; border: 0 !important; border-radius: 18px !important;
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 30px 60px -20px rgba(15, 23, 42, .5) !important;
}
.boif .boif-translate__box .gt_option a,
.boif .boif-translate__box .option a { display: flex !important; align-items: center; gap: 12px; width: auto !important; padding: 10px 12px !important; border: 0 !important; border-radius: 10px; color: var(--text) !important; font-size: .96rem !important; font-weight: 600 !important; text-decoration: none !important; background: transparent !important; transition: background .2s, color .2s; }
.boif .boif-translate__box .gt_option a:hover,
.boif .boif-translate__box .option a:hover,
.boif .boif-translate__box .gt_option a.gt_current,
.boif .boif-translate__box .option a.selected { background: color-mix(in srgb, var(--crux-a) 10%, #fff) !important; color: var(--crux-a) !important; }
.boif .boif-translate__box .gt_option a img,
.boif .boif-translate__box .option a img { width: 24px !important; height: auto !important; border: 0 !important; padding: 0 !important; background: transparent !important; border-radius: 4px; }
/* Plain <select> version of GTranslate */
.boif .boif-translate__box select { -webkit-appearance: none; appearance: none; margin: 0; min-width: 150px; padding: 10px 34px 10px 6px; border: 0 !important; border-radius: 10px; color: var(--ink); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2733' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; font: 800 1rem 'Nunito', system-ui, sans-serif; cursor: pointer; box-shadow: none; }

.boif .boif-cover { position: relative; margin: 0 0 40px; padding: 0; border-radius: 26px; background: #dfe6ea; transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 7px 0 #cfd8dd, 0 8px 0 #bcc7ce, 0 30px 44px -14px rgba(15, 23, 42, .45), 0 10px 18px -10px rgba(15, 23, 42, .3); }
.boif .boif-cover:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 0 #cfd8dd, 0 11px 0 #bcc7ce, 0 38px 52px -16px rgba(15, 23, 42, .5), 0 12px 20px -10px rgba(15, 23, 42, .3); }
.boif .boif-cover .boif-img { display: block; width: 100%; max-height: 520px; margin: 0; object-fit: cover; border: 0 !important; padding: 0 !important; border-radius: 26px; transition: filter .6s; }
/* 3-D finish: glossy top light, soft bottom shade, bevelled edge — no coloured border */
.boif .boif-cover::after { content: ''; position: absolute; inset: 0; border-radius: 26px; pointer-events: none; background: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0) 62%, rgba(15, 23, 42, .3) 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 10px rgba(15, 23, 42, .28), inset 2px 0 0 rgba(255, 255, 255, .12), inset -2px 0 0 rgba(15, 23, 42, .1); }
.boif .boif-cover:hover .boif-img { filter: saturate(1.08) contrast(1.03); }
.boif-content {
	position: relative; max-width: none; padding: 46px 50px; font-size: 1.1rem; line-height: 1.85; color: #243040;
	border: 3px solid transparent; border-radius: 28px;
	background: linear-gradient(#fff, #fff) padding-box, conic-gradient(from var(--boif-ang, 0deg), var(--cat, var(--accent)), #6366f1, #06b6d4, #4f86a8, var(--cat, var(--accent))) border-box;
	box-shadow: 0 34px 60px -38px rgba(15, 23, 42, .5), 0 2px 8px -2px rgba(15, 23, 42, .06);
	animation: boif-spin 10s linear infinite;
}
/* soft coloured glow that follows the moving border */
.boif .boif-content::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: conic-gradient(from var(--boif-ang, 0deg), var(--cat, var(--accent)), #6366f1, #06b6d4, #4f86a8, var(--cat, var(--accent))); filter: blur(22px); opacity: .22; }
.boif-content p { margin: 0 0 1.4em; }
.boif-content h2, .boif-content h3, .boif-content h4 { margin: 1.8em 0 .6em; line-height: 1.2; }
.boif-content > :first-child { margin-top: 0; }
.boif-content h2 { font-size: 2.1rem; }
.boif-content h3 { font-size: 1.65rem; }
.boif-content:not(.boif-content--elementor) h2 { padding-bottom: .35em; background: linear-gradient(90deg, var(--cat, var(--accent)), #6366f1 60%, transparent) 0 100% / 90px 3px no-repeat; }
.boif-content a { color: var(--accent); border-bottom: 1px solid currentColor; transition: color .25s; }
.boif-content a:hover { color: var(--crux-a); }
.boif-content blockquote { margin: 1.8em 0; padding: 20px 26px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; color: var(--ink); }
.boif-content img { border-radius: 14px; margin: 1.4em 0; }
.boif-content ul, .boif-content ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.boif-content li::marker { color: var(--accent); }
.boif-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: .98rem; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.boif-content th { background: var(--accent-soft); color: var(--ink); text-align: left; }
.boif-content th, .boif-content td { padding: 11px 14px; border: 1px solid var(--line); }
.boif-content hr { height: 3px; border: 0; border-radius: 3px; margin: 2em 0; background: linear-gradient(90deg, var(--cat, var(--accent)), #6366f1, #06b6d4, transparent); }
.boif-content > p:first-of-type::first-letter { font-family: 'Cormorant Garamond', serif; font-size: 4.2rem; float: left; line-height: .85; padding: 6px 12px 0 0; color: var(--accent); font-weight: 700; }
.boif .boif-content--elementor { padding: 18px; font-size: inherit; line-height: inherit; color: inherit; }
.boif-content--elementor > p:first-of-type::first-letter { all: unset; }
.boif-related { margin-top: 64px; padding-top: 38px; border-top: 1px solid var(--line); }
.boif-related h2 { font-size: 2.2rem; margin-bottom: 24px; }


/* ---------- External links inside articles ---------- */
.boif { --link-ext: #2c5aa8; --link-ext-deep: #1d3f7c; }
.boif .boif-content a.boif-ext { color: var(--link-ext); font-weight: 600; border-bottom: 0; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link-ext) 38%, transparent); text-decoration-thickness: 2px; text-underline-offset: 4px; border-radius: 3px; transition: color .25s, background-color .25s, text-decoration-color .25s; }
.boif .boif-content a.boif-ext::after { content: ''; display: inline-block; width: .72em; height: .72em; margin-left: .22em; vertical-align: baseline; background: currentColor; opacity: .75; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / contain no-repeat; }
.boif .boif-content a.boif-ext:hover, .boif .boif-content a.boif-ext:focus-visible { color: var(--link-ext-deep); background-color: color-mix(in srgb, var(--link-ext) 10%, transparent); text-decoration-color: var(--link-ext); }

/* ---------- Modals / flashcards ---------- */
.boif-modal { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 20px; font-family: 'Nunito', system-ui, sans-serif; }
.boif-modal[hidden] { display: none; }
.boif-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 20, 26, .6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: boif-fade .3s; }
.boif-modal__card { position: relative; width: min(540px, 100%); max-height: 90vh; overflow: auto; border-radius: 24px; animation: boif-pop .5s cubic-bezier(.2, .9, .25, 1.1); box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .55); }
@keyframes boif-fade { from { opacity: 0; } }
@keyframes boif-pop { from { opacity: 0; transform: perspective(900px) rotateX(12deg) translateY(36px) scale(.94); } }
.boif-modal__x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .2); transition: background .25s, transform .25s; }
.boif-modal__x:hover { background: rgba(255, 255, 255, .36); transform: rotate(90deg); }
body.boif-lock { overflow: hidden; }

.boif-flash--writer { background: #fff; }
.boif-flash__head { height: 150px; display: grid; place-items: end center; background: radial-gradient(circle at 85% 0, color-mix(in srgb, var(--accent) 60%, transparent), transparent 55%), linear-gradient(135deg, #161c25, var(--ink)); }
.boif-flash__head .boif-av { width: 136px; height: 136px; margin-bottom: -68px; box-shadow: 0 0 0 5px #fff, 0 0 0 8px var(--accent), 0 18px 30px -12px rgba(0, 0, 0, .5); font-size: 3rem; }
.boif-flash__body { padding: 84px 34px 34px; text-align: center; }
.boif-flash__head:empty + .boif-flash__body { padding-top: 40px; }
.boif-flash__body h3 { font-size: 2.1rem; margin-bottom: 14px; }
.boif-flash__bio { color: var(--muted); font-size: 1rem; line-height: 1.75; text-align: left; }
.boif-flash__bio p { margin: 0 0 1em; }
.boif-flash__bio ul, .boif-flash__bio ol { padding-left: 1.3em; margin: 0 0 1em; }

.boif-flash--crux { width: min(640px, 100%); background: #fbfbfd; color: #0f172a; }
.boif-crux__head { display: flex; align-items: center; gap: 10px; padding: 22px 72px 20px 28px; color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 60%), linear-gradient(135deg, #1e2f57 0%, #2c4073 55%, #3a4a80 100%); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .1); }
.boif-crux__head svg { color: #fff; flex: none; }
.boif-crux__head h3 { color: #fff; font-size: 1.8rem; }
.boif .boif-crux__text { padding: 28px 32px 34px; min-height: 190px; font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 1.08rem; line-height: 1.85; font-weight: 500; letter-spacing: .005em; color: #0f172a; word-break: break-word; }
/* Force full-strength text colour (themes / pasted editor styles were making it look washed-out) */
.boif .boif-crux__text :where(p, li, span, strong, em, b, i, u, div, h1, h2, h3, h4, h5, h6) { color: #0f172a !important; opacity: 1 !important; }
.boif .boif-crux__text :where(strong, b) { font-weight: 800; }
.boif-crux__text p { margin: 0 0 .95em; }
.boif-crux__text ul, .boif-crux__text ol { margin: .2em 0 .95em; padding-left: 1.5em; }
.boif-crux__text ul { list-style: disc; }
.boif-crux__text ol { list-style: decimal; }
.boif-crux__text li { margin: .45em 0; padding-left: .3em; }
.boif-crux__text li::marker { color: var(--crux-a); font-weight: 800; }
.boif .boif-crux__text :where(h1, h2, h3, h4) { font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: 1.2rem; line-height: 1.4; margin: 0 0 .6em; }
/* Typewriter: a line (and its bullet) stays hidden until its first letter is typed */
.boif .boif-crux-src { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; pointer-events: none; }
.boif-crux__text .boif-pend { visibility: hidden; }
.boif-cursor { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--crux-a); animation: boif-blink 1s steps(2) infinite; }
@keyframes boif-blink { 50% { opacity: 0; } }
.boif-crux__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 24px 20px; margin-top: 6px; border-top: 1px solid var(--line); }
.boif .boif-link { margin: 0; padding: 8px 16px !important; border: 0 !important; border-radius: 999px !important; cursor: pointer; font-family: 'Nunito', system-ui, sans-serif; font-size: .95rem; font-weight: 800; text-transform: none; letter-spacing: .01em; color: var(--crux-a) !important; background: color-mix(in srgb, var(--crux-a) 9%, #fff) !important; -webkit-appearance: none; appearance: none; transition: background .25s, color .25s, transform .25s; }
.boif .boif-link:hover { color: #fff !important; background: var(--crux-a) !important; transform: translateY(-1px); text-decoration: none; }
/* Close button: theme-proof */
.boif .boif-modal__x { padding: 0 !important; border: 0 !important; border-radius: 50% !important; color: #fff !important; background: rgba(255, 255, 255, .22) !important; -webkit-appearance: none; appearance: none; }
.boif .boif-modal__x:hover { background: rgba(255, 255, 255, .38) !important; }


/* ---------- Link hover preview card ---------- */
.boif-lp { --lp-arrow: 30px; position: absolute; z-index: 999990; width: 340px; max-width: calc(100vw - 24px); overflow: visible; border-radius: 16px; background: #fff; color: #1f2733; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.45; text-align: left; border: 1px solid #e2e6ea; box-shadow: 0 28px 54px -18px rgba(15, 23, 42, .45), 0 4px 12px -4px rgba(15, 23, 42, .12); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: auto; box-sizing: border-box; }
.boif-lp * { box-sizing: border-box; }
.boif-lp[hidden] { display: none; }
.boif-lp.is-on { opacity: 1; transform: none; }
.boif-lp::before { content: ''; position: absolute; left: var(--lp-arrow); top: -7px; width: 12px; height: 12px; margin-left: -6px; background: #fff; border-left: 1px solid #e2e6ea; border-top: 1px solid #e2e6ea; transform: rotate(45deg); }
.boif-lp.is-above::before { top: auto; bottom: -7px; transform: rotate(225deg); }
.boif-lp__img { overflow: hidden; border-radius: 15px 15px 0 0; background: #eef1f4; aspect-ratio: 16 / 8.5; }
.boif-lp__img img { display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; border: 0; padding: 0; }
.boif-lp__body { display: flex; flex-direction: column; gap: 7px; padding: 14px 16px 15px; }
.boif-lp__top { display: flex; align-items: center; gap: 8px; }
.boif-lp__fav { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; margin: 0; border: 0; padding: 0; }
.boif-lp__site { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #2c5aa8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.boif-lp__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; line-height: 1.2; font-weight: 700; color: #111827; }
.boif-lp__desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .9rem; color: #4b5563; }
.boif-lp__foot { margin-top: 3px; padding-top: 9px; border-top: 1px solid #eceff2; font-size: .74rem; font-weight: 700; color: #6b7480; }
.boif-lp__sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #eef1f4 25%, #e2e7ec 50%, #eef1f4 75%) 0 0 / 200% 100%; animation: boif-sk 1.2s linear infinite; }
.boif-lp__sk--t { height: 18px; width: 80%; }
.boif-lp__sk--s { width: 55%; }
@keyframes boif-sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .boif-lp, .boif-lp * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.boif-layout { grid-template-columns: 1fr; }
	.boif-side { position: static; }
	.boif-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.boif { padding: 16px 14px 48px; }
	.boif-banner { padding: 28px 24px; }
	.boif-grid, .boif-grid--3 { grid-template-columns: 1fr; }
	.boif-card.is-featured { min-height: 420px; }
	.boif-card.is-featured .boif-card__body { padding: 120px 22px 24px; }
	.boif .boif-toolbar { padding: 12px; border-radius: 24px; gap: 12px; }
	.boif .boif-audio { flex-basis: 100%; }
	.boif .boif-crux-btn, .boif .boif-translate { width: 100%; justify-content: center; min-height: 56px; }
	.boif .boif-translate__box .gt_option, .boif .boif-translate__box .option, .boif .boif-translate__box .gt_dropdown_list { left: 0 !important; right: 0 !important; width: auto !important; }
	.boif .boif-content { font-size: 1.04rem; padding: 28px 20px; border-width: 2px; border-radius: 20px; }
	.boif .boif-author { width: 100%; }
	.boif .boif-author__go { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.boif *, .boif-modal * { animation: none !important; transition: none !important; }
}

/* Blogs with more than one writer: overlapping avatars on cards */
.boif-av-stack { display: inline-flex; align-items: center; flex: none; }
.boif-av-stack .boif-av { width: 36px; height: 36px; }
.boif-av-stack .boif-av + .boif-av { margin-left: -12px; }
