/*
 * LafadzPremium Theme - Master Stylesheet
 * Version 1.0
 * Purpose: Global visual styling for OJS Custom Blocks and journal pages.
 *
 * Design:
 * - Maroon      #751526
 * - Gold        #D4AF37
 * - Ivory       #FAF7F7
 * - White       #FFFFFF
 *
 * This stylesheet is intentionally independent from the OJS theme LESS system.
 * Upload it as a custom CSS file and load it from the theme/custom CSS area.
 */

/* =========================================================
   01. GLOBAL
   ========================================================= */

.pkp_page {
	box-sizing: border-box;
}

.pkp_page *,
.pkp_page *::before,
.pkp_page *::after {
	box-sizing: border-box;
}

.pkp_page a {
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}


/* =========================================================
   02. CUSTOM BLOCK - GENERAL
   ========================================================= */

.pkp_block.block_custom {
	margin-bottom: 22px;
	padding: 0;
	background: #fff;
	border: 1px solid #e6d8da;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(65,19,28,.05);
	overflow: hidden;
}

.pkp_block.block_custom > .title {
	position: relative;
	margin: 0;
	padding: 14px 16px 12px;
	color: #751526;
	background: #fff;
	border-bottom: 1px solid #e5d8da;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: .1px;
}

.pkp_block.block_custom > .title::after {
	content: "";
	position: absolute;
	left: 16px;
	bottom: -2px;
	width: 48px;
	height: 3px;
	background: linear-gradient(90deg,#751526,#d4af37);
	border-radius: 3px;
}

.pkp_block.block_custom > .content {
	padding: 15px 16px;
	color: #4f5b57;
	font-size: 13px;
	line-height: 1.65;
}


/* =========================================================
   03. CUSTOM BLOCK - LINKS
   ========================================================= */

.pkp_block.block_custom a {
	color: #751526;
}

.pkp_block.block_custom a:hover,
.pkp_block.block_custom a:focus {
	color: #a3233a;
	text-decoration: none;
}


/* =========================================================
   04. CUSTOM BLOCK - IMAGES
   ========================================================= */

.pkp_block.block_custom img {
	max-width: 100%;
	height: auto;
}

.pkp_block.block_custom .content > p:first-child {
	margin-top: 0;
}

.pkp_block.block_custom .content > p:last-child {
	margin-bottom: 0;
}


/* =========================================================
   05. CUSTOM BLOCK - CENTERED IMAGES
   ========================================================= */

.pkp_block.block_custom .content img {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.pkp_block.block_custom .content img:hover {
	opacity: .96;
}


/* =========================================================
   06. ACCREDITATION / CERTIFICATE BLOCK
   ========================================================= */

.pkp_block.block_custom img[alt*="SINTA"],
.pkp_block.block_custom img[alt*="Accreditation"],
.pkp_block.block_custom img[alt*="accreditation"] {
	width: 100%;
	max-width: 600px;
	height: auto;
}

.pkp_block.block_custom img[alt*="Certificate"],
.pkp_block.block_custom img[alt*="certificate"] {
	width: 100%;
	max-width: 374px;
	height: auto;
}


/* =========================================================
   07. CUSTOM BLOCK - TABLES
   ========================================================= */

.pkp_block.block_custom table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
}

.pkp_block.block_custom th {
	background: #751526;
	color: #fff;
	font-weight: 800;
}

.pkp_block.block_custom th,
.pkp_block.block_custom td {
	padding: 8px 10px;
	border: 1px solid #e6d8da;
}


/* =========================================================
   08. BUTTONS
   ========================================================= */

.pkp_block.block_custom .button,
.pkp_block.block_custom a.button,
.pkp_block.block_custom button {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #751526;
	border-radius: 24px;
	background: #751526;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.3;
	cursor: pointer;
}

.pkp_block.block_custom .button:hover,
.pkp_block.block_custom a.button:hover,
.pkp_block.block_custom button:hover {
	background: #5f101f;
	border-color: #5f101f;
	box-shadow: 0 5px 14px rgba(117,21,38,.18);
}


/* =========================================================
   09. GOLD BUTTON
   ========================================================= */

.pkp_block.block_custom .button.gold,
.pkp_block.block_custom a.button.gold {
	background: #d4af37;
	border-color: #d4af37;
	color: #40121a !important;
}

.pkp_block.block_custom .button.gold:hover,
.pkp_block.block_custom a.button.gold:hover {
	background: #c49f2e;
	border-color: #c49f2e;
}


/* =========================================================
   10. HOMEPAGE CUSTOM CONTENT
   ========================================================= */

.page_index_journal {
	width: 100%;
	max-width: 100%;
}

.page_index_journal img {
	max-width: 100%;
	height: auto;
}


/* =========================================================
   11. HOMEPAGE ABOUT
   ========================================================= */

.page_index_journal .homepage_about {
	padding: 18px 20px;
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid #e6d8da;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(65,19,28,.05);
}

.page_index_journal .homepage_about h2 {
	margin-top: 0;
	color: #751526;
}


/* =========================================================
   12. ANNOUNCEMENTS
   ========================================================= */

.page_index_journal .cmp_announcements {
	border-color: #e6d8da;
}

.page_index_journal .cmp_announcements h2 {
	color: #751526;
}

.page_index_journal .cmp_announcements a {
	color: #751526;
}

.page_index_journal .cmp_announcements a:hover {
	color: #a3233a;
}


/* =========================================================
   13. CURRENT ISSUE
   ========================================================= */

.page_index_journal .current_issue {
	margin-bottom: 18px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #e6d8da;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(65,19,28,.05);
}

.page_index_journal .current_issue h2 {
	color: #751526;
}

.page_index_journal .current_issue .current_issue_title {
	color: #751526;
	font-weight: 800;
}


/* =========================================================
   14. ADDITIONAL HOMEPAGE CONTENT
   ========================================================= */

.page_index_journal .additional_content {
	padding: 18px 20px;
	margin-bottom: 18px;
	background: #fff;
	border-top: 2px solid #d4af37;
	border-bottom: 1px solid #e6d8da;
}


/* =========================================================
   15. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 768px) {

	.pkp_block.block_custom {
		margin-bottom: 16px;
		border-radius: 11px;
	}

	.pkp_block.block_custom > .title {
		padding: 11px 13px 10px;
		font-size: 16px;
	}

	.pkp_block.block_custom > .title::after {
		left: 13px;
		width: 42px;
	}

	.pkp_block.block_custom > .content {
		padding: 12px 13px;
		font-size: 12px;
	}

	.page_index_journal .homepage_about,
	.page_index_journal .current_issue,
	.page_index_journal .additional_content {
		padding: 15px;
	}

}


/* =========================================================
   16. RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 480px) {

	.pkp_block.block_custom {
		margin-bottom: 13px;
		border-radius: 9px;
	}

	.pkp_block.block_custom > .title {
		padding: 10px 11px 9px;
		font-size: 15px;
	}

	.pkp_block.block_custom > .title::after {
		left: 11px;
		width: 38px;
		height: 2px;
	}

	.pkp_block.block_custom > .content {
		padding: 10px 11px;
		font-size: 11.5px;
		line-height: 1.55;
	}

	.pkp_block.block_custom img {
		max-width: 100%;
		height: auto;
	}

	.pkp_block.block_custom .button,
	.pkp_block.block_custom a.button {
		width: 100%;
		text-align: center;
	}

}


/* =========================================================
   17. ACCESSIBILITY / FOCUS
   ========================================================= */

.pkp_block.block_custom a:focus-visible,
.pkp_block.block_custom button:focus-visible {
	outline: 2px solid #d4af37;
	outline-offset: 2px;
}


/* =========================================================
   18. UTILITY CLASSES
   ========================================================= */

.lafadz-maroon {
	color: #751526 !important;
}

.lafadz-gold {
	color: #d4af37 !important;
}

.lafadz-bg-maroon {
	background: #751526 !important;
	color: #fff !important;
}

.lafadz-bg-gold {
	background: #d4af37 !important;
	color: #40121a !important;
}

.lafadz-card {
	background: #fff;
	border: 1px solid #e6d8da;
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(65,19,28,.05);
}
/* =========================================================
   LAFADZ PREMIUM - JOURNAL METRICS
   Premium compact dashboard
   ========================================================= */

.journal_metrics {
	position: relative;
	width: 100%;
	margin: 0 0 22px;
	padding: 20px;
	background: #fff;
	border: 1px solid #eadde0;
	border-radius: 16px;
	box-shadow: 0 7px 22px rgba(65,19,28,.06);
	overflow: hidden;
}

/* Top accent */
.journal_metrics::before {
	content: "";
	display: block;
	width: 100%;
	height: 3px;
	margin: -20px 0 18px;
	background: linear-gradient(
		90deg,
		#751526 0%,
		#751526 45%,
		#d4af37 65%,
		#751526 100%
	);
}

/* =========================================================
   HEADER
   ========================================================= */

.journal_metrics .metrics_heading_wrapper {
	display: flex;
	align-items: center;
	margin: 0 0 15px;
	padding: 0 0 13px;
	border-bottom: 1px solid #eee4e6;
}

.journal_metrics .metrics_title {
	padding-left: 0;
}

.journal_metrics .metrics_title h2 {
	position: relative;
	margin: 0;
	padding: 0 0 7px;
	color: #751526;
	font-size: 20px;
	font-weight: 900;
	line-height: 1.25;
}

.journal_metrics .metrics_title h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 42px;
	height: 3px;
	background: linear-gradient(90deg,#751526,#d4af37);
	border-radius: 3px;
}

.journal_metrics .metrics_title .stats_value {
	color: #5e6462;
	font-size: 17px;
	font-weight: 600;
}

/* =========================================================
   VIEW ALL STATISTICS BUTTON
   ========================================================= */

.journal_metrics .metrics_data {
	padding-right: 0;
}

.journal_metrics .all_stats_button {
	text-align: right;
}

.journal_metrics .common_button {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid #751526;
	border-radius: 8px;
	background: #751526;
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	box-shadow: 0 5px 12px rgba(117,21,38,.14);
	transition: all .2s ease;
}

.journal_metrics .common_button:hover {
	background: #5f101f;
	border-color: #5f101f;
	transform: translateY(-1px);
	box-shadow: 0 7px 15px rgba(117,21,38,.20);
}

/* =========================================================
   METRIC CARDS
   ========================================================= */

.journal_metrics .metrics_data_wrapper {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -4px 16px;
}

.journal_metrics .metric_item {
	position: relative;
	flex: 1 1 22%;
	max-width: 25%;
	margin: 0;
	padding: 13px 8px;
	border-right: 1px solid #eee4e6;
	text-align: center;
}

.journal_metrics .metric_item:last-child {
	border-right: 0;
}

.journal_metrics .metric_item::before {
	content: "";
	display: block;
	width: 24px;
	height: 2px;
	margin: 0 auto 8px;
	background: #d4af37;
	border-radius: 3px;
}

.journal_metrics .metric_item .value {
	display: block;
	margin-bottom: 3px;
	color: #751526;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -.5px;
}

.journal_metrics .metric_item .label {
	display: block;
	color: #59635f;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
}

/* =========================================================
   AUTHOR ORIGINS
   ========================================================= */

.journal_metrics .journal-metrics-country-stats {
	margin-top: 10px;
	padding: 14px 10px 5px;
	border-top: 1px solid #eee4e6;
	background: linear-gradient(
		180deg,
		#fcf8f8 0%,
		#fff 100%
	);
	border-radius: 10px;
}

.journal_metrics .journal-metrics-country-stats .label {
	position: relative;
	margin-bottom: 12px;
	text-align: center;
	color: #59635f;
	font-size: 11px;
	font-weight: 700;
}

.journal_metrics .journal-metrics-country-stats .label::before,
.journal_metrics .journal-metrics-country-stats .label::after {
	content: "";
	display: inline-block;
	width: 55px;
	height: 1px;
	margin: 0 10px 3px;
	background: #e4d8da;
}

.journal_metrics .journal-metrics-country-stats .total-countries {
	color: #751526;
	font-weight: 900;
}

/* Country list */
.journal_metrics .country-stats-list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px 22px !important;
}

