.fs-schools-wrapper {
	--fs-cream: #f6f1e4;
	--fs-orange: #F37E20;
	--fs-orange-dark: #d1651c;
	--fs-text: #2b2924;
	--fs-muted: #6b675c;
	--fs-border: #e6ddc8;

	font-family: inherit;
	color: var(--fs-text);
}

.fs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin: 0 0 32px;
}

@media (max-width: 1024px) {
	.fs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.fs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.fs-grid { grid-template-columns: 1fr; }
}

.fs-card {
/* 	overflow: hidden; */
	display: flex;
	flex-direction: column;
}

/* .fs-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
} */

/* .fs-card-media {
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eee3c8;
} */

.fs-card-img,
.fs-card-img--placeholder {
	width: 300px !important;
	height: 200px !important;
	object-fit: cover;
	display: block;
	border-radius: 20px !important;
	max-width: none !important;
}

.fs-card-img--placeholder {
	background: linear-gradient(135deg, #efe6cf, #e6d9b8);
}

.fs-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.fs-card-title {
	font-size: 24px !important;
	font-weight: 400;
	margin: 10px 0px 5px 0px ;
	line-height: 1.3;
}

.fs-learn-more {
	align-self: flex-start;
	margin-top: auto;
	color: #0C4165;
	border: none;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-transform: uppercase !important;
	padding: 0px;
	background: #0C4165 !important;
}

.fs-learn-more:hover,
.fs-learn-more:focus,
.fs-learn-more:active,
.fs-learn-more:visited {
	color: #fff !important;
	text-decoration: none !important;
	background: #F37E20 !important;
	outline: none !important;
}

.fs-learn-more:hover {
	color: #082E44;
}

.fs-empty {
	color: var(--fs-muted);
	padding: 40px 0;
	text-align: center;
}

/* Pagination */
.fs-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 8px 0 24px;
}

.fs-page-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--fs-border);
	background: #fff;
	color: var(--fs-text);
	cursor: pointer;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, opacity 0.15s ease;
	text-decoration: none !important;
}

.fs-page-btn:hover:not(:disabled) {
	background: #F37E20;
}

.fs-page-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.fs-page-status {
	font-size: 0.9rem;
	color: var(--fs-muted);
}

.fs-grid-container.fs-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

/* Modal - fixed-height panel docked to the right edge, content scrolls internally */
.fs-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 18, 12, 0.55);
	display: none;
	align-items: stretch;
	justify-content: flex-end;
	padding: 0;
	z-index: 100000;
	box-sizing: border-box;
}

.fs-modal-overlay.is-open {
	display: flex;
}

.fs-modal {
	background: var(--fs-cream);
	background-color: #F7F1E8;
	border-radius: 20px 0px 0px 20px;
	max-width: 620px;
	width: 100%;
	height: 100vh;
	max-height: 100vh;
	padding: 28px 32px 36px;
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.fs-modal-nav-top {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	margin-bottom: 16px;
	flex-shrink: 0;
}

.fs-modal-close {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	font-size: 1.2em;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background: #F37E20;
	color: #fff;
}

.fs-modal-close:hover {
	background: transparent;
	color: #F37E20;
	border: 1px solid #F37E20;
}

@media (max-width: 640px) {
	.fs-modal {
		max-width: 100%;
	}
}

.fs-modal-content {
	flex: 1;
	overflow-y: auto;
	min-height: 0;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}

.fs-modal-content::-webkit-scrollbar {
	display: none; /* Chrome, Safari, Opera */
}

.fs-modal-title {
	font-size: 2rem;
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--fs-text);
}

.fs-modal-text {
	color: var(--fs-muted);
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 24px;
}

.fs-modal-text p:first-child {
	margin-top: 0;
}

.fs-modal-gallery {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.fs-modal-gallery.fs-gallery-empty {
	display: none;
}

.fs-modal-gallery img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	border-radius: 14px;
	display: block;
	background: #eee3c8;
}

@media (max-width: 640px) {
	.fs-modal-gallery { grid-template-columns: 1fr; }
	.fs-modal-gallery img { height: 200px; }
	.fs-modal { padding: 24px 20px 32px; }
	.fs-modal-title { font-size: 1.5rem; }
}

body.fs-modal-open {
	overflow: hidden;
}
