@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800&display=swap');

/* Journal of Health Care Studies - own palette, structure matches Medclinic */

:root {
	--mc-navy:  #0B4F4A;
	--mc-red:   #B45309;
	--mc-gold:  #D9A441;
	--mc-mint:  #f1f8f6;
	--mc-mint2: #e2f0ec;
	--mc-wrap:  1200px;
}

body, .pkp_structure_page {
	font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

@keyframes mcFadeUp {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* 1. Fixed top bar */
#customblock-topbar {
	position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
	background: var(--mc-navy);
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
#customblock-topbar .title { display: none; }
#customblock-topbar .content {
	max-width: var(--mc-wrap); margin: 0 auto; padding: 9px 20px; box-sizing: border-box;
}
#customblock-topbar .mc-topbar {
	display: flex; flex-wrap: wrap; align-items: center;
	justify-content: space-between; gap: 8px;
	font-size: 14px; font-weight: 700; color: #fff;
}
#customblock-topbar .mc-topbar-auth a {
	color: #fff; font-weight: 700; text-decoration: none; transition: color .2s ease;
}
#customblock-topbar .mc-topbar-auth a:hover { color: var(--mc-gold); text-decoration: none; }
body { padding-top: 42px; }

/* 2. Masthead */
.pkp_head_wrapper { background-color: var(--mc-navy); padding-bottom: 0; }
.pkp_site_name_wrapper {
	display: flex; align-items: center; gap: 12px;
	max-width: var(--mc-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}
.pkp_site_name {
	flex: 1; border: 3px solid #fff; border-radius: 10px;
	padding: 12px 24px; margin: 14px 0; background: #fff;
	text-align: center; transition: border-color .25s ease;
}
.pkp_site_name:hover { border-color: var(--mc-gold); }
.pkp_site_name a, .pkp_site_name a.is_text {
	font-weight: 800; font-size: 1.9rem; color: var(--mc-navy);
	letter-spacing: .3px; text-decoration: none;
}
.pkp_site_name img { max-height: 80px; width: auto; }

/* 3. Primary nav */
.pkp_navigation_primary_row { background: var(--mc-navy); }
.pkp_navigation_primary_wrapper {
	max-width: var(--mc-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}
.pkp_navigation_primary > li > a {
	font-size: 14px; font-weight: 700; padding: 14px 11px; color: #fff;
	white-space: nowrap;
	transition: background-color .2s ease, color .2s ease;
}
.pkp_navigation_primary > li.current > a,
.pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary > li > a:focus-visible { background: var(--mc-red); color: #fff; }
.pkp_navigation_search_wrapper a { color: #fff; font-size: 14px; }

/* 4. Structure */
.pkp_structure_content {
	max-width: var(--mc-wrap); margin: 0 auto;
	padding-left: 20px; padding-right: 20px; box-sizing: border-box;
}
.pkp_structure_content::after { content: ""; display: table; clear: both; }
.pkp_structure_main {
	float: right; width: calc(100% - 312px); padding-bottom: 48px; box-sizing: border-box;
}
.pkp_structure_sidebar { float: left; width: 300px; box-sizing: border-box; }
.pkp_structure_main::before,
.pkp_structure_main::after { display: none !important; }

/* 5. Sidebar nav */
#customblock-journalmenu .content { padding: 0; }
#customblock-journalmenu .mc-sidenav {
	list-style: none; margin: 0 0 24px; padding: 0; border: 1px solid var(--mc-navy);
}
#customblock-journalmenu .mc-sidenav li {
	margin: 0; padding: 0; list-style: none;
	border-bottom: 1px solid rgba(255,255,255,0.25);
}
#customblock-journalmenu .mc-sidenav li::before { content: none; }
#customblock-journalmenu .mc-sidenav li:last-child { border-bottom: none; }
#customblock-journalmenu .mc-sidenav li a {
	display: block; background: var(--mc-navy); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1.35;
	padding: 10px 14px; text-decoration: none;
	transition: background-color .2s ease, padding-left .2s ease;
}
#customblock-journalmenu .mc-sidenav li a:hover,
#customblock-journalmenu .mc-sidenav li a:focus {
	background: var(--mc-red); padding-left: 20px; text-decoration: none;
}

