/* Compact design overrides: makes 100% zoom feel closer to ~80-90% */

:root {
	--bs-body-font-size: 1rem;
}

html {
	font-size: 15px;
}

body {
	line-height: 1.45;
}

.container,
.container-lg,
.container-xl,
.container-xxl {
	max-width: min(1200px, 94vw);
}

/* Header / nav */
.navbar {
	padding-top: 0.5rem !important;
	padding-bottom: 0.5rem !important;
}

/* Disable sticky clone created by Headhesive */
.navbar-clone {
	display: none !important;
}

.navbar-brand {
	font-size: 1.7rem !important;
}

.nav-link {
	font-size: 0.92rem;
}

/* Buttons */
.btn {
	--bs-btn-padding-y: 0.45rem;
	--bs-btn-padding-x: 1rem;
	--bs-btn-font-size: 0.92rem;
	border-radius: 0.5rem;
}

.btn.btn-sm {
	--bs-btn-padding-y: 0.3rem;
	--bs-btn-padding-x: 0.75rem;
	--bs-btn-font-size: 0.82rem;
}

/* Hero + headings */
.display-6 {
	font-size: clamp(2.05rem, 3vw, 3rem) !important;
	line-height: 1.12;
}

h1,
.h1 { font-size: 2rem; }
h2,
.h2 { font-size: 1.75rem; }
h3,
.h3 { font-size: 1.2rem; }

.lead {
	font-size: 1.25rem;
}

/* Section spacing compact */
.py-5 {
	padding-top: 2.25rem !important;
	padding-bottom: 2.25rem !important;
}

@media (min-width: 992px) {
	.py-lg-7 {
		padding-top: 3.2rem !important;
		padding-bottom: 3.2rem !important;
	}

	.pb-lg-10 {
		padding-bottom: 4.2rem !important;
	}
}

@media (min-width: 1200px) {
	.pt-xl-6 {
		padding-top: 2.8rem !important;
	}

	.pb-xl-10 {
		padding-bottom: 4.2rem !important;
	}

	.pb-xl-8 {
		padding-bottom: 3.2rem !important;
	}

	.py-xl-8 {
		padding-top: 3.2rem !important;
		padding-bottom: 3.2rem !important;
	}
}

.mb-6 {
	margin-bottom: 2rem !important;
}

/* Cards and dropdowns */
.card {
	border-radius: 0.75rem;
}

.card .card-body {
	padding: 1.15rem;
}

.dropdown-menu {
	font-size: 0.92rem;
}

/* Universities mega menu (not full width) */
.mega-universities {
	width: min(1100px, 92vw);
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
}

/* Floating stat cards in hero */
.shadow-lg,
.shadow-sm {
	box-shadow: 0 .3rem .9rem rgba(15, 23, 42, .12) !important;
}

/* Scholarship filter sidebar */
.sd-filter-chevron {
	transition: none !important;
}
[aria-expanded="false"] .sd-filter-chevron {
	transform: rotate(180deg);
}
#filter-destination .form-check-label,
#filter-nationality .form-check-label,
#filter-degree .form-check-label,
#filter-attendance .form-check-label,
#filter-funding .form-check-label,
#filter-study .form-check-label {
	font-size: .9rem;
	cursor: pointer;
}

.sd-filter-scrollable {
	max-height: 20rem;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: .25rem;
}

.sd-filter-title {
	color: #111827;
	display: inline-flex;
	align-items: center;
	font-weight: 600;
}

.sd-filter-title i {
	font-size: .95rem;
	line-height: 1;
}

.sd-filter-collapse.collapse,
.sd-filter-collapse.collapsing {
	transition: none !important;
}

.sd-filter-toggle:focus,
.sd-filter-toggle:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

/* Scholarship result cards */
.sd-schol-img-wrap {
	line-height: 0;
}

.sd-schol-img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.sd-badge-full {
	background-color: #166534;
	color: #fff;
	padding: .35em .85em;
}

.sd-badge-partial {
	background-color: #854d0e;
	color: #fff;
	padding: .35em .85em;
}

.sd-card-badges {
	min-width: 12rem;
}

