/*
	Eprints free theme for branding your repository.
	I just made some adjustments to match the features and services that exist in EPrints.
	Agung Prasetyo Wibowo | prazetyo@gmail.com
	https://agungprasetyo.net/
*/


/* Reset */

	html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 100%;
		font: inherit;
		vertical-align: baseline;
	}

	article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
		display: block;
	}

	body {
		line-height: 1;
		color: #5D5D5D;
	}

	ol, ul {
		list-style: none;
	}

	blockquote, q {
		quotes: none;
	}

	blockquote:before, blockquote:after, q:before, q:after {
		content: '';
		content: none;
	}

	body {
		-webkit-text-size-adjust: none;
	}

/* ePrints Search Box */

	.search-box {
		width: 100%;
		margin-bottom: 2em;
	}

	.container-4 {
		position: relative;
		width: 100%;
		display: flex;
		align-items: center;
	}

	.container-4 form {
		width: 100%;
		display: flex;
		position: relative;
		margin: 0;
	}

	.container-4 input#search {
		width: 100%;
		height: 44px;
		border: 1px solid #d2d6dc;
		border-radius: 6px;
		padding: 0 48px 0 14px;
		font-size: 0.95rem;
		color: #2d3748;
		background: #ffffff;
		font-family: inherit;
		box-sizing: border-box;
		transition: all 0.2s ease;
		outline: none;
		box-shadow: 0 1px 2px rgba(0,0,0,0.03);
	}

	.container-4 input#search:focus {
		border-color: #017359;
		box-shadow: 0 0 0 3px rgba(1, 115, 89, 0.2);
	}

	.container-4 input#search::-webkit-input-placeholder {
		color: #a0aec0;
	}
	.container-4 input#search:-moz-placeholder {
		color: #a0aec0;
	}
	.container-4 input#search::-moz-placeholder {
		color: #a0aec0;
	}
	.container-4 input#search:-ms-input-placeholder {
		color: #a0aec0;
	}

	.container-4 button.icon {
		position: absolute;
		right: 0;
		top: 0;
		height: 44px;
		width: 44px;
		border: none;
		border-radius: 0 6px 6px 0;
		background: #017359;
		color: #ffffff;
		opacity: 1 !important;
		font-size: 1rem;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: background 0.2s ease;
		margin: 0 !important;
		outline: none;
	}

	.container-4 button.icon:hover {
		background: #015a46;
	}

/* Custom CSS */

.list-group {
	*border-radius: 4px;
	*-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
    *box-shadow: 0 1px 2px rgba(0, 0, 0, .075);
	list-style: none;
	padding-left: 0;
	font-family: 'Raleway', sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.35em;
	list-style: none;
	margin-bottom: 0;
	padding: 0;
	text-transform: uppercase;
}

.list-group li {
    line-height: 40px;
	border-bottom: 1px solid #dbdfe1;
}

.list-group-item {
	padding: 0 0 0 15px;
}
.list-group-item a {
	color: #3c3b3b;
}
.list-group-item a:hover {
	color: #017359;
}
.list-group-item.active a{
	color: #fff;
}
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  text-transform: uppercase;
  background-color: #017359;
  padding: 1em 0 1em 15px;
  color: #ffffff;
  line-height: 2em;
}

.list-group-item:first-child {
    *border-top-left-radius: 4px;
    *border-top-right-radius: 4px;
	*border: 1px solid #dbdfe1;
}
.list-group-item:last-child {
	*border-bottom-left-radius: 4px;
    *order-bottom-right-radius: 4px;
}

/* Box Model */

	*, *:before, *:after {
		-moz-box-sizing: border-box;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
	}

/* Basic */

	@-ms-viewport {
		width: device-width;
	}

	body {
		-ms-overflow-style: scrollbar;
	}

	@media screen and (max-width: 480px) {

		html, body {
			min-width: 320px;
		}

	}

	body {
		background: #ffffff;
	}

		body.is-loading *, body.is-loading *:before, body.is-loading *:after, body.is-resizing *, body.is-resizing *:before, body.is-resizing *:after {
			-moz-animation: none !important;
			-webkit-animation: none !important;
			-ms-animation: none !important;
			animation: none !important;
			-moz-transition: none !important;
			-webkit-transition: none !important;
			-ms-transition: none !important;
			transition: none !important;
		}

