/* Minimal fixes for fallback container alignment (match original layout) */
#rt-feature .rt-feature-fallback { margin: 0 auto; }
#rt-feature .rt-feature-fallback:after { content: ""; display: table; clear: both; }

/* Normalize feature grid when modules render as rt-grid-3 (should behave like 3 columns) */
#rt-feature .rt-grid-3 {
	float: left;
	width: 31.333%;
	margin: 0 1%;
	text-align: center;
	box-sizing: border-box;
}
@media only screen and (min-width: 768px) and (max-width: 959px) {
	#rt-feature .rt-grid-3 { width: 48%; margin-bottom: 25px; }
}
@media only screen and (max-width: 767px) {
	#rt-feature .rt-grid-3 { width: 100%; margin-left: 0; margin-bottom: 20px; }
}

/* Base container width (do not shrink content) */
.rt-container {
	width: 100%;
	max-width: var(--container-max-width, 1200px);
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	box-sizing: border-box;
}

/* Ограничение ширины всего сайта (синхронизация с настройками контейнера) */
#rt-page-surround {
	max-width: calc(var(--container-max-width, 1200px) + (var(--container-margin, 20px) * 2));
	margin: 0 auto;
	padding-left: var(--container-margin, 20px);
	padding-right: var(--container-margin, 20px);
	box-sizing: border-box;
}

@media (max-width: 1200px) {
	#rt-page-surround { padding-left: 20px; padding-right: 20px; }
}

/* Prevent mainbody from bleeding into sidebars */
#rt-mainbody,
.rt-grid-12 #rt-mainbody {
	margin: 0 !important;
}

/* Force template backgrounds to /lv_eho (override stale /assets paths) */
#rt-bg-top {
	background-image: url('/lv_eho/images/backgrounds/preset1/top-img-bg.jpg') !important;
}
#rt-bg-bottom {
	background-image: url('/lv_eho/images/backgrounds/preset1/bottom-img-bg.jpg') !important;
}

/* Blog/mainbody: full-width articles and dark theme styling */
#rt-mainbody .rt-blog .items-row {
	display: block;
	margin: 0;
}

#rt-mainbody .rt-blog {
	margin: 0;
}

#rt-mainbody .rt-blog .rt-headline {
	margin: 0 0 10px;
	text-align: center;
	line-height: 1.2;
}

#rt-mainbody .rt-blog {
	margin: 0;
}

#rt-mainbody .rt-blog .rt-headline {
	margin: 0 0 10px;
	text-align: center;
	line-height: 1.2;
}

#rt-mainbody .rt-blog .items-row > .rt-grid-6 {
	width: 100% !important;
	margin-left: 0 !important;
	padding: 2px;
	box-sizing: border-box;
}

#rt-mainbody .rt-blog .rt-article.rt-article-bg {
	width: 100%;
	margin: 0;
	box-sizing: border-box;
}

/* Transparent layout underlays (match Gantry look) */
#rt-showcase,
#rt-feature,
#rt-utility,
#rt-breadcrumbs,
#rt-maintop,
#rt-mainbottom,
#rt-extension,
#rt-bottom,
#rt-footer,
#rt-footer-surround {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat, rgba(0, 0, 0, var(--transparency-showcase, 0.03)) !important;
	background-blend-mode: overlay;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#rt-extension,
#rt-bottom {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat, rgba(0, 0, 0, var(--transparency-bottom, 0.5)) !important;
}

#rt-footer-surround {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat, rgba(0, 0, 0, var(--transparency-footer, 0.8)) !important;
}

.main-body-style-light #rt-showcase,
.main-body-style-light #rt-feature,
.main-body-style-light #rt-utility,
.main-body-style-light #rt-breadcrumbs,
.main-body-style-light #rt-maintop,
.main-body-style-light #rt-mainbottom,
.main-body-style-light #rt-extension,
.main-body-style-light #rt-bottom,
.main-body-style-light #rt-footer,
.main-body-style-light #rt-footer-surround {
	background: url('/lv_eho/images/overlays/light.png') 0 0 repeat, rgba(255, 255, 255, 0.6) !important;
	background-blend-mode: overlay;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#rt-showcase .rt-block,