/* 6. Other sidebar blocks */
#customblock-accesspolicy,
.pkp_block.block_custom:not(#customblock-topbar):not(#customblock-journalmenu) {
	border: 1px solid #dfe4e8; padding: 14px 16px; margin-bottom: 24px; background: #fbfcfd;
}

/* 7. Archives */
ul.issues_archive {
	margin: 0 !important; padding: 0 !important; list-style: none !important;
}
ul.issues_archive > li {
	margin: 0 0 3px !important; padding: 0 !important;
	border: none !important; list-style: none !important;
}
ul.issues_archive > li::before { content: none !important; }

.obj_issue_summary {
	position: relative; background: var(--mc-mint); border: none; border-radius: 0;
	margin: 0; padding: 0;
	animation: mcFadeUp .4s ease both; transition: background-color .2s ease;
}
.obj_issue_summary:hover { background: var(--mc-mint2); }
.obj_issue_summary h2 {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
	margin: 0; padding: 15px 44px 15px 16px; border: none;
	font-size: 16px; font-weight: 600; line-height: 1.4;
}
.obj_issue_summary h2 .series {
	order: -1; display: inline; font-size: 16px; font-weight: 700;
	color: #111; margin: 0; transition: color .2s ease;
}
.obj_issue_summary h2 a.title {
	font-size: 14px; font-weight: 500; color: #5b6b73;
	text-decoration: none; transition: color .2s ease;
}
.obj_issue_summary h2 a.title::before {
	content: "|"; margin-right: 10px; color: #b3c3ba; font-weight: 400;
}
.obj_issue_summary:hover h2 .series,
.obj_issue_summary:hover h2 a.title { color: var(--mc-red); }
.obj_issue_summary::after {
	content: ""; position: absolute; right: 18px; top: 50%;
	width: 0; height: 0; margin-top: -4px;
	border-top: 5px solid transparent; border-bottom: 5px solid transparent;
	border-left: 7px solid #111;
	transition: border-left-color .2s ease, right .2s ease;
}
.obj_issue_summary:hover::after { border-left-color: var(--mc-red); right: 14px; }
.obj_issue_summary .description:empty { display: none; }

/* 8. Current-issue block. The stock theme stacks 60px + 30px margin and
      30px padding between "Published" and the first section heading,
      which left roughly 140px of dead space on the home page. */
.obj_issue_toc .heading { margin-bottom: 0 !important; }
.obj_issue_toc .heading .published { margin: 6px 0 0 !important; }
.obj_issue_toc .sections { margin-top: 24px !important; }
.obj_issue_toc .sections .section {
	margin-top: 0 !important;
	padding-top: 18px !important;
	padding-bottom: 0 !important;
}
.obj_issue_toc .sections .section > h2 { margin-top: 0; }
.current_issue > h2 { margin-top: 0; }
.current_issue .current_issue_title { margin: 6px 0 0; }

/* 9. Article page. The stock theme floats a 300px metadata column beside
      the abstract, but the content area is not wide enough once the
      journal sidebar is in place, so it wrapped and left a stray rule.
      Full-width abstract with a metadata strip underneath instead. */
