/* Government Jobs sidebar carousel (v1.23.0) — "সরকারি চাকরি" widget.
   Enqueued only when the widget is active in a sidebar (is_active_widget
   check in assets.php), so pages without the widget pay nothing.

   Look: BDjobs' GOVT JOBS card — colours read from the live BDjobs card
   (bdjobs.com/h/, 2026-11-18): warm cream #fffdec card, dark navy
   #2a5992 heading, muted #525252 item text with #23527c hover, green
   #398741 footer link and controls (hover #29612b). Premium polish on
   top: softly rounded corners, a soft warm shadow, hairline dividers,
   hover highlights, circular control buttons, and a smooth slide
   transition. Structure and behaviour only — no BDjobs data or content.
   No lists are used, so the theme's "#content ul { list-style: circle
   inside; }" has nothing to bite — and the sidebar is not inside
   #content anyway. */

/* Card: BDjobs' warm cream, softly rounded, soft warm shadow + a very
   light warm border so the card stays distinct on a white sidebar. */
.jre-govt-card {
	background: #fffdec;
	border: 1px solid #f3eac0;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(74, 64, 8, 0.05), 0 10px 24px -8px rgba(74, 64, 8, 0.22);
	padding: 16px 16px 14px;
	margin: 0 0 18px;
	box-sizing: border-box;
}

/* Heading: BDjobs' dark navy, bold, with the government-building icon
   (currentColor, so it matches the heading). Thin warm divider below. */
.jre-govt-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0e6b8;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #2a5992;
}
.jre-govt-title-icon {
	flex: 0 0 auto;
	color: #2a5992;
}

/* Slides: only the active one shows. The first slide carries
   .jre-govt-slide-active in the server-rendered markup, so a
   no-JavaScript page still shows the first two jobs statically.
   The active slide fades/slides in — a pure-CSS transition driven
   by the class toggle in jre-govt.js (no JS change needed). */
@keyframes jre-govt-slide-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.jre-govt-slide {
	display: none;
}
.jre-govt-slide-active {
	display: block;
	animation: jre-govt-slide-in 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
	.jre-govt-slide-active {
		animation: none;
	}
}

/* Item: two clean lines, no logo, no deadline, no vacancy count.
   Long text truncates with an ellipsis. The negative side margins
   let the hover tint bleed almost to the card edge (premium
   full-bleed hover); the hairline separates the two items in a
   slide. The !important on :hover beats the theme's
   "a:hover { text-decoration: underline !important }" — the tint,
   not an underline, is the hover signal here. */
.jre-govt-item {
	display: block;
	padding: 10px 8px;
	margin: 0 -8px;
	border-bottom: 1px solid #f3ecd0;
	border-radius: 8px;
	text-decoration: none;
}
.jre-govt-item:last-child {
	border-bottom: 0;
}
.jre-govt-item:hover {
	background: #fff8d6;
	text-decoration: none !important;
}
.jre-govt-item:hover .jre-govt-org {
	color: #23527c;
}
.jre-govt-org,
.jre-govt-position {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jre-govt-org {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #2b2b2b;
}
.jre-govt-position {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #525252;
	margin-top: 2px;
}

/* Footer: "সব দেখুন (N)" left, controls right, hairline above. */
.jre-govt-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid #f0e6b8;
}
.jre-govt-all {
	font-size: 13px;
	font-weight: 700;
	color: #398741;
	text-decoration: none;
	white-space: nowrap;
}
.jre-govt-all:hover {
	color: #29612b;
	text-decoration: underline;
}

/* Controls: circular buttons, white with a warm border and a soft
   shadow; on hover they fill green with a white icon. 30px keeps
   them comfortably tappable on mobile. */
.jre-govt-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
}
.jre-govt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	background: #ffffff;
	border: 1px solid #e8dfb0;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(74, 64, 8, 0.12);
	color: #398741;
	cursor: pointer;
	line-height: 1;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.jre-govt-btn:hover {
	background: #398741;
	border-color: #398741;
	color: #ffffff;
}
.jre-govt-btn:focus-visible {
	outline: 2px solid #2a5992;
	outline-offset: 2px;
}
.jre-govt-btn svg {
	display: block;
}

/* Pause/play toggle: the play icon shows only while paused. */
.jre-govt-icon-play {
	display: none;
}
.jre-govt-card.jre-govt-paused .jre-govt-icon-play {
	display: block;
}
.jre-govt-card.jre-govt-paused .jre-govt-icon-pause {
	display: none;
}