#rt-feature .rt-block,
#rt-utility .rt-block,
#rt-breadcrumbs .rt-block,
#rt-maintop .rt-block,
#rt-mainbottom .rt-block,
#rt-extension .rt-block,
#rt-bottom .rt-block,
#rt-footer .rt-block {
	background: rgba(255, 255, 255, var(--transparency-showcase, 0.03)) !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	border-radius: 6px;
}

#rt-mainbody .component-content {
	background: rgba(255, 255, 255, var(--transparency-mainbody, 0.02)) !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	padding: 2px !important;
}

#rt-sidebar-a .rt-block,
#rt-sidebar-b .rt-block {
	background: rgba(255, 255, 255, var(--transparency-sidebar, 0.03)) !important;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#rt-footer-surround {
	background: rgba(0, 0, 0, var(--transparency-footer, 0.8)) !important;
}

.main-body-style-light #rt-showcase .rt-block,
.main-body-style-light #rt-feature .rt-block,
.main-body-style-light #rt-utility .rt-block,
.main-body-style-light #rt-breadcrumbs .rt-block,
.main-body-style-light #rt-maintop .rt-block,
.main-body-style-light #rt-mainbottom .rt-block,
.main-body-style-light #rt-extension .rt-block,
.main-body-style-light #rt-bottom .rt-block,
.main-body-style-light #rt-footer .rt-block {
	background: rgba(255, 255, 255, 0.7) !important;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.main-body-style-light #rt-mainbody .component-content,
.main-body-style-light #rt-sidebar-a .rt-block,
.main-body-style-light #rt-sidebar-b .rt-block {
	background: rgba(255, 255, 255, 0.8) !important;
	border: 1px solid rgba(0, 0, 0, 0.1);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Original Gantry structural layout tweaks */

#rt-mainbody {
	padding: 2px !important;
	margin: 0 !important;
	min-height: auto !important;
}

/* Match wrapper height to article (no extra chrome) */
#rt-mainbody,
#rt-mainbody .component-content {
	padding: 5px 0 0 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.rt-grid-12 #rt-mainbody {
	margin: 0 !important;
}

#rt-drawer .rt-container,
#rt-top .rt-container,
#rt-debug .rt-container {
	border-radius: 10px;
	margin: 15px auto;
}

#rt-footer-surround {
	position: relative;
}

#rt-footer-surround::after {
	content: "";
	position: absolute;
	top: 112px;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 0 0 10px 10px;
}

/* Position container underlays (subtle panels) */
#rt-showcase .rt-container,
#rt-feature .rt-container,
#rt-utility .rt-container,
#rt-breadcrumbs .rt-container,
#rt-maintop .rt-container,
#rt-mainbottom .rt-container,
#rt-extension .rt-container,
#rt-bottom .rt-container,
#rt-footer .rt-container {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	border-radius: 6px;
}

.main-body-style-light #rt-showcase .rt-container,
.main-body-style-light #rt-feature .rt-container,
.main-body-style-light #rt-utility .rt-container,
.main-body-style-light #rt-breadcrumbs .rt-container,
.main-body-style-light #rt-maintop .rt-container,
.main-body-style-light #rt-mainbottom .rt-container,
.main-body-style-light #rt-extension .rt-container,
.main-body-style-light #rt-bottom .rt-container,
.main-body-style-light #rt-footer .rt-container {
	background: url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

#rt-main {
	background: url('/lv_eho/images/overlays/mainbody-dark.png') 0 0 repeat-y;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.35);
}

.main-body-style-light #rt-main {
	background: url('/lv_eho/images/overlays/mainbody-light.png') 0 0 repeat-y;
}

/* Transition and main layout underlays */
#rt-transition {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.18);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.main-body-style-light #rt-transition {
	background: url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.5);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

#rt-main .rt-container {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
	border-radius: 6px;
	display: flex !important;
	align-items: stretch !important;
	gap: 5px !important;
	padding: 5px !important;
}

/* Обнуляем margin для flex-дочерних элементов */
#rt-main .rt-container > div[class*="rt-grid-"] {
	margin: 0 !important;
	float: none !important;
}

/* Растягиваем среднюю колонку на все доступное пространство */
#rt-main .rt-container > .rt-grid-6 {
	flex: 1 !important;
}

.main-body-style-light #rt-main .rt-container {
	background: url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Footer/copyright underlays */
#rt-footer-content,
#rt-copyright {
	background: url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.35);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.main-body-style-light #rt-footer-content,
