.main-nav-wrap {
	display: flex;
	justify-content: flex-end;
}

.subscribe-form {
	.wrapper {
		display: flex;
		flex-direction: column;
		flex-wrap: wrap;
		height: 120px;
		width: 100%;
	}
}

.join-area {
	margin-top: 2em;
	margin-bottom: 0;
	filter: drop-shadow(-1px 3px 16px rgba(0, 0, 0, 0.15));

	.join-header {
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 1em;
		font-size: 1.2em;
		font-weight: 400;
		line-height: 1.7;
		text-align: center;
		color: var(--primaryColor);
		background-color: var(--lightenPrimaryColor);

		h5 {
			margin: 0;
		}
	}

	.join-body {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		font-size: 1.5em;
		font-weight: 500;
		line-height: 1.4;
		text-align: center;
		color: var(--darkPrimaryColor);
		background-color: #f6f6f6;
		padding: 2em 0;

		p {
			margin-bottom: 1em;
		}

		a {
			padding: 0.4em 3.5em;
			font-size: 20px;
			font-weight: 500;
			line-height: 1.4;
			text-align: center;
			color: #fff;
			background: linear-gradient(120deg, var(--primaryColor), var(--lightPrimaryColor));
			border-radius: 3em;
			box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
			text-decoration: none;
			transition: all 0.3s;

			&:hover {
				opacity: 0.9;
				box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.2);
				text-decoration: none;
			}
		}
	}
}

.ruby-container {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 1400px;
	padding-left: 20px;
	padding-right: 20px;
}

.marquee {
	align-items: center;
	border: 2px solid #000000;
	border-radius: 0.5em;
	box-sizing: border-box;
	color: white;
	display: flex;
	font-weight: 200;
	margin: 1em 0;
	overflow: hidden;
	width: 100%;

	.marquee-content {
		animation: marquee 10s linear infinite running;
		white-space: nowrap;
		&:hover {
			animation-play-state: paused;
		}
	}

	.marquee-item {
		align-items: center;
		background: rgba(255, 255, 255, 0.1);
		color: #000000;
		display: inline-flex;
		font-weight: 500;
		justify-content: center;
		margin-left: 2em;
		margin-right: 8em;
		min-width: 200px;
		padding: 0.8em;
		transition: all 0.2s ease;

		&:hover {
			color: #c30d23;
			cursor: pointer;
		}

		a {
			color: inherit;
			text-decoration: none;
		}
	}

	.marquee-category {
		background: #c30d23;
		border: 1px solid #c30d23;
		border-radius: 3em;
		color: #ffffff;
		display: inline-block;
		font-size: 0.9em;
		font-weight: 700;
		margin-right: 0.5em;
		padding: 0.2em 0.8em;
	}
}

.top-ad-slider picture,
.top-ad-slider img {
	max-width: none;
	width: 100%;
}

.top-ad-slider .slick-dots {
	align-items: center;
	display: flex;
	justify-content: center;
	padding: 1em;
	position: static;
	translate: none;
	-webkit-transform: none;
}

.top-ad-slider .slick-dots button {
	color: #333333;
}

.top-ad-slider .slick-dots li:before {
	border-color: #333333;
}

.top-ad-slider .slick-dots li.slick-active:before {
	background-color: #333333;
}

.header-outer {
	margin-bottom: 0;
}

.home h3.post-title.is-small-title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin: 0.8em;
}

.home .blog-content-wrap {
	margin-bottom: 1em;
}

.home .blog-content-wrap > .post-header {
	width: 94%;
	margin: auto;
}

.home .blog-content-wrap .post-header:not(:last-of-type) {
	border-bottom: 1px dashed #cccccc;
}

.topArticlesImage_1big4small {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;

	article {
		height: 100%;
		margin: 0;

		.post-title {
			-webkit-box-orient: vertical;
			-webkit-line-clamp: 2;
			display: -webkit-box;
			font-size: 1em;
			overflow: hidden;
			text-overflow: ellipsis;
		}
	}

	.main-article {
		flex-basis: 100%;
		position: relative;
		overflow: hidden;
	}

	.sub-articles {
		display: grid;
		flex-basis: 100%;
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;

		.post-header {
			padding: 0 15px 14px 15px;
		}
	}
}