/* Type */

	body, select, textarea {
		font-family: "Raleway", sans-serif;
		font-size: 14px;
		font-weight: 400;
		letter-spacing: 0.03em;
		line-height: 1.65;	
	}

		@media screen and (max-width: 1680px) {

			body, select, textarea {
				font-size: 14px;
			}

		}

		@media screen and (max-width: 1280px) {

			body, input, select, textarea {
				font-size: 10pt;
			}

		}

		@media screen and (max-width: 360px) {

			body, input, select, textarea {
				font-size: 9pt;
			}

		}

	a {
		text-decoration: none;
	}

		a:hover {
			color: #017359;
		}

	strong, b {
		color: #3d4449;
		font-weight: 600;
	}

	em, i {
		font-style: italic;
	}


	h1, h2, h3, h4, h5, h6 {
		color: #3d4449;
		font-family: "Raleway", sans-serif;
		font-weight: 500;
		line-height: 1.5;
		margin: 0 0 1em 0;
	}

	h1 {
		font-size: 1em;
		margin: 0 0 0.5em 0;
		line-height: 1.3;
		text-align: none;
	}

	h2 {
		font-size: 1.75em;
	}

	h3 {
		font-size: 1.25em;
	}

	h4 {
		font-size: 1.1em;
	}

	h5 {
		font-size: 0.9em;
	}

	h6 {
		font-size: 0.7em;
	}

	@media screen and (max-width: 1680px) {

		h1 {
			font-size: 3.5em;
		}

	}

	@media screen and (max-width: 980px) {

		h1 {
			font-size: 3.25em;
		}

	}

	@media screen and (max-width: 736px) {

		h1 {
			font-size: 2em;
			line-height: 1.4;
		}

		h2 {
			font-size: 1.5em;
		}

	}

	sub {
		font-size: 0.8em;
		position: relative;
		top: 0.5em;
	}

	sup {
		font-size: 0.8em;
		position: relative;
		top: -0.5em;
	}

	blockquote {
		border-left: solid 3px rgba(210, 215, 217, 0.75);
		font-style: italic;
		margin: 0 0 2em 0;
		padding: 0.5em 0 0.5em 2em;
	}

	code {
		background: rgba(230, 235, 237, 0.25);
		border-radius: 0.375em;
		border: solid 1px rgba(210, 215, 217, 0.75);
		font-family: "Courier New", monospace;
		font-size: 0.9em;
		margin: 0 0.25em;
		padding: 0.25em 0.65em;
	}

	
/* Section/Article */

	header p {
		font-family: "Raleway", sans-serif;
		font-size: 1em;
		font-weight: 400;
		letter-spacing: 0.075em;
		margin-top: -0.5em;
		text-transform: uppercase;
	}

	header.major > :last-child {
		border-bottom: solid 3px #f56a6a;
		display: inline-block;
	}

	header.main > :last-child {
		margin: 0 0 1em 0;
	}

/* Form */

	form {
		margin: 0 0 2em 0;
	}

	label {
		color: #3d4449;
		display: block;
	}

	
/* Icon */

	.icon {
		text-decoration: none;
		border-bottom: none;
		position: relative;
	}

		.icon:before {
			-moz-osx-font-smoothing: grayscale;
			-webkit-font-smoothing: antialiased;
			font-family: FontAwesome;
			font-style: normal;
			font-weight: normal;
			text-transform: none !important;
		}

		.icon > .label {
			display: none;
		}

/* List */

		ul.icons {
			cursor: default;
			list-style: none;
			padding-left: 0;
		}

			ul.icons li {
				display: inline-block;
				padding: 0 1em 0 0;
			}

				ul.icons li:last-child {
					padding-right: 0;
				}

				ul.icons li .icon {
					color: inherit;
				}

					ul.icons li .icon:before {
						font-size: 1.25em;
					}


		dl dd {
			margin-left: 1.8em;
		}

/* Layout Foundation - Edge to Edge Full Screen */

	html, body {
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		background-color: #ffffff !important;
		overflow-x: hidden !important;
		-webkit-text-size-adjust: 100% !important;
		text-size-adjust: 100% !important;
	}

	#part_top {
		text-decoration: none;
		position: relative;
	}