.main-body-style-light #rt-copyright {
	background: url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.7);
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* RT-TOP: match original header block styling only */
#rt-top {
	margin: 0 0 12px 0;
}

/* Horizontal navigation alignment fix */
#rt-navigation ul.menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0;
}

#rt-navigation ul.menu > li > a {
	white-space: nowrap;
	line-height: 1.2;
}

#rt-top .rt-container {
	width: 100%;
	max-width: 1200px;
	background: url('/lv_eho/images/overlays/header-top-dark.png') 0 0 repeat, url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.12);
	background-blend-mode: overlay;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	border-left: 1px solid rgba(255, 255, 255, 0.04);
	border-right: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 rgba(255, 255, 255, 0.06);
	border-radius: 10px 10px 0 0;
	padding: 12px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* Navigation panel under menu (match top panel feel) */

#rt-navigation {
	width: 100%;
	background: url('/lv_eho/images/overlays/header-bottom-dark.png') 0 0 repeat, url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.12);
	background-blend-mode: overlay;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	border-left: 1px solid rgba(255, 255, 255, 0.05);
	border-right: 1px solid rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 rgba(0, 0, 0, 0.2);
	border-radius: 0 0 10px 10px;
	padding: 6px 0;
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#rt-navigation:before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px circle at 0% 0%, rgba(227, 124, 0, 0.12), transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
	border-radius: inherit;
}

#rt-navigation:hover {
	transform: none;
	box-shadow: 0 0 10px rgba(227, 124, 0, 0.18), 0 16px 22px -6px rgba(227, 124, 0, 0.75);
}

#rt-top-surround #rt-navigation:hover {
	box-shadow: 0 0 10px rgba(227, 124, 0, 0.18), 0 16px 22px -6px rgba(227, 124, 0, 0.75);
}

#rt-navigation:hover:before {
	opacity: 1;
}

/* Prevent menu block hover from shrinking/flicker */
#rt-navigation .rt-block,
#rt-navigation .module-content {
	background: transparent;
	border: 0;
	box-shadow: none;
}

#rt-navigation .rt-block:hover {
	transform: none;
	box-shadow: none;
	border-color: transparent;
}

#rt-navigation .rt-block:hover:before {
	opacity: 0;
}

.main-body-style-light #rt-navigation {
	background: url('/lv_eho/images/overlays/header-bottom-light.png') 0 0 repeat, url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.2);
	background-blend-mode: overlay;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	border-left: 1px solid rgba(0, 0, 0, 0.04);
	border-right: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 0 rgba(0, 0, 0, 0.05);
}

#rt-top .rt-grid-12 {
	background: url('/lv_eho/images/overlays/header-top-dark.png') 0 0 repeat, url('/lv_eho/images/overlays/dark.png') 0 0 repeat;
	background-color: rgba(0, 0, 0, 0.12);
	background-blend-mode: overlay;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	border-bottom: 1px solid rgba(0, 0, 0, 0.3);
	border-left: 1px solid rgba(255, 255, 255, 0.04);
	border-right: 1px solid rgba(255, 255, 255, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 0 rgba(255, 255, 255, 0.06);
	border-radius: 10px 10px 0 0;
	padding: 12px 0;
}

.main-body-style-light #rt-top .rt-container {
	background: url('/lv_eho/images/overlays/header-top-light.png') 0 0 repeat, url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.12);
	background-blend-mode: overlay;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	border-left: 1px solid rgba(0, 0, 0, 0.04);
	border-right: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 0 rgba(0, 0, 0, 0.05);
}

.main-body-style-light #rt-top .rt-grid-12 {
	background: url('/lv_eho/images/overlays/header-top-light.png') 0 0 repeat, url('/lv_eho/images/overlays/light.png') 0 0 repeat;
	background-color: rgba(255, 255, 255, 0.12);
	background-blend-mode: overlay;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
	border-left: 1px solid rgba(0, 0, 0, 0.04);
	border-right: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 0 rgba(0, 0, 0, 0.05);
}

#rt-top .rt-grid-3 {
	flex: 0 0 33.333%;
	margin: 0;
	position: relative;
}

#rt-top .rt-grid-3 + .rt-grid-3:before {
	content: "";
	position: absolute;
	left: -10px;
	top: 6px;
	bottom: 6px;
	width: 1px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.06));
	opacity: 0.8;
}

