/* Local Font Face Declarations */
@font-face {
	font-family: 'SF Pro Display';
	src: url('./fonts/SFProDisplay-Medium.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('./fonts/SFProDisplay-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('./fonts/SFProDisplay-Black.woff2') format('woff2');
	font-weight: 900;
	font-style: normal;
}

@font-face {
	font-family: 'SF Pro Rounded';
	src: url('./fonts/SFProRounded-Bold.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
}

/* Root Design System variables */
:root {
	--primary-color: #3074ae;
	--primary-hover: #215988;
	--success-color: #3c763d;
	--success-bg: #d6e9c6;
	--danger-color: #a94442;
	--danger-bg: #f2dede;
	--dark-grey: #646464;
	--light-grey: #e1e1e1;
	--border-color: #dcdcdc;
	--text-dark: #333333;
	--text-muted: #777777;
	--body-bg: #fafafa;
	--white: #ffffff;
	--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
	--font-stack: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Dark Theme Palette (Antrasit tabanlı, göz yormayan tasarım) */
html.dark-theme,
body.dark-theme {
	--body-bg: #121212;
	--white: #1e1e1e;
	--text-dark: #e2e8f0;
	--text-muted: #94a3b8;
	--border-color: #2d3748;
	--light-grey: #2d3748;
	--dark-grey: #4a5568;
	--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Fixed Top Navbar Replica */
.navbar-fixed-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background-color: var(--white);
	border-bottom: 1px solid var(--border-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
	height: 60px;
	display: flex;
	align-items: center;
	transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s ease, border-color 0.35s ease;
}

.navbar-container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 15px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand {
	display: flex;
	align-items: center;
}

.yok-logo-img {
	height: 35px;
	width: auto;
	display: block;
}

/* Navbar Menu Links */
.navbar-links {
	display: none;
	/* Hidden on mobile by default */
	gap: 15px;
	align-items: center;
}

@media (min-width: 992px) {
	.navbar-links {
		display: flex;
		order: 3;
		flex: 1 1 0%;
		justify-content: flex-end;
	}

	.navbar-brand {
		order: 1;
		flex: 1 1 0%;
	}

	.navbar-search {
		order: 2;
		flex: 0 0 320px;
		margin: 0 auto;
	}

	.mobile-toggle-btn {
		display: none;
	}
}

.nav-link {
	color: #555555;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 700;
	padding: 8px 12px;
	border-radius: 4px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.nav-link:hover {
	color: var(--primary-color);
	background-color: #f1f5f9;
}

/* Dropdown styling */
.nav-dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: #ffffff;
	min-width: 150px;
	box-shadow: var(--shadow-md);
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	z-index: 1040;
	top: 100%;
	left: 0;
	margin-top: 4px;
}

.dropdown-content a {
	color: #333333;
	padding: 10px 14px;
	text-decoration: none;
	display: block;
	font-size: 12.5px;
	font-weight: 700;
	text-align: left;
}

.dropdown-content a:hover {
	background-color: #f1f5f9;
	color: var(--primary-color);
}

.nav-dropdown:hover .dropdown-content {
	display: block;
}

/* Search engine layout */
.navbar-search {
	display: flex;
	align-items: center;
	flex: 1;
	max-width: 280px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper {
	position: relative;
	flex: 1;
}

.search-input {
	width: 100%;
	height: 34px;
	padding: 6px 12px;
	font-size: 13px;
	color: #333333;
	background-color: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 4px 0 0 4px;
	outline: none;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-input:focus {
	border-color: #66afe9;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}

.search-btn {
	height: 34px;
	padding: 6px 12px;
	font-size: 13px;
	color: #555555;
	background-color: #eeeeee;
	border: 1px solid #cccccc;
	border-left: none;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background-color 0.15s;
}

.search-btn:hover {
	background-color: #dddddd;
}

/* Autocomplete Suggestion Dropdown */
.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #ffffff;
	border: 1px solid #dcdcdc;
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: var(--shadow-md);
	max-height: 280px;
	overflow-y: auto;
	z-index: 1050;
	display: none;
}

.suggestion-item {
	padding: 8px 12px;
	font-size: 11px;
	cursor: pointer;
	border-bottom: 1px solid #f1f1f1;
	text-align: left;
	line-height: 1.4;
}

.suggestion-item:last-child {
	border-bottom: none;
}

.suggestion-item:hover {
	background-color: #f1f5f9;
	color: var(--primary-color);
}

.suggestion-item .suggestion-prog {
	font-weight: 700;
	font-size: 12.5px;
	color: #0f172a;
	display: block;
	margin-bottom: 2px;
}

.suggestion-item .suggestion-uni {
	font-weight: 500;
	font-size: 10.5px;
	color: #64748b;
	display: block;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.suggestion-item .suggestion-id {
	font-size: 9.5px;
	color: var(--text-muted);
	display: block;
}

/* Navigation Icon Buttons (Unified size, vertical center alignment) */
.theme-toggle-btn,
.mobile-search-toggle-btn,
.mobile-toggle-btn {
	background: none;
	border: none;
	color: #555555;
	font-size: 18px;
	cursor: pointer;
	height: 44px;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background-color 0.3s ease, color 0.3s ease;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.theme-toggle-btn:hover,
.theme-toggle-btn:focus,
.theme-toggle-btn:active,
.mobile-search-toggle-btn:hover,
.mobile-search-toggle-btn:focus,
.mobile-search-toggle-btn:active,
.mobile-toggle-btn:hover,
.mobile-toggle-btn:focus,
.mobile-toggle-btn:active {
	background-color: transparent !important;
	color: var(--primary-color) !important;
	outline: none !important;
	box-shadow: none !important;
}

.mobile-search-toggle-btn {
	transition: opacity 0.12s ease, visibility 0.12s ease, background-color 0.3s ease, color 0.3s ease;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	display: none;
	/* Hidden by default when not scrolled on mobile */
}

@media (min-width: 992px) {

	.mobile-search-toggle-btn,
	.mobile-toggle-btn {
		display: none !important;
	}
}

/* Mobile responsive layout */
@media (max-width: 991px) {
	.navbar-fixed-top {
		height: 110px;
		align-items: flex-start;
		padding-top: 11.5px;
	}

	.navbar-container {
		flex-wrap: wrap;
		gap: 0;
		position: relative;
	}

	.navbar-brand {
		order: 1;
		flex: 0 0 auto;
	}

	.theme-toggle-btn {
		order: 2;
		margin-left: auto;
		margin-right: 0;
		padding: 0 4px;
		width: 36px;
		height: 36px;
	}

	.mobile-search-toggle-btn {
		order: 3;
		margin-left: 0;
		margin-right: 0;
		padding: 0 4px;
		width: 36px;
		height: 36px;
	}

	.mobile-toggle-btn {
		order: 4;
		flex: 0 0 auto;
		margin-left: 0;
		padding: 0 4px;
		width: 36px;
		height: 36px;
	}

	.navbar-search {
		order: 5;
		flex: 0 0 100%;
		max-width: 100%;
		width: 100%;
		margin-top: 12px;
		display: flex;
		justify-content: center;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition: opacity 0.12s ease, visibility 0.12s ease;
	}

	.search-input-wrapper {
		width: 100%;
		max-width: 480px;
	}

	body {
		padding-top: 120px !important;
	}

	/* Scrolled navbar state on mobile: collapse into single row and hide search bar, show search icon */
	.navbar-fixed-top.nav-scrolled {
		height: 60px;
	}

	.navbar-fixed-top.nav-scrolled .navbar-search {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.navbar-fixed-top.nav-scrolled .mobile-search-toggle-btn {
		display: flex;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.navbar-fixed-top.nav-scrolled .navbar-links.open {
		top: 60px;
	}

	/* Expanded search active state inside scrolled nav: returns to original height/appearance */
	.navbar-fixed-top.nav-scrolled.search-active {
		height: 110px;
	}

	.navbar-fixed-top.nav-scrolled.search-active .navbar-search {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.navbar-fixed-top.nav-scrolled.search-active .mobile-search-toggle-btn {
		display: none;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.navbar-fixed-top.nav-scrolled.search-active .navbar-links.open {
		top: 110px;
	}
}

/* Mobile open styles */
.navbar-links.open {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 110px;
	left: 0;
	right: 0;
	background-color: #ffffff;
	border-bottom: 1px solid #e5e5e5;
	box-shadow: var(--shadow-md);
	padding: 10px 15px;
	z-index: 1020;
	align-items: stretch;
}

.navbar-links.open .nav-link {
	padding: 10px;
	border-bottom: 1px solid #f1f1f1;
	width: 100%;
}

.navbar-links.open .nav-dropdown {
	display: block;
	width: 100%;
}

.navbar-links.open .dropdown-content {
	position: static;
	display: block;
	box-shadow: none;
	border: none;
	background-color: #f8fafc;
	margin-left: 15px;
	padding-left: 10px;
}

/* Base Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html,
body {
	height: 100%;
}

body {
	font-family: var(--font-stack);
	background-color: var(--body-bg);
	color: var(--text-dark);
	line-height: 1.5;
	padding-top: 70px;
	/* Updated for the fixed top navbar */
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	transition: background-color 0.35s ease, color 0.35s ease;
}

/* Main Container */
.main-container {
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	flex: 1 0 auto;
	/* Allow content to push the footer down */
}

/* University Header Cards */
.header-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	margin-bottom: 5px;
	color: var(--white);
	font-size: 14px;
	font-weight: 700;
	border-radius: 4px;
	box-shadow: var(--shadow-sm);
	transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
}

.header-card.dark-bg {
	background: linear-gradient(to bottom, #747474 0%, #585858 100%);
	border: 1px solid #484848;
}

.header-card.light-bg {
	background: linear-gradient(to bottom, #f5f5f5 0%, #e1e1e1 100%);
	color: var(--text-dark);
	border: 1px solid #d0d0d0;
}

.header-card.primary-bg {
	background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
	border: 1px solid #1e40af;
	font-size: 16px;
}


.card-left,
.card-right {
	display: flex;
	align-items: center;
}

/* Controls Row */
.controls-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 15px 0 25px 0;
}

.program-code-label {
	font-size: 11.5px;
	color: var(--text-muted);
	font-weight: 500;
	opacity: 0.75;
	letter-spacing: 0.2px;
}

.btn {
	font-family: var(--font-stack);
	border: none;
	outline: none;
	border-radius: 4px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.btn-add-list {
	background: linear-gradient(to bottom, #bf00bf 0%, #900090 100%);
	border: 1px solid #800080;
	color: var(--white);
	padding: 6px 12px;
	/* Shrunk padding */
	font-size: 12px;
	/* Shrunk font size */
}

.btn-add-list:hover {
	background: linear-gradient(to bottom, #d600d6 0%, #a200a2 100%);
	transform: translateY(-1px);
}

/* Section Title Panels (Original YÖK Atlas Design) */
.section-title-panel {
	margin: 30px 0 15px 0;
	border-radius: 4px;
	box-shadow: none;
	overflow: hidden;
}

.panel-default {
	border: 1px solid #ddd;
}

.panel-success {
	border: 1px solid #d6e9c6;
}

.panel-heading-main {
	background: linear-gradient(to bottom, #ffffff 0%, #f2f2f2 100%);
	border-bottom: 1px solid #ddd;
	padding: 10px 15px;
	color: #333;
}

.panel-heading-main.green-bg {
	background: linear-gradient(to bottom, #dff0d8 0%, #d6e9c6 100%);
	border-bottom: 1px solid #d6e9c6;
	color: #3c763d;
}

.panel-heading-sub {
	background-color: #f5f5f5;
	border-bottom: 1px solid #ddd;
	padding: 8px 15px;
}

/* Helpers */
.pull-left {
	float: left;
}

.pull-right {
	float: right;
}

.clearfix::after {
	content: "";
	clear: both;
	display: table;
}

/* Year Label Badges */
.year-label {
	display: inline-block;
	padding: 3px 6px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: 3px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s ease;
	margin-right: 4px;
}

.label-inactive {
	background-color: #646464;
	color: #ffffff !important;
}

.label-inactive:hover {
	background-color: #505050;
}

.label-active {
	background-color: #3c763d;
	color: #ffffff !important;
}

.label-active:hover {
	background-color: #2b562c;
}

.panel-title {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
}

.highlight-red {
	color: #CC0000;
}

.highlight-green {
	color: #3c763d;
}

/* Two-column layout grid */
.grid-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

@media (min-width: 992px) {
	.grid-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

.col {
	display: flex;
	flex-direction: column;
	gap: 15px;
	min-width: 0;
	/* Prevent grid child stretching */
}

.accordion-panel {
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: all 0.2s ease;
	width: 100%;
	min-width: 0;
	/* Prevent inner content overflow */
}

.accordion-panel:hover {
	border-color: #b0c4de;
	box-shadow: var(--shadow-md);
}

.accordion-header {
	display: flex;
	align-items: center;
	padding: 14px 12px;
	background-image: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 100%);
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	cursor: pointer;
	user-select: none;
	transition: all 0.2s ease;
}

.accordion-header:hover {
	background-image: linear-gradient(to bottom, #fcfcfc 0%, #ececec 100%);
}

.accordion-panel.active .accordion-header {
	background-image: linear-gradient(to bottom, #ffffff 0%, #f2f7fb 100%);
	border-bottom: 1px solid var(--border-color);
	border-radius: 6px 6px 0 0;
}

.panel-logo {
	display: flex;
	align-items: center;
	margin-right: 12px;
}

.panel-logo img {
	height: 12px;
	width: auto;
}

.yok-akademik-logo {
	height: 20px !important;
	margin-left: -5px;
}

.panel-title-text {
	font-size: 14px;
	font-weight: 700;
	color: #3074ae;
	flex: 1;
}

/* Flat Panel styles for always-expanded panels like Genel Bilgiler */
.flat-panel {
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	margin-bottom: 20px;
	width: 100%;
	min-width: 0;
}

.flat-panel-header {
	display: flex;
	align-items: center;
	padding: 14px 18px;
	background-color: var(--white);
	border-bottom: 1px solid var(--border-color);
	user-select: none;
}

.flat-panel-footer {
	padding: 12px 18px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	background-color: var(--white);
}

/* Styled Collapsible Details/Summary for Program Placement Conditions */
.kosul-details {
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background-color: var(--white);
	margin-top: 15px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.2s ease;
	width: 100%;
}

.kosul-details:hover {
	border-color: #b0c4de;
}

.kosul-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 700;
	color: #3074ae;
	cursor: pointer;
	user-select: none;
	background-image: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 100%);
	outline: none;
	list-style: none;
	/* Hide default arrow */
}

.kosul-summary::-webkit-details-marker {
	display: none;
}

.kosul-summary::after {
	content: '\f078';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	font-size: 10px;
	color: var(--text-muted);
	transition: transform 0.2s ease;
}

.kosul-details[open] .kosul-summary::after {
	transform: rotate(180deg);
}

.kosul-details[open] .kosul-summary {
	border-bottom: 1px solid var(--border-color);
	background-image: linear-gradient(to bottom, #ffffff 0%, #f2f7fb 100%);
}

.kosul-content-list {
	padding: 15px 18px 15px 36px;
	background-color: var(--white);
	margin: 0;
	text-align: left;
	line-height: 1.8;
	font-size: 12px;
}

body.dark-theme .kosul-summary {
	background-image: none !important;
	background-color: var(--white);
}

body.dark-theme .kosul-details[open] .kosul-summary {
	background-image: none !important;
	background-color: #242424;
}

/* Styled Collapsible Details/Summary for Tables (Son Kişi Yerleşme Taban Puan/Başarı Sırası) */
.tablo-details {
	border: 1px solid var(--border-color);
	border-radius: 6px;
	background-color: var(--white);
	margin-top: 15px;
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: border-color 0.2s ease;
	width: 100%;
}

.tablo-details:hover {
	border-color: #b0c4de;
}

.tablo-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	font-size: 13px;
	font-weight: 700;
	color: #3074ae;
	cursor: pointer;
	user-select: none;
	background-image: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 100%);
	outline: none;
	list-style: none;
	/* Hide default arrow */
}

.tablo-summary::-webkit-details-marker {
	display: none;
}

.tablo-summary::after {
	content: '\f078';
	font-family: 'Font Awesome 6 Free';
	font-weight: 900;
	font-size: 10px;
	color: var(--text-muted);
	transition: transform 0.2s ease;
}

.tablo-details[open] .tablo-summary::after {
	transform: rotate(180deg);
}

.tablo-details[open] .tablo-summary {
	border-bottom: 1px solid var(--border-color);
	background-image: linear-gradient(to bottom, #ffffff 0%, #f2f7fb 100%);
}

.tablo-content {
	padding: 18px;
	background-color: var(--white);
}

body.dark-theme .tablo-summary {
	background-image: none !important;
	background-color: var(--white);
}

body.dark-theme .tablo-details[open] .tablo-summary {
	background-image: none !important;
	background-color: #242424;
}




.arrow-icon {
	font-size: 12px;
	color: var(--text-muted);
	transition: transform 0.25s ease;
}

.accordion-panel.active .arrow-icon {
	transform: rotate(180deg);
}

/* Custom styles for processes/outputs (panel-success) */
.accordion-panel.panel-success {
	border-color: #d6e9c6;
}

.accordion-panel.panel-success .panel-title-text {
	color: var(--success-color);
}

.accordion-panel.panel-success .accordion-header {
	background-image: linear-gradient(to bottom, #ffffff 0%, #fcfdfc 100%);
	border-color: #e2f0d9;
}

.accordion-panel.panel-success.active .accordion-header {
	background-image: linear-gradient(to bottom, #ffffff 0%, #f4fbf4 100%);
	border-bottom-color: #d6e9c6;
}

/* Link-only static panels */
.accordion-header.link-only {
	cursor: default;
	background-image: linear-gradient(to bottom, #ffffff 0%, #fcfdfc 100%) !important;
	border-color: #e2f0d9 !important;
}

.external-academic-link {
	text-decoration: none;
	color: var(--success-color);
}

.external-academic-link:hover {
	text-decoration: underline;
}

/* Accordion Body */
.accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s cubic-bezier(0.25, 1, 0.5, 1);
	/* Faster, smoother easeOutQuad transition */
	width: 100%;
	min-width: 0;
}

.accordion-panel.active .accordion-body {
	/* Height is managed dynamically via JS for perfect scrollHeight transitions */
}

.accordion-content {
	padding: 18px;
	/* padding-top: 5px; */
	background-color: var(--white);
}

/* Table Design */
.table-responsive {
	width: 100%;
	overflow-x: auto;
	margin-bottom: 15px;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--white);
}

.uni-profile-table-responsive {
	border-radius: 0;
}

.yok-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
	text-align: left;
}

.yok-table th,
.yok-table td {
	padding: 10px 12px;
	border: 1px solid var(--border-color);
}

.yok-table th {
	font-weight: 700;
}

/* Header colors */
.yok-table th.thb {
	background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
	color: var(--white);
	border: 1px solid #1e40af;
}

.yok-table th.thr {
	background: linear-gradient(to bottom, #ef4444 0%, #b91c1c 100%);
	color: var(--white);
	border: 1px solid #991b1b;
}

.yok-table th.thg {
	background: linear-gradient(to bottom, #22c55e 0%, #15803d 100%);
	color: var(--white);
	border: 1px solid #166534;
}

.yok-table tbody tr:nth-of-type(even) {
	background-color: #fcfcfc;
}

.yok-table tbody tr:hover {
	background-color: #f1f5f9;
}

.yok-table td.tdr {
	background-color: #ffe4e6;
	font-weight: 700;
	color: #9f1239;
}

.yok-table td.bold {
	font-weight: 700;
}

/* Shared icons inside tables */
.fa-twitter-square {
	color: #1da1f2;
}

.fa-facebook-square {
	color: #3b5998;
}

.fa-envelope {
	color: #64748b;
}

.fa-print {
	color: #475569;
}

.pull-right {
	float: right;
	margin-left: 8px;
}

/* Loader styling */
.loader-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px;
	gap: 12px;
}

.spinner {
	width: 36px;
	height: 36px;
	border: 3px solid rgba(48, 116, 174, 0.1);
	border-radius: 50%;
	border-top-color: var(--primary-color);
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Visual Layout: Pie chart & table side-by-side */
.chart-and-table {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	margin-bottom: 20px;
}

.chart-and-table .table-responsive {
	width: 100%;
}

@media (min-width: 768px) {
	.chart-and-table {
		flex-direction: row;
		align-items: flex-start;
	}

	.chart-and-table .chart-container {
		flex: 0 0 240px;
	}

	.chart-and-table .table-responsive {
		flex: 1;
		margin-bottom: 0;
	}
}

/* Donut Pie Chart graphics */
.chart-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.pie-chart-circle {
	width: 170px;
	height: 170px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05), var(--shadow-md);
	position: relative;
	transition: transform 0.3s ease;
}

.pie-chart-circle:hover {
	transform: scale(1.03);
}

/* Donut hole */
.pie-chart-circle::after {
	content: '';
	position: absolute;
	top: 25%;
	left: 25%;
	width: 50%;
	height: 50%;
	background-color: var(--white);
	border-radius: 50%;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Legend items in panel content */
.chart-legend {
	display: grid;
	grid-template-columns: 1fr;
	gap: 6px;
	width: 100%;
	font-size: 11px;
	margin-top: 5px;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: left;
}

.legend-color {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	flex-shrink: 0;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Footer Styling */
.footer {
	flex-shrink: 0;
	background-color: #f1f1f1;
	border-top: 1px solid var(--border-color);
	padding: 25px 0;
	margin-top: 40px;
}

.footer-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	color: var(--text-muted);
}

.footer-col {
	flex: 1;
}

.footer-col a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.footer-col a:hover {
	text-decoration: underline;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.scroll-to-top {
	position: fixed;
	bottom: 25px;
	right: 25px;
	background-color: rgba(0, 0, 0, 0.6);
	color: #ffffff !important;
	padding: 10px 15px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: var(--shadow-sm);
}

.scroll-to-top.show {
	opacity: 1;
	visibility: visible;
}

.scroll-to-top:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
}

body.dark-theme .scroll-to-top {
	background-color: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #ffffff !important;
}

.scroll-to-top i {
	color: #ffffff !important;
}

body.dark-theme .scroll-to-top:hover {
	background: var(--primary-hover);
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
	.footer-container {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}

	.footer-col {
		width: 100%;
	}

	.text-right {
		text-align: center;
	}

	.header-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}
}

/* Loading Overlay Styles (Branding Compatible) */
.loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease-out;
}

.loading-overlay.active {
	opacity: 1;
	pointer-events: auto;
}

.loading-spinner-wrapper {
	text-align: center;
}

.loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid rgba(48, 116, 174, 0.1);
	border-top: 4px solid var(--primary-color, #3074ae);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	margin: 0 auto 12px auto;
}

.loading-text {
	font-family: var(--font-stack);
	font-size: 15px;
	font-weight: 700;
	color: var(--primary-color, #3074ae);
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}



/* Smooth Theme Transitions (Universal synchronization) */
*,
*::before,
*::after {
	transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific transitions overrides to preserve animation mechanics */
.accordion-body {
	transition: max-height 0.25s cubic-bezier(0.25, 1, 0.5, 1),
		background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-overlay {
	transition: opacity 0.15s ease-out;
}

.scroll-to-top {
	transition: all 0.3s ease;
}

/* Koyu Tema Ezmeleri (Dark Theme Styling) */
body.dark-theme {
	/* Background updates */
	background-color: var(--body-bg);
	color: var(--text-dark);
}

/* Dark mode theme button updates */
body.dark-theme .theme-toggle-btn {
	color: #cbd5e1;
}

body.dark-theme .theme-toggle-btn:hover {
	background-color: transparent;
}

/* Dark mode navbar elements */
body.dark-theme .nav-link {
	color: #cbd5e1;
}

body.dark-theme .nav-link:hover {
	background-color: #2d3748;
	color: #38bdf8;
}

body.dark-theme .dropdown-content {
	background-color: #1e1e1e;
	border-color: #2d3748;
}

body.dark-theme .dropdown-content a {
	color: #cbd5e1;
}

body.dark-theme .dropdown-content a:hover {
	background-color: #2d3748;
	color: #38bdf8;
}

body.dark-theme .navbar-links.open {
	background-color: #1e1e1e;
	border-bottom-color: #2d3748;
}

body.dark-theme .navbar-links.open .nav-link {
	border-bottom-color: #2d3748;
}

body.dark-theme .navbar-links.open .dropdown-content {
	background-color: #121212;
}

/* Dark mode search input & suggestions */
body.dark-theme .search-input {
	background-color: #121212;
	border-color: #4a5568;
	color: #f1f5f9;
}

body.dark-theme .search-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

body.dark-theme .search-btn {
	background-color: #2d3748;
	border-color: #4a5568;
	color: #cbd5e1;
}

body.dark-theme .search-btn:hover {
	background-color: #4a5568;
}

body.dark-theme .search-suggestions {
	background-color: #1e1e1e;
	border-color: #4a5568;
}

body.dark-theme .suggestion-item {
	border-bottom-color: #2d3748;
}

body.dark-theme .suggestion-item .suggestion-prog {
	color: #f1f5f9;
}

body.dark-theme .suggestion-item .suggestion-uni {
	color: #94a3b8;
}

body.dark-theme .suggestion-item:hover {
	background-color: #2d3748;
}

body.dark-theme .mobile-search-toggle-btn,
body.dark-theme .mobile-toggle-btn {
	color: #cbd5e1;
}

/* Dark mode university header cards */
body.dark-theme .header-card.dark-bg {
	background: linear-gradient(to bottom, #2d3748 0%, #1e293b 100%);
	border-color: #334155;
	color: #f1f5f9;
}

body.dark-theme .header-card.light-bg {
	background: linear-gradient(to bottom, #1e1e1e 0%, #171717 100%);
	color: #f1f5f9;
	border-color: #2d3748;
}

body.dark-theme .header-card.primary-bg {
	background: linear-gradient(to bottom, #1d4ed8 0%, #1e40af 100%);
	border-color: #1e3a8a;
	color: #ffffff;
}

/* Dark mode section title panels */
body.dark-theme .panel-default {
	border-color: #2d3748;
}

body.dark-theme .panel-heading-main {
	background: linear-gradient(to bottom, #1e1e1e 0%, #141414 100%);
	border-bottom-color: #2d3748;
	color: #f1f5f9;
}

body.dark-theme .panel-heading-sub {
	background-color: #151515;
	border-bottom-color: #2d3748;
}

body.dark-theme .panel-success {
	border-color: #1c3d1c;
}

body.dark-theme .panel-heading-main.green-bg {
	background: linear-gradient(to bottom, #1b3d1b 0%, #102610 100%);
	border-bottom-color: #1c3d1c;
	color: #4ade80;
}

/* Dark mode accordion panels */
body.dark-theme .accordion-panel {
	border-color: #2d3748;
}

body.dark-theme .accordion-header {
	background-image: linear-gradient(to bottom, #1e1e1e 0%, #151515 100%);
	border-color: #2d3748;
}

body.dark-theme .accordion-header:hover {
	background-image: linear-gradient(to bottom, #252525 0%, #1a1a1a 100%);
}

body.dark-theme .accordion-panel.active .accordion-header {
	background-image: linear-gradient(to bottom, #1e1e1e 0%, #172438 100%);
	border-bottom-color: #2d3748;
}

body.dark-theme .accordion-panel.panel-success .accordion-header {
	background-image: linear-gradient(to bottom, #1e1e1e 0%, #162416 100%);
	border-color: #1c3d1c;
}

body.dark-theme .accordion-panel.panel-success.active .accordion-header {
	background-image: linear-gradient(to bottom, #1e1e1e 0%, #112d11 100%);
	border-bottom-color: #1c3d1c;
}

body.dark-theme .accordion-header.link-only {
	background-image: linear-gradient(to bottom, #1e1e1e 0%, #162416 100%) !important;
	border-color: #1c3d1c !important;
}

body.dark-theme .external-academic-link {
	color: #4ade80;
}

/* Dark mode tables */
body.dark-theme .yok-table th.thb {
	background-color: #1e293b;
	color: #38bdf8;
	border-bottom-color: #334155;
}

body.dark-theme .yok-table th.thg {
	background-color: #14532d;
	color: #4ade80;
	border-bottom-color: #166534;
}

body.dark-theme .yok-table td {
	border-bottom-color: #2d3748;
}

body.dark-theme .yok-table tr:hover {
	background-color: #1e293b !important;
}

body.dark-theme .yok-table tr[style*="background-color:#eaeaea"],
body.dark-theme .yok-table tr[style*="background-color:#eaeaea;"] {
	background-color: #2d3748 !important;
	color: #f1f5f9;
}

body.dark-theme .yok-table tr[style*="background-color:#f0f7f0"],
body.dark-theme .yok-table tr[style*="background-color:#f0f7f0;"] {
	background-color: #14532d !important;
	color: #f1f5f9;
}

body.dark-theme .yok-table tbody tr:nth-of-type(even) {
	background-color: #1a1a1a !important;
}

body.dark-theme .yok-table tbody tr[style*="background-color:#fcfcfc"],
body.dark-theme .yok-table tr[style*="background-color:#fcfcfc"] {
	background-color: #1a1a1a !important;
	color: #f1f5f9;
}

body.dark-theme .yok-table td.tdr {
	background-color: #4c0519 !important;
	color: #fca5a5;
}

/* Dark mode helpers */
body.dark-theme .highlight-red {
	color: #f87171;
}

body.dark-theme .highlight-green {
	color: #4ade80;
}

body.dark-theme .year-label.label-inactive {
	background-color: #2d3748;
	color: #cbd5e1 !important;
}

body.dark-theme .year-label.label-inactive:hover {
	background-color: #4a5568;
}

body.dark-theme .loader-container p {
	color: #94a3b8;
}

body.dark-theme .pie-chart-circle {
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

body.dark-theme .pie-chart-circle::after {
	background-color: var(--white);
}

body.dark-theme .footer {
	background-color: #141414;
	border-top-color: #2d3748;
}

body.dark-theme .loading-overlay {
	background-color: rgba(18, 18, 18, 0.8);
}

/* Theme Toggle Button Icon Smooth Transition */
.theme-toggle-btn i {
	transition: color 0.35s ease, transform 0.35s ease;
}

.theme-toggle-btn:hover i {
	transform: rotate(20deg);
}

/* ======================================================
   FOUC Fix: Default Visibility (CSS hides, JS shows)
   Prevents flash of unstyled content on page reload.
   ====================================================== */

#pageView,
#mainContainer {
	display: none;
}

/* ======================================================
   Homepage — Modern Clean Search Layout
   ====================================================== */

.homepage {
	width: 100%;
	box-sizing: border-box;
	height: calc(100vh - 70px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: var(--white);
	position: relative;
	overflow: hidden;
	padding: 20px;
}

/* Hero center container */
.homepage-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	width: 100%;
	max-width: 600px;
}

.homepage-logo {
	height: 64px;
	width: auto;
	margin-bottom: 4px;
}

.homepage-desc {
	font-size: 14px;
	color: var(--text-muted);
	margin: 0px 0 -5px 0;
	font-weight: 400;
	max-width: 480px;
}

.homepage-title {
	font-size: 32px;
	font-weight: 900;
	color: var(--text-dark);
	letter-spacing: 0.5px;
	margin: 0;
	line-height: 1.2;
}

.homepage-subtitle {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-muted);
	margin: 0 0 10px 0;
	letter-spacing: 0.3px;
}

/* Homepage search bar style rules */
.homepage-search-container {
	display: flex;
	width: 100%;
	max-width: 520px;
	margin: 15px 0 0px 0;
	box-shadow: var(--shadow-sm);
	border-radius: 4px;
	overflow: visible;
}

.homepage-search-wrapper {
	position: relative;
	flex: 1;
}

.homepage-search-input {
	width: 100%;
	height: 40px;
	padding: 10px 14px;
	font-size: 13.5px;
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-right: none;
	border-radius: 4px 0 0 4px;
	outline: none;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.homepage-search-input:focus {
	border-color: var(--primary-color);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(48, 116, 174, .4);
}

.homepage-search-btn {
	height: 40px;
	padding: 0 18px;
	font-family: var(--font-stack);
	font-size: 13.5px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(to bottom, #3074ae 0%, #29689d 100%);
	border: 1px solid #235d8e;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: background-color 0.15s, transform 0.1s;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.homepage-search-btn:hover {
	background: linear-gradient(to bottom, #29689d 0%, #215988 100%);
	border-color: #1a4d79;
}

.homepage-search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-top: none;
	border-radius: 0 0 4px 4px;
	box-shadow: var(--shadow-md);
	max-height: 280px;
	overflow-y: auto;
	z-index: 1050;
	display: none;
}

/* Navigation buttons row */
.homepage-nav {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 6px;
}

/* Button style matching other pages standard .btn design */
.homepage-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	font-family: var(--font-stack);
	font-size: 13px;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.homepage-btn:hover {
	transform: translateY(-1px);
}

.homepage-btn:active {
	transform: translateY(0);
}

/* Match the exact primary/secondary styles from other pages */
.homepage-btn-blue {
	background: linear-gradient(to bottom, #3074ae 0%, #29689d 100%);
	border: 1px solid #235d8e;
	color: #ffffff !important;
}

.homepage-btn-blue:hover {
	background: linear-gradient(to bottom, #29689d 0%, #215988 100%);
	border-color: #1a4d79;
}

.homepage-btn-grey {
	background: linear-gradient(to bottom, #f5f5f5 0%, #e1e1e1 100%);
	border: 1px solid #d0d0d0;
	color: var(--text-dark) !important;
}

.homepage-btn-grey:hover {
	background: linear-gradient(to bottom, #e1e1e1 0%, #cccccc 100%);
	border-color: #b8b8b8;
}

.homepage-btn-magenta {
	background: linear-gradient(to bottom, #bf00bf 0%, #900090 100%);
	border: 1px solid #800080;
	color: #ffffff !important;
}

.homepage-btn-magenta:hover {
	background: linear-gradient(to bottom, #d600d6 0%, #a200a2 100%);
	border-color: #900090;
}

/* Footer text on homepage */
.homepage-footer-text {
	position: relative;
	z-index: 1;
	margin-top: 24px;
	font-size: 11px;
	color: var(--text-muted);
	letter-spacing: 0.2px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.homepage {
		height: calc(100vh - 70px);
		padding: 15px;
	}

	.homepage-title {
		font-size: 24px;
	}

	.homepage-subtitle {
		font-size: 12px;
	}

	.homepage-search-container {
		max-width: 100%;
	}

	.homepage-search-input {
		font-size: 12.5px;
	}

	.homepage-search-btn {
		font-size: 12.5px;
		padding: 0 12px;
	}

	.homepage-nav {
		flex-direction: column;
		gap: 10px;
		width: 100%;
		max-width: 280px;
	}

	.homepage-btn {
		padding: 10px 20px;
		font-size: 12.5px;
		width: 100%;
		justify-content: center;
	}

	.homepage-logo {
		height: 48px;
	}
}

/* ─── Dark Theme Homepage ─── */
body.dark-theme .homepage {
	background-color: var(--body-bg);
}

body.dark-theme .homepage-btn-blue {
	background: linear-gradient(to bottom, #1d4ed8 0%, #1e40af 100%);
	border-color: #1e3a8a;
}

body.dark-theme .homepage-btn-grey {
	background: linear-gradient(to bottom, #2d3748 0%, #1e1e1e 100%);
	border-color: #4a5568;
}

body.dark-theme .homepage-btn-magenta {
	background: linear-gradient(to bottom, #800080 0%, #4a004a 100%);
	border-color: #4a004a;
}

body.dark-theme .homepage-search-btn {
	background: linear-gradient(to bottom, #1d4ed8 0%, #1e40af 100%);
	border-color: #1e3a8a;
}

/* Hide Top Header Navbar Search Bar on Homepage */
body.on-homepage .navbar-search,
body.on-homepage .mobile-search-toggle-btn {
	display: none !important;
}

body.on-homepage {
	overflow-y: hidden;
}

@media (max-width: 991px) {
	body.on-homepage {
		padding-top: 70px !important;
		overflow-y: hidden;
	}

	body.on-homepage .navbar-fixed-top {
		height: 60px !important;
		align-items: center !important;
		padding-top: 0 !important;
	}

	body.on-homepage .navbar-container {
		flex-wrap: nowrap !important;
	}
}


/* ======================================================
   Listing Pages (Universities / Programs)
   ====================================================== */

.page-view {
	min-height: 100vh;
	padding-top: 0px;
	background-color: var(--body-bg);
	transition: background-color 0.3s ease, color 0.3s ease;
	flex: 1 0 auto;
}

.listing-page {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px 60px;
}

.listing-header {
	padding: 10px 0 10px;
	/* border-bottom: 1.5px solid var(--border-color); */
	/* margin-bottom: 15px; */
}

.listing-breadcrumb {
	font-size: 12px;
	color: var(--text-muted);
	margin-bottom: 10px !important;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	line-height: 1.4;
}

.listing-breadcrumb a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
}

.listing-breadcrumb a:hover {
	text-decoration: underline;
}

.listing-breadcrumb .fa-chevron-right {
	font-size: 9px;
	opacity: 0.5;
}

.listing-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-dark);
	margin: 0 0 6px;
	line-height: 1.3;
}

.listing-subtitle {
	font-size: 13px;
	color: var(--text-muted);
	margin: 0;
}

.alpha-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 12px;
	padding: 8px 12px;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
}

.alpha-nav-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--primary-color);
	text-decoration: none;
	background-color: #f1f5f9;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.alpha-nav-link:hover {
	background-color: var(--primary-color);
	color: #ffffff;
}

.listing-filter-row {
	margin-bottom: 15px;
}

.listing-filter-input {
	width: 100%;
	max-width: 480px;
	height: 38px;
	padding: 7px 14px;
	font-size: 13px;
	font-family: var(--font-stack);
	color: var(--text-dark);
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.listing-filter-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(48, 116, 174, 0.15);
}

.listing-filter-input::placeholder {
	color: var(--text-muted);
}

.letter-section {
	margin-bottom: 24px;
}

.letter-header {
	font-size: 18px;
	font-weight: 900;
	color: var(--primary-color);
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 6px;
	margin-bottom: 12px;
	letter-spacing: 0.5px;
}

.uni-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 12px;
}

.uni-card {
	display: block;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 14px 16px;
	text-decoration: none;
	color: var(--text-dark);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.uni-card:hover {
	border-color: var(--primary-color);
	box-shadow: 0 4px 12px rgba(48, 116, 174, 0.12);
	transform: translateY(-2px);
	color: var(--text-dark);
}

.uni-card-header {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}

.uni-card-name {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--text-dark);
	flex: 1;
}

.uni-card-type-text {
	font-size: 11px;
	color: var(--text-muted);
	font-weight: normal;
	margin-left: 5px;
}

.uni-card-stats {
	display: flex;
	gap: 12px;
	margin-bottom: 8px;
}

.uni-stat {
	font-size: 11px;
	color: var(--text-muted);
	display: flex;
	align-items: center;
	gap: 4px;
}

.uni-stat .fa {
	color: var(--primary-color);
}

.uni-prog-previews {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.uni-prog-preview {
	font-size: 10.5px;
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-left: 6px;
	border-left: 2px solid var(--border-color);
}

.prog-two-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

@media (max-width: 767px) {
	.prog-two-col {
		grid-template-columns: 1fr;
	}
}

.prog-col {
	display: flex;
	flex-direction: column;
}

.prog-card {
	display: block;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
	text-decoration: none;
	background-color: var(--white);
	color: var(--text-dark);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.prog-card:hover {
	border-color: #bce8f1;
	background-color: #f9f9f9;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
	color: var(--text-dark);
}

.prog-card-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 2px;
	color: var(--primary-color);
}

.prog-card-meta {
	font-size: 11.5px;
	color: var(--text-muted);
}

.prog-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 6px;
}

.prog-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 14px;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	text-decoration: none;
	color: var(--text-dark);
	transition: border-color 0.15s ease, background-color 0.15s ease;
	gap: 8px;
}

.prog-list-item:hover {
	border-color: var(--primary-color);
	background-color: #f0f7ff;
}

.prog-list-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dark);
	line-height: 1.3;
}

.prog-list-count {
	font-size: 10px;
	color: var(--text-muted);
	white-space: nowrap;
	background-color: #f1f5f9;
	padding: 2px 6px;
	border-radius: 10px;
	flex-shrink: 0;
}

.listing-page-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
}

/* YÖK Atlas Replica Two-Column Grid & Blue Cards */
.yok-uni-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 12px;
	margin-top: 10px;
}

@media (max-width: 991px) {
	.yok-uni-grid {
		grid-template-columns: 1fr;
	}
}

.yok-uni-col {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.yok-uni-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(to bottom, #3074ae 0%, #29689d 100%);
	border: 1px solid #235d8e;
	border-radius: 6px;
	padding: 10px 14px;
	text-decoration: none;
	color: #ffffff !important;
	transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	min-height: 52px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.yok-uni-card:hover {
	background: linear-gradient(to bottom, #29689d 0%, #215988 100%);
	border-color: #1a4d79;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
	transform: translateY(-1px);
}

.yok-uni-card-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	padding-right: 12px;
	text-align: left;
}

.yok-uni-card-title {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	text-transform: uppercase;
	word-break: break-word;
}

.yok-uni-card-det {
	font-weight: normal;
	font-size: 11px;
	opacity: 0.9;
	text-transform: none;
}

.yok-uni-card-sub {
	font-size: 10.5px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yok-uni-card-badge {
	background-color: #ffffff;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 800;
	padding: 4px 6px;
	min-width: 58px;
	text-align: center;
	flex-shrink: 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.yok-uni-card-badge.badge-devlet {
	color: #3074ae;
}

.yok-uni-card-badge.badge-vakif {
	color: #d97706;
}

.yok-uni-card-badge.badge-kktc {
	color: #7c3aed;
}

.listing-title-sub {
	font-size: 16px;
	font-weight: normal;
	color: var(--text-muted);
	margin-left: 8px;
}

@media (max-width: 768px) {
	.listing-title-sub {
		display: block;
		margin-left: 0;
		margin-top: 4px;
	}
}

/* Dark mode: Listing Pages */
body.dark-theme .alpha-nav {
	background-color: #1e1e1e;
	border-color: #2d3748;
}

body.dark-theme .alpha-nav-link {
	background-color: #2d3748;
	color: #38bdf8;
}

body.dark-theme .alpha-nav-link:hover {
	background-color: #1d4ed8;
	color: #ffffff;
}

body.dark-theme .listing-filter-input {
	background-color: #1e1e1e;
	border-color: #2d3748;
	color: #e2e8f0;
}

body.dark-theme .listing-filter-input:focus {
	border-color: #38bdf8;
	box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

body.dark-theme .uni-card {
	background-color: #1e1e1e;
	border-color: #2d3748;
	color: #e2e8f0;
}

body.dark-theme .uni-card:hover {
	border-color: #38bdf8;
	box-shadow: 0 4px 12px rgba(56, 189, 248, 0.1);
}

body.dark-theme .uni-card-name {
	color: #f1f5f9;
}

body.dark-theme .uni-card-type-text {
	color: #64748b;
}

body.dark-theme .prog-card {
	background-color: #1e1e1e;
	border-color: #2d3748;
	color: #e2e8f0;
}

body.dark-theme .prog-card:hover {
	border-color: #38bdf8;
	background-color: #172438;
	color: #38bdf8;
}

body.dark-theme .prog-list-item {
	background-color: #1e1e1e;
	border-color: #2d3748;
}

body.dark-theme .prog-list-item:hover {
	border-color: #38bdf8;
	background-color: #172438;
}

body.dark-theme .prog-list-name {
	color: #e2e8f0;
}

body.dark-theme .prog-list-count {
	background-color: #2d3748;
	color: #94a3b8;
}

body.dark-theme .letter-header {
	border-bottom-color: #2d3748;
}

body.dark-theme .listing-title {
	color: #f1f5f9;
}

body.dark-theme .listing-header {
	border-bottom-color: #2d3748;
}

body.dark-theme .uni-prog-preview {
	border-left-color: #2d3748;
}

/* Dark mode for YÖK Uni cards */
body.dark-theme .yok-uni-card {
	background: linear-gradient(to bottom, #1e293b 0%, #0f172a 100%);
	border-color: #334155;
}

body.dark-theme .yok-uni-card:hover {
	background: linear-gradient(to bottom, #334155 0%, #1e293b 100%);
	border-color: #475569;
}

body.dark-theme .yok-uni-card-badge {
	background-color: #0f172a;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.dark-theme .yok-uni-card-badge.badge-devlet {
	color: #38bdf8;
}

body.dark-theme .yok-uni-card-badge.badge-vakif {
	color: #fbbf24;
}

body.dark-theme .yok-uni-card-badge.badge-kktc {
	color: #c084fc;
}

/* UI Warning, Alert and Info containers */
.no-data-alert {
	background-color: #f8f9fa;
	border: 1px dashed var(--border-color);
	padding: 20px;
	text-align: center;
	border-radius: 4px;
}

.no-data-alert p {
	color: var(--text-muted);
	font-size: 13px;
	margin: 0;
}

body.dark-theme .no-data-alert {
	background-color: #1e1e1e;
	border-color: #2d3748;
}

.net-ortalamalari-container {
	background-color: #fafafa;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	padding: 15px;
	margin-bottom: 15px;
}

body.dark-theme .net-ortalamalari-container {
	background-color: #1e1e1e;
	border-color: #2d3748;
}

.no-data-warning {
	background-color: #fcf8e3;
	border: 1px solid #faebcc;
	color: #8a6d3b;
	padding: 18px;
	border-radius: 4px;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
}

body.dark-theme .no-data-warning {
	background-color: #2c2512;
	border-color: #4b3e1d;
	color: #e9c46a;
}

/* Smooth transition for theme switching on all semantic styling properties */
body,
.navbar-fixed-top,
.navbar-links,
.nav-link,
.dropdown-content,
.dropdown-content a,
.search-input,
.search-btn,
.search-suggestions,
.suggestion-item,
.header-card,
.controls-row,
.program-code-label,
.panel-default,
.panel-heading-main,
.panel-heading-sub,
.accordion-panel,
.accordion-header,
.accordion-content,
.flat-panel,
.flat-panel-header,
.kosul-details,
.kosul-summary,
.tablo-details,
.tablo-summary,
.table-responsive,
.yok-table,
.yok-table th,
.yok-table td,
.year-label,
.footer,
.page-view,
.uni-card,
.prog-card,
.prog-list-item,
.alpha-nav,
.alpha-nav-link,
.yok-uni-card,
.yok-uni-card-badge,
.yok-uni-card-title,
.yok-uni-card-sub,
.no-data-alert,
.net-ortalamalari-container,
.no-data-warning,
.scroll-to-top {
	transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ────────────────────────────────────────────────────────── */
/* TERCİH LİSTESİ SİMÜLASYONU STİLLERİ (HAFİF RETRO & UYUMLU)  */
/* ────────────────────────────────────────────────────────── */

.tercih-listesi-page {
	margin-top: 0px;
}

.tercih-listesi-page .listing-header {
	border-bottom: none;
	margin-bottom: 5px;
}

.pref-grid-row {
	align-items: flex-start;
}

@media (min-width: 768px) {
	.pref-grid-row {
		grid-template-columns: 2.3fr 1fr !important;
	}
}

.pref-table {
	border-top: none;
	border-left: none;
	border-right: none;
	table-layout: fixed;
	width: 100%;
}

.pref-table th,
.pref-table td {
	vertical-align: middle;
	padding: 8px 10px;
}

.pref-row {
	transition: background-color 0.2s ease;
}

.pref-row.is-filled {
	background-color: var(--white);
}

.pref-num-col {
	font-weight: 700;
	font-size: 14px;
	color: var(--text-dark);
	padding: 8px 4px !important;
}

.pref-num-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.pref-num-text {
	min-width: 20px;
	text-align: right;
}

.pref-order-buttons {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.pref-order-btn {
	background-color: var(--white);
	border: 1px solid var(--border-color);
	color: var(--text-dark);
	width: 22px;
	height: 20px;
	padding: 0;
	border-radius: 3px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	transition: all 0.15s ease;
}

.pref-order-btn:hover:not(:disabled) {
	background-color: var(--primary-color);
	color: var(--white);
	border-color: var(--primary-color);
}

.pref-order-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pref-code-col {
	padding: 6px 4px !important;
}

.pref-code-wrapper {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
}

.pref-code-input {
	flex: 1;
	border: 1px dashed var(--border-color);
	background-color: transparent;
	color: var(--text-dark);
	padding: 3px 6px;
	font-family: monospace;
	font-size: 11.5px;
	font-weight: bold;
	border-radius: 4px;
	height: 24px;
	width: 100%;
	min-width: 0;
	outline: none;
	text-align: center;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.pref-code-input:hover {
	border-color: var(--primary-color);
	background-color: rgba(48, 116, 174, 0.05);
}

.pref-code-input:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(48, 116, 174, 0.15);
}

.pref-row.is-invalid .pref-code-input {
	border-color: var(--danger-color);
	color: var(--danger-color);
	background-color: var(--danger-bg);
}

.pref-search-btn {
	background-color: var(--white);
	border: 1px solid var(--border-color);
	color: var(--text-dark);
	width: 28px;
	height: 28px;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	transition: all 0.15s ease;
}

.pref-search-btn:hover {
	background-color: var(--primary-color);
	color: var(--white);
	border-color: var(--primary-color);
}

.pref-name-col {
	position: relative;
}

.pref-prog-container {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--text-dark);
	padding: 6px 4px;
	min-height: 28px;
	position: relative;
	transition: all 0.2s ease;
	line-height: 1.4;
}

body.dark-theme .pref-prog-container {
	background-color: transparent;
	border-color: transparent;
	color: #93c5fd;
}

.pref-prog-container.invalid-container {
	background-color: transparent;
	border-color: transparent;
	color: var(--danger-color);
}

body.dark-theme .pref-prog-container.invalid-container {
	background-color: transparent;
	border-color: transparent;
	color: #f87171;
}

.pref-prog-badge {
	color: var(--white);
	font-weight: bold;
	font-size: 9.5px;
	padding: 2px 5px;
	border-radius: 3px;
	text-transform: uppercase;
	flex-shrink: 0;
	line-height: 1;
}

.pref-prog-details-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
	text-align: left;
}

.pref-prog-uni {
	font-weight: 700;
	font-size: 12.5px;
	color: inherit;
}

.pref-prog-name {
	font-weight: 500;
	font-size: 12px;
	color: inherit;
	opacity: 0.9;
}

.pref-prog-badges {
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 3px;
}

.pref-prog-badge-type,
.pref-prog-badge-years {
	background-color: #dbeafe;
	color: #1e40af;
	font-weight: bold;
	font-size: 9.5px;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	line-height: 1;
}

body.dark-theme .pref-prog-badge-type,
body.dark-theme .pref-prog-badge-years {
	background-color: #2d3748;
	color: #93c5fd;
}

.pref-prog-badge-rank {
	background-color: #fef3c7;
	color: #b45309;
	font-weight: bold;
	font-size: 9.5px;
	padding: 2px 6px;
	border-radius: 3px;
	text-transform: uppercase;
	line-height: 1;
}

body.dark-theme .pref-prog-badge-rank {
	background-color: #78350f;
	color: #fde68a;
}

.pref-clear-btn {
	background: none;
	border: none;
	color: #6b7280;
	cursor: pointer;
	padding: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	transition: all 0.15s ease;
	margin-left: 6px;
	flex-shrink: 0;
}

.pref-clear-btn:hover {
	background-color: rgba(239, 68, 68, 0.15);
	color: #ef4444;
}

.pref-prog-placeholder {
	color: var(--text-muted);
	font-style: italic;
	opacity: 0.5;
	text-align: left;
	display: block;
}

.pref-prog-code-value {
	font-family: monospace;
	font-weight: bold;
	font-size: 11px;
	color: var(--primary-color);
	background-color: rgba(48, 116, 174, 0.08);
	padding: 1px 6px;
	border-radius: 4px;
	display: inline-block;
	margin-bottom: 2px;
	letter-spacing: 0.5px;
}

body.dark-theme .pref-prog-code-value {
	color: #93c5fd;
	background-color: rgba(147, 197, 253, 0.15);
}

.pref-prog-container.is-empty {
	background-color: transparent;
	border: 1px dashed var(--border-color);
	justify-content: center;
	color: var(--text-muted);
	transition: all 0.2s ease;
}

.pref-prog-container.is-empty:hover {
	border-color: var(--primary-color);
	background-color: rgba(48, 116, 174, 0.04);
}

body.dark-theme .pref-prog-container.is-empty:hover {
	background-color: rgba(147, 197, 253, 0.05);
}

.btn-view-toggle {
	font-family: var(--font-stack);
	background: linear-gradient(to bottom, #f3f4f6 0%, #e5e7eb 100%);
	border: 1px solid #d1d5db;
	color: var(--text-dark);
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	outline: none;
}

.btn-view-toggle i {
	margin: 0;
	padding: 0;
	vertical-align: middle;
	line-height: 1;
}

.btn-view-toggle:hover {
	background: linear-gradient(to bottom, #e5e7eb 0%, #d1d5db 100%);
	transform: translateY(-1px);
}

.btn-view-toggle.active {
	background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
	border-color: #1e40af;
	color: var(--white);
}

.btn-view-toggle.active:hover {
	background: linear-gradient(to bottom, #2563eb 0%, #1e40af 100%);
	transform: translateY(-1px);
}

body.dark-theme .btn-view-toggle {
	background: linear-gradient(to bottom, #374151 0%, #1f2937 100%);
	border-color: #4b5563;
	color: #cbd5e1;
}

body.dark-theme .btn-view-toggle:hover {
	background: linear-gradient(to bottom, #4b5563 0%, #374151 100%);
}

body.dark-theme .btn-view-toggle.active {
	background: linear-gradient(to bottom, #2563eb 0%, #1d4ed8 100%);
	border-color: #1e40af;
	color: var(--white);
}

.pref-counter-badge {
	font-family: var(--font-stack);
	background: linear-gradient(to bottom, #f3f4f6 0%, #e5e7eb 100%);
	border: 1px solid #d1d5db;
	color: var(--text-dark);
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 700;
	transition: all 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pref-counter-badge.active-counter {
	background: linear-gradient(to bottom, #22c55e 0%, #15803d 100%);
	border-color: #166534;
	color: var(--white);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.dark-theme .pref-counter-badge {
	background: linear-gradient(to bottom, #374151 0%, #1f2937 100%);
	border-color: #4b5563;
	color: #cbd5e1;
}

body.dark-theme .pref-counter-badge.active-counter {
	background: linear-gradient(to bottom, #166534 0%, #14532d 100%);
	border-color: #166534;
	color: var(--white);
}

/* Sidebar Analytics & Actions */
.pref-sidebar-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pref-sidebar-actions .btn {
	padding: 8px 12px;
	font-size: 12.5px;
	justify-content: center;
	width: 100%;
}

.btn-action-save {
	background: linear-gradient(to bottom, #3b82f6 0%, #1d4ed8 100%);
	border: 1px solid #1e40af;
	color: var(--white);
	padding: 10px 15px;
	font-size: 13.5px;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-shadow: var(--shadow-sm);
	transition: all 0.2s ease;
}

.btn-action-save:hover {
	background: linear-gradient(to bottom, #2563eb 0%, #1e40af 100%);
	transform: translateY(-1px);
}

.analysis-section {
	border-bottom: 1px dashed var(--border-color);
	padding-bottom: 12px;
	margin-bottom: 12px;
}

.analysis-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
}

.pref-progress-bar-wrapper {
	width: 100%;
	height: 8px;
	background-color: var(--light-grey);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 5px;
	border: 1px solid var(--border-color);
}

.pref-progress-bar-fill {
	height: 100%;
	background-color: var(--success-color);
	border-radius: 4px;
	width: 0%;
	transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pref-progress-labels {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: var(--text-muted);
}

.analysis-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 11.5px;
	padding: 4px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

body.dark-theme .analysis-stat-row {
	border-bottom-color: rgba(255, 255, 255, 0.03);
}

.analysis-stat-row:last-child {
	border-bottom: none;
}

.stat-label {
	color: var(--text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 180px;
	text-align: left;
}

.stat-val {
	color: var(--text-dark);
}

.font-bold {
	font-weight: 700;
}

.pref-analysis-empty {
	font-size: 11px;
	color: var(--text-muted);
	font-style: italic;
	text-align: left;
}

.pref-sidebar-stats-scroll {
	max-height: 150px;
	overflow-y: auto;
	padding-right: 5px;
}

/* Toast Notification Styles */
.toast-container {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
}

.toast-item {
	background-color: var(--white);
	color: var(--text-dark);
	border: 1px solid var(--border-color);
	border-left: 5px solid var(--primary-color);
	box-shadow: var(--shadow-md);
	padding: 12px 18px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	font-weight: 700;
	pointer-events: auto;
	min-width: 250px;
	max-width: 400px;
	transform: translateY(30px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-item.show {
	transform: translateY(0);
	opacity: 1;
}

.toast-item.hide {
	transform: scale(0.95);
	opacity: 0;
	transition: all 0.2s ease;
}

.toast-success {
	border-left-color: var(--success-color);
}

.toast-error {
	border-left-color: var(--danger-color);
}

.toast-warning {
	border-left-color: #d97706;
}

.toast-icon {
	font-size: 16px;
	flex-shrink: 0;
}

.toast-success .toast-icon {
	color: var(--success-color);
}

.toast-error .toast-icon {
	color: var(--danger-color);
}

.toast-warning .toast-icon {
	color: #d97706;
}

/* Search Modal Styles */
.pref-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 2000;
	backdrop-filter: blur(2px);
}

.pref-modal-content {
	position: relative;
	background-color: var(--white);
	margin: 10% auto;
	width: 90%;
	max-width: 600px;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: modalOpen 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	max-height: 70%;
}

@keyframes modalOpen {
	from {
		transform: scale(0.95);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.pref-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 18px;
	background-image: linear-gradient(to bottom, #ffffff 0%, #f6f6f6 100%);
	border-bottom: 1px solid var(--border-color);
}

body.dark-theme .pref-modal-header {
	background-image: none !important;
	background-color: #242424;
}

.pref-modal-header h3 {
	margin: 0;
	font-size: 14px;
	color: var(--primary-color);
	font-weight: bold;
}

.pref-modal-close {
	background: none;
	border: none;
	font-size: 20px;
	font-weight: bold;
	cursor: pointer;
	color: var(--text-muted);
}

.pref-modal-close:hover {
	color: var(--text-dark);
}

.pref-modal-body {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	overflow: hidden;
}

.pref-modal-search-wrapper {
	position: relative;
	width: 100%;
}

#prefModalSearchInput {
	width: 100%;
	padding: 8px 12px;
	padding-right: 35px;
	border: 1px solid var(--border-color);
	background-color: var(--white);
	color: var(--text-dark);
	border-radius: 4px;
	font-size: 13px;
	outline: none;
}

#prefModalSearchInput:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(48, 116, 174, 0.15);
}

.modal-search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 13px;
}

.pref-modal-suggestions {
	max-height: 300px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pref-modal-info-msg {
	padding: 20px;
	text-align: center;
	font-size: 12px;
	color: var(--text-muted);
}

.pref-modal-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background-color: var(--white);
	cursor: pointer;
	transition: all 0.15s ease;
	gap: 15px;
}

.pref-modal-item:hover {
	background-color: #f1f5f9;
	border-color: var(--primary-color);
}

body.dark-theme .pref-modal-item:hover {
	background-color: #2d3748;
}

.pref-modal-item-info {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.pref-modal-item-title {
	font-size: 11.5px;
	color: var(--text-dark);
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

.pref-modal-item-sub {
	font-size: 10px;
	color: var(--text-muted);
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	margin-top: 2px;
}

.pref-modal-item-badge {
	background-color: var(--light-grey);
	color: var(--text-dark);
	font-size: 9px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: 3px;
	text-transform: uppercase;
	flex-shrink: 0;
}

/* Transition adjustments for theme changes on new elements */
.pref-order-btn,
.pref-code-input,
.pref-search-btn,
.pref-prog-container,
.pref-modal-content,
.pref-modal-header,
.pref-modal-item {
	transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth transitions for all buttons and interactive preference elements */
.btn,
.btn-view-toggle,
.pref-order-btn,
.pref-clear-btn,
.pref-prog-container.is-empty {
	transition: background-color 0.18s ease-in-out,
		border-color 0.18s ease-in-out,
		color 0.18s ease-in-out,
		box-shadow 0.18s ease-in-out,
		transform 0.18s ease-in-out,
		filter 0.18s ease-in-out !important;
}

/* Preference page clean CSS declarations (no inline style helpers) */
.tercih-listesi-page .flat-panel-header {
	padding-left: 0;
	padding-right: 18px;
	justify-content: space-between;
	align-items: center;
	display: flex;
	gap: 10px;
}

.tercih-listesi-page .flat-panel-header .panel-title-text {
	color: var(--primary-color);
	width: 55px;
	flex: none;
	text-align: center;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin: 0;
}

.pref-header-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.pref-table-responsive {
	margin-bottom: 0;
	border: none;
	border-radius: 0;
}

.pref-table th.pref-num-header {
	width: 60px;
	text-align: center;
}

.pref-code-trigger {
	cursor: pointer;
}

.pref-invalid-code {
	background-color: rgba(239, 68, 68, 0.1);
	color: var(--danger-color);
}

body.dark-theme .pref-invalid-code {
	background-color: rgba(239, 68, 68, 0.2);
	color: #f87171;
}

.pref-invalid-text {
	font-size: 11.5px;
	font-weight: 500;
}

.analysis-section-last {
	border-bottom: none !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.pref-sidebar-stats-scroll-short {
	max-height: 120px;
}

.pref-uni-type-wrapper {
	margin-top: 10px;
	border-top: 1px dashed var(--border-color);
	padding-top: 8px;
}

.pref-analysis-panel {
	margin-bottom: 20px;
}

.pref-analysis-panel .accordion-header {
	cursor: pointer;
}

.pref-analysis-panel .accordion-body {
	border-top: 1px solid var(--border-color);
}

.pref-list-col .flat-panel {
	margin-bottom: 0 !important;
}

/* Mobile Responsiveness for Preference Page */
@media (max-width: 767px) {
	.pref-grid-row {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.pref-list-col,
	.pref-sidebar-col {
		width: 100% !important;
	}

	.pref-prog-container {
		padding: 4px 0;
		gap: 6px;
		font-size: 11px;
	}

	.pref-prog-container.is-empty {
		padding: 8px 10px;
	}

	.pref-prog-badge {
		font-size: 8.5px;
		padding: 1.5px 4px;
	}
}

/* ======================================================
   University Type Badges (Devlet/Vakıf/KKTC)
   ====================================================== */
.uni-type-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2.5px 6.5px;
	border-radius: 4px;
	text-transform: uppercase;
	display: inline-block;
	white-space: nowrap;
	line-height: 1;
}

.uni-type-badge-devlet {
	background-color: rgba(48, 116, 174, 0.08);
	border: 1px solid rgba(48, 116, 174, 0.3);
	color: #3074ae;
}

.uni-type-badge-vakif {
	background-color: rgba(191, 0, 191, 0.08);
	border: 1px solid rgba(191, 0, 191, 0.3);
	color: #900090;
}

.uni-type-badge-kktc {
	background-color: rgba(249, 115, 22, 0.08);
	border: 1px solid rgba(249, 115, 22, 0.3);
	color: #ea580c;
}

/* Dark theme overrides */
body.dark-theme .uni-type-badge-devlet {
	background-color: rgba(147, 197, 253, 0.1);
	border-color: rgba(147, 197, 253, 0.3);
	color: #93c5fd;
}

body.dark-theme .uni-type-badge-vakif {
	background-color: rgba(244, 63, 94, 0.1);
	border-color: rgba(244, 63, 94, 0.3);
	color: #fb7185;
}

body.dark-theme .uni-type-badge-kktc {
	background-color: rgba(251, 146, 60, 0.1);
	border-color: rgba(251, 146, 60, 0.3);
	color: #fdba74;
}

/* URAP Rankings Badge */
.uni-urap-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2.5px 6.5px;
	border-radius: 4px;
	background-color: rgba(220, 38, 38, 0.06);
	border: 1px solid rgba(220, 38, 38, 0.25);
	color: #dc2626;
	display: inline-block;
	white-space: nowrap;
	line-height: 1;
}

body.dark-theme .uni-urap-badge {
	background-color: rgba(248, 113, 113, 0.1);
	border-color: rgba(248, 113, 113, 0.25);
	color: #f87171;
}

/* Custom Multi-Select Dropdowns */
.filter-dropdown-container {
	position: relative;
	display: inline-block;
	min-width: 190px;
}

.filter-dropdown-btn {
	width: 100%;
	height: 38px;
	padding: 7px 14px;
	border: 1.5px solid var(--border-color);
	border-radius: 6px;
	background-color: var(--white);
	color: var(--text-dark);
	font-family: var(--font-stack);
	font-size: 13px;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-dropdown-btn:hover {
	border-color: var(--primary-color);
}

.filter-dropdown-btn::after {
	content: '\f078';
	font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', sans-serif;
	font-weight: 900;
	font-size: 10px;
	color: var(--text-muted);
	margin-left: 8px;
}

.filter-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	background-color: var(--white);
	border: 1.5px solid var(--border-color);
	border-radius: 6px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	padding: 8px;
	z-index: 1000;
	min-width: 260px;
}

.filter-search-box {
	margin-bottom: 6px;
}

.filter-search-box input {
	width: 100%;
	height: 30px;
	padding: 4px 8px;
	font-size: 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	outline: none;
	background-color: var(--white);
	color: var(--text-dark);
	font-family: var(--font-stack);
}

.filter-dropdown-options {
	max-height: 200px;
	overflow-y: auto;
}

.filter-dropdown-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 8px;
	font-size: 12.5px;
	color: var(--text-dark);
	cursor: pointer;
	border-radius: 4px;
	user-select: none;
	transition: background-color 0.15s;
}

.filter-dropdown-option:hover {
	background-color: var(--light-grey);
}

.filter-dropdown-option input[type="checkbox"] {
	cursor: pointer;
	margin: 0;
}

/* Clear Filters Button (Gradient) */
.btn-clear-filters {
	background-color: #ef4444;
	background-image: linear-gradient(to top, rgba(185, 28, 28, 1) 0%, rgba(185, 28, 28, 0) 100%);
	color: #ffffff;
	border: 1px solid rgba(185, 28, 28, 0.4);
	border-radius: 4px;
	padding: 5px 12px;
	font-weight: 700;
	font-size: 11px;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity 0.15s ease, transform 0.1s;
	font-family: var(--font-stack);
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-clear-filters:hover {
	opacity: 0.95;
	background-image: linear-gradient(to top, rgba(153, 27, 27, 1) 0%, rgba(153, 27, 27, 0) 100%);
}

.btn-clear-filters:active {
	transform: scale(0.97);
}

body.dark-theme .btn-clear-filters {
	background-color: #ef4444;
	background-image: linear-gradient(to top, rgba(153, 27, 27, 0.9) 0%, rgba(153, 27, 27, 0) 100%);
	border-color: rgba(153, 27, 27, 0.5);
}

/* Active Filters Info Bar with Glossy Bottom-to-Top Gradient Overlay */
.active-filters-bar {
	display: none;
	margin-bottom: 20px;
	justify-content: space-between;
	align-items: center;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 12px;
	border: 1px solid var(--border-color);
	width: 100%;

	/* Base background color and bottom-to-top opacity gradient (Grey) */
	background-color: #f9fafb;
	background-image: linear-gradient(to top, rgba(229, 231, 235, 1) 0%, rgba(229, 231, 235, 0) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Dark theme active-filters-bar styles */
body.dark-theme .active-filters-bar {
	background-color: #262626;
	background-image: linear-gradient(to top, rgba(23, 23, 23, 0.8) 0%, rgba(23, 23, 23, 0) 100%);
	border-color: rgba(255, 255, 255, 0.1);
	box-shadow: none;
}

/* University Profile Section */
.uni-profile-logo {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	background-color: var(--white);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid var(--border-color);
	padding: 4px;
}

body.dark-theme .uni-profile-logo {
	background-color: #1a1a1a;
}

.uni-profile-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	text-transform: uppercase;
	display: inline-block;
}

.uni-type-badge-devlet {
	background-color: #059669;
	color: #ffffff;
}

.uni-type-badge-vakif {
	background-color: #d97706;
	color: #ffffff;
}

.uni-type-badge-kktc {
	background-color: #7c3aed;
	color: #ffffff;
}

/* Custom template classes from JS migration */
.uni-profile-accordions {
	margin-bottom: 25px;
}

.uni-profile-accordions>div {
	margin-bottom: 10px;
}

.uni-profile-accordion-content {
	padding: 0 !important;
}

.uni-profile-table-responsive {
	margin: 0 !important;
	border: none !important;
}

.uni-profile-total-row {
	background-color: rgba(48, 116, 174, 0.08) !important;
}

.uni-profile-total-cell {
	color: var(--primary-color) !important;
}

.listing-header-flex {
	display: flex;
	gap: 15px;
	align-items: center;
}

.listing-breadcrumb-sm {
	margin-bottom: 2px;
}

.listing-title-uni {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 18px;
	font-weight: 600;
	/* University title thickness set to semi-bold */
}

.uni-profile-meta-badges {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin-top: 4px;
	align-items: center;
}

.listing-body-profile {
	padding-top: 15px;
}

.listing-filter-row-col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
	width: 100%;
}

.w-full {
	width: 100%;
}

.filter-input-large {
	width: 100% !important;
	max-width: 580px !important;
	margin-bottom: 0 !important;
	height: 38px !important;
}

.filter-row-second {
	display: flex;
	gap: 12px;
	width: 100%;
	position: relative;
	flex-wrap: nowrap;
	align-items: center;
}

.filter-dropdown-container-half {
	flex: 1;
	min-width: 0;
	max-width: 280px;
}

.dropdown-btn-text-truncated {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	text-align: left;
}

.active-filters-text-span {
	color: var(--text-dark);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	margin-right: 10px;
	text-align: left;
}

/* Flex-grow dropdown container for side-by-side filters */
.filter-dropdown-flex {
	flex: 1;
	min-width: 0;
}

/* Bootstrap 3 Classic Labels Emulation */
.bs-label {
	display: inline-block;
	padding: .3em .7em .4em;
	font-size: 75%;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12);
	text-shadow: 0 -1px 0 rgba(0, 0, 0, .2);
	font-family: inherit;
}

.bs-label-default {
	background-image: linear-gradient(to bottom, #999 0, #777 100%);
	background-color: #777;
	border: 1px solid #777;
}

.bs-label-primary {
	background-image: linear-gradient(to bottom, #337ab7 0, #286090 100%);
	background-color: #337ab7;
	border: 1px solid #286090;
}

.bs-label-success {
	background-image: linear-gradient(to bottom, #5cb85c 0, #419641 100%);
	background-color: #5cb85c;
	border: 1px solid #419641;
}

.bs-label-warning {
	background-image: linear-gradient(to bottom, #f0ad4e 0, #eb9316 100%);
	background-color: #f0ad4e;
	border: 1px solid #eb9316;
}

.bs-label-danger {
	background-image: linear-gradient(to bottom, #d9534f 0, #c12e2a 100%);
	background-color: #d9534f;
	border: 1px solid #c12e2a;
}

.uni-profile-meta-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

/* --- Search Results & Suggestions --- */
.suggestion-details {
	font-size: 0.85em;
	color: var(--primary-color);
	font-weight: 500;
}

.prog-card.prog-card-search-result {
	display: flex;
	gap: 10px;
	align-items: center;
}

.prog-card-logo-box {
	width: 50px;
	height: 50px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #ddd;
}

.prog-card-logo-img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.prog-card-content {
	flex: 1;
	min-width: 0;
}

.prog-card-search-result .search-result-name {
	margin-bottom: 2px;
	font-size: 14px;
}

.prog-card-search-result .search-result-meta {
	color: var(--text-muted);
	font-size: 11.5px;
	margin-bottom: 0;
}

.footer-text {
	text-align: center;
	margin: 0;
	padding: 15px;
	color: var(--text-muted);
	font-size: 13px;
}

/* Homepage Quick Links Section */
.homepage-quick-links {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	box-shadow: var(--shadow-sm);
	margin-top: 10px;
	overflow: hidden;
	width: 100%;
	max-width: 520px;
}

.homepage-quick-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px 18px;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	flex: 1;
	border-right: 1px solid var(--border-color);
	transition: all 0.2s ease;
	background: linear-gradient(to bottom, var(--white) 0%, var(--body-bg) 100%);
}

.homepage-quick-btn:last-child {
	border-right: none;
}

.homepage-quick-btn:hover {
	background: var(--body-bg);
	color: var(--primary-hover);
	text-decoration: none;
}

.homepage-quick-btn i {
	margin-right: 8px;
	font-size: 16px;
	color: var(--primary-color);
}

/* Dark Mode Overrides */
body.dark-theme .homepage-quick-links {
	background-color: var(--white);
	border-color: var(--border-color);
}

body.dark-theme .homepage-quick-btn {
	color: var(--text-dark);
	background: var(--white);
	border-right-color: var(--border-color);
}

body.dark-theme .homepage-quick-btn i {
	color: var(--primary-color);
}

body.dark-theme .homepage-quick-btn:hover {
	background: var(--light-grey);
	color: var(--white);
}

.homepage-action-links {
	display: flex;
	flex-direction: column;
	background-color: var(--white);
	border: 1px solid var(--border-color);
	border-radius: 4px;
	box-shadow: var(--shadow-sm);
	margin-top: 10px;
	overflow: hidden;
	width: 100%;
	max-width: 520px;
}

.homepage-action-btn {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 14px 18px;
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	border-bottom: 1px solid var(--border-color);
	transition: all 0.2s ease;
	background: linear-gradient(to bottom, var(--white) 0%, var(--body-bg) 100%);
}

.homepage-action-btn:last-child {
	border-bottom: none;
}

.homepage-action-btn:hover {
	background: var(--body-bg);
	color: var(--primary-hover);
	text-decoration: none;
}

.homepage-action-btn i {
	margin-right: 12px;
	font-size: 16px;
	color: var(--primary-color);
	width: 20px;
	text-align: center;
}

body.dark-theme .homepage-action-links {
	background-color: var(--white);
	border-color: var(--border-color);
}

body.dark-theme .homepage-action-btn {
	color: var(--text-dark);
	background: var(--white);
	border-bottom-color: var(--border-color);
}

body.dark-theme .homepage-action-btn i {
	color: var(--primary-color);
}

body.dark-theme .homepage-action-btn:hover {
	background: var(--light-grey);
	color: var(--white);
}

.homepage-action-btn.highlight {
	background: linear-gradient(to bottom, rgba(48, 116, 174, 0.1) 0%, rgba(48, 116, 174, 0.05) 100%);
	color: var(--primary-color);
	font-weight: 700;
	border-top: 1.5px solid rgba(48, 116, 174, 0.2);
}

.homepage-action-btn.highlight:hover {
	background: rgba(48, 116, 174, 0.15);
	color: var(--primary-hover);
}

body.dark-theme .homepage-action-btn.highlight {
	background: linear-gradient(to bottom, rgba(48, 116, 174, 0.2) 0%, rgba(48, 116, 174, 0.1) 100%);
	color: #93c5fd;
	border-top-color: rgba(48, 116, 174, 0.4);
}

body.dark-theme .homepage-action-btn.highlight:hover {
	background: rgba(48, 116, 174, 0.3);
	color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.homepage-quick-btn {
		font-size: 12px;
		padding: 10px 6px;
	}

	.homepage-quick-btn i {
		margin-right: 5px;
		font-size: 14px;
	}

	.homepage-action-btn {
		font-size: 13px;
		padding: 12px 14px;
	}

	.homepage-action-btn i {
		margin-right: 10px;
		font-size: 15px;
	}
}

/* SSG Listing Styles */
.ssg-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.ssg-th {
	padding: 10px 12px;
	font-weight: 700;
	color: var(--text-dark);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid var(--border-color);
	background: var(--body-bg);
}

.ssg-th-bordered {
	border-left: 1px solid var(--border-color);
}

.ssg-tr {
	border-bottom: 1px solid var(--border-color);
	background: var(--white);
	cursor: pointer;
	transition: background-color 0.2s;
}

.ssg-tr:hover {
	background-color: var(--body-bg);
}

.ssg-td {
	padding: 8px 12px;
	vertical-align: top;
}

.ssg-td-bordered {
	border-left: 1px solid var(--border-color);
}

.ssg-uni-name {
	font-weight: 600;
	color: var(--text-color);
	font-size: 12px;
	line-height: 1.4;
}

.ssg-type-label {
	font-weight: 500;
	font-size: 11px;
	color: var(--text-muted);
	margin-left: 0;
	text-transform: uppercase;
}

.ssg-detay {
	font-size: 10px;
	color: var(--text-muted);
	margin-top: 4px;
}

.ssg-data-col {
	display: flex;
	flex-direction: column;
	gap: 0px;
	min-width: 140px;
}

.ssg-year-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1px 6px;
}

.ssg-year-row.active {
	background: rgba(29, 78, 216, 0.06);
	padding: 2px 6px;
	border-radius: 4px;
}

.ssg-year-lbl {
	font-size: 10px;
	font-weight: 600;
	color: var(--text-muted);
}

.ssg-year-lbl.active {
	font-weight: 700;
	color: var(--primary-color);
	font-size: 10px;
}

.ssg-sira-val {
	font-weight: 600;
	color: var(--text-color);
	font-size: 12px;
}

.ssg-sira-val.active {
	font-weight: 800;
	color: var(--primary-color);
	font-size: 13px;
}

.ssg-puan-val {
	font-weight: 500;
	color: var(--text-muted);
	font-size: 11px;
}

.ssg-puan-val.active {
	font-weight: 700;
	color: var(--primary-color);
	font-size: 12px;
}

ssg-puan-val {
	font-weight: 500;
	color: var(--text-muted);
	font-size: 11px;
}

.ssg-puan-val.active {
	font-weight: 700;
	color: var(--primary-color);
	font-size: 12px;
}
/* University Profile Extra Features */
}
/* University Profile Extra Features */
.demographics-wrapper { margin-top: 10px; }
.demographics-bar { display: flex; height: 16px; border-radius: 8px; overflow: hidden; background: #e5e5e5; margin-bottom: 5px; }
.demographics-bar .female { background-color: #ec4899; display: flex; justify-content: center; align-items: center; color: white; font-size: 10px; font-weight: bold; }
.demographics-bar .male { background-color: #3b82f6; display: flex; justify-content: center; align-items: center; color: white; font-size: 10px; font-weight: bold; }
.demographics-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.demographics-labels .f-label { color: #ec4899; font-weight: 600; }
.demographics-labels .m-label { color: #3b82f6; font-weight: 600; }
.uni-action-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin-top: 15px; }
.uni-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; background: white; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-color); font-weight: 500; text-decoration: none; transition: all 0.2s ease; font-size: 14px; text-align: center; }
.uni-action-btn:hover { background: #f8fafc; border-color: var(--primary-color); color: var(--primary-color); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Desktop-only optimizations for the universities listing page */
@media (min-width: 992px) {
	/* Align search input and select dropdowns in a single row */
	.listing-filter-row-col {
		flex-direction: row !important;
		align-items: center;
		gap: 16px;
	}
	.listing-filter-row-col > .w-full {
		flex: 1.2;
		min-width: 0;
	}
	.listing-filter-row-col > .filter-row-second {
		flex: 2;
		margin-top: 0;
		min-width: 0;
	}
	
	/* Increase grid card width and spacing on desktop view for a cleaner layout */
	.uni-cards-grid {
		grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
		gap: 16px;
	}
}
