/* ==========================================================================
   YPPPM - Site stylesheet (OJS 3.5, Default theme)
   Beranda situs bergaya direktori jurnal (DergiPark-like).
   Upload: Administration > Site Settings > Appearance > Site stylesheet
   Ganti warna di :root sesuai identitas YPPPM.

   Bekerja bersama plugin "YPPPM Directory Theme": jika plugin aktif, plugin
   yang mengatur daftar jurnal (pencarian, sortir, filter) dan file ini hanya
   mengatur kerangka halaman. Jika plugin dimatikan, bagian 4-5 di bawah
   menjadi tampilan cadangan (tanpa pencarian).
   ========================================================================== */

:root {
	--yd-primary: #175e96;
	--yd-primary-dark: #0d3f66;
	--yd-accent: #e8a317;
	--yd-bg: #f3f5f8;
	--yd-card: #ffffff;
	--yd-border: #dde3ea;
	--yd-text: #1f2933;
	--yd-muted: #5f6b7a;
	--yd-radius: 6px;
}

/* --------------------------------------------------------------------------
   1. Kerangka halaman (dipertahankan dari stylesheet lama)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
	margin: 0;
	padding: 0;
	background-color: #eef2f5;
	background-image: url('https://st2.depositphotos.com/4147207/42894/i/450/depositphotos_428949376-stock-photo-black-white-cad-drawing-islamic.jpg');
	background-repeat: repeat;
	background-position: top center;
	background-attachment: fixed;
	background-size: 400px auto;
}

.pkp_structure_page {
	max-width: 1140px;
	width: 100%;
	margin: 0 auto;
	background-color: #ffffff;
	box-shadow: 0 0 25px rgba(0, 0, 0, .15);
	min-height: 100vh;
	overflow-x: hidden;
}

@media (min-width: 1200px) {
	.pkp_site_name_wrapper,
	.pkp_navigation_primary_wrapper,
	.pkp_navigation_user,
	.pkp_search_mobile,
	.pkp_structure_content,
	.pkp_structure_footer {
		width: 100%;
	}
}

/* Banner header: navy bergradasi dengan garis emas */
.pkp_structure_head {
	background-color: var(--yd-primary-dark) !important;
	background-image:
		radial-gradient(ellipse at 85% -20%, rgba(255, 255, 255, .14), transparent 55%),
		radial-gradient(ellipse at 0% 120%, rgba(232, 163, 23, .16), transparent 45%),
		linear-gradient(120deg, #0a2f4f 0%, var(--yd-primary-dark) 45%, var(--yd-primary) 100%) !important;
	border-bottom: 3px solid var(--yd-accent) !important;
}

.pkp_site_name_wrapper,
.pkp_site_name {
	background: transparent !important;
}

.pkp_site_name {
	padding: 1.6rem 0 1.4rem !important;
}

.pkp_site_name .is_img img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 112px !important;
}

.pkp_navigation_primary_row {
	background: rgba(0, 0, 0, .18) !important;
}

@media (max-width: 991px) {
	.pkp_site_name {
		padding: 3px 0 0 .6rem !important;
	}

	.pkp_site_name .is_img img {
		max-height: 34px !important;
		max-width: calc(100vw - 70px);
	}
}

/* Menu Register / Login di pojok kanan header */
.pkp_structure_head {
	position: relative;
}

.pkp_navigation_user_wrapper {
	position: absolute !important;
	top: 25px !important;
	right: 30px !important;
	left: auto !important;
	transform: none !important;
	z-index: 999;
	width: auto !important;
	margin: 0 !important;
}

ul#navigationUser {
	display: flex;
	justify-content: flex-end;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

ul#navigationUser > li > a {
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	background-color: rgba(0, 0, 0, .4);
	padding: 8px 16px;
	border-radius: 20px;
	transition: background-color .3s ease;
}

ul#navigationUser > li > a:hover {
	background-color: var(--yd-primary);
}

/* --------------------------------------------------------------------------
   2. Tata letak beranda: sidebar kiri (filter) + daftar jurnal
   -------------------------------------------------------------------------- */
.pkp_page_index .pkp_structure_content {
	background: var(--yd-bg);
	padding-top: 0;
}

@media (min-width: 992px) {
	.pkp_page_index .pkp_structure_content.has_sidebar {
		display: flex;
		align-items: flex-start;
		gap: 1.5rem;
		padding: 1.5rem 2rem 2.5rem;
	}

	.pkp_page_index .pkp_structure_main {
		order: 2;
		flex: 1;
		min-width: 0;
		width: auto !important;
		float: none !important;
		padding: 0 !important;
		background: transparent;
	}

	.pkp_page_index .pkp_structure_main::before,
	.pkp_page_index .pkp_structure_main::after {
		display: none !important;
	}

	.pkp_page_index .pkp_structure_sidebar {
		order: 1;
		flex: 0 0 240px;
		width: 240px !important;
		float: none !important;
		padding: 0 !important;
		position: sticky;
		top: 1rem;
	}
}