#rt-top .rt-grid-3:nth-child(1) { order: 2; display: flex; justify-content: center; }
#rt-top .rt-grid-3:nth-child(2) { order: 1; display: flex; justify-content: flex-start; }
#rt-top .rt-grid-3:nth-child(3) { order: 3; display: flex; justify-content: flex-end; }

#rt-top .rt-logo img {
	height: 48px;
	width: auto;
	display: block;
}

#rt-top .rt-logo {
	width: 165px;
	height: 48px;
	margin: 0 auto;
	display: block;
}

#rt-top .rt-block,
#rt-top .module-content {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

#rt-top .rt-social-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
}

#rt-top .rt-social-buttons .social-button {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.45));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 2px 6px rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 11px;
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

#rt-top .rt-social-buttons .social-button i {
	line-height: 1;
}

#rt-top .rt-social-buttons .social-button:hover {
	transform: translateY(-1px);
	background: #E37C00;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#rt-top .rt-login-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

#rt-top .rt-login-form .inputbox {
	background: rgba(0, 0, 0, 0.35);
	background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.2));
	border: 1px solid rgba(0, 0, 0, 0.3);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	border-radius: 4px;
	color: #fff;
	padding: 6px 10px;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	height: 26px;
	width: 110px;
}

#rt-top .rt-login-form .inputbox::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

#rt-top .rt-login-form .inputbox:focus {
	outline: none;
	border-color: rgba(227, 124, 0, 0.6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(227, 124, 0, 0.2);
}

#rt-top .rt-login-form .button {
	background: #E37C00;
	border: 0;
	border-radius: 4px;
	color: #fff;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
	transition: background 0.2s ease, transform 0.2s ease;
}

#rt-top .rt-login-form .button:hover {
	background: #f08a1a;
	transform: translateY(-1px);
}

#rt-mainbody .component-content.is-loading {
	opacity: 0.65;
	filter: grayscale(0.1);
	transition: opacity 0.2s ease;
	pointer-events: none;
}

/* Navigation: restore horizontal layout + dynamic effects */
#rt-navigation #horizmenu-surround .menutop {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	position: relative;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

#rt-navigation #horizmenu-surround .menutop > li {
	float: none !important;
	position: relative;
	list-style: none !important;
	border-right: 1px solid rgba(255, 255, 255, 0.06);
	transition: color 0.2s ease;
}

#rt-navigation #horizmenu-surround .menutop > li::before,
#rt-navigation #horizmenu-surround .menutop > li::after {
	content: "";
	position: absolute;
	left: -3px;
	right: 0;
	height: 1px;
	opacity: 0;
	background: linear-gradient(to right, rgba(0,0,0,0), rgba(227,124,0,0.25) 30%, rgba(227,124,0,0.7));
	transition: opacity 0.2s ease;
}

#rt-navigation #horizmenu-surround .menutop > li::before { top: 0; }
#rt-navigation #horizmenu-surround .menutop > li::after { bottom: 0; }

#rt-navigation #horizmenu-surround .menutop > li:first-child {
	border-left: 1px solid rgba(255, 255, 255, 0.06);
}

#rt-navigation #horizmenu-surround .menutop > li > a.item {
	display: block;
	padding: 15px 20px;
	color: #ffffff !important;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.4px;
	background: transparent;
	text-shadow: 0 1px 1px rgba(0,0,0,0.5);
	border-bottom: 5px solid transparent;
	transition: color 0.2s ease, border-bottom-color 0.2s ease, background 0.2s ease;
}

#rt-navigation #horizmenu-surround .menutop > li > a.item:hover,
#rt-navigation #horizmenu-surround .menutop > li.active > a.item {
	color: var(--main-accent, #E37C00) !important;
	background: linear-gradient(to right, rgba(0,0,0,0), rgba(227,124,0,0.15) 30%, rgba(227,124,0,0.35));
	border-right: 1px solid var(--main-accent, #E37C00);
	border-bottom-color: rgba(0,0,0,0.8);
}

/* Semi-transparent hover underlays */
#rt-navigation #horizmenu-surround .menutop > li > a.item:hover {
	background-image: linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(0,0,0,0.25)),
		linear-gradient(to right, rgba(0,0,0,0), rgba(227,124,0,0.15) 30%, rgba(227,124,0,0.35));
}