/* ========================================================
   Desktop Layout (> 980px)
   ======================================================== */
@media screen and (min-width: 981px) {
	#wrapper {
		display: flex !important;
		flex-direction: row-reverse !important;
		min-height: 100vh !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		box-shadow: none !important;
		border: none !important;
		background: #ffffff !important;
		position: relative !important;
		overflow-x: hidden !important;
	}

	#main {
		flex-grow: 1 !important;
		flex-shrink: 1 !important;
		width: 100% !important;
		min-width: 0 !important;
		transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
		background: #ffffff !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	#main > .inner {
		max-width: 100% !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 1.25em 28px 3em 28px !important;
		box-sizing: border-box !important;
	}

	#sidebar {
		flex-grow: 0 !important;
		flex-shrink: 0 !important;
		width: 22em !important;
		background-color: #f7f9fa !important;
		border-right: 1px solid #e5e9ec !important;
		position: relative !important;
		transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
		z-index: 100 !important;
		font-size: 0.9em;
		margin: 0 !important;
		margin-left: 0 !important;
		padding: 0 !important;
	}

	#sidebar.inactive {
		margin-left: -22em !important;
	}

	#sidebar > .inner {
		padding: 2em 1.75em;
		position: relative;
		width: 22em;
		box-sizing: border-box;
	}

	#sidebar > .inner > * {
		padding: 0 0 25px 0;
	}

	#sidebar > .inner > *:last-child {
		padding-bottom: 0;
	}

	#sidebar > .inner > .alt {
		background-color: #edf2f7;
		border-bottom: 0;
		margin: -2em -1.75em 2.5em -1.75em;
		padding: 1.75em;
		width: calc(100% + 3.5em);
		box-sizing: border-box;
	}

	.sidebar-mobile-header {
		display: none !important;
	}

	.sidebar-social-section {
		display: none !important;
	}
}

/* ========================================================
   Mobile & Tablet Layout (<= 980px)
   ======================================================== */
@media screen and (max-width: 980px) {
	#wrapper {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow-x: hidden !important;
		background: #ffffff !important;
	}

	#main {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow-x: hidden !important;
		background: #ffffff !important;
	}

	#main > .inner {
		padding: 12px 16px 2.5em 16px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
		margin: 0 !important;
	}

	#sidebar {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		bottom: 0 !important;
		width: 300px !important;
		max-width: 85vw !important;
		height: 100vh !important;
		z-index: 100001 !important;
		background: #ffffff !important;
		border: none !important;
		transform: translateX(-100%) !important;
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
		box-shadow: none !important;
		margin: 0 !important;
		padding: 0 !important;
		display: block !important;
	}

	#sidebar.mobile-open {
		transform: translateX(0) !important;
		box-shadow: 6px 0 28px rgba(0, 0, 0, 0.3) !important;
	}

	#sidebar > .inner {
		width: 100% !important;
		height: 100% !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch !important;
		padding: 1.25em 1.25em 3em 1.25em !important;
		box-sizing: border-box !important;
	}

	#sidebar > .inner > * {
		padding: 0 0 20px 0;
	}

	#sidebar > .inner > *:last-child {
		padding-bottom: 0;
	}

	#sidebar > .inner > .alt {
		background-color: #edf2f7 !important;
		border-bottom: 0 !important;
		margin: -1.25em -1.25em 1.5em -1.25em !important;
		padding: 1.25em !important;
		width: calc(100% + 2.5em) !important;
		box-sizing: border-box !important;
	}

	.sidebar-mobile-header {
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		padding-bottom: 12px !important;
		margin-bottom: 16px !important;
		border-bottom: 1px solid #edf2f7 !important;
	}

	.sidebar-mobile-title {
		font-weight: 700 !important;
		font-size: 0.95rem !important;
		letter-spacing: 0.1em !important;
		color: #2d3748 !important;
	}

	.sidebar-close-btn {
		background: none !important;
		border: none !important;
		font-size: 1.25rem !important;
		color: #718096 !important;
		cursor: pointer !important;
		padding: 6px 10px !important;
		border-radius: 6px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
	}

	.sidebar-close-btn:hover {
		color: #e53e3e !important;
		background: #fff5f5 !important;
	}

	.sidebar-social-section {
		display: block !important;
		margin-top: 2em !important;
		padding-top: 1.5em !important;
		border-top: 1px solid #edf2f7 !important;
	}

	.sidebar-social-section .sidebar-icons {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		gap: 12px !important;
		list-style: none !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.sidebar-social-section .sidebar-icons a.icon {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 38px !important;
		height: 38px !important;
		border-radius: 50% !important;
		color: #718096 !important;
		background: #edf2f7 !important;
		text-decoration: none !important;
		font-size: 1rem !important;
		border: none !important;
		transition: all 0.2s ease !important;
	}

	.sidebar-social-section .sidebar-icons a.icon:hover {
		background: #017359 !important;
		color: #ffffff !important;
	}
}

