:root {
	--sa-bg: #ffffff;
	--sa-text: #0f172a;
	--sa-muted: #6b7280;
	--sa-border: #101828;
	--sa-chip: rgba(15, 23, 42, 0.06);
	--sa-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
}

.sa-stories {
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
		"Segoe UI Emoji";
	color: var(--sa-text);
	background: transparent;
}


.sa-search__input::placeholder {
    font-size: 12px; /* change to your desired size */
}

.sa-template-wrap {
	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 16px 40px;
}

.sa-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin: 8px 0 18px;
	position: sticky;
	top: 60px;
	z-index: 10;
	padding: 45px 0 5px 0;
	background: var(--sa-bg);
}

.sa-search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 320px;
	min-width: 260px;
	max-width: 520px;
	background: #f7f8fb;
	border: 1px solid #e3e7ee;
	border-radius: 24px;
	box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(15, 23, 42, 0.04);
}

.sa-search__input {
	width: 100%;
	height: 44px;
	border: 0;
	border-radius: 24px !important;
	background: transparent;
	padding: 0 44px 0 44px;
	font-size: 14px;
	outline: none;
	color: #1f2937;
}

.sa-search__input:focus {
	box-shadow: 0 0 0 3px rgba(52, 112, 255, 0.18);
}

.sa-search__clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	border: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #eef1f7;
	color: #4b5563;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.sa-search__clear:hover {
	background: #e3e8f2;
}

.sa-search--elementor {
	width: 100%;
	min-width: 260px;
	max-width: 520px;
}

.sa-search--elementor .elementor-search-form {
	margin: 0;
}


.sa-chips {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 999 1 auto;
	min-width: 240px;
	overflow-x: auto;
	padding: 2px;
	scrollbar-width: none;
}

.sa-chips::-webkit-scrollbar {
	display: none;
}

.sa-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	border: 1px solid var(--sa-border);
	background: var(--sa-bg);
	border-radius: 999px;
	padding: 8px 12px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(15, 23, 42, 0.80);
	cursor: pointer;
}

.sa-chip:hover {
	background: #fff7ed;
	color:#ff3400;
}

.sa-chip.is-active {
	border-color: rgba(15, 23, 42, 0.10);
	background: rgba(15, 23, 42, 0.90);
	color: #fff;
}

.sa-chip.is-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.sa-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	margin-left: auto;
}

.sa-clear-filters {
	height: 38px;
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	border: 1px solid var(--sa-border);
	background: rgba(15, 23, 42, 0.04);
	padding: 0 12px;
	font-size: 12px;
	font-weight: 800;
	color: rgba(15, 23, 42, 0.78);
	text-decoration: none !important;
}

.sa-clear-filters:hover {
	background: rgba(15, 23, 42, 0.08);
	text-decoration: none !important;
}

.sa-filter-toggle {
	height: 38px;
	border-radius: 999px;
	border: 1px solid var(--sa-border)!important;
	background: var(--sa-bg)!important;
	padding: 0 12px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(15, 23, 42, 0.82)!important;
	cursor: pointer;
}

.sa-filter-toggle:hover {
	background: rgba(15, 23, 42, 0.04);
}

.sa-sort {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 38px;
	border-radius: 999px;
	border: 1px solid var(--sa-border);
	background: var(--sa-bg);
	padding: 0 10px 0 12px;
}

.sa-sort__label {
	font-size: 12px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.60);
}

.sa-sort__select {
	border: 0;
	background: transparent;
	font-size: 12px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.86);
	outline: none;
	cursor: pointer;
	padding-right: 8px;
	height: 30px;
}

.sa-header {
	margin: 12px 0 14px;
}

.sa-title {
	margin: 0;
	font-family: 'Inter', sans-serif;
	font-size: 28px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.sa-subtitle {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	color: var(--sa-muted);
}

.sa-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.sa-card {
	border-radius: 6px;
	background: var(--sa-bg);
	box-shadow: var(--sa-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.sa-stories .sa-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none !important;
}

.sa-stories .sa-card__link:hover,
.sa-stories .sa-card__link:focus,
.sa-stories .sa-card__link:active,
.sa-stories .sa-card__link:visited {
	text-decoration: none !important;
}

.sa-stories .sa-card__link *,
.sa-stories .sa-card__title,
.sa-stories .sa-card__excerpt {
	text-decoration: none !important;
	border-bottom: 0 !important;
}

.sa-card__media {
	position: relative;
	flex: 0 0 auto;
}

.sa-card__img {
	display: block;
	width: 100%;
	height: 172px !important ;
	object-fit: cover;
	border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.sa-card__img--placeholder {
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.10), rgba(15, 23, 42, 0.02));
}

.sa-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(15, 23, 42, 0.10);
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	color: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(8px);
}

.sa-card__body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto; /* let body grow to fill card */
	gap: 6px;
}

.sa-card__title {
	margin: 0 0 6px;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.sa-card__excerpt {
	margin: 0 0 10px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	color: rgba(15, 23, 42, 0.68);
}

.sa-card__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: rgba(15, 23, 42, 0.52);
	margin-top: auto; /* pin meta to the bottom of the card */
}