#rt-navigation #horizmenu-surround .menutop > li.active > a.item {
	background-image: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(0,0,0,0.35)),
		linear-gradient(to right, rgba(0,0,0,0), rgba(227,124,0,0.2) 30%, rgba(227,124,0,0.4));
}

.readon:hover,
.button:hover,
.btn:hover {
	box-shadow: 0 6px 18px rgba(255,102,0,0.45), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Modern buttons with shadows */
.readon,
.button,
.btn {
	border-radius: 12px !important;
	padding: 10px 20px !important;
	background: linear-gradient(135deg, rgba(255,140,60,0.98), rgba(227,124,0,0.95)) !important;
	box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35) !important;
	border: 1px solid rgba(255,255,255,0.18) !important;
	backdrop-filter: blur(2px);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.readon:hover,
.button:hover,
.btn:hover {
	transform: translateY(-1px) !important;
	filter: brightness(1.05) !important;
}

.readon2 {
	border-radius: 12px !important;
	padding: 8px 16px !important;
	background: linear-gradient(135deg, rgba(255,140,60,0.98), rgba(227,124,0,0.95)) !important;
	box-shadow: 0 10px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.35) !important;
	border: 1px solid rgba(255,255,255,0.18) !important;
	color: #fff !important;
	text-transform: uppercase !important;
}

#rt-navigation #horizmenu-surround .menutop > li:hover::before,
#rt-navigation #horizmenu-surround .menutop > li:hover::after,
#rt-navigation #horizmenu-surround .menutop > li.active::before,
#rt-navigation #horizmenu-surround .menutop > li.active::after {
	opacity: 1;
}

.main-body-style-light #rt-navigation #horizmenu-surround .menutop > li > a.item:hover,
.main-body-style-light #rt-navigation #horizmenu-surround .menutop > li.active > a.item {
	border-bottom-color: rgba(255,255,255,0.8);
}

/* Original Gantry menu styling (top navigation) */
#rt-navigation { padding: 0 !important; }
#rt-navigation .rt-block { padding: 0 !important; }
#rt-navigation .module-content {
	display: block;
	padding: 4px 0;
	min-height: 52px;
}
#rt-navigation #horizmenu-surround {
	margin: 0 !important;
	width: 100%;
	max-width: 1200px;
	padding: 0 24px;
	box-sizing: border-box;
}

#rt-navigation #horizmenu-surround .menutop.level1 {
	justify-content: center;
	gap: 0;
}

#rt-navigation #horizmenu-surround .menutop > li > a.item {
	line-height: 1.6;
	padding: 18px 22px !important;
}

#rt-navigation #horizmenu-surround .menutop > li > a.item {
	background: transparent !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 15px 20px !important;
	text-shadow: 0 1px 1px rgba(0,0,0,0.5) !important;
	border-bottom: 5px solid transparent !important;
}

#rt-navigation #horizmenu-surround .menutop > li > a.item::after {
	display: none !important;
}

#rt-navigation #horizmenu-surround .menutop > li.active > a.item,
#rt-navigation #horizmenu-surround .menutop > li:hover > a.item {
	color: var(--main-accent, #E37C00) !important;
	border-bottom-color: rgba(0,0,0,0.8) !important;
}

.main-body-style-light #rt-navigation #horizmenu-surround .menutop > li.active > a.item,
.main-body-style-light #rt-navigation #horizmenu-surround .menutop > li:hover > a.item {
	border-bottom-color: rgba(255,255,255,0.8) !important;
}

/* Search box in navigation (if present) */
#rt-navigation .roksearch,
#rt-navigation .rt-search {
	float: right;
	margin: 6px 10px 6px 0;
}

#rt-navigation .roksearch .inputbox,
#rt-navigation .rt-search .inputbox {
	height: 26px;
	border-radius: 4px;
	background: rgba(0,0,0,0.35);
	border: 1px solid rgba(0,0,0,0.3);
	color: #fff;
	padding: 4px 10px;
}

#rt-navigation ul.menu,
#rt-top-surround ul.menu {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 8px;
}

#rt-navigation ul.menu > li,
#rt-top-surround ul.menu > li {
	list-style: none !important;
	float: none !important;
	width: auto !important;
}