.obj_article_details .main_entry {
	float: none !important; width: 100% !important;
	border-right: 0 !important; padding-right: 0 !important;
}
.obj_article_details .entry_details {
	float: none !important; width: 100% !important;
	border-left: 0 !important; padding-left: 0 !important;
	margin-top: 26px; padding-top: 22px;
	border-top: 1px solid #e6eaee;
	display: flex; flex-wrap: wrap; gap: 20px 46px; align-items: flex-start;
}
.obj_article_details .entry_details > * {
	margin: 0 !important; padding: 0 !important; border: 0 !important;
}
.obj_article_details .entry_details .label { color: #7c8b94; font-size: 13px; }
.obj_article_details .entry_details .value { font-size: 15px; }

/* 10. Article summaries */
.obj_article_summary {
	padding: 16px 18px; border: 1px solid #e6eaee; margin-bottom: 12px; background: #fff;
	animation: mcFadeUp .4s ease both;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.obj_article_summary:hover {
	border-color: #cfd9e0; box-shadow: 0 4px 14px rgba(2,48,71,0.09); transform: translateY(-2px);
}
.obj_article_summary > h3 > a:hover,
.obj_article_summary .title a:hover { color: var(--mc-red); }
.obj_article_summary .galleys_links a.obj_galley_link {
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.obj_article_summary .galleys_links a.obj_galley_link:hover {
	background: var(--mc-navy); border-color: var(--mc-navy); color: #fff;
}

/* 11. Footer */
.pkp_structure_footer_wrapper {
	background: var(--mc-navy); color: #fff; border-top: none; margin-top: 0;
}
.pkp_footer_content {
	max-width: var(--mc-wrap); margin: 0 auto; padding: 46px 20px 18px;
	color: #fff; font-size: 16px; box-sizing: border-box;
}
.pkp_footer_content::before {
	content: "Journal of Health Care Studies";
	display: block;
	font-size: 22px; font-weight: 800; letter-spacing: .5px;
	color: var(--mc-gold);
	margin: 0 0 30px; padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.13);
}
.pkp_footer_content .footer_columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 32px 40px; align-items: start;
}
.pkp_footer_content .footer_col { min-width: 0; }
.pkp_footer_content h1, .pkp_footer_content h2, .pkp_footer_content h3,
.pkp_footer_content h4, .pkp_footer_content h5 {
	color: #fff; font-size: 15px; font-weight: 600; text-transform: uppercase;
	letter-spacing: .4px; margin: 0 0 18px; padding: 0; border: none;
}
.pkp_footer_content ul { list-style: none; margin: 0; padding: 0; }
.pkp_footer_content li { margin: 0 0 11px; padding: 0; }
.pkp_footer_content li::before { content: none; }
.pkp_footer_content a {
	color: #fff; text-decoration: none; font-size: 16px; font-weight: 400;
	line-height: 1.45; display: inline-block;
	transition: color .2s ease, transform .2s ease;
}
.pkp_footer_content a:hover, .pkp_footer_content a:focus {
	color: var(--mc-gold); transform: translateX(4px); text-decoration: none;
}
.pkp_footer_content p { color: #dfe9ee; line-height: 1.6; }
.pkp_footer_content::after {
	content: "Copyright © Journal of Health Care Studies | All rights reserved.";
	display: block;
	margin: 38px 0 0; padding-top: 18px;
	border-top: 1px solid rgba(255,255,255,0.15);
	text-align: center; font-size: 13px; color: #cfdde5;
}

.pkp_brand_footer {
	max-width: var(--mc-wrap); margin: 0 auto; padding: 0 20px 24px;
	text-align: center; opacity: .45;
	filter: invert(1) grayscale(1) brightness(1.9);
	transition: opacity .25s ease; box-sizing: border-box;
}
.pkp_brand_footer:hover { opacity: .75; }
.pkp_brand_footer a { display: inline-block; float: none !important; }
.pkp_brand_footer img { max-height: 40px; width: auto; }

/* 12. Polish */
.cmp_breadcrumbs { display: block; font-size: .85rem; margin: 0 0 14px; }
.page > h1 {
	display: table;
	color: var(--mc-navy); font-weight: 800; border-bottom: 3px solid var(--mc-red);
	padding-bottom: 6px; margin: 0 0 26px;
}
a { transition: color .2s ease; }

/* 13. Responsive */
@media (max-width: 991px) {
	.pkp_structure_main, .pkp_structure_sidebar { float: none; width: 100%; }
	.pkp_structure_sidebar { margin-top: 26px; }
}
@media (max-width: 600px) {
	body { padding-top: 58px; }
	#customblock-topbar .content { padding: 6px 14px; }
	#customblock-topbar .mc-topbar { font-size: 11px; justify-content: center; text-align: center; }
	.pkp_site_name { padding: 10px 14px; }
	.pkp_site_name a, .pkp_site_name a.is_text { font-size: 1.3rem; }
	.obj_issue_summary h2 { padding: 13px 38px 13px 13px; font-size: 15px; }
	.pkp_footer_content { padding: 32px 18px 14px; }
	.pkp_footer_content::before { font-size: 18px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