@media (max-width: 767.98px) {
	header .container,
	.sd-search-page .container {
		max-width: min(1200px, 94vw) !important;
		padding-left: .85rem !important;
		padding-right: .85rem !important;
	}

	.sd-search-page #searchFilters.offcanvas-start {
		border-left: 0 !important;
		border-right: 0 !important;
	}

	.sd-search-page #searchFilters .card {
		border-radius: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
	}

	body.home .py-5 {
		padding-top: 1.45rem !important;
		padding-bottom: 1.45rem !important;
	}

	body.home .mb-6 {
		margin-bottom: 1.25rem !important;
	}

	body.home .mb-5,
	body.home .mt-5 {
		margin-top: 1.15rem !important;
		margin-bottom: 1.15rem !important;
	}

	.sd-home-fields-grid > [class*="col-"]:nth-child(n + 5) {
		display: none;
	}

	.sd-search-page .row.g-5 {
		--bs-gutter-x: .75rem;
	}

	.sd-search-page .sd-schol-card .card-body > .d-flex.align-items-start.justify-content-between {
		flex-direction: column;
		align-items: flex-start !important;
		gap: .65rem !important;
	}

	.sd-search-page .sd-schol-card .sd-card-badges {
		min-width: 0;
		width: 100%;
		justify-content: flex-start !important;
	}

	.sd-search-page .sd-schol-card .card-footer {
		flex-direction: column;
		align-items: flex-start !important;
		gap: .35rem;
	}

	.sd-search-page .sd-schol-card .card-footer .sd-view-link {
		margin-left: 0 !important;
	}
}

/* 2-column meta grid */
.sd-meta-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .35rem .75rem;
}

.sd-card-main {
	display: grid;
	grid-template-columns: minmax(220px, 400px) minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.sd-card-media {
	min-width: 0;
	max-width: 400px;
	width: 100%;
}

.sd-card-media-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.sd-card-featured-image,
.sd-card-featured-placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid rgba(15, 23, 42, .08);
	background: #f8fafc;
	box-shadow: 0 .15rem .55rem rgba(15, 23, 42, .04);
}

.sd-card-featured-image {
	display: block;
	object-fit: cover;
}

.sd-card-featured-image--logo {
	object-fit: contain;
	padding: 1rem;
	background: #fff;
}

.sd-card-featured-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 2rem;
}

.sd-card-content {
	display: flex;
	flex-direction: column;
	gap: .9rem;
	min-width: 0;
	align-self: start;
}

.sd-meta-item {
	display: flex;
	align-items: flex-start;
	gap: .45rem;
	font-size: .86rem;
	color: #374151;
	line-height: 1.35;
}

.sd-meta-icon {
	color: #6b7280;
	font-size: .95rem;
	flex-shrink: 0;
	margin-top: .05rem;
}

.sd-university-row {
	display: flex;
	align-items: center;
	gap: .65rem;
	padding-top: .1rem;
}

.sd-university-logo {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
	flex-shrink: 0;
	/* border-radius: .4rem; */
	background: #fff;
	padding: .15rem;
}

.sd-university-logo-placeholder {
	width: 2rem;
	height: 2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: .4rem;
	border: 1px solid rgba(15, 23, 42, .1);
	background: #f8fafc;
	color: #64748b;
	font-size: .95rem;
}

.sd-university-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.sd-university-label {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: #64748b;
	font-weight: 600;
}

.sd-university-name {
	font-size: .9rem;
	font-weight: 600;
	color: #1f2937;
}

.sd-university-location {
	font-size: .8rem;
	color: #64748b;
	line-height: 1.25;
	display: inline-flex;
	align-items: center;
	margin-top: .12rem;
}

.sd-deadline-text {
	font-size: .98rem;
	color: #475569;
	font-weight: 600;
}

.sd-deadline-value {
	font-size: 1.02rem;
	color: #0f172a;
	font-weight: 700;
}

@media (max-width: 767.98px) {
	.sd-card-main {
		grid-template-columns: 1fr;
	}

	.sd-card-media {
		max-width: 100%;
	}

	.sd-card-featured-image,
	.sd-card-featured-placeholder {
		aspect-ratio: 16 / 9;
	}

	.sd-meta-grid {
		grid-template-columns: 1fr;
	}
}

/* Sidebar search/filter button */
.sd-btn-search {
	background-color: #2563eb;
	border-color: #2563eb;
	color: #fff;
}
.sd-btn-search:hover,
.sd-btn-search:focus {
	background-color: #1d4ed8;
	border-color: #1d4ed8;
	color: #fff;
}

/* Card view link */
.sd-view-link {
	color: #7c3aed;
	text-decoration: none;
	position: relative;
	z-index: 1;
}
.sd-view-link:hover {
	color: #5b21b6;
}

/* Country panel grid (homepage + archive) */
.sd-country-panel {
	background: #fff;
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: .8rem;
	overflow: hidden;
	box-shadow: 0 .15rem .55rem rgba(15, 23, 42, .04);
}