#rt-navigation ul.menu > li > a,
#rt-top-surround ul.menu > li > a {
	display: block;
	padding: 12px 18px;
	color: #ffffff !important;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.4px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.18);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#rt-navigation ul.menu > li > a::after,
#rt-top-surround ul.menu > li > a::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 6px;
	height: 2px;
	background: var(--main-accent, #E37C00);
	opacity: 0;
	transform: scaleX(0.2);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

#rt-navigation ul.menu > li > a:hover,
#rt-navigation ul.menu > li.active > a,
#rt-top-surround ul.menu > li > a:hover,
#rt-top-surround ul.menu > li.active > a {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff !important;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
	transform: translateY(-1px);
}

#rt-navigation ul.menu > li > a:hover::after,
#rt-navigation ul.menu > li.active > a::after,
#rt-top-surround ul.menu > li > a:hover::after,
#rt-top-surround ul.menu > li.active > a::after {
	opacity: 1;
	transform: scaleX(1);
}

#rt-mainbody .rt-blog .items-row .rt-grid-6 {
	float: none;
	width: 100% !important;
	margin: 0 !important;
	display: block;
}

#rt-mainbody .rt-article,
#rt-mainbody .rt-article-bg {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 22px 26px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	color: #e2e2e8;
}

#rt-mainbody .rt-article-title .title {
	color: #f1f1f6;
	margin-bottom: 6px;
}

#rt-mainbody .rt-article-meta {
	color: #c1c2ce;
}

#rt-mainbody .rt-article-links .readon {
	background: var(--main-accent, #E37C00);
	border-radius: 6px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Extension section styling to match theme */
#rt-extension .rt-block {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
	color: #e2e2e8;
	margin-bottom: 25px;
}

#rt-extension h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #f1f1f6;
	margin: 0 0 14px;
}

#rt-extension p {
	color: #c8c9d6;
}

#rt-extension .icon,
#rt-extension .rt-extras-item .icon {
	color: var(--main-accent, #E37C00);
}

#rt-extension .rt-news-item img {
	display: block;
	max-width: 100%;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	margin-bottom: 12px;
}

#rt-extension .readon2 {
	color: var(--main-accent, #E37C00);
	text-decoration: none;
	font-weight: 600;
}

#rt-extension .readon2:hover {
	color: #f2a23a;
}

/* Extension cards: dynamic hover and accent */
#rt-extension .rt-block {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#rt-extension .rt-block:before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px circle at 0% 0%, rgba(227, 124, 0, 0.12), transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

#rt-extension .rt-block:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
	border-color: rgba(227, 124, 0, 0.35);
}

#rt-extension .rt-block:hover:before {
	opacity: 1;
}

#rt-extension .icon,
#rt-extension .rt-extras-item .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(227, 124, 0, 0.12);
	border: 1px solid rgba(227, 124, 0, 0.35);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#rt-extension .rt-block:hover .icon,
#rt-extension .rt-block:hover .rt-extras-item .icon {
	transform: scale(1.08) rotate(-3deg);
	box-shadow: 0 8px 18px rgba(227, 124, 0, 0.25);
}

#rt-extension .rt-news-item img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#rt-extension .rt-block:hover .rt-news-item img {
	transform: scale(1.02);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

#rt-extension .rt-news-item h4 {
	margin-top: 4px;
	color: #f1f1f6;
}

#rt-extension .rt-news-item p {
	color: #c1c2ce;
}

/* Global block hover (rt-extras style) */
.rt-block {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rt-block:before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px circle at 0% 0%, rgba(227, 124, 0, 0.12), transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.rt-block:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
	border-color: rgba(227, 124, 0, 0.35);
}

.rt-block:hover:before {
	opacity: 1;
}

.rt-block .icon,
.rt-block .rt-extras-item .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(227, 124, 0, 0.12);
	border: 1px solid rgba(227, 124, 0, 0.35);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rt-block:hover .icon,
.rt-block:hover .rt-extras-item .icon {
	transform: scale(1.08) rotate(-3deg);
	box-shadow: 0 8px 18px rgba(227, 124, 0, 0.25);
}

.rt-block .rt-news-item img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rt-block:hover .rt-news-item img {
	transform: scale(1.02);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Extension cards: dynamic hover and accent */
#rt-extension .rt-block {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#rt-extension .rt-block:before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(600px circle at 0% 0%, rgba(227, 124, 0, 0.12), transparent 60%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

#rt-extension .rt-block:hover {
	transform: translateY(-6px);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
	border-color: rgba(227, 124, 0, 0.35);
}

