/* Blok logo "INDEXED AND ABSTRACTED IN" dibuat berkotak, 2 kolom, logo di tengah */
#customblock-indexingggg .content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
}

#customblock-indexingggg .content p {
	display: contents;
}

/* judul blok mengambil lebar penuh */
#customblock-indexingggg .content p:first-child span {
	grid-column: 1 / -1;
	display: block;
	margin-bottom: 2px;
}

#customblock-indexingggg .content a {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 86px;
	padding: 12px 10px;
	background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
	border: 1px solid #a9cde8;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(9, 38, 64, 0.14), inset 0 1px 0 #ffffff;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* garis aksen di atas tiap kotak logo */
#customblock-indexingggg .content a::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12px;
	right: 12px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, #0067b8, #00b7c3);
}

#customblock-indexingggg .content a:hover {
	transform: translateY(-2px);
	border-color: #0067b8;
	box-shadow: 0 8px 20px rgba(9, 38, 64, 0.18);
}

#customblock-indexingggg .content img {
	transition: transform 0.18s ease;
	max-width: 100%;
	max-height: 54px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

#customblock-indexingggg .content a:hover img { transform: scale(1.05); }

/* mode gelap: kotak tetap kontras karena logo berlatar putih */
:root[data-cheryl-theme="dark"] #customblock-indexingggg .content a {
	background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
	border-color: #2b76bd;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

:root[data-cheryl-theme="dark"] #customblock-indexingggg .content a:hover {
	border-color: #6fb8ff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

/* tautan tanpa logo (hanya <br>) tidak ditampilkan */
#customblock-indexingggg .content a:not(:has(img)) {
	display: none;
}

#customblock-indexingggg .content br {
	display: none;
}

@media (max-width: 480px) {
	#customblock-indexingggg .content {
		gap: 8px;
	}

	#customblock-indexingggg .content a {
		min-height: 66px;
		padding: 8px;
	}

	#customblock-indexingggg .content img {
		max-height: 42px;
	}
}

/* Semua logo di blok sidebar lain: berkotak, 2 berdampingan, di tengah */
.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}

/* paragraf teks (judul/keterangan) selebar penuh */
.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content p:not(:has(img)) {
	flex: 1 0 100%;
	margin: 0;
}

/* paragraf berisi logo: dua kolom, atau melebar penuh bila hanya satu */
.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content p:has(img) {
	flex: 1 1 calc(50% - 10px);
	min-width: 0;
	margin: 0;
}

.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content p:has(img) a:has(img) {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 74px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #e5eaef;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(9, 38, 64, 0.06);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content p:has(img) a:has(img):hover {
	border-color: #cfe0ef;
	box-shadow: 0 4px 14px rgba(9, 38, 64, 0.12);
}

.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content img {
	max-width: 100%;
	max-height: 54px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content br {
	display: none;
}

/* logo blok "Developed By" juga dibuat berkotak */
.cheryl_col .pkp_block.block_developed_by .content {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 74px;
	padding: 10px;
	background: #ffffff;
	border: 1px solid #e5eaef;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(9, 38, 64, 0.06);
}

.cheryl_col .pkp_block.block_developed_by .content img {
	max-height: 46px;
	width: auto;
	margin: 0 auto;
}

@media (max-width: 992px) {
	.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content a:has(img) {
		min-height: 66px;
		padding: 8px;
	}

	.cheryl_col .pkp_block.block_custom:not(#customblock-indexingggg) .content img {
		max-height: 44px;
	}
}

/* TOOLS: paksa dua logo sejajar tanpa turun baris */
#customblock-reference .content {
	flex-wrap: nowrap;
	align-items: stretch;
}

#customblock-reference .content p:has(img) {
	flex: 1 1 50%;
	min-width: 0;
	font-size: 0;
	line-height: 0;
}

#customblock-reference .content p:has(img) a {
	font-size: 13px;
	line-height: 1.2;
}

#customblock-reference .content p:has(img) a:has(img) {
	min-height: 74px;
	padding: 8px;
}

#customblock-reference .content img {
	max-width: 100%;
	max-height: 46px;
}