.journal_metrics .country-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 65px;
	padding: 6px 9px;
	background: #fff;
	border: 1px solid #eee1e3;
	border-radius: 7px;
	box-shadow: 0 2px 7px rgba(65,19,28,.035);
	transition: all .2s ease;
}

.journal_metrics .country-item:hover {
	border-color: #d8bdc2;
	transform: translateY(-1px);
	box-shadow: 0 5px 12px rgba(65,19,28,.08);
}

.journal_metrics .country-item .count {
	color: #751526;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
}

.journal_metrics .country-item .fi {
	font-size: 19px;
	line-height: 1;
}

.journal_metrics .country-item .fa-globe {
	color: #751526;
	font-size: 17px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 768px) {

	.journal_metrics {
		padding: 16px;
		border-radius: 13px;
	}

	.journal_metrics::before {
		margin: -16px 0 15px;
	}

	.journal_metrics .metrics_heading_wrapper {
		align-items: flex-start;
	}

	.journal_metrics .metrics_title h2 {
		font-size: 18px;
	}

	.journal_metrics .metrics_title .stats_value {
		font-size: 15px;
	}

	.journal_metrics .metric_item {
		flex: 1 1 50%;
		max-width: 50%;
		padding: 12px 7px;
		border-right: 0;
		border-bottom: 1px solid #eee4e6;
	}

	.journal_metrics .metric_item:nth-child(odd) {
		border-right: 1px solid #eee4e6;
	}

	.journal_metrics .metric_item:nth-child(3),
	.journal_metrics .metric_item:nth-child(4) {
		border-bottom: 0;
	}

	.journal_metrics .metric_item .value {
		font-size: 24px;
	}

	.journal_metrics .journal-metrics-country-stats .label::before,
	.journal_metrics .journal-metrics-country-stats .label::after {
		width: 25px;
	}

}


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