#rt-extension .rt-block:hover:before {
	opacity: 1;
}

#rt-extension .icon,
#rt-extension .rt-extras-item .icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(227, 124, 0, 0.12);
	border: 1px solid rgba(227, 124, 0, 0.35);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#rt-extension .rt-block:hover .icon,
#rt-extension .rt-block:hover .rt-extras-item .icon {
	transform: scale(1.08) rotate(-3deg);
	box-shadow: 0 8px 18px rgba(227, 124, 0, 0.25);
}

#rt-extension .rt-news-item img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#rt-extension .rt-block:hover .rt-news-item img {
	transform: scale(1.02);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

#rt-extension .rt-news-item h4 {
	margin-top: 4px;
	color: #f1f1f6;
}

#rt-extension .rt-news-item p {
	color: #c1c2ce;
}

/* Footer cards styling */
#rt-footer .rt-block {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 22px;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
	color: #e2e2e8;
	margin-bottom: 28px;
}

#rt-footer .module-title .title {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #f1f1f6;
	margin: 0 0 12px;
}

#rt-footer .module-content p,
#rt-footer .module-content a,
#rt-footer .module-content li {
	color: #c8c9d6;
}

#rt-footer .module-content a:hover {
	color: var(--main-accent, #E37C00);
}

#rt-footer .module-content .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

#rt-footer .module-content .menu li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#rt-footer .module-content .menu li:last-child {
	border-bottom: none;
}

#rt-footer .readon,
#rt-footer button.readon {
	background: var(--main-accent, #E37C00);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#rt-footer .readon:hover,
#rt-footer button.readon:hover {
	background: #f2a23a;
}

#rt-footer .newsletter-form input[type="email"] {
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	border-radius: 6px;
}

/* Footer layout: clean grid, no clutter */
#rt-footer .rt-container {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

#rt-footer .rt-grid-3 {
	float: none;
	width: calc(33.333% - 20px);
	margin: 0;
}

#rt-footer .rt-block {
	text-align: left;
}

@media (max-width: 1100px) {
	#rt-footer .rt-grid-3 { width: calc(50% - 20px); }
}

@media (max-width: 700px) {
	#rt-footer .rt-grid-3 { width: 100%; }
}

/* Mainbody 3-6-3 alignment (match original Eho grid offsets) */
.rt-container > .rt-grid-1:first-child,
.rt-container > .rt-grid-2:first-child,
.rt-container > .rt-grid-3:first-child,
.rt-container > .rt-grid-4:first-child,
.rt-container > .rt-grid-5:first-child,
.rt-container > .rt-grid-6:first-child,
.rt-container > .rt-grid-7:first-child,
.rt-container > .rt-grid-8:first-child,
.rt-container > .rt-grid-9:first-child,
.rt-container > .rt-grid-10:first-child,
.rt-container > .rt-grid-11:first-child,
.rt-container > .rt-grid-12:first-child {
	margin-left: 0;
}

/* Align sidebars with mainbody vertical rhythm */
#rt-sidebar-a,
#rt-sidebar-b {
	margin: 0;
}

/* Sidebar blocks styling to match original dark panels */
#rt-sidebar-a .rt-block,
#rt-sidebar-b .rt-block {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 6px;
	padding: 20px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	color: #e2e2e8;
	margin: 0 0 25px 0;
}

#rt-sidebar-a .module-title,
#rt-sidebar-b .module-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #f1f1f6;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 8px;
	margin: 0 0 14px;
}

#rt-sidebar-a .menu,
#rt-sidebar-b .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

#rt-sidebar-a .menu li,
#rt-sidebar-b .menu li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#rt-sidebar-a .menu li:last-child,
#rt-sidebar-b .menu li:last-child {
	border-bottom: none;
}

#rt-sidebar-a .menu a,
#rt-sidebar-b .menu a {
	display: block;
	padding: 7px 0;
	color: #d7d7e0;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

#rt-sidebar-a .menu a:hover,
#rt-sidebar-b .menu a:hover {
	color: #f2a23a;
	padding-left: 6px;
}

#rt-sidebar-a .menu .active > a,
#rt-sidebar-b .menu .active > a {
	color: #f2a23a;
}

