/* ==========================================================================
   Notification inbox (announcements.html).
   Compact rows matching the header bell, not a magazine featured card.
   ========================================================================== */

.lms-announcements {
	--lms-navy: #2D368F;
	--lms-ink: #0f172a;
	--lms-muted: #64748b;
	--lms-line: rgba(15, 23, 42, 0.08);
	--lms-radius: 18px;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	background:
		radial-gradient(1200px 420px at 10% -10%, rgba(45, 54, 143, 0.08), transparent 55%),
		#f4f6fb;
	padding-bottom: 64px;
	color: var(--lms-ink);
}

.lms-announcements__body {
	margin-top: 20px;
	position: relative;
	z-index: 2;
	padding-bottom: 24px;
	max-width: 760px;
}

.lms-inbox-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0 4px;
}

.lms-inbox-toolbar__count {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--lms-muted);
}

.lms-inbox-toolbar__unread {
	color: var(--lms-navy);
}

.lms-inbox-toolbar__markall {
	border: none;
	background: transparent;
	color: var(--lms-navy);
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
	padding: 0;
	white-space: nowrap;
}

.lms-inbox-toolbar__markall:hover {
	text-decoration: underline;
}

.lms-inbox {
	background: #fff;
	border-radius: var(--lms-radius);
	border: 1px solid var(--lms-line);
	box-shadow: 0 10px 30px rgba(18, 23, 57, 0.06);
	overflow: hidden;
}

.lms-inbox-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px 16px 20px;
	text-decoration: none !important;
	color: var(--lms-ink);
	transition: background-color 0.15s ease;
}

.lms-inbox-item + .lms-inbox-item {
	border-top: 1px solid var(--lms-line);
}

.lms-inbox-item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--lms-navy);
	opacity: 0;
}

.lms-inbox-item.is-unread {
	background: #f7f8fd;
}

.lms-inbox-item.is-unread::before {
	opacity: 1;
}

.lms-inbox-item:hover {
	background: #f1f3fb;
}

.lms-inbox-item__thumb {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	background: linear-gradient(135deg, #eef0fb, #e4e8fa);
}

.lms-inbox-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lms-inbox-item__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.lms-inbox-item__meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.lms-inbox-item__date {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--lms-muted);
}

.lms-inbox-item__new {
	display: none;
	background: #e11d48;
	color: #ffffff;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lms-inbox-item.is-unread .lms-inbox-item__new {
	display: inline-flex;
}

.lms-inbox-item__title {
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
}

.lms-inbox-item.is-unread .lms-inbox-item__title {
	font-weight: 800;
}

.lms-inbox-item__snippet {
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lms-inbox-item__dot {
	flex: none;
	width: 9px;
	height: 9px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--lms-navy);
	opacity: 0;
}

.lms-inbox-item.is-unread .lms-inbox-item__dot {
	opacity: 1;
}

.lms-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}

.lms-pager__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: none;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--lms-line);
	color: var(--lms-navy) !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.lms-pager__btn:hover {
	background: #eef0fb;
	box-shadow: 0 4px 12px rgba(18, 23, 57, 0.08);
}

.lms-pager__btn.is-disabled {
	color: #b7bdd0 !important;
	cursor: default;
	pointer-events: none;
}

.lms-pager__pages {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	justify-content: center;
}

.lms-pager__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 4px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--lms-ink) !important;
	text-decoration: none !important;
	transition: background-color 0.15s ease;
}

.lms-pager__page:hover {
	background: #eef0fb;
}

.lms-pager__page.is-active {
	background: var(--lms-navy);
	color: #fff !important;
}

.lms-pager__ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 36px;
	color: var(--lms-muted);
	font-weight: 700;
}

@media only screen and (max-width: 575.98px) {
	.lms-pager {
		flex-wrap: wrap;
	}

	.lms-pager__btn {
		order: 2;
		flex: 1 1 auto;
		justify-content: center;
	}

	.lms-pager__pages {
		order: 1;
		flex-basis: 100%;
	}

	.lms-inbox-toolbar {
		flex-wrap: wrap;
	}
}

@media only screen and (max-width: 1024.98px) {
	.lms-announcements__body {
		margin-top: 18px;
	}
}

@media only screen and (max-width: 767.98px) {
	.lms-inbox-item {
		padding: 14px 14px 14px 16px;
		gap: 12px;
	}

	.lms-inbox-item__thumb {
		width: 44px;
		height: 44px;
	}

	.lms-inbox-item__title {
		font-size: 14.5px;
	}

	.lms-inbox-item__snippet {
		-webkit-line-clamp: 2;
	}
}