@media (max-width: 480px) {

	.journal_metrics {
		margin-bottom: 16px;
		padding: 13px;
		border-radius: 11px;
	}

	.journal_metrics::before {
		margin: -13px 0 13px;
	}

	.journal_metrics .metrics_heading_wrapper {
		display: block;
		margin-bottom: 10px;
		padding-bottom: 10px;
	}

	.journal_metrics .metrics_title h2 {
		font-size: 17px;
	}

	.journal_metrics .metrics_title .stats_value {
		font-size: 14px;
	}

	.journal_metrics .metrics_data {
		margin-top: 10px;
	}

	.journal_metrics .all_stats_button {
		text-align: left;
	}

	.journal_metrics .common_button {
		padding: 7px 12px;
		font-size: 10px;
	}

	.journal_metrics .metrics_data_wrapper {
		margin-bottom: 10px;
	}

	.journal_metrics .metric_item {
		padding: 10px 5px;
	}

	.journal_metrics .metric_item::before {
		width: 18px;
		height: 2px;
		margin-bottom: 6px;
	}

	.journal_metrics .metric_item .value {
		font-size: 21px;
	}

	.journal_metrics .metric_item .label {
		font-size: 9px;
		line-height: 1.3;
	}

	.journal_metrics .journal-metrics-country-stats {
		padding: 11px 5px 4px;
	}

	.journal_metrics .journal-metrics-country-stats .label {
		font-size: 10px;
	}

	.journal_metrics .journal-metrics-country-stats .label::before,
	.journal_metrics .journal-metrics-country-stats .label::after {
		display: none;
	}

	.journal_metrics .country-stats-list {
		gap: 5px !important;
	}

	.journal_metrics .country-item {
		min-width: 55px;
		padding: 5px 7px;
	}

	.journal_metrics .country-item .fi {
		font-size: 16px;
	}

	.journal_metrics .country-item .count {
		font-size: 11px;
	}

}
/* =========================================================
   LAFADZ PREMIUM
   POPULAR ARTICLES
   ========================================================= */