.sd-country-panel .border-end,
.sd-country-panel .border-bottom {
	border-color: rgba(15, 23, 42, .08) !important;
}

.sd-country-item {
	transition: background-color .16s ease;
}

.sd-country-item:hover {
	background-color: #f8fafc;
}

.sd-country-flag {
	width: 30px;
	height: 30px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid rgba(15, 23, 42, .08);
	flex-shrink: 0;
}

.sd-country-flag--placeholder {
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
	display: inline-block;
}

.sd-country-name {
	font-size: .95rem;
	line-height: 1.35;
	color: #24324a;
}

/* ── Scholarship single – Gutenberg / block-editor content body ──── */
.sd-scholarship-body {
	font-size: 1rem;
	line-height: 1.75;
	color: var(--bs-body-color);
}

/* Paragraphs */
.sd-scholarship-body p,
.sd-scholarship-body .wp-block-paragraph {
	margin-top: 0;
	margin-bottom: 1.15rem;
	line-height: 1.75;
}

/* Headings */
.sd-scholarship-body h1,
.sd-scholarship-body h2,
.sd-scholarship-body h3,
.sd-scholarship-body h4,
.sd-scholarship-body h5,
.sd-scholarship-body h6,
.sd-scholarship-body .wp-block-heading {
	margin-top: 2rem;
	margin-bottom: .6rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bs-emphasis-color);
}
.sd-scholarship-body h2 { font-size: 1.45rem; }
.sd-scholarship-body h3 { font-size: 1.2rem; }
.sd-scholarship-body h4 { font-size: 1.05rem; }
.sd-scholarship-body h5,
.sd-scholarship-body h6 { font-size: .95rem; }

/* Lists */
.sd-scholarship-body ul,
.sd-scholarship-body ol,
.sd-scholarship-body .wp-block-list {
	padding-left: 1.6rem;
	margin-bottom: 1.15rem;
}
.sd-scholarship-body li {
	margin-bottom: .35rem;
	line-height: 1.65;
}
.sd-scholarship-body li > ul,
.sd-scholarship-body li > ol {
	margin-top: .25rem;
	margin-bottom: .25rem;
}

/* Links */
.sd-scholarship-body a {
	color: #2563eb;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.sd-scholarship-body a:hover {
	color: #1d4ed8;
}

/* Blockquote — matches theme .blockquote style */
.sd-scholarship-body blockquote,
.sd-scholarship-body .wp-block-quote,
.sd-scholarship-body .wp-block-pullquote blockquote {
	background-color: var(--bs-gray-100);
	border-radius: 12px;
	color: var(--bs-gray-600);
	margin: 1.5rem 0;
	padding: 1.25rem 1.5rem 1.25rem 3.5rem;
	position: relative;
	font-style: italic;
}
.sd-scholarship-body blockquote::before,
.sd-scholarship-body .wp-block-quote::before {
	content: "\f6b0";
	font-family: bootstrap-icons;
	font-size: 2rem;
	color: var(--bs-gray-400);
	position: absolute;
	left: 1rem;
	top: .4rem;
	line-height: 1;
}
.sd-scholarship-body blockquote p,
.sd-scholarship-body .wp-block-quote p {
	margin-bottom: 0;
}
.sd-scholarship-body cite,
.sd-scholarship-body .wp-block-quote cite {
	display: block;
	margin-top: .5rem;
	font-size: .875rem;
	font-style: normal;
	color: var(--bs-gray-500);
}

/* Images */
.sd-scholarship-body figure,
.sd-scholarship-body .wp-block-image {
	margin: 1.75rem 0;
}
.sd-scholarship-body figure img,
.sd-scholarship-body .wp-block-image img {
	border-radius: .75rem;
	max-width: 100%;
	height: auto;
}
.sd-scholarship-body figcaption,
.sd-scholarship-body .wp-element-caption {
	text-align: center;
	font-size: .82rem;
	color: var(--bs-gray-500);
	margin-top: .5rem;
}

/* Separator */
.sd-scholarship-body hr,
.sd-scholarship-body .wp-block-separator {
	border-color: var(--bs-border-color);
	margin: 2rem 0;
	opacity: .25;
}

/* Code */
.sd-scholarship-body code {
	background: var(--bs-gray-100);
	border-radius: .25rem;
	padding: .15em .4em;
	font-size: .875em;
	color: var(--bs-danger);
}
.sd-scholarship-body pre {
	background: var(--bs-gray-100);
	border-radius: .5rem;
	padding: 1.25rem;
	font-size: .875rem;
	overflow-x: auto;
	margin-bottom: 1.25rem;
}
.sd-scholarship-body pre code {
	background: none;
	padding: 0;
	color: inherit;
}

