/* Single Blog Showcase - widget styles */

.sbs-box {
	display: flex;
	flex-direction: column;
	background: #ffffff;
}

.sbs-box .sbs-image img {
	display: block;
	width: 100%;
	height: auto;
}

.sbs-content {
	display: flex;
	flex-direction: column;
	padding: 20px;
}

.sbs-title {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.sbs-title a {
	color: inherit;
	text-decoration: none;
}

.sbs-description {
	color: #4a4a4a;
	font-size: 15px;
	line-height: 1.7;
}

/* Same baseline typography a theme applies to real blog content, so
   pasted-in post HTML (headings, lists, quotes, links...) looks like
   it does on the blog page itself — low specificity via :where() so
   the widget's own Style tab controls can still override anything. */
.sbs-description :where(p) {
	margin: 0 0 1em;
}

.sbs-description :where(h1, h2, h3, h4, h5, h6) {
	margin: 1.4em 0 0.6em;
	line-height: 1.3;
	font-weight: 600;
}

.sbs-description :where(h1, h2, h3, h4, h5, h6):first-child {
	margin-top: 0;
}

.sbs-description :where(ul, ol) {
	margin: 0 0 1em;
	padding-left: 1.4em;
}

.sbs-description :where(li) {
	margin-bottom: 0.4em;
}

.sbs-description :where(blockquote) {
	margin: 1em 0;
	padding: 0.6em 1.2em;
	border-left: 4px solid currentColor;
	opacity: 0.85;
	font-style: italic;
}

.sbs-description :where(a) {
	color: inherit;
	text-decoration: underline;
}

.sbs-description :where(strong, b) {
	font-weight: 700;
}

.sbs-description :where(em, i) {
	font-style: italic;
}

.sbs-description :where(img) {
	max-width: 100%;
	height: auto;
	margin: 1em 0;
	border-radius: 4px;
}

.sbs-description :where(table) {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

.sbs-description :where(td, th) {
	border: 1px solid rgba(0, 0, 0, 0.12);
	padding: 6px 10px;
}

.sbs-description > *:last-child {
	margin-bottom: 0;
}

/* Wrapper that positions the scroll-hint over the scrollable box */
.sbs-desc-wrap {
	position: relative;
}

/* Scrollable box */
.sbs-desc-scroll {
	overflow-y: auto;
	padding-right: 6px;
	--sbs-scrollbar-width: 8px;
	--sbs-scrollbar-track: #ededed;
	--sbs-scrollbar-thumb: #a61c1c;
}

/* Hidden scrollbar style */
.sbs-scrollbar-hidden {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.sbs-scrollbar-hidden::-webkit-scrollbar {
	display: none;
}

/* Custom styled scrollbar */
.sbs-scrollbar-custom {
	scrollbar-width: thin;
	scrollbar-color: var(--sbs-scrollbar-thumb) var(--sbs-scrollbar-track);
}

.sbs-scrollbar-custom::-webkit-scrollbar {
	width: var(--sbs-scrollbar-width);
}

.sbs-scrollbar-custom::-webkit-scrollbar-track {
	background: var(--sbs-scrollbar-track);
	border-radius: 10px;
}

.sbs-scrollbar-custom::-webkit-scrollbar-thumb {
	background-color: var(--sbs-scrollbar-thumb);
	border-radius: 10px;
}

/* Optional fake up/down arrow buttons (WebKit browsers only) */
.sbs-scroll-arrows-yes .sbs-scrollbar-custom::-webkit-scrollbar-button:vertical:start {
	display: block;
	height: 14px;
	background-color: var(--sbs-scrollbar-track);
	background-image: linear-gradient(45deg, transparent 45%, var(--sbs-scrollbar-thumb) 45%, var(--sbs-scrollbar-thumb) 55%, transparent 55%),
		linear-gradient(-45deg, transparent 45%, var(--sbs-scrollbar-thumb) 45%, var(--sbs-scrollbar-thumb) 55%, transparent 55%);
	background-position: center 8px, center 4px;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

.sbs-scroll-arrows-yes .sbs-scrollbar-custom::-webkit-scrollbar-button:vertical:end {
	display: block;
	height: 14px;
	background-color: var(--sbs-scrollbar-track);
	background-image: linear-gradient(135deg, transparent 45%, var(--sbs-scrollbar-thumb) 45%, var(--sbs-scrollbar-thumb) 55%, transparent 55%),
		linear-gradient(-135deg, transparent 45%, var(--sbs-scrollbar-thumb) 45%, var(--sbs-scrollbar-thumb) 55%, transparent 55%);
	background-position: center 4px, center 8px;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
}

/* Read more button */
.sbs-button-wrap {
	display: flex;
	justify-content: flex-start;
	margin-top: 18px;
}

.sbs-read-more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #a61c1c;
	color: #ffffff;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sbs-read-more:hover {
	opacity: 0.9;
	color: #ffffff;
}

.sbs-btn-icon svg,
.sbs-btn-icon i {
	width: 1em;
	height: 1em;
}

/* "Scroll for more" hint: soft fade + bouncing arrow pinned to the
   bottom of the scrollable box, so visitors immediately see there's
   more text below. It fades out once they've scrolled to the end. */
.sbs-scroll-hint {
	position: absolute;
	left: 0;
	right: 6px;
	bottom: 0;
	height: 44px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 4px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--sbs-hint-bg, #ffffff) 85%);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.sbs-scroll-hint.sbs-hint-visible {
	opacity: 1;
}

.sbs-scroll-hint-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	line-height: 1;
	font-size: 18px;
	color: var(--sbs-scrollbar-thumb, #a61c1c);
	animation: sbs-hint-bounce 1.6s ease-in-out infinite;
}

@keyframes sbs-hint-bounce {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(4px); }
}

.sbs-editor-notice {
	padding: 16px;
	background: #fff8e5;
	border: 1px dashed #e0c46c;
	color: #7a6220;
	font-size: 13px;
}