.lp-popular-articles {
	margin: 28px 0 32px;
	padding: 24px;
	background: #fff;
	border: 1px solid #eadde0;
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(65,19,28,.055);
}

.lp-popular-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 16px;
	margin-bottom: 18px;
	border-bottom: 1px solid #eee4e6;
}

.lp-popular-heading {
	position: relative;
}

.lp-section-kicker {
	display: inline-block;
	margin-bottom: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #f8eef0;
	color: #751526;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.lp-popular-heading h2 {
	margin: 0;
	color: #751526;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.2;
}

.lp-popular-heading h2::after {
	content: "";
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 8px;
	border-radius: 3px;
	background: linear-gradient(90deg,#751526,#d4af37);
}

.lp-popular-heading p {
	margin: 8px 0 0;
	color: #737b78;
	font-size: 12px;
}

.lp-popular-viewall {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	border: 1px solid #eadde0;
	border-radius: 8px;
	color: #751526 !important;
	background: #fff;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none !important;
	transition: all .2s ease;
}

.lp-popular-viewall:hover {
	background: #751526;
	border-color: #751526;
	color: #fff !important;
}

.lp-popular-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 12px;
}

.lp-popular-card {
	position: relative;
	display: flex;
	min-height: 175px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #eee2e4;
	border-radius: 12px;
	transition: all .22s ease;
}