/* Kotak sidebar (Language, dll.) bergaya panel filter */
.pkp_page_index .pkp_structure_sidebar .pkp_block {
	background: var(--yd-card);
	border: 1px solid var(--yd-border);
	border-radius: var(--yd-radius);
	padding: 1rem;
	margin: 0 0 1rem;
}

.pkp_page_index .pkp_structure_sidebar .pkp_block .title {
	display: block;
	margin: 0 0 .7rem;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--yd-muted);
}

.pkp_page_index .pkp_structure_sidebar .pkp_block ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pkp_page_index .pkp_structure_sidebar .pkp_block li {
	margin: 0 0 .35rem;
}

.pkp_page_index .pkp_structure_sidebar .pkp_block a {
	display: block;
	padding: .35rem .6rem;
	border-radius: 4px;
	color: var(--yd-text);
	text-decoration: none;
	font-size: .9rem;
}

.pkp_page_index .pkp_structure_sidebar .pkp_block a:hover {
	background: var(--yd-bg);
	color: var(--yd-primary);
}

.pkp_page_index .pkp_structure_sidebar .pkp_block .current a {
	background: var(--yd-primary);
	color: #fff;
}

/* --------------------------------------------------------------------------
   3. Teks pengantar situs (isi dari "About the site" / deskripsi situs)
   Struktur yang diharapkan: h2, p (lead), ul > li (4 keunggulan), p (ajakan)
   -------------------------------------------------------------------------- */
.page_index_site .about_site {
	position: relative;
	margin: 1.5rem 0 1.5rem;
	padding: 2rem 2rem 1.6rem;
	background: var(--yd-card);
	border: 1px solid var(--yd-border);
	border-radius: var(--yd-radius);
	box-shadow: 0 6px 24px rgba(13, 63, 102, .06);
	color: var(--yd-text);
	font-size: 1rem;
	line-height: 1.7;
	overflow: hidden;
}

.page_index_site .about_site::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--yd-primary-dark), var(--yd-primary) 60%, var(--yd-accent));
}

.page_index_site .about_site h2 {
	margin: 0 0 .6rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.85rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--yd-primary-dark);
}

.page_index_site .about_site h2::before {
	content: "Welcome to YPPPM Journals";
	display: block;
	margin-bottom: .45rem;
	font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--yd-accent);
}

.page_index_site .about_site > p {
	margin: 0 0 1rem;
	max-width: 62rem;
	color: var(--yd-muted);
}

.page_index_site .about_site > p:first-of-type {
	font-size: 1.06rem;
	color: var(--yd-text);
}

.page_index_site .about_site ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .9rem;
	list-style: none;
	margin: 1.4rem 0;
	padding: 0;
}

.page_index_site .about_site li {
	margin: 0;
	padding: 1rem;
	background: var(--yd-bg);
	border-top: 3px solid var(--yd-primary);
	border-radius: 4px;
	font-size: .88rem;
	line-height: 1.55;
	color: var(--yd-muted);
}

.page_index_site .about_site li strong {
	display: block;
	margin-bottom: .3rem;
	font-size: .98rem;
	color: var(--yd-primary-dark);
}

.page_index_site .about_site > p:last-child {
	margin: 0;
	font-size: .95rem;
}

.page_index_site .about_site > p:last-child a {
	display: inline-block;
	margin-right: .6rem;
	padding: .55rem 1.2rem;
	border-radius: 4px;
	background: var(--yd-accent);
	color: #1f2933;
	font-weight: 700;
	text-decoration: none;
	transition: filter .15s;
}

.page_index_site .about_site > p:last-child a:hover {
	filter: brightness(.94);
}