/* ========================================================
   Header Styles
   ======================================================== */
#header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: solid 4px #017359;
	padding: 1.25em 0;
	position: relative;
	margin-bottom: 25px;
	gap: 16px;
}

.header-left {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.sidebar-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 8px;
	border: 1px solid #d2d6dc;
	background: #ffffff;
	color: #3d4449;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	flex-shrink: 0;
	padding: 0;
}

.sidebar-toggle-btn:hover {
	background: #017359;
	color: #ffffff;
	border-color: #017359;
	box-shadow: 0 3px 8px rgba(1, 115, 89, 0.25);
	transform: translateY(-1px);
}

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

#header .logo {
	border-bottom: 0;
	color: inherit;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	min-width: 0;
}

#header .logo img, #header .logo-img {
	height: 44px;
	width: auto;
	object-fit: contain;
	flex-shrink: 0;
}

#header .logo-title {
	font-family: 'Raleway', sans-serif;
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	color: #2d3748;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#header .icons {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-shrink: 0;
}

#header .icons li {
	margin: 0;
	padding: 0;
}

#header .icons a.icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: #718096;
	background: #f7fafc;
	border: 1px solid #edf2f7;
	text-decoration: none;
	transition: all 0.2s ease;
	font-size: 0.95rem;
}

#header .icons a.icon:hover {
	color: #ffffff;
	background: #017359;
	border-color: #017359;
	transform: translateY(-1px);
}

@media screen and (max-width: 768px) {
	#header {
		padding: 8px 0 !important;
		margin-bottom: 16px !important;
		border-bottom: 3px solid #017359 !important;
	}

	.header-left {
		gap: 10px !important;
		flex: 1 !important;
	}

	.sidebar-toggle-btn {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		font-size: 1.1rem !important;
		border-radius: 6px !important;
	}

	#header .logo {
		gap: 8px !important;
	}

	#header .logo img, #header .logo-img {
		height: 32px !important;
		max-width: 80px !important;
	}

	#header .logo-title {
		font-size: 0.95rem !important;
		letter-spacing: 0.02em !important;
		line-height: 1.2 !important;
		white-space: normal !important;
		word-break: break-word !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
	}

	.header-social-icons {
		display: none !important;
	}

	h1.ep_tm_pagetitle {
		font-size: 1.35rem !important;
		line-height: 1.3 !important;
		margin: 0.5em 0 0.85em 0 !important;
		font-weight: 700 !important;
		word-wrap: break-word !important;
	}
}