/* Tables */
.sd-scholarship-body table,
.sd-scholarship-body .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.25rem;
	font-size: .9rem;
}
.sd-scholarship-body th,
.sd-scholarship-body td {
	padding: .6rem .8rem;
	border: 1px solid var(--bs-border-color);
	vertical-align: top;
}
.sd-scholarship-body thead th {
	background-color: var(--bs-gray-100);
	font-weight: 600;
}

/* Gutenberg columns basic */
.sd-scholarship-body .wp-block-columns {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 1.25rem;
	flex-wrap: wrap;
}

.sd-scholarship-body .sd-scholarship-content-block {
	margin-bottom: 1.75rem;
}

.sd-scholarship-body .sd-scholarship-content-block__body {
	margin-top: 0.75rem;
}

.sd-scholarship-body .sd-scholarship-content-block--benefits .wp-block-list,
.sd-scholarship-body .sd-scholarship-content-block--eligibility .wp-block-list {
	list-style: none;
	padding-left: 15px;
	margin-bottom: 0;
}

.sd-scholarship-body .sd-scholarship-content-block--benefits .wp-block-list > li,
.sd-scholarship-body .sd-scholarship-content-block--eligibility .wp-block-list > li {
	position: relative;
	padding-left: 1.85rem;
	margin-bottom: 0.6rem;
}

.sd-scholarship-body .sd-scholarship-content-block--benefits .wp-block-list > li::before,
.sd-scholarship-body .sd-scholarship-content-block--eligibility .wp-block-list > li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0.15rem;
	width: 1.2rem;
	height: 1.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

.sd-scholarship-body .sd-scholarship-content-block--benefits .wp-block-list > li::before {
	color: #0d6efd;
	background: rgba(13, 110, 253, 0.14);
	border-radius: 0.3rem;
}

.sd-scholarship-body .sd-scholarship-content-block--eligibility .wp-block-list > li::before {
	color: #198754;
	background: rgba(25, 135, 84, 0.14);
	border-radius: 50%;
}
.sd-scholarship-body .wp-block-column {
	flex: 1 1 240px;
}

/* Lift on hover */
.sd-schol-card {
	transition: box-shadow .18s ease, transform .18s ease;
}
.sd-schol-card:hover {
	box-shadow: 0 .5rem 1.5rem rgba(15,23,42,.13) !important;
	transform: translateY(-2px);
}

.sd-home-scholarship-card__media {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 210px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, .08);
	background: #f8fafc;
	box-shadow: 0 .15rem .55rem rgba(15, 23, 42, .04);
}

.sd-home-scholarship-card__image,
.sd-home-scholarship-card__placeholder {
	width: 100%;
	height: 100%;
}

.sd-home-scholarship-card__image {
	display: block;
	object-fit: cover;
}

.sd-home-scholarship-card__image--logo {
	object-fit: contain;
	padding: 1rem;
	background: #fff;
}

.sd-home-scholarship-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 2rem;
}

@media (max-width: 575.98px) {
	.sd-home-scholarship-card__media {
		height: 210px;
	}
}

/* Field of study cards + archive search */
.sd-field-card {
	background-color: #fff;
	border: 0;
	border-radius: 1rem;
	box-shadow: none;
	transition: box-shadow .18s ease, transform .18s ease;
	display: block;
}

.sd-field-card:hover {
	box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .08);
	transform: translateY(-2px);
}

.sd-field-card__icon-wrap {
	line-height: 1;
}

.sd-field-card__icon {
	font-size: 1.95rem;
	line-height: 1;
}

.sd-field-card__title {
	color: #24324a;
	font-size: 1.05rem;
	line-height: 1.3;
}

.sd-field-card__excerpt {
	color: #374151;
	line-height: 1.45;
}

.sd-field-search-input {
	padding-left: 2.65rem;
	border-radius: .9rem;
	min-height: 3rem;
	border-color: rgba(15, 23, 42, .12);
	box-shadow: 0 .2rem .6rem rgba(15, 23, 42, .04);
}

.sd-field-search-input:focus {
	border-color: #8a4fff;
	box-shadow: 0 0 0 .2rem rgba(138, 79, 255, .14);
}

.sd-field-search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: #8b95a7;
	font-size: .95rem;
	pointer-events: none;
	z-index: 3;
}