/* Statcounter: ditumpuk rapi, tidak bertumpuk */
#customblock-statcounter#customblock-statcounter .content {
	display: block;
	text-align: center;
}

#customblock-statcounter#customblock-statcounter .content a:has(img) {
	display: block;
	width: auto;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
}

#customblock-statcounter#customblock-statcounter .content a:has(img) img {
	display: block;
	margin: 0 auto 8px;
	max-height: none;
}

#customblock-statcounter#customblock-statcounter .content p {
	display: block;
	margin: 0 0 10px;
}

#customblock-statcounter#customblock-statcounter .content a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	min-height: 0;
}

#customblock-statcounter#customblock-statcounter .content img {
	max-width: 100%;
	height: auto;
	max-height: 46px;
	margin: 0;
}

#customblock-statcounter#customblock-statcounter .content a[href*="statcounter.com/p"] {
	display: inline-block;
	margin-top: 4px;
	font-size: 11.5px;
	font-weight: 700;
	color: #0067b8;
	text-decoration: none;
}

/* ACCREDITATION: gambar ditampilkan seukuran aslinya, tanpa kotak */
#customblock-accreditation#customblock-accreditation .content p:has(img) {
	flex: 1 0 100%;
	font-size: 0;
	line-height: 0;
}

#customblock-accreditation#customblock-accreditation .content a:has(img) {
	display: block;
	width: auto;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	text-align: center;
}

#customblock-accreditation#customblock-accreditation .content a:has(img) img {
	display: block;
	margin: 8px auto 0;
	max-width: 100%;
	max-height: none;
	width: auto;
	height: auto;
}

/* Statcounter: gambar pada ukuran aslinya agar tajam (tidak diperbesar) */
#customblock-statcounter#customblock-statcounter .content a:has(img) {
	display: block;
	width: auto;
	max-width: 100%;
}

#customblock-statcounter#customblock-statcounter .content a:has(img) img {
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: none;
	object-fit: contain;
}

/* Badge angka StatCounter (kotak-kotak hitam) ditampilkan lagi.
   Gambarnya kecil (60x14) sehingga saat dilebarkan memakai
   image-rendering: pixelated agar tetap tajam, tidak buram. */
#customblock-statcounter#customblock-statcounter .content img[src*="c.statcounter.com"] {
	display: block !important;
	width: 138px !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 auto 10px !important;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

#customblock-statcounter#customblock-statcounter .content p {
	overflow: visible;
}

/* Tampilan cadangan bila gambar counter gagal dimuat */
#customblock-statcounter .cheryl_counter_gagal {
	display: none !important;
}

#customblock-statcounter .cheryl_counter_notice {
	display: block;
	margin: 6px auto 0;
	padding: 10px 12px;
	font-size: 11.5px;
	line-height: 1.45;
	color: #12283d;
	background: #f4f8fc;
	border: 1px dashed #cfe0ef;
	border-radius: 8px;
	text-align: center;
}

#customblock-statcounter .cheryl_counter_notice a {
	color: #0067b8;
	font-weight: 700;
}

/* Flag counter (berisi angka pengunjung) dilebarkan mengikuti sidebar
   agar angkanya besar dan terbaca; sumbernya 239x136 sehingga hanya
   diperbesar sedikit dan tetap tajam. */
#customblock-statcounter#customblock-statcounter .content img[src*="flagcounter"] {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
}

/* Blok CONTACT: logo WhatsApp tanpa kotak dan tampil lebih besar */
#customblock-contact#customblock-contact .content a:has(img) {
	display: block;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-contact#customblock-contact .content img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

/* Blok TEMPLATE JPAK 2026: gambar tanpa kotak dan tampil lebih besar */
#customblock-template#customblock-template .content a:has(img) {
	display: block;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-template#customblock-template .content img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}


/* Blok TOOLS (#customblock-reference): logo dalam kotak ber-highlight,
   dua kolom, gaya sama seperti INDEXED AND ABSTRACTED IN. */
#customblock-reference#customblock-reference .content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
}

#customblock-reference#customblock-reference .content > p {
	margin: 0;
}

