/* Home page: remove the duplicated theme title */
.page-id-438 .entry-header {
	display: none;
}

/* Compact, clearer site header */
@media screen and (min-width: 768px) {
	.site-title {
		font-size: 40px;
		line-height: 1.1;
	}
	
	.custom-logo {
		max-height: 82px;
		width: auto;
	}
	
	.main-navigation {
		margin-top: 12px;
	}
	
	.main-navigation a {
		font-size: 14px;
		letter-spacing: .04em;
	}
}

/* Home page: remove theme-added posts and sidebar */
.home #front-page-recent-posts,
.home #secondary {
	display: none;
}

.home #primary,
.home #main {
	float: none;
	width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.home #primary .hentry,
.home #primary .entry-content {
	width: 100%;
	max-width: none;
}

/* Home page: use the new hero as the only banner */
.home .front-page-wrapper {
	display: none;
}

/* Site name: clearer hierarchy and better mobile wrapping */
.site-title {
	text-transform: none;
}

@media screen and (max-width: 767px) {
	.site-branding {
		width: 100%;
	}
	
	.site-title {
		font-size: 28px;
		line-height: 1.15;
	}
}

@media screen and (max-width: 767px) {
	.site-branding {
		max-width: 100%;
	}
}

/* Permanent site header: approved blue palette */
.branding-container {
	background: #123b4a;
	border-bottom: 3px solid #d7b221;
	box-shadow: 0 3px 14px rgba(18, 59, 74, .16);
}

.site-title a,
.site-title a:visited {
	color: #ffffff;
}

.branding-container .main-navigation .nav-menu > li > a,
.branding-container .main-navigation .nav-menu > li > a:visited {
	color: #f7fafb;
}

.branding-container .main-navigation .nav-menu > li > a:hover,
.branding-container .main-navigation .nav-menu > li > a:focus {
	color: #d7b221;
}

body.home .branding-container .main-navigation #top-menu > li:first-child > a,
body:not(.home) .branding-container .main-navigation .nav-menu > li.current-menu-item > a,
body:not(.home) .branding-container .main-navigation .nav-menu > li.current_page_item > a {
	color: #d7b221;
}

.main-navigation ul ul {
	background: #ffffff;
	border-top-color: #d7b221;
}

.branding-container .main-navigation .sub-menu a,
.branding-container .main-navigation .sub-menu a:visited {
	color: #123b4a;
}

.branding-container .main-navigation .sub-menu a:hover,
.branding-container .main-navigation .sub-menu a:focus {
	background: #f3f6f7;
	color: #123b4a;
}

.menu-toggle {
	background: #d7b221;
	color: #ffffff;
}

/* Mobile header: preserve the approved blue palette */
@media screen and (max-width: 767px) {
	.site-header .branding-container {
		background-color: #123b4a !important;
		border-bottom: 3px solid #d7b221;
		box-shadow: 0 3px 14px rgba(18, 59, 74, .16);
	}
	
	.site-header .site-title a,
		.site-header .site-title a:visited {
		color: #ffffff !important;
	}
}

/* Language switcher: compact EN | RO */
.main-navigation .lang-item {
	display: inline-block;
	width: auto;
}

.main-navigation .lang-item > a {
	font-size: 0 !important;
	letter-spacing: 0;
}

.main-navigation .lang-item-en > a::after,
.main-navigation .lang-item-ro > a::after {
	font-size: 14px;
	letter-spacing: .04em;
}

.main-navigation .lang-item-en > a::after {
	content: "EN";
}

.main-navigation .lang-item-ro > a::after {
	content: "RO";
}

.main-navigation .lang-item-en {
	margin-left: 10px;
}

.main-navigation .lang-item-en::after {
	content: "|";
	color: rgba(247, 250, 251, .75);
}

.branding-container .main-navigation .lang-item.current-lang > a::after {
	color: #d7b221;
}

@media screen and (max-width: 767px) {
	.main-navigation .lang-item > a {
		display: inline-block;
		padding-right: 8px;
		padding-left: 8px;
	}
}


/* Facebook button: show the matching language */
html[lang="en-GB"] .facebook-button-ro {
	display: none !important;
}

html[lang="ro-RO"] .facebook-button-en {
	display: none !important;
}