/* Article cards and headline styling */
#rt-mainbody .rt-blog .rt-headline {
	font-family: 'Montserrat', sans-serif;
	font-size: 26px;
	color: #2f2f38;
	margin: 0 0 18px;
}

#rt-mainbody .rt-article {
	background: rgba(255, 255, 255, 0.96);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	padding: 22px;
	margin-bottom: 20px;
}

#rt-mainbody .rt-article-title .title {
	font-family: 'Montserrat', sans-serif;
	font-size: 20px;
	color: #2c2c33;
	margin: 0 0 10px;
}

#rt-mainbody .rt-article-meta {
	font-size: 12px;
	color: #7a7a86;
}

#rt-mainbody .rt-article-links .readon {
	display: inline-block;
	margin-top: 12px;
	background: #f2a23a;
	color: #fff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#rt-mainbody .rt-article-links .readon:hover {
	background: #d98b2a;
}

/* Copyright center alignment */
#rt-copyright .rt-copyright,
#rt-copyright .rt-copyright p {
	text-align: center !important;
	margin: 5px 0 !important;
}

#rt-copyright .rt-copyright a {
	color: var(--main-accent, #E37C00);
	text-decoration: none;
}

#rt-copyright .rt-copyright a:hover {
	color: #f2a23a;
	text-decoration: underline;
}

#rt-copyright .rt-container {
	display: flex;
	justify-content: center;
}

#rt-copyright .rt-grid-4 {
	float: none !important;
	width: auto !important;
	margin: 0 auto !important;
}

/* Mainbottom description styling */
#rt-mainbottom {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Blog cards: full width + dark theme + dynamic hover */
#rt-mainbody .rt-blog .items-row {
	display: block;
}

#rt-mainbody .rt-blog .items-row > .rt-grid-6 {
	width: 100% !important;
	margin-left: 0 !important;
}

#rt-mainbody .rt-blog .items-row .rt-grid-6 {
	float: none;
	width: 100% !important;
	margin: 0 !important;
	display: block;
}

#rt-mainbody .rt-article,
#rt-mainbody .rt-article-bg {
	background: rgba(0, 0, 0, 0.35) !important;
	background-image: none !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-radius: 10px !important;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35) !important;
	padding: 22px 26px;
	color: #e2e2e8 !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#rt-mainbody .rt-article:hover,
#rt-mainbody .rt-article-bg:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45) !important;
	border-color: rgba(227, 124, 0, 0.35) !important;
}

#rt-mainbody .rt-article-title .title {
	color: #f1f1f6;
}

#rt-mainbody .rt-article-meta {
	color: #c1c2ce;
}

#rt-mainbody .rt-article-links .readon {
	background: var(--main-accent, #E37C00) !important;
	border-radius: 6px !important;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25) !important;
}

#rt-mainbody .rt-article-links .readon:hover {
	background: #f2a23a !important;
}

#rt-mainbottom .rt-container {
	display: flex;
	justify-content: center;
}

#rt-mainbottom .rt-grid-3 {
	float: none !important;
	width: 100% !important;
	max-width: 860px;
	margin: 0 auto !important;
}

#rt-mainbottom .rt-block {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 32px;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

#rt-mainbottom .rt-description h2 {
	font-family: 'Montserrat', sans-serif;
	font-size: 28px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: #f1f1f6;
	text-align: center;
	margin: 0 0 12px;
}

#rt-mainbottom .rt-description p {
	color: #c8c9d6;
	line-height: 1.75;
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
}

#rt-mainbottom .rt-block {
	position: relative;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#rt-mainbottom .rt-block:before {
	content: "";
	position: absolute;
	left: -30%;
	top: -60%;
	width: 160%;
	height: 200%;
	background: radial-gradient(500px circle at 50% 0%, rgba(227, 124, 0, 0.12), transparent 60%);
	opacity: 0.3;
	animation: mainbottomGlow 6s ease-in-out infinite;
	pointer-events: none;
}

#rt-mainbottom .rt-block:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
	border-color: rgba(227, 124, 0, 0.35);
}

@keyframes mainbottomGlow {
	0% { transform: translateY(0) scale(1); opacity: 0.25; }
	50% { transform: translateY(10px) scale(1.03); opacity: 0.45; }
	100% { transform: translateY(0) scale(1); opacity: 0.25; }
}
