/* Itihas: large header logo on a full-width light blue header (OJS Default theme) */

/* ---------- Header area: light blue across the whole width ---------- */
.pkp_structure_head,
.pkp_structure_head .pkp_head_wrapper {
	background: #bbdef2 !important;
	background-color: #bbdef2 !important;
	background-image: none !important;
	border-bottom: 0 !important;
}
.pkp_structure_head {
	position: relative !important;
	height: auto !important;
}
.pkp_head_wrapper {
	position: relative !important;
	height: auto !important;
	padding-top: 0 !important;
}

/* ---------- Logo ---------- */
.pkp_site_name_wrapper {
	position: relative !important;
	height: auto !important;
	min-height: 0 !important;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
}
.pkp_site_name {
	position: static !important;
	display: block !important;
	height: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: visible !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	float: none !important;
	background: transparent !important;
}
.pkp_site_name .is_img,
.pkp_site_name > a {
	position: static !important;
	display: block !important;
	height: auto !important;
	margin: 0 !important;
	max-height: none !important;
	background: transparent !important;
}
.pkp_site_name .is_img img,
.pkp_site_name > a img {
	position: static !important;
	display: block !important;
	height: auto !important;
	max-height: none !important;
	width: auto !important;
	max-width: 100% !important;
}

/* Large screens: logo height */
@media (min-width: 992px) {
	.pkp_site_name .is_img img,
	.pkp_site_name > a img {
		height: 170px !important;
		max-height: 170px !important;
	}
}

/* Phones and tablets: full width, room on the left for the menu button */
@media (max-width: 991px) {
	.pkp_site_name_wrapper {
		padding: 10px 10px 10px 52px !important;
	}
	.pkp_site_name .is_img img,
	.pkp_site_name > a img {
		width: 100% !important;
	}
	.pkp_site_nav_toggle {
		top: 50% !important;
		transform: translateY(-50%);
		background-color: #09275e !important;
	}
}

/* ---------- Menu bar: dark blue across the whole width ---------- */
html, body {
	overflow-x: hidden;
}
.pkp_navigation_primary_row {
	position: relative !important;
	z-index: 10;
	background-color: #09275e !important;
}
/* full-width strip behind the menu (does not cut off the dropdowns) */
.pkp_navigation_primary_row::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 100vw;
	transform: translateX(-50%);
	background: #09275e;
	z-index: -1;
}

/* Top-level menu items */
.pkp_navigation_primary > li > a,
.pkp_navigation_search_wrapper a {
	color: #ffffff !important;
}
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus,
.pkp_navigation_primary > li:hover > a,
.pkp_navigation_primary > li:focus-within > a {
	background: #ffffff !important;
	color: #09275e !important;
	border-color: #ffffff !important;
}

/* Dropdown menus (About, etc.) */
.pkp_navigation_primary ul {
	background: #ffffff !important;
	z-index: 1000 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.pkp_navigation_primary ul a {
	color: #09275e !important;
	background: #ffffff !important;
	border-left-color: transparent !important;
}
.pkp_navigation_primary ul a:hover,
.pkp_navigation_primary ul a:focus {
	background: #e6f2fb !important;
	color: #09275e !important;
	border-left-color: #0062b2 !important;
}

/* ---------- User name / Register / Login (top right) ---------- */
.pkp_navigation_user_wrapper a,
.pkp_navigation_user > li > a {
	color: #09275e !important;
}
.pkp_navigation_user .task_count {
	background: #09275e !important;
	color: #ffffff !important;
}

/* Hide the "Platform & workflow by OJS / PKP" footer logo */
.pkp_brand_footer { display: none !important; }

/* Footer: navy full width, no grey padding around the footer box */
.pkp_structure_footer_wrapper { background: #09275e !important; }
.pkp_structure_footer { padding: 0 !important; }
.pkp_footer_content { padding: 0 !important; }
.pkp_footer_content a:hover { color: #ffffff !important; text-decoration: underline !important; }

/* Globe icon before the Parishad website link in the footer (drawn in CSS, so no emoji is needed) */
.pkp_footer_content a[href*="bangladeshitihasparishad"]::before {
  content: "";
  display: inline-block;
  width: 15px; height: 15px;
  margin-right: 6px;
  vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%239cc3ec' stroke-width='7'%3E%3Ccircle cx='50' cy='50' r='44'/%3E%3Cellipse cx='50' cy='50' rx='20' ry='44'/%3E%3Cline x1='50' y1='6' x2='50' y2='94'/%3E%3Cline x1='6' y1='50' x2='94' y2='50'/%3E%3Cpath d='M16 24 Q50 40 84 24'/%3E%3Cpath d='M16 76 Q50 60 84 76'/%3E%3C/svg%3E") no-repeat center / contain;
}