.lp-popular-card:hover {
	transform: translateY(-3px);
	border-color: #d8bdc2;
	box-shadow: 0 10px 22px rgba(65,19,28,.09);
}

.lp-popular-number {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	width: 42px;
	flex: 0 0 42px;
	padding-top: 16px;
	background: linear-gradient(180deg,#751526,#5f101f);
	color: #fff;
}

.lp-popular-number span {
	font-size: 12px;
	font-weight: 900;
	letter-spacing: .5px;
}

.lp-popular-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 15px 15px 13px;
}

.lp-popular-section {
	margin-bottom: 6px;
	color: #b18b27;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: .7px;
	text-transform: uppercase;
}

.lp-popular-title {
	margin: 0;
}

.lp-popular-title a {
	display: -webkit-box;
	overflow: hidden;
	color: #3f0d16 !important;
	font-size: 14px;
	font-weight: 900;
	line-height: 1.42;
	text-decoration: none !important;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.lp-popular-title a:hover {
	color: #751526 !important;
}

.lp-popular-authors {
	margin-top: 9px;
	color: #6e7774;
	font-size: 10px;
	line-height: 1.4;
}

.lp-author-more {
	color: #9b777e;
	font-weight: 700;
}

.lp-popular-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
	padding-top: 10px;
	border-top: 1px solid #f0e9ea;
	color: #8b9290;
	font-size: 9px;
}

.lp-popular-meta i {
	margin-right: 3px;
	color: #751526;
}

.lp-popular-read {
	color: #751526;
	font-weight: 900;
	white-space: nowrap;
}

.lp-popular-footer {
	margin-top: 16px;
	text-align: center;
}

.lp-popular-all-button {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 8px;
	background: #751526;
	color: #fff !important;
	font-size: 11px;
	font-weight: 900;
	text-decoration: none !important;
	transition: all .2s ease;
}

.lp-popular-all-button:hover {
	background: #5f101f;
	transform: translateY(-1px);
}


/* 5th article occupies the center on desktop */
@media (min-width: 769px) {

	.lp-popular-card:nth-child(4) {
		grid-column: 1 / 2;
	}

	.lp-popular-card:nth-child(5) {
		grid-column: 2 / 3;
	}

}


/* TABLET */
@media (max-width: 900px) {

	.lp-popular-grid {
		grid-template-columns: repeat(2,minmax(0,1fr));
	}

}


/* MOBILE */
@media (max-width: 600px) {

	.lp-popular-articles {
		margin: 20px 0;
		padding: 16px;
		border-radius: 14px;
	}

	.lp-popular-header {
		display: block;
	}

	.lp-popular-action {
		margin-top: 12px;
	}

	.lp-popular-viewall {
		display: inline-flex;
	}

	.lp-popular-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.lp-popular-card {
		min-height: 150px;
	}

	.lp-popular-number {
		width: 36px;
		flex-basis: 36px;
		padding-top: 13px;
	}

	.lp-popular-card-body {
		padding: 13px;
	}

	.lp-popular-heading h2 {
		font-size: 21px;
	}

	.lp-popular-heading p {
		font-size: 11px;
	}

}