.page-author-team-wrap .author-thumb-wrap {
	width: 200px;
}

.page-author-team-wrap .author-thumb-wrap img {
	width: 100%;
	object-fit: contain;
	object-position: center;
	border-radius: 0;
}

#block_institution img {
	object-fit: contain;
	aspect-ratio: 2 / 1;
	padding: 1em;
}

#block_institution .post-grid-small .post-header-inner {
	border-width: 1px 0 0 0;
	border-style: solid;
	border-color: #cccccc;
	margin-top: 0;
	padding: 0.5em;
}

#block_institution .post-grid-small:hover .post-header-inner {
	border-color: #000000;
}

#block_institution .post-grid-small a {
	transition: color 0.2s;
	color: #555555;
}

#block_institution .post-grid-small:hover a {
	color: #000000;
}

@keyframes marquee {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translate(-100%);
	}
}

@media (min-width: 768px) {
	.topArticlesImage_1big4small {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto 1fr;
		gap: 16px;

		.main-article {
			grid-column: 1 / 2;
			grid-row: 1 / 3;
		}

		.sub-articles {
			display: grid;
			grid-template-columns: 1fr 1fr;
			grid-template-rows: 1fr 1fr;
			gap: 16px;
			grid-column: 2 / 3;
			grid-row: 1 / 3;
		}

		.sub-articles .article {
			border: 1px solid #ddd;
			border-radius: 8px;
		}
	}
}

.header-wrap .main-nav-wrap,
.off-canvas-wrap .off-canvas-nav-wrap {
	font-size: 1em;
}

@media (min-width: 992px) {
	.header-wrap .main-nav-wrap,
	.off-canvas-wrap .off-canvas-nav-wrap {
		font-size: 0.8em;
	}
}

@media (min-width: 1200px) {
	.header-wrap .main-nav-wrap,
	.off-canvas-wrap .off-canvas-nav-wrap {
		font-size: 1em;
	}
}

.header-wrap .header-nav-wrap .ruby-container {
	max-width: 1400px;
}

.header-wrap .main-nav-inner .is-sub-menu:not(.mega-menu-wrap) a {
	font-size: 0.9em;
	padding: 15px 25px 15px 15px;
}

.header-wrap .main-nav-inner .is-sub-menu:not(.mega-menu-wrap) a {
	font-size: 0.9em;
	padding: 15px 25px 15px 15px;
}

.header-wrap .main-nav-inner > li > a {
	padding-left: 0;
	padding-right: 30px;
}

@media (min-width: 1400px) {
	.header-wrap .main-nav-inner > li > a {
		padding-left: 20px;
		padding-right: 20px;
	}
}

.post-type-archive-institution .type-institution img {
	object-fit: contain;
	object-position: center;
	aspect-ratio: 1 / 1;
}

:root {
	--darkenPrimaryColor: #001928;
	--darkPrimaryColor: #032a42;
	--primaryColor: #35558a;
	--lightPrimaryColor: #6a8cc3;
	--lightenPrimaryColor: #d1e2f3;
	--darkSecondaryColor: #3a2916;
	--secondaryColor: #b3926f;
	--lightSecondaryColor: #f0d6b6;
	--lightenSecondaryColor: #f5f5e9;
}

.ruby-is-stick .header-nav-inner {
	opacity: 0.95;
}

#ruby-banner-search-form .ruby-search {
	color: var(--lightPrimaryColor);
}

#ruby-banner-search-form .ruby-search input[type='text'] {
	border-color: var(--lightPrimaryColor);

	&:hover,
	&:focus {
		border-color: var(--primaryColor);
	}
}