/* Menu */

	#menu ul {
		-moz-user-select: none;
		-webkit-user-select: none;
		-ms-user-select: none;
		user-select: none;
		color: #3d4449;
		font-family: 'Raleway', sans-serif;
		font-size: 11px;
		font-weight: 800;
		letter-spacing: 0.35em;
		list-style: none;
		margin-bottom: 0;
		padding: 0;
		text-transform: uppercase;
	}		
		
		#menu ul a, #menu ul span {
			border-bottom: 0;
			color: inherit;
			cursor: pointer;
			display: block;
			padding: 0.625em 0;
		}

			#menu ul a:hover, #menu ul span:hover {
				color: #017359;
			}

			#menu ul a.opener, #menu ul span.opener {
				-moz-transition: color 0.2s ease-in-out;
				-webkit-transition: color 0.2s ease-in-out;
				-ms-transition: color 0.2s ease-in-out;
				transition: color 0.2s ease-in-out;
				text-decoration: none;
				-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
				position: relative;
			}

				#menu ul a.opener:before, #menu ul span.opener:before {
					-moz-osx-font-smoothing: grayscale;
					-webkit-font-smoothing: antialiased;
					font-family: FontAwesome;
					font-style: normal;
					font-weight: normal;
					text-transform: none !important;
				}

				#menu ul a.opener:before, #menu ul span.opener:before {
					-moz-transition: color 0.2s ease-in-out, -moz-transform 0.2s ease-in-out;
					-webkit-transition: color 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out;
					-ms-transition: color 0.2s ease-in-out, -ms-transform 0.2s ease-in-out;
					transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
					color: #9fa3a6;
					content: '\f078';
					position: absolute;
					right: 0;
				}

				#menu ul a.opener:hover:before, #menu ul span.opener:hover:before {
					color: #f56a6a;
				}

				#menu ul a.opener.active + ul, #menu ul span.opener.active + ul {
					display: block;
				}

				#menu ul a.opener.active:before, #menu ul span.opener.active:before {
					-moz-transform: rotate(-180deg);
					-webkit-transform: rotate(-180deg);
					-ms-transform: rotate(-180deg);
					transform: rotate(-180deg);
				}

	#menu > ul > li {
		border-top: solid 1px rgba(210, 215, 217, 0.75);
		*margin: 0.5em 0 0 0;
		padding: 1em 0 1em 15px;
		line-height: 1em;
	}
	
	
	#menu > ul > li:last-child {
		border-bottom: solid 1px rgba(210, 215, 217, 0.75);
	}

		#menu > ul > li > ul {
			color: #9fa3a6;
			display: none;
			margin: 0.5em 0 1.5em -1.5em;
		}
		
		#menu > ul > li > ul a:before {
			content: "\f054";
			font-family: FontAwesome;
			font-weight: normal;
			font-style: normal;
			text-decoration: inherit;
			-webkit-font-smoothing: antialiased;
			margin-right: 4px;
			color: #555555;
			font-size: 9px;
			position: relative;
			top: -1px;
		}

			#menu > ul > li > ul a, #menu > ul > li > ul span {
				font-size: 11px;
				font-weight: 400;
				color: #3c3b3b;
				
			}

			#menu > ul > li > ul > li {
				margin: 0.125em 0 0 0;
				padding: 1em 0 1em 25px;
				border-bottom: 1px solid;

			}

		#menu > ul > li:first-child {
			border-top: 3px solid;
			margin-top: 0;
			padding-top: 1em;
		}

/* Footer */

	#footer .copyright {
    	color: #9fa3a6;
		font-size: .9em;
		letter-spacing: 0.03em;
	}

		#footer .copyright a {
			-moz-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
			-webkit-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
			-ms-transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
			transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out;
			border-bottom: dotted 1px;
			color: #017359;
			text-decoration: none;
		}

/* Sidebar Backdrop Overlay */

.sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 10000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
	opacity: 1;
	visibility: visible;
}

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

/* Modern Card Grid for Homepage */

.repo-feed-bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	padding: 10px 18px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 2em;
	font-size: 0.875rem;
	flex-wrap: wrap;
}

.repo-feed-bar a {
	color: #64748b;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
	border-bottom: none;
	transition: color 0.2s ease;
}

.repo-feed-bar a:hover {
	color: #017359;
}

.repo-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 24px;
	margin: 1.5em 0 2.5em 0;
}

.repo-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	position: relative;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
	cursor: pointer;
}

.repo-card:hover {
	transform: translateY(-4px);
	border-color: #017359;
	box-shadow: 0 12px 24px rgba(46, 186, 174, 0.16);
}

.repo-card-icon {
	width: 50px;
	height: 50px;
	border-radius: 10px;
	background: #e6f4f0;
	color: #017359;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.35rem;
	margin-bottom: 16px;
	transition: all 0.2s ease;
}

.repo-card:hover .repo-card-icon {
	background: #017359;
	color: #ffffff;
}

.repo-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0 0 10px 0;
	line-height: 1.35;
}

.repo-card-title a {
	color: #2d3748;
	text-decoration: none;
	border-bottom: none;
	transition: color 0.2s ease;
}

