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

/*
 * Site Style Sheet - jurnal.rijan.ac.id
 * Tema: Biru Tua (#002b62) + Teks Putih + Aksen Kuning (#fbd62e)
 * Mobile friendly. Untuk OJS 3.3 (tema Default atau child theme-nya).
 * Ubah warna cukup di blok :root.
 */

:root {
	--navy:      #002b62;   /* latar utama (sesuai contoh) */
	--navy-deep: #00204a;   /* header */
	--navy-dark: #001a3d;   /* baris menu, dropdown */
	--navy-foot: #001530;   /* footer */
	--navy-soft: #0a3a7a;   /* hover, blok */
	--yellow:    #fbd62e;   /* aksen: nama penulis, garis, tombol */
	--white:     #ffffff;
	--muted:     #b9c8de;
	--line:      rgba(255, 255, 255, 0.15);
	--panel:     rgba(255, 255, 255, 0.05);
	--radius:    6px;
	--shadow:    0 8px 24px rgba(0, 0, 0, 0.35);
	--font:      "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================================
   1. DASAR
   ========================================================= */
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body,
.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_sidebar {
	background: var(--navy);
	color: var(--white);
}

body {
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--yellow);
	color: var(--navy);
}

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

a {
	color: var(--yellow);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--white);
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid var(--yellow);
	outline-offset: 2px;
}

h1, h2, h3, h4, h5 {
	font-family: var(--font);
	color: var(--white);
	line-height: 1.35;
}

hr {
	border-color: var(--line);
}

/* =========================================================
   2. HEADER
   ========================================================= */
.pkp_structure_head {
	background: var(--navy-deep);
	border-top: 5px solid var(--yellow);
	border-bottom: 1px solid var(--line);
	box-shadow: var(--shadow);
}

/* Baris atas header: logo - nama jurnal - badge ISSN - user menu,
   disusun flex supaya sejajar rapi & tidak numpuk di layar sempit */
.pkp_head_wrapper {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px;
}

.pkp_site_name_wrapper {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0; /* agar teks judul boleh terpotong, bukan header yang melebar */
	flex: 1 1 auto;
}

.pkp_site_name .is_img {
	flex-shrink: 0;
	line-height: 0;
}

.pkp_site_name .is_img img {
	max-height: 64px;
	width: auto;
	object-fit: contain;
	image-rendering: -webkit-optimize-contrast;
}

.pkp_site_name .is_text,
.pkp_site_name > a {
	display: block;
	font-family: var(--font);
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--white);
	letter-spacing: 0.01em;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Badge E-ISSN / P-ISSN di sisi kanan header, rapi & tidak menempel logo */
.pkp_head_wrapper .issn_badges {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex-shrink: 0;
	margin-left: auto;
}

.pkp_head_wrapper .issn_badges span {
	display: inline-block;
	padding: 2px 9px;
	background: var(--navy-soft);
	border: 1px solid var(--yellow);
	border-radius: 999px;
	color: var(--yellow);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.pkp_navigation_user {
	flex-shrink: 0;
}

.pkp_navigation_user > li > a {
	color: var(--white);
	font-size: 0.85rem;
	font-weight: 500;
}

.pkp_navigation_user > li > a:hover,
.pkp_navigation_user > li > a:focus {
	color: var(--yellow);
	text-decoration: none;
}

/* =========================================================
   3. MENU UTAMA
   ========================================================= */
.pkp_navigation_primary > li > a,
.pkp_navigation_primary ul a {
	color: var(--white);
	font-weight: 500;
}

@media (min-width: 992px) {
	.pkp_navigation_primary_row {
		background: var(--navy-dark);
		border-bottom: 1px solid var(--line);
	}

	.pkp_navigation_primary > li > a {
		font-size: 0.85rem;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		border-bottom-color: transparent;
		transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	}

	.pkp_navigation_primary > li > a:hover,
	.pkp_navigation_primary > li > a:focus {
		color: var(--yellow);
		background: var(--navy-soft);
		box-shadow: inset 0 -3px 0 var(--yellow);
		text-decoration: none;
	}

	.pkp_navigation_primary ul {
		background: var(--navy-dark);
		border: 1px solid var(--line);
		border-top: 3px solid var(--yellow);
		border-radius: 0 0 var(--radius) var(--radius);
		box-shadow: var(--shadow);
	}

	.pkp_navigation_primary ul a {
		text-transform: none;
		letter-spacing: 0;
	}

	.pkp_navigation_primary ul a:hover,
	.pkp_navigation_primary ul a:focus {
		background: var(--navy-soft);
		color: var(--yellow);
		text-decoration: none;
	}

	.pkp_navigation_search_wrapper a {
		color: var(--white);
	}

	.pkp_navigation_search_wrapper a:hover,
	.pkp_navigation_search_wrapper a:focus {
		color: var(--yellow);
		text-decoration: none;
	}
}

/* =========================================================
   4. KONTEN UTAMA
   ========================================================= */
.cmp_breadcrumbs,
.cmp_breadcrumbs .separator,
.cmp_breadcrumbs .current {
	font-size: 0.85rem;
	color: var(--muted);
}

.cmp_breadcrumbs a {
	color: var(--yellow);
}

.page h1,
.page_title {
	font-size: 1.8rem;
	font-weight: 600;
	padding-bottom: 0.6rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--line);
	position: relative;
}

