/* Circular Viewer (v1.21.0): the "বিজ্ঞপ্তি" tab on single job pages.
   Enqueued only on single job pages that have a circular set, so jobs
   without one pay nothing. No lists are used, so the theme's
   "#content ul { list-style: circle inside; }" has nothing to bite. */

/* PDF viewer: the browser's native viewer in an iframe. The iframe
   carries data-src only until jre-circular.js loads it (lazy), so the
   empty frame gets a calm background instead of a white hole. */
.jre-circular-frame-wrap {
	position: relative;
	margin: 0 0 10px;
}
.jre-circular-frame {
	display: block;
	width: 100%;
	height: 70vh;
	min-height: 420px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f7f7f7;
}
/* "লোড হচ্ছে…" shows only once the script runs (it adds
   .jre-circular-js), and hides again when the PDF loads — so a
   no-JavaScript page never shows a stuck loading note over the
   <noscript> viewer. */
.jre-circular-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	margin: 0;
	transform: translateY(-50%);
	text-align: center;
	color: #666;
	font-size: 14px;
}
.jre-circular-frame-wrap.jre-circular-js .jre-circular-loading {
	display: block;
}
.jre-circular-frame-wrap.is-loaded .jre-circular-loading {
	display: none;
}

.jre-circular-hint {
	color: #666;
	font-size: 13px;
	margin: 0 0 10px;
}

/* Action buttons. The theme forces an underline on hovered links
   (!important), so the buttons need !important of their own. */
.jre-circular-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 18px;
}
a.jre-circular-btn {
	background: #009444;
	border-radius: 4px;
	color: #fff !important;
	display: inline-block;
	font-weight: 600;
	padding: 10px 22px;
	text-decoration: none !important;
}
a.jre-circular-btn:hover,
a.jre-circular-btn:focus {
	background: #007a38;
	color: #fff !important;
	text-decoration: none !important;
}
a.jre-circular-btn-outline {
	background: #fff;
	border: 1px solid #2e64a6;
	color: #2e64a6 !important;
}
a.jre-circular-btn-outline:hover,
a.jre-circular-btn-outline:focus {
	background: #eef4fb;
	color: #1a3a5c !important;
}

/* Circular image: a plain button around the thumbnail, so the whole
   image is one keyboard-focusable control. */
.jre-circular-image-title {
	font-size: 15px;
	font-weight: 700;
	color: #222;
	margin: 22px 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e5e5;
}
button.jre-circular-thumb {
	display: block;
	max-width: 100%;
	padding: 0;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	cursor: zoom-in;
	overflow: hidden;
}
button.jre-circular-thumb:hover,
button.jre-circular-thumb:focus {
	border-color: #2e64a6;
	outline: none;
}
button.jre-circular-thumb:focus-visible {
	outline: 2px solid #2e64a6;
	outline-offset: 2px;
}
.jre-circular-thumb img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Lightbox: full-screen dark overlay. [hidden] must win over the
   flex display (author styles beat the browser's UA rule for
   [hidden]), so it gets its own rule. */
.jre-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.88);
}
.jre-lightbox[hidden] {
	display: none;
}
body.jre-lightbox-open {
	overflow: hidden;
}
.jre-lightbox-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	flex: 0 0 auto;
}
.jre-lightbox-btn {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.jre-lightbox-btn:hover,
.jre-lightbox-btn:focus {
	background: rgba(255, 255, 255, 0.25);
	outline: none;
}
.jre-lightbox-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
/* The stage scrolls, so a zoomed image can be panned. The image
   grows from the top-left corner (transform-origin: 0 0): zooming
   from the centre would push content up/left, where scrolling
   cannot reach it. */
.jre-lightbox-stage {
	flex: 1;
	min-height: 0;
	overflow: auto;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 0 12px 16px;
}
.jre-lightbox-img {
	max-width: 100%;
	max-height: calc(100vh - 110px);
	height: auto;
	transform-origin: 0 0;
	background: #fff;
}

/* Small screens: a shorter viewer, full-width buttons. */
@media (max-width: 480px) {
	.jre-circular-frame {
		height: 60vh;
		min-height: 320px;
	}
	.jre-circular-actions {
		flex-direction: column;
	}
	a.jre-circular-btn {
		text-align: center;
	}
}
