/**
 * CoinGape mega menu navbar
 */

 .sn-bar--main {
	padding: 0;
	background: transparent;
	position: sticky;
	top: 0;
	z-index: 100;
}

.sn-bar--main .container-fluid {
	max-width: 1400px;
}

/* =========================
   NAVBAR
   ========================= */

.custom-navbar {
	background: var(--sn-navy, #1C0A14);
	padding: 0;
	position: relative;
	width: 100%;
}

.custom-navbar .navbar-brand {
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	padding-top: 0;
	padding-bottom: 0;
}

.custom-navbar .navbar-brand--image {
	font-size: 0;
	line-height: 0;
}

.custom-navbar .sn-navbar-logo {
	display: block;
	width: auto;
	max-width: 200px;
	height: 32px;
	object-fit: contain;
}

.custom-navbar .nav-link {
	color: #fff !important;
    padding: 14px 16px !important;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    font-family: 'Montserrat';
}

.custom-navbar .nav-link:hover {
	background: var(--snf-card, #2A1520);
}

.mega-dropdown > .nav-link.sn-nav-link--dropdown {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.mega-dropdown > .nav-link .sn-nav-chevron {
	flex-shrink: 0;
	margin-top: 0;
	transition: transform 0.2s ease;
}

.mega-dropdown.active-menu > .nav-link .sn-nav-chevron {
	transform: rotate(180deg);
}

.sn-navbar-utils {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px 12px;
}

@media (min-width: 992px) {
	#mainNavbar {
		display: flex !important;
		flex-wrap: nowrap;
		align-items: stretch;
	}

	#mainNavbar .navbar-nav {
		flex-wrap: wrap;
	}

	.sn-navbar-utils {
		padding: 0 16px 0 0;
		margin-left: auto;
		align-self: center;
	}
}

/* =========================
   MEGA MENU
   ========================= */

.mega-dropdown {
	position: static;
}

.dropdown-menu-custom {
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
	background: #006a94;
	display: none;
	z-index: 999;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-dropdown.active-menu .dropdown-menu-custom {
	display: block;
}

.dropdown-menu-custom > .container-fluid {
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
}

/* =========================
   LEFT MENU
   ========================= */

.left-menu {
	background: #04506e;
	min-height: 350px;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.left-menu ul {
	list-style: none;
	padding: 15px 0;
	margin: 0;
}

.left-menu li {
	color: #fff;
	padding: 10px 24px;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	transition: 0.3s;
}

.left-menu li:hover,
.left-menu li.active {
	background: #006a948a;
}

/* =========================
   CENTER LINKS
   ========================= */

.center-links {
	padding: 30px;
}

.link-group {
	display: none;
}

.link-group.active {
	display: block;
}

.center-links a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 14px 0;
	font-size: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	transition: 0.3s;
}

.center-links a:hover {
	color: var(--snf-heading);
	padding-left: 8px;
}

/* =========================
   RIGHT POSTS
   ========================= */

.right-content {
	padding: 30px;
}

.menu-card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 14px;
}

.menu-card h4 {
	color: #fff;
	font-size:16px;
	line-height: 1.5;
	margin-top: 15px;
	font-weight: 700;
}

.menu-card p {
	color: #fff;
	margin-top: 10px;
	font-size: 16px;
}

.menu-card--linked {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.menu-card--linked:hover {
	opacity: 0.92;
}

.menu-card--linked h4 {
	color: #fff;
}

.menu-card--linked:hover h4 {
	color: #fff;
}

/* =========================
   NEWS MEGA MENU
   ========================= */

.news-mega-links {
	padding: 35px 40px;
	border-right: 1px solid rgba(255, 255, 255, 0.1);
	min-height: 350px;
}

.news-mega-links a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	padding: 10px 0;
	transition: 0.3s;
}

.news-mega-links a:hover {
	color: #fff;
	padding-left: 8px;
}

.mega-dropdown--news .right-content {
	border-left: none;
}

@media (max-width: 991px) {
	.news-mega-links {
		min-height: auto;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		padding: 24px 20px;
	}
}

html.sn-theme-light .news-mega-links {
	border-right-color: var(--snf-border);
}

html.sn-theme-light .news-mega-links a {
	color: var(--snf-title);
}

html.sn-theme-light .news-mega-links a:hover {
	color: var(--snf-link-hover);
}

html.sn-theme-light .menu-card--linked h4 {
	color: var(--snf-title);
}

@media (max-width: 991px) {
	html.sn-theme-light .news-mega-links {
		border-bottom-color: var(--snf-border);
	}
}

/* =========================
   SIMPLE MENU
   ========================= */

.simple-links {
	padding: 35px;
}

.simple-links .row {
	row-gap: 15px;
}

.simple-links a {
	display: block;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	padding: 10px 0;
	transition: 0.3s;
}

.simple-links a:hover {
	color:#fff;
	padding-left: 8px;
}

/* Utils inside navbar */
.sn-bar--main .sn-icon-btn {
	color: #fff;
}

.sn-bar--main .sn-btn--ecosystem {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.85);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 991px) {
	.custom-navbar .navbar-brand {
		font-size: 28px;
	}

	.custom-navbar .nav-link {
		padding: 16px 18px !important;
	}

	.dropdown-menu-custom {
		position: relative;
	}

	.left-menu {
		min-height: auto;
	}

	.menu-card {
		margin-top: 25px;
	}

	.menu-card img {
		height: 180px;
	}

	.sn-navbar-utils {
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		padding-top: 12px;
		margin-top: 8px;
	}
}

/* Light theme */
html.sn-theme-light .custom-navbar,
html.sn-theme-light .dropdown-menu-custom {
	background: #fff;
}

html.sn-theme-light .custom-navbar .navbar-brand,
html.sn-theme-light .custom-navbar .nav-link {
	color: var(--snf-title) !important;
}

html.sn-theme-light .custom-navbar .nav-link:hover {
	background: var(--snf-hover-bg);
	color: var(--snf-link-hover) !important;
}

html.sn-theme-light .left-menu {
	background: var(--snf-bg-alt);
	border-right-color: var(--snf-border);
}

html.sn-theme-light .left-menu li {
	color: var(--snf-title);
}

html.sn-theme-light .left-menu li:hover,
html.sn-theme-light .left-menu li.active {
	background: var(--snf-hover-bg);
	color: var(--snf-brand);
}

html.sn-theme-light .center-links a,
html.sn-theme-light .simple-links a {
	color: var(--snf-title);
	border-bottom-color: var(--snf-border);
}

html.sn-theme-light .center-links a:hover,
html.sn-theme-light .simple-links a:hover {
	color: var(--snf-link-hover);
}

html.sn-theme-light .menu-card h4 {
	color: var(--snf-title);
}

html.sn-theme-light .menu-card p {
	color: var(--snf-link);
}

html.sn-theme-light .sn-bar--main .sn-icon-btn {
	color: var(--snf-title);
}

html.sn-theme-light .sn-bar--main .sn-btn--ecosystem {
	color: var(--snf-title);
	border-color: rgba(45, 36, 48, 0.35);
}

html.sn-theme-light .dropdown-menu-custom {
	border-top-color: #e0e0e0;
}
