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

/* Journal of Medical Analysis - visual match to its own WordPress site */

:root {
	--jma-blue:  #1E6292;
	--jma-red:   #E62700;
	--jma-gold:  #ffb703;
	--jma-mint:  #f1faee;
	--jma-mint2: #e4f4e0;
	--jma-wrap:  1200px;
}

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

@keyframes jmaFadeUp {
	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(--jma-blue);
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
#customblock-topbar .title { display: none; }
#customblock-topbar .content {
	max-width: var(--jma-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(--jma-gold); text-decoration: none; }
body { padding-top: 42px; }

/* 2. Masthead - white box with a dark border, matching the WP site (not a
      white-on-white border like Medclinic's) */
.pkp_head_wrapper { background-color: var(--jma-blue); padding-bottom: 0; }
.pkp_site_name_wrapper {
	display: flex; align-items: center; gap: 12px;
	max-width: var(--jma-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}
.pkp_site_name {
	flex: 1; border: 3px solid #111; 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(--jma-red); }
.pkp_site_name a, .pkp_site_name a.is_text {
	font-weight: 800; font-size: 1.9rem; color: #111;
	letter-spacing: .3px; text-decoration: none;
}
.pkp_site_name img { max-height: 80px; width: auto; }

/* 3. Primary nav */
.pkp_navigation_primary_row { background: var(--jma-blue); }
.pkp_navigation_primary_wrapper {
	max-width: var(--jma-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(--jma-red); color: #fff; }
.pkp_navigation_search_wrapper a { color: #fff; font-size: 14px; }

/* 4. Structure */
.pkp_structure_content {
	max-width: var(--jma-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(--jma-blue);
}
#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(--jma-blue); 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(--jma-red); padding-left: 20px; text-decoration: none;
}

/* 6. Other sidebar blocks (Publisher, Access Policy, Copyright License) */
#customblock-accesspolicy,
#customblock-publisher,
#customblock-copyrightlicense,
.pkp_block.block_custom:not(#customblock-topbar):not(#customblock-journalmenu) {
	border: 1px solid #dfe4e8; padding: 14px 16px; margin-bottom: 24px; background: #fbfcfd;
}
#customblock-publisher img,
#customblock-copyrightlicense img {
	max-width: 100%; height: auto; display: block; margin: 0 auto;
}

/* 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(--jma-mint); border: none; border-radius: 0;
	margin: 0; padding: 0;
	animation: jmaFadeUp .4s ease both; transition: background-color .2s ease;
}
.obj_issue_summary:hover { background: var(--jma-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(--jma-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(--jma-red); right: 14px; }
.obj_issue_summary .description:empty { display: none; }

/* 8. Current-issue block */
.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 */
.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 - Open Access badge + "Read" + "PDF" buttons,
      matching the WP site's card style. */
.obj_article_summary {
	position: relative;
	padding: 16px 18px; border: 1px solid #e6eaee; margin-bottom: 12px; background: #fff;
	animation: jmaFadeUp .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(30,98,146,0.12); transform: translateY(-2px);
}
.obj_article_summary > h3 > a:hover,
.obj_article_summary .title a:hover { color: var(--jma-red); }
.jma_open_access_badge {
	display: inline-block; background: var(--jma-blue); color: #fff;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
	padding: 4px 10px; border-radius: 2px; margin-bottom: 10px;
}
.obj_article_summary .galleys_links {
	display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 10px 0 0; padding: 0;
}
.obj_article_summary .galleys_links li { margin: 0; padding: 0; list-style: none; }
.obj_article_summary .galleys_links li::before { content: none; }
.obj_article_summary .galleys_links a.obj_galley_link {
	display: inline-block; background: var(--jma-blue); color: #fff;
	padding: 8px 16px; border-radius: 3px; font-size: 14px; font-weight: 600;
	text-decoration: none; border: 1px solid var(--jma-blue);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.obj_article_summary .galleys_links a.obj_galley_link:hover {
	background: var(--jma-red); border-color: var(--jma-red); color: #fff;
}

/* 11. Footer */
.pkp_structure_footer_wrapper {
	background: var(--jma-blue); color: #fff; border-top: none; margin-top: 0;
}
.pkp_footer_content {
	max-width: var(--jma-wrap); margin: 0 auto; padding: 46px 20px 18px;
	color: #fff; font-size: 16px; box-sizing: border-box;
}
.pkp_footer_content::before {
	content: "Journal of Medical Analysis";
	display: block;
	font-size: 22px; font-weight: 800; letter-spacing: .5px;
	color: var(--jma-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(--jma-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 Medical Analysis | All Rights are reserved By MedAnalysis Research Center";
	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(--jma-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(--jma-blue); font-weight: 800; border-bottom: 3px solid var(--jma-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; }
}