/* judul "TOOLS" di dalam konten mengambil lebar penuh */
#customblock-reference#customblock-reference .content > p:first-child {
	grid-column: 1 / -1;
}

#customblock-reference#customblock-reference .content > p:has(img) {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 86px;
	padding: 12px 10px;
	background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
	border: 1px solid #a9cde8;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(9, 38, 64, 0.14), inset 0 1px 0 #ffffff;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

#customblock-reference#customblock-reference .content > p:has(img)::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12px;
	right: 12px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, #0067b8, #00b7c3);
}

#customblock-reference#customblock-reference .content > p:has(img):hover {
	transform: translateY(-2px);
	border-color: #0067b8;
	box-shadow: 0 8px 20px rgba(9, 38, 64, 0.18);
}

#customblock-reference#customblock-reference .content > p:has(img) a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

#customblock-reference#customblock-reference .content img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	max-height: 54px !important;
	height: auto !important;
	object-fit: contain;
	margin: 0 auto;
	transition: transform 0.18s ease;
}

#customblock-reference#customblock-reference .content > p:has(img):hover img { transform: scale(1.05); }

:root[data-cheryl-theme="dark"] #customblock-reference#customblock-reference .content > p:has(img) {
	background: linear-gradient(180deg, #ffffff 0%, #eaf3fb 100%);
	border-color: #2b76bd;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

:root[data-cheryl-theme="dark"] #customblock-reference#customblock-reference .content > p:has(img):hover {
	border-color: #6fb8ff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

/* Blok SCREENING PLAGIARISM & SUPPORTED BY: gaya sama seperti CONTACT
   (tanpa kotak, gambar selebar sidebar) */
#customblock-plagiarism#customblock-plagiarism .content a:has(img),
#customblock-supported#customblock-supported .content a:has(img) {
	display: block;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-plagiarism#customblock-plagiarism .content img,
#customblock-supported#customblock-supported .content img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

/* CREDENDUM: blok INDEXING / WhatsApp / Accreditation tanpa kotak,
   logo diperbesar dan ditata rapi dua kolom. */
#customblock-picture#customblock-picture .content {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 12px;
	align-items: center;
	justify-items: center;
	text-align: center;
}

#customblock-picture#customblock-picture .content > p {
	margin: 0;
}

/* baris judul (INDEXING / WhatsApp / Accreditation) selebar blok */
#customblock-picture#customblock-picture .content > p:not(:has(img)) {
	grid-column: 1 / -1;
	margin-top: 4px;
}

/* logo pertama (keanggotaan RJI) selebar blok */
#customblock-picture#customblock-picture .content > p:first-child {
	grid-column: 1 / -1;
}

#customblock-picture#customblock-picture .content a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-picture#customblock-picture .content img {
	display: block;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 64px !important;
	object-fit: contain;
	margin: 0 auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-picture#customblock-picture .content > p:first-child img {
	max-height: 74px !important;
}

/* Logo yang berdiri sendiri (WhatsApp, Accreditation) dibuat selebar blok
   agar tetap di tengah dan tidak menggantung di kolom kiri. */
#customblock-picture#customblock-picture .content > p:nth-child(6),
#customblock-picture#customblock-picture .content > p:nth-child(8) {
	grid-column: 1 / -1;
}

#customblock-picture#customblock-picture .content > p:nth-child(6) img,
#customblock-picture#customblock-picture .content > p:nth-child(8) img {
	max-height: 70px !important;
}

/* CREDENDUM: blok PERJANJIAN KERJA SAMA tanpa kotak, gambar diperbesar */
#customblock-perjanjian#customblock-perjanjian .content a:has(img) {
	display: block;
	width: 100%;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-perjanjian#customblock-perjanjian .content img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}

/* CREDENDUM: blok Statcounter (#customblock-visitors) memakai gaya yang sama
   dengan blok statcounter JPAK — tanpa kotak, gambar selebar sidebar. */
#customblock-visitors#customblock-visitors .content {
	display: block;
	text-align: center;
}

#customblock-visitors#customblock-visitors .content a:has(img) {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#customblock-visitors#customblock-visitors .content img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 auto 10px;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
}