.sa-dot {
	opacity: 0.65;
}

.sa-empty {
	grid-column: 1 / -1;
	padding: 28px;
	border-radius: 16px;
	border: 1px solid var(--sa-border);
	background: rgba(15, 23, 42, 0.02);
}

.sa-empty__title {
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 6px;
}

.sa-empty__hint {
	font-size: 12px;
	color: var(--sa-muted);
	font-weight: 600;
}

.sa-pagination {
	margin: 22px 0 0;
	display: flex;
	justify-content: center;
}

.sa-pagination__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sa-pagination__item a,
.sa-pagination__item span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1px solid var(--sa-border);
	background: var(--sa-bg);
	font-size: 12px;
	font-weight: 800;
	color: rgba(15, 23, 42, 0.80);
	text-decoration: none;
}

.sa-pagination__item a:hover {
	background: rgba(15, 23, 42, 0.04);
}

.sa-pagination__item .current {
	background: rgba(15, 23, 42, 0.90);
	color: #fff;
	border-color: rgba(15, 23, 42, 0.10);
}

@media (max-width: 900px) {
	.sa-actions {
		margin-left: 0;
	}
	.sa-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.sa-toolbar {
		gap: 10px;
	}
	.sa-search {
		flex: 1 1 100%;
		max-width: none;
	}
	.sa-actions {
		width: 100%;
		justify-content: space-between;
	}
	.sa-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.sa-card__img {
		height: 200px;
	}
}

.sa-stories.is-filters-open .sa-chips {
	flex-basis: 100%;
}

.sa-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.sa-modal[hidden] {
	display: none;
}

.sa-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.55);
}

.sa-modal__dialog {
	position: relative;
	width: min(720px, 100%);
	max-height: min(80vh, 720px);
	overflow: auto;
	border-radius: 18px;
	background: var(--sa-bg);
	border: 1px solid var(--sa-border);
	box-shadow: var(--sa-shadow);
}

.sa-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 14px 10px;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	position: sticky;
	top: 0;
	background: var(--sa-bg);
}

.sa-modal__title {
	font-size: 14px;
	font-weight: 900;
	letter-spacing: -0.01em;
}

.sa-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--sa-border);
	background: #101828 !important;
	color: #fff;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}

.sa-modal__close:hover {
	background: #0b1220 !important;
}

.sa-modal__body {
	padding: 12px 14px 8px;
}

.sa-filter-panels {
	margin-top: 6px;
}

.sa-filter-panel[hidden] {
	display: none;
}

.sa-modal__empty {
	padding: 10px 2px 14px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.62);
}

.sa-field {
	padding: 10px 0;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sa-field:last-child {
	border-bottom: 0;
}

.sa-modal-label {
	font-size: 12px;
	font-weight: 900;
	color: rgba(15, 23, 42, 0.72);
	margin-bottom: 8px;
}

#sa-filters-modal .sa-modal-label,
#sa-filters-modal .sa-locked-value {
	display: none !important;
}

#sa-filters-modal .sa-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.sa-field__label,
.sa-field__control {
	display: none !important;
}

.sa-input {
	width: 100%;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--sa-border);
	background: var(--sa-bg);
	padding: 0 12px;
	font-size: 13px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.82);
	outline: none;
}

.sa-input:focus {
	border-color: rgba(15, 23, 42, 0.22);
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.sa-modal-control {
	display: block;
}

.sa-locked-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 12px;
	border-radius: 12px;
	border: 1px solid var(--sa-border);
	background: rgba(15, 23, 42, 0.03);
	font-size: 13px;
	font-weight: 800;
	color: rgba(15, 23, 42, 0.72);
	user-select: none;
}

.sa-checklist {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.sa-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px;
	border-radius: 12px;
	border: 1px solid var(--sa-border);
	background: rgba(15, 23, 42, 0.02);
	font-size: 13px;
	font-weight: 700;
	color: rgba(15, 23, 42, 0.78);
	cursor: pointer;
	user-select: none;
}

.sa-check input {
	width: 16px;
	height: 16px;
}

.sa-modal__foot {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 14px 14px;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
	position: sticky;
	bottom: 0;
	background: var(--sa-bg);
}

.sa-btn {
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--sa-border);
	padding: 0 14px;
	font-size: 12px;
	font-weight: 900;
	cursor: pointer;
}

.sa-btn--ghost {
	background: rgba(15, 23, 42, 0.04);
	color: rgba(15, 23, 42, 0.78);
}

.sa-btn--ghost:hover {
	background: rgba(15, 23, 42, 0.08);
}

.sa-btn--primary {
	background: rgba(15, 23, 42, 0.92);
	border-color: rgba(15, 23, 42, 0.12);
	color: #fff;
}

.sa-btn--primary:hover {
	background: rgba(15, 23, 42, 1);
}

@media (max-width: 520px) {
	.sa-checklist {
		grid-template-columns: 1fr;
	}
	.sa-toolbar {
	    top:50px;
		padding: 25px 0 5px 0;
	}
}