.page h1::after,
.page_title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 64px;
	height: 3px;
	background: var(--yellow);
}

.current_issue .section > h2,
.obj_issue_toc .section > h2,
.current_issue > h2 {
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yellow);
	padding-bottom: 0.4rem;
	margin: 1.75rem 0 1rem;
	border-bottom: 1px solid var(--line);
}

.obj_issue_summary .cover img,
.obj_issue_toc .cover img,
.pkp_page_index .current_issue .cover img {
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

/* =========================================================
   5. DAFTAR ARTIKEL (judul putih kapital, penulis kuning)
   ========================================================= */
.obj_article_summary {
	padding: 1rem 0.5rem 1rem 1rem;
	margin-bottom: 0.75rem;
	background: transparent;
	border: 0;
	border-left: 3px solid transparent;
	border-bottom: 1px solid var(--line);
	transition: background 0.25s ease, border-color 0.25s ease;
}

.obj_article_summary:hover {
	background: var(--panel);
	border-left-color: var(--yellow);
}

.obj_article_summary .title {
	margin: 0 0 0.3rem;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.55;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.obj_article_summary .title a {
	color: var(--white);
}

.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus {
	color: var(--yellow);
	text-decoration: none;
}

.obj_article_summary .meta .authors,
.obj_article_summary .authors {
	color: var(--yellow);
	font-size: 0.9rem;
	font-weight: 500;
}

.obj_article_summary .meta .pages,
.obj_article_summary .pages,
.obj_article_summary .published {
	color: var(--muted);
	font-size: 0.85rem;
}

/* Tombol PDF / galley */
.obj_galley_link,
a.obj_galley_link {
	display: inline-block;
	padding: 0.3rem 0.9rem;
	background: var(--yellow);
	border: 1px solid var(--yellow);
	border-radius: var(--radius);
	color: var(--navy);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.obj_galley_link:hover,
.obj_galley_link:focus {
	background: var(--white);
	border-color: var(--white);
	color: var(--navy);
	text-decoration: none;
}

/* =========================================================
   6. HALAMAN ARTIKEL
   ========================================================= */
.obj_article_details .page_title {
	font-size: 1.7rem;
	line-height: 1.4;
}

.obj_article_details .authors,
.obj_article_details .item.authors {
	color: var(--yellow);
}

.obj_article_details .item .label,
.obj_article_details .item > h2,
.obj_article_details .item > h3 {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
}

.obj_article_details .item.abstract {
	padding: 1rem 1.25rem;
	background: var(--panel);
	border-left: 4px solid var(--yellow);
	border-radius: 0 var(--radius) var(--radius) 0;
	text-align: justify;
}

.obj_article_details .entry_details .item {
	padding: 1rem;
	margin-bottom: 1rem;
	background: var(--panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

table,
th,
td {
	border-color: var(--line);
}

th {
	color: var(--yellow);
}

/* =========================================================
   7. SIDEBAR
   ========================================================= */
.pkp_block {
	padding: 1.1rem 1.25rem;
	margin-bottom: 1.5rem;
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 3px solid var(--yellow);
	border-radius: var(--radius);
}

.pkp_block .title {
	margin: 0 0 0.85rem;
	padding-bottom: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--yellow);
	border-bottom: 1px solid var(--line);
}

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

.pkp_block li {
	padding: 0.25rem 0;
}

.pkp_block a {
	color: var(--white);
}

.pkp_block a:hover,
.pkp_block a:focus {
	color: var(--yellow);
}

/* =========================================================
   8. TOMBOL, FORM, PAGINASI
   ========================================================= */
.cmp_button,
.cmp_button_wire,
button.pkp_button,
input[type="submit"] {
	min-height: 44px;
	padding: 0.5rem 1.25rem;
	background: var(--yellow);
	border: 1px solid var(--yellow);
	border-radius: var(--radius);
	color: var(--navy);
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.cmp_button:hover,
.cmp_button:focus,
.cmp_button_wire:hover,
.cmp_button_wire:focus,
button.pkp_button:hover,
input[type="submit"]:hover {
	background: var(--white);
	border-color: var(--white);
	color: var(--navy);
	text-decoration: none;
}

label,
legend {
	color: var(--white);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	background: var(--white);
	color: #1c2533;
	font-size: 16px; /* mencegah zoom otomatis di iOS */
	border: 1px solid #cbd5e1;
	border-radius: var(--radius);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--yellow);
	outline: 3px solid rgba(251, 214, 46, 0.35);
	outline-offset: 0;
}

.cmp_pagination a,
.cmp_pagination span {
	display: inline-block;
	min-width: 40px;
	padding: 0.4rem 0.7rem;
	text-align: center;
	border-radius: var(--radius);
}

.cmp_pagination .current {
	background: var(--yellow);
	color: var(--navy);
	font-weight: 700;
}

/* =========================================================
   9. FOOTER
   ========================================================= */
.pkp_structure_footer_wrapper {
	background: var(--navy-foot);
	border-top: 4px solid var(--yellow);
	color: var(--muted);
}

.pkp_structure_footer {
	padding-top: 2.25rem;
	padding-bottom: 1rem;
}

.pkp_footer_content {
	padding: 0;
}

.jf a {
	color: var(--white);
	text-decoration: none;
}

.jf a:hover,
.jf a:focus {
	color: var(--yellow);
	text-decoration: underline;
}

.jf-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr;
	gap: 2rem;
}

.jf h3 {
	margin: 0 0 0.75rem;
	color: var(--yellow);
	font-size: 1.15rem;
	font-weight: 600;
}

.jf h4 {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding-bottom: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--white);
	border-bottom: 2px solid var(--yellow);
}

.jf p {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.65;
}

.jf ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jf li {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
}

.jf-issn {
	padding: 0.6rem 0.85rem;
	background: rgba(255, 255, 255, 0.07);
	border-left: 3px solid var(--yellow);
	border-radius: 3px;
}

.jf-index span {
	display: inline-block;
	margin: 0 0.3rem 0.4rem 0;
	padding: 0.2rem 0.7rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	font-size: 0.8rem;
	color: var(--white);
}

.jf-bottom {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	text-align: center;
}

.jf-bottom p {
	margin: 0;
	font-size: 0.82rem;
	color: var(--muted);
}

.pkp_brand_footer {
	padding-bottom: 1rem;
	opacity: 0.7;
}

/* =========================================================
   10. RESPONSIF (TABLET & PONSEL)
   ========================================================= */
@media (max-width: 991px) {
	.jf-grid {
		grid-template-columns: 1fr 1fr;
	}

	.pkp_head_wrapper {
		padding: 10px 14px;
		gap: 10px;
	}

	/* Tombol menu (hamburger) dibuat kuning agar terlihat di header gelap */
	.pkp_site_nav_toggle {
		background: var(--yellow);
		border-radius: var(--radius);
		width: 38px;
		height: 38px;
		flex-shrink: 0;
	}

	/* Badge ISSN disembunyikan di header ponsel sempit supaya tidak
	   bertabrakan dengan logo & tombol menu; masih tampil di footer */
	.pkp_head_wrapper .issn_badges {
		display: none;
	}

	/* Menu geser di ponsel */
	.pkp_site_nav_menu {
		background: var(--navy-dark);
	}

	.pkp_site_nav_menu a,
	.pkp_navigation_primary a,
	.pkp_navigation_user a {
		display: block;
		padding-top: 0.7rem;
		padding-bottom: 0.7rem;
		color: var(--white);
	}

	.pkp_site_nav_menu a:hover,
	.pkp_site_nav_menu a:focus {
		color: var(--yellow);
	}
}

@media (max-width: 767px) {
	body {
		line-height: 1.65;
	}

	.page h1,
	.page_title {
		font-size: 1.4rem;
	}

	.obj_article_details .page_title {
		font-size: 1.3rem;
	}

	.pkp_site_name .is_img img {
		max-height: 42px;
	}

	.pkp_site_name .is_text,
	.pkp_site_name > a {
		font-size: 0.92rem;
		max-width: 55vw;
	}

	.obj_article_summary {
		padding: 0.9rem 0.25rem 0.9rem 0.75rem;
	}

	.obj_article_summary .title {
		font-size: 0.88rem;
	}

	.obj_article_details .item.abstract {
		text-align: left;
		padding: 0.85rem 1rem;
	}

	.pkp_block {
		padding: 1rem;
	}

	/* Tabel lebar bisa digeser ke samping */
	.page table,
	.obj_article_details table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 575px) {
	.jf-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* Hormati pengguna yang mematikan animasi */
@media (min-width: 1200px) {
	.pkp_head_wrapper {
		padding: 18px 24px;
	}

	.pkp_site_name .is_img img {
		max-height: 72px;
	}

	.pkp_site_name .is_text,
	.pkp_site_name > a {
		font-size: 1.3rem;
	}

	.pkp_head_wrapper .issn_badges span {
		font-size: 0.72rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