@media (max-width: 991px) {
	.page_index_site .about_site ul {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.page_index_site .about_site {
		padding: 1.5rem 1.1rem 1.2rem;
	}

	.page_index_site .about_site h2 {
		font-size: 1.45rem;
	}

	.page_index_site .about_site ul {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   4. Judul "Journals" sebagai header direktori
   -------------------------------------------------------------------------- */
.page_index_site .journals:not(.yd-directory) > h2 {
	position: relative;
	margin: 0 0 1rem;
	padding: 1.4rem 1.5rem;
	background: linear-gradient(135deg, var(--yd-primary-dark), var(--yd-primary));
	border-radius: var(--yd-radius);
	color: #fff;
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.2;
}

.page_index_site .journals:not(.yd-directory) > h2::after {
	content: "Browse all journals published by YPPPM";
	display: block;
	margin-top: .35rem;
	font-size: .9rem;
	font-weight: 400;
	opacity: .85;
}

/* --------------------------------------------------------------------------
   5. Daftar jurnal (kartu hasil pencarian)
   -------------------------------------------------------------------------- */
.page_index_site .journals:not(.yd-directory) > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: journal;
}

.page_index_site .journals:not(.yd-directory) > ul > li {
	counter-increment: journal;
	position: relative;
	display: flex !important;
	align-items: flex-start;
	gap: 1.2rem;
	margin: 0 0 .8rem !important;
	padding: 1.1rem !important;
	background: var(--yd-card);
	border: 1px solid var(--yd-border) !important;
	border-radius: var(--yd-radius);
	transition: box-shadow .15s, border-color .15s;
}

.page_index_site .journals:not(.yd-directory) > ul > li:hover {
	border-color: var(--yd-primary) !important;
	box-shadow: 0 4px 14px rgba(23, 94, 150, .12);
}

/* Nomor urut kecil di pojok kanan atas */
.page_index_site .journals:not(.yd-directory) > ul > li::after {
	content: "#" counter(journal);
	position: absolute;
	top: .8rem;
	right: 1rem;
	font-size: .75rem;
	color: var(--yd-muted);
}

.page_index_site .journals:not(.yd-directory) > ul > li .thumb,
.page_index_site .journals:not(.yd-directory) > ul > li .body {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.page_index_site .journals:not(.yd-directory) > ul > li .thumb {
	flex: 0 0 110px;
	width: 110px !important;
}

.page_index_site .journals:not(.yd-directory) > ul > li .thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--yd-border);
	border-radius: 3px;
}

.page_index_site .journals:not(.yd-directory) > ul > li .body {
	flex: 1;
	min-width: 0;
	width: auto !important;
}

.page_index_site .journals:not(.yd-directory) > ul > li h3 {
	margin: 0 2.5rem .35rem 0;
	font-size: 1.15rem;
	line-height: 1.35;
}

.page_index_site .journals:not(.yd-directory) > ul > li h3 a {
	color: var(--yd-primary);
	font-weight: 700;
	text-decoration: none;
}

.page_index_site .journals:not(.yd-directory) > ul > li h3 a:hover {
	text-decoration: underline;
}

/* Baris meta: badge Open Access + penerbit */
.page_index_site .journals:not(.yd-directory) > ul > li h3::after {
	content: "Open Access";
	display: inline-block;
	margin-left: .5rem;
	padding: .1rem .45rem;
	border-radius: 3px;
	background: #e6f4ea;
	color: #1e7b34;
	font-size: .72rem;
	font-weight: 600;
	vertical-align: middle;
}

.page_index_site .journals:not(.yd-directory) > ul > li .description {
	margin: 0 0 .6rem;
	color: var(--yd-text);
	font-size: .92rem;
	line-height: 1.55;
}

.page_index_site .journals:not(.yd-directory) > ul > li .description p {
	margin: 0;
}

.page_index_site .journals:not(.yd-directory) > ul > li .description::before {
	content: "Publisher: YPPPM";
	display: block;
	margin-bottom: .4rem;
	font-size: .82rem;
	color: var(--yd-muted);
}

.page_index_site .journals:not(.yd-directory) > ul > li .links {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: .6rem 0 0;
	padding: 0;
	list-style: none;
}

.page_index_site .journals:not(.yd-directory) > ul > li .links li {
	margin: 0;
	padding: 0;
}

.page_index_site .journals:not(.yd-directory) > ul > li .links a {
	display: inline-block;
	padding: .35rem .9rem;
	border: 1px solid var(--yd-primary);
	border-radius: 4px;
	color: var(--yd-primary);
	font-size: .85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.page_index_site .journals:not(.yd-directory) > ul > li .links a:hover {
	background: var(--yd-primary);
	color: #fff;
}

.page_index_site .journals:not(.yd-directory) > ul > li .links .current a {
	background: var(--yd-accent);
	border-color: var(--yd-accent);
	color: #1f2933;
}

/* --------------------------------------------------------------------------
   6. Tablet & HP
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.pkp_page_index .pkp_structure_content {
		padding: 1rem;
	}

	.pkp_page_index .pkp_structure_main {
		padding: 0 !important;
	}

	.pkp_page_index .pkp_structure_main::before,
	.pkp_page_index .pkp_structure_main::after {
		display: none !important;
	}
}

@media (max-width: 768px) {
	.pkp_navigation_user_wrapper {
		position: relative !important;
		top: 0 !important;
		right: 0 !important;
		display: flex !important;
		justify-content: center;
		width: 100% !important;
		padding: 10px 0;
		background-color: var(--yd-primary);
	}

	ul#navigationUser {
		justify-content: center;
	}

	ul#navigationUser > li > a {
		background-color: transparent;
	}

	.page_index_site .journals:not(.yd-directory) > ul > li {
		flex-direction: column;
	}

	.page_index_site .journals:not(.yd-directory) > ul > li .thumb {
		flex-basis: auto;
		width: 90px !important;
	}
}

/* --------------------------------------------------------------------------
   7. Judul header pencarian dari plugin (Default theme menyembunyikannya)
   -------------------------------------------------------------------------- */
.page_index_site .yd-hero .yd-hero-title {
	position: static !important;
	clip: auto !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	margin: 0 !important;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.9rem;
	font-weight: 400;
	color: #fff;
}