.repo-card:hover .repo-card-title a {
	color: #017359;
}

/* Stretched Link: Make entire card surface clickable */
.repo-card-title a::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	border-radius: 12px;
}

.repo-card-desc {
	font-size: 0.925rem;
	color: #718096;
	line-height: 1.55;
	margin: 0;
	flex-grow: 1;
}

.repo-card-arrow {
	display: none;
}

/* OAI Information Notice */

.repo-oai-info {
	background: #f8fafc;
	border-left: 4px solid #017359;
	border-radius: 6px;
	padding: 14px 18px;
	font-size: 0.9rem;
	color: #475569;
	margin-top: 2em;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.repo-oai-info code {
	background: #e2e8f0;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.85em;
	color: #0f172a;
}

/* ========================================================
   Mobile Card List & Feed Bar Adaptation (<= 640px)
   ======================================================== */
@media screen and (max-width: 640px) {
	.repo-feed-bar {
		justify-content: flex-start !important;
		gap: 10px !important;
		padding: 8px 12px !important;
		font-size: 0.8rem !important;
	}

	.repo-card-grid {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
		margin: 1em 0 !important;
	}

	.repo-card {
		flex-direction: row !important;
		align-items: center !important;
		padding: 14px 16px !important;
		border-radius: 10px !important;
		gap: 14px !important;
	}

	.repo-card-icon {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		font-size: 1.2rem !important;
		margin-bottom: 0 !important;
		border-radius: 8px !important;
	}

	.repo-card-content {
		flex: 1 !important;
		min-width: 0 !important;
	}

	.repo-card-title {
		font-size: 1rem !important;
		margin: 0 0 3px 0 !important;
	}

	.repo-card-desc {
		font-size: 0.825rem !important;
		line-height: 1.35 !important;
		display: -webkit-box !important;
		-webkit-line-clamp: 2 !important;
		-webkit-box-orient: vertical !important;
		overflow: hidden !important;
	}

	.repo-card-arrow {
		display: block !important;
		color: #94a3b8 !important;
		font-size: 1.25rem !important;
		margin-left: auto !important;
		padding-left: 6px !important;
		flex-shrink: 0 !important;
	}

	.repo-oai-info {
		padding: 10px 14px !important;
		font-size: 0.825rem !important;
		word-break: break-all !important;
	}
}

/* ========================================================
   Mobile EPrints Native Forms, Tables & Controls (<= 768px)
   ======================================================== */
@media screen and (max-width: 768px) {
	table.ep_search_fields,
	table.ep_search_fields tbody,
	table.ep_search_fields tr,
	table.ep_search_fields td,
	table.ep_search_fields th,
	.ep_search_fields,
	.ep_table_row,
	.ep_table_cell,
	.ep_multi_heading,
	.ep_multi_input,
	.ep_columns_cell {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	table.ep_search_fields td {
		padding: 6px 0 !important;
	}

	input.ep_form_text,
	input[type="text"],
	input[type="search"],
	input[type="password"],
	input[type="email"],
	.container-4 input#search,
	select,
	textarea {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		font-size: 16px !important; /* Critical: prevents iOS Safari auto-zoom on focus */
		padding: 10px 12px !important;
		border-radius: 6px !important;
	}

	.ep_form_action_button,
	.ep_form_button,
	input[type="submit"],
	input[type="button"],
	button {
		min-height: 42px !important;
		font-size: 0.95rem !important;
		box-sizing: border-box !important;
	}

	.ep_search_buttons {
		width: 100% !important;
	}

	.ep_search_buttons > div {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		gap: 8px !important;
	}

	.ep_search_buttons input.ep_form_action_button {
		width: 100% !important;
		margin: 4px 0 !important;
	}

	.ep_search_controls,
	.ep_search_controls_top,
	.ep_search_controls_bottom {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		width: 100% !important;
	}

	.ep_table_wrapper,
	table {
		max-width: 100% !important;
	}

	img, iframe, object, embed {
		max-width: 100% !important;
		height: auto !important;
	}
}



/* Hide Create Account for internal-only repository */
#main_page a[href*="register"],
.ep_tm_key_tools li a[href*="register"],
#ep_tm_menu_tools li a[href*="register"],
#ep_menu li a[href*="register"] {
    display: none !important;
}