.header-style-2 .header-nav-inner {
	background: linear-gradient(100deg, var(--primaryColor) 80%, var(--lightPrimaryColor));
	box-shadow: 0 3px 5px #644d3545;

	.header-logo-wrap {
		filter: drop-shadow(1px 4px 2px #644d3545);
	}

	.main-nav-inner > li > a {
		text-shadow: 1px 2px 2px #644d3545;

		&:hover {
			color: var(--secondaryColor);
			opacity: 1;
		}
	}

	.main-nav-inner > li.current-menu-item,
	.main-nav-inner > li.current-menu-parent {
		> a {
			color: var(--secondaryColor);
		}

		.current-menu-item > a {
			color: var(--lightPrimaryColor);
		}
	}
}

.archive-page-header {
	background: var(--lightenPrimaryColor);

	.post-title {
		color: var(--primaryColor);
	}
}

.single-title.post-title {
	color: var(--primaryColor);
}

.marquee {
	border-color: var(--primaryColor);

	.marquee-item {
		color: #000000;

		&:hover {
			color: var(--primaryColor);
			cursor: pointer;
		}
	}

	.marquee-category {
		background: linear-gradient(135deg, var(--primaryColor), var(--lightPrimaryColor));
		border: none;
	}
}

.fw-block-video {
	background: linear-gradient(135deg, var(--secondaryColor), var(--darkSecondaryColor) 200%);
}

.fw-block-video .video-playlist-iframe-nav {
	max-height: 506px;
}

.video-playlist-iframe-nav::-webkit-scrollbar {
	background: var(--secondaryColor);
	width: 6px;
}

.video-playlist-iframe-nav::-webkit-scrollbar-corner {
	background-color: var(--lightSecondaryColor);
}

.video-playlist-iframe-nav::-webkit-scrollbar-thumb {
	background-color: var(--lightSecondaryColor);
	opacity: 1;
}

footer.is-light-text .footer-inner {
	background: linear-gradient(135deg, var(--primaryColor), var(--darkPrimaryColor));

	.widget_media_image {
		filter: drop-shadow(1px 4px 2px #032a4245);
		margin-top: 0.5em;
		max-width: 240px;
	}

	a,
	.post-title {
		text-shadow: 1px 2px 5px var(--darkPrimaryColor);
	}

	.post-title {
		line-height: 1;
		margin: 0;
		padding: 0.6em 0;
	}

	.widget_tag_cloud a:hover,
	.widget_tag_cloud a:focus {
		text-shadow: none;
	}
}

#ruby-back-top i {
	background: var(--secondaryColor);
}

.home .blog-listing-wrap {
	margin: 0 -0.5em;
}

.home .blog-listing-wrap .home {
	padding: 1em 0.5em;
}

.mfp-bg {
	background: linear-gradient(167deg, #ffffff 60%, var(--lightSecondaryColor)) !important;
}

.block-title,
.widget-title,
section.products > h2 {
	color: var(--primaryColor) !important;
	font-size: 1em !important;
}

.block-title:after {
	background: var(--lightSecondaryColor);
}

button[type='submit'],
input[type='submit'] {
	background: var(--primaryColor);
	font-size: 0.85em !important;
}

.off-canvas-wrap .off-canvas-nav-wrap {
	.off-canvas-nav-inner > li.current-menu-item,
	.off-canvas-nav-inner > li.current-menu-parent {
		> a {
			color: var(--primaryColor);
		}

		.current-menu-item > a {
			color: var(--lightPrimaryColor);
		}
	}
}

.archive-page-header {
	margin-top: 0;
	margin-bottom: 0;
}

.breadcrumbs {
	background: #f5f5f5;
	color: var(--lightPrimaryColor);
	padding: 0.5em 0;
	margin-bottom: 30px;
}

.breadcrumbs .breadcrumb_last,
.breadcrumbs .last {
	color: var(--darkPrimaryColor);
	font-weight: bold;
}

.breadcrumbs .aioseo-breadcrumb-separator,
.breadcrumbs .separator {
	color: #7c7c7c;
	padding: 0 0.2em;
}

.breadcrumbs .aioseo-breadcrumb {
	font-weight: bold;
}

.breadcrumbs .aioseo-breadcrumb a,
.breadcrumbs span > span {
	font-weight: normal;
	color: var(--lightPrimaryColor);
	padding: 0 0.2em;
}

@media only screen and (max-width: 1199px) and (min-width: 992px) {
	.block-content-wrap,
	.blog-content-wrap {
		margin-left: -15px;
		margin-right: -15px;
	}
}

.grecaptcha-badge {
	display: none !important;
}
