/*! This file is auto-generated */
@charset "UTF-8";
@import "https://fonts.googleapis.com/css2?family=Baloo+Tamma+2&display=swap";
@import 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

/* ==========================================================
   TATA LETAK: kolom konten utama menempel ke sidebar (desktop)
   Lebar 300px = lebar sidebar; ubah angkanya kalau sidebar
   ingin dibuat lebih lebar atau lebih sempit.
   ========================================================== */
@media (min-width: 992px) {
  .pkp_structure_content {
    display: flex !important;
    align-items: stretch;
  }

  .pkp_structure_main {
    float: none !important;
    flex: 1 1 0% !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    margin-right: 0 !important;
  }

  /* garis vertikal bawaan tema di tepi kanan kolom konten */
  .pkp_structure_main:after {
    display: none !important;
  }

  .pkp_structure_sidebar {
    position: static !important;
    float: none !important;
    flex: 0 0 300px !important;
    width: 300px !important;
    margin-left: 0 !important;
  }
}

/* Semua judul artikel */
.obj_article_summary .title,
.obj_article_summary .title a,
.page_issue .obj_article_summary .title a,
.obj_article_details .page_title,
.obj_article_details h1,
.obj_article_details h1 a,
.current_issue_title,
.current_issue_title a {
  color: #004b9a!important;
  text-decoration: none;
}

@media (min-width: 768px) { /* di HP dibiarkan rata kiri */
/* Membuat semua paragraf dan konten artikel menjadi justified */
.pkp_structure_main p,
.pkp_structure_main div,
.pkp_structure_main span,
.pkp_structure_main li,
.pkp_structure_main td,
.pkp_structure_main th {
    text-align: justify !important;
}
}

/* Setiap artikel sebagai box profesional */
.cmp_article_list.articles .obj_article_summary {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1px solid #004b9a;
  padding: 16px;
  border-radius: 8px;
  background-color: #fafafa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

@media (min-width: 768px) { /* di HP dibiarkan rata kiri */
/* Khusus untuk isi artikel full text */
.obj_article_details .main_entry,
.page_article .article_details,
.page_issue .issue_description {
    text-align: justify !important;
}
}
/* Logo tetap proporsional */
.collab-logos img {
  max-width: 60px;
  height: auto;
  display: block;
}

/* Container logo horizontal, jarak lebih rapat */
.collab-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px; /* lebih rapat dari sebelumnya */
  margin-top: 8px;
  background-color: transparent; /* atau bisa pakai #ffffff untuk putih */
}

/* nama penulis pada detail */
.name {
    color: #004b9a;
}

.pkp_block .title {
    display: block;
    padding: 10px;
    text-align: left;
    background-color: #004b9a;
    color: white;
    font-weight: bold;
}

/* Hover untuk efek elegan */
.cmp_article_list.articles .obj_article_summary:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsif: satu kolom untuk mobile */
@media (max-width: 768px) {
  .cmp_article_list.articles {
    grid-template-columns: 1fr;
  }
}

/* untuk daftar artikel */
a {
    color: #004b9a;
}

a:hover {
    color: #004b9a;
}

.cmp_button_wire,
.obj_galley_link {
    background: #004b9a;
    border: 1px solid #004b9a;
    color: #fff;
}

.obj_article_summary {
    border: 1px solid #004b9a;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 3px 3px #004b9a;
}

html,body {  
  background-image: url("");  
}

.pkp_structure_content {
  /* latar biru terang yang memudar ke putih */
  background: linear-gradient(180deg, #c6e1fa 0%, #e9f4fd 280px, #ffffff 620px), #fff;
}

.pkp_site_name > a {padding-top: 0; padding-bottom: 0;}
@media (min-width: 992px) {
  .pkp_navigation_user_wrapper {top: 0; right: 0; padding-right:30px;}
}

/* ==== GAMBAR/IKON ==== */
.pkp_block img {
    max-width: 100%;
    display: block;
    margin: 0.5rem auto;
}

/* ==== MAPS, FLAG, STATISTIK ==== */
.flagcounter, .statcounter, .googlemaps {
    background: #f0f0f0;
    border: 1px solid #ccc;
    margin: 0.5rem auto;
    padding: 0.5rem;
    border-radius: 8px;
}

/* ==== SIDEBAR CONTAINER ==== */
.pkp_structure_sidebar {
    background-color: #004b9a;
    padding: 1.5rem;
    border-left: 0; /* sebelumnya ada garis abu-abu; dihapus supaya menempel rapat */
}

/* ==== SETIAP BLOK SIDEBAR ==== */
.pkp_block {
    background-color: #f9f9f9;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease-in-out;
}

@media (hover: hover) {
  .pkp_block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  }
}
/* Target gambar pertama di dalam additional_content */
.pkp_page_index .additional_content > p:first-child,
.pkp_page_index .additional_content > p:first-child > img {
  margin: 0 !important;
  padding: 0 !important;
}

/* Pastikan gambar tidak punya margin/padding dan tampil blok */
.pkp_page_index .additional_content img {
  display: block;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 60%;
  height: auto;
  max-width: 60%;
  border: none;
}

/* Override default container padding if gambar berada di dalamnya */
.pkp_page_index .additional_content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Hilangkan margin dan padding hanya untuk paragraf pertama yang memuat gambar */
.pkp_page_index .additional_content > p:first-child {
  margin: 0 !important;
  padding: 0 !important;
}
/* Hilangkan margin/padding hanya pada gambar di paragraf pertama */
.pkp_page_index .additional_content > p:first-child > img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
}
.pkp_page_index .additional_content p:first-child {
  margin-left: -15px;
  margin-right: -15px;
}

.pkp_page_index .additional_content p:first-child img {
  width: calc(70% + 30px); /* 15px kiri + 15px kanan */
  max-width: unset;
  height: auto;
  display: block;
}

/* ==========================================================
   BERANDA BESTARI: banner, kartu jurnal, tabel Tentang Bestari
   (dipakai oleh bestari-konten-ojs.html)
   ========================================================== */
.bestari-body { min-height: 100vh; }
html { scroll-behavior: smooth; }

.bestari-page {
  --navy: #0b2e47;
  --blue: #004b9a;
  --gold: #f5a65b;
  --line: #ccd3db;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  color: #222;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
  container-type: inline-size; /* hero & tabel menyesuaikan lebar kolom, bukan lebar layar */
}
.bestari-page *, .bestari-page *::before, .bestari-page *::after { box-sizing: border-box; }

/* ---------- Banner ---------- */
.bestari-page .b-banner { display: block; margin: 0; }
.bestari-page .b-banner img {
  display: block; width: 100% !important; max-width: 100% !important; height: auto;
  margin: 0 !important; border-radius: 12px 12px 0 0; /* menimpa aturan gambar tema OJS */
}

/* ---------- Kartu jurnal ---------- */
.bestari-page .b-hero {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr;
  column-gap: 28px; padding: 26px; align-content: start;
  border-radius: 0 0 12px 12px; color: #fff;
  background: radial-gradient(circle at calc(88% - var(--b-scroll, 0) * 70%) calc(12% + var(--b-scroll, 0) * 80%), rgba(120,190,250,.30), transparent 50%),
              radial-gradient(circle at 88% 12%, rgba(245,166,91,.16), transparent 45%),
              linear-gradient(135deg, var(--navy) 0%, #0d3a5c 60%, var(--blue) 140%);
  box-shadow: 0 12px 36px rgba(60,140,230,.30), 0 2px 8px rgba(11,46,71,.25);
}
.bestari-page .b-cover { grid-row: 1 / span 2; width: clamp(110px, 24cqw, 210px); align-self: start; }
.bestari-page .b-cover a {
  display: block; padding: 8px; background: #fff; border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .25s;
}
.bestari-page .b-cover a:hover { transform: translateY(-4px); }
.bestari-page .b-cover img { display: block; width: 100% !important; max-width: 100% !important; height: auto; margin: 0 !important; border-radius: 4px; }

.bestari-page .b-head, .bestari-page .b-body { min-width: 0; }
.bestari-page .b-title { margin: 0; font-size: clamp(24px, 4.4cqw, 32px); font-weight: 700; line-height: 1.2; color: #fff; }
.bestari-page .b-sub { margin: 4px 0 16px; font-size: 14px; letter-spacing: .3px; color: var(--gold); }

.bestari-page .b-btns { display: flex; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.bestari-page .b-hero a.b-btn {
  display: inline-block; padding: 6px 16px; border-radius: 6px;
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 700;
  text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s;
}
.bestari-page .b-hero a.b-btn:hover { background: #dbe6f0; color: var(--navy); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.25); }

.bestari-page .b-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.bestari-page .b-chips li {
  padding: 3px 11px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.08);
}

.bestari-page .b-about p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; text-align: justify; }
.bestari-page .b-extra { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .4s ease, opacity .3s ease; }
.bestari-page .b-extra > p { overflow: hidden; min-height: 0; margin: 0; }
.bestari-page .b-about.is-open .b-extra { grid-template-rows: 1fr; opacity: 1; }

.bestari-page .b-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; }
.bestari-page .b-hero .b-link {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 22px;
  border: 0; border-radius: 12px; cursor: pointer;
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  background: linear-gradient(180deg, #4aa8f2 0%, #2272c4 100%);
  box-shadow: 0 4px 0 #17508f, 0 8px 16px rgba(34,114,196,.35);
  transition: transform .15s, box-shadow .15s, filter .2s;
}
.bestari-page .b-hero .b-link--main {
  color: var(--navy);
  background: linear-gradient(180deg, #ffc786 0%, #f0902f 100%);
  box-shadow: 0 4px 0 #b8691c, 0 8px 16px rgba(240,144,47,.35);
}
.bestari-page .b-hero .b-link--light {
  color: var(--navy); background: #fff;
  box-shadow: 0 4px 0 #b7c7d9, 0 8px 16px rgba(255,255,255,.18);
}
.bestari-page .b-hero .b-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.bestari-page .b-hero .b-link:hover, .bestari-page .b-hero .b-link:focus-visible { transform: translateY(-3px); filter: brightness(1.08); }
.bestari-page .b-hero .b-link:active { transform: translateY(3px); filter: none; box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.bestari-page .b-hero .b-link--main[aria-expanded="true"] svg { transform: rotate(180deg); }
.bestari-page a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- Tabel Tentang Bestari ---------- */
.bestari-page #tentang { margin-top: 38px; }
.bestari-page #tentang h2 {
  margin: 0 0 14px; padding-left: 12px; font-size: 22px; color: var(--navy);
  border-left: 5px solid var(--gold);
}
.bestari-page .table-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: 10px; }
.bestari-page .table-tentang { width: 100%; border-collapse: collapse; font-size: 15px; }
.bestari-page .table-tentang th,
.bestari-page .table-tentang td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top; line-height: 1.6; overflow-wrap: anywhere;
  text-align: left !important; /* menimpa aturan justify tema OJS */
}
.bestari-page .table-tentang tr:last-child th,
.bestari-page .table-tentang tr:last-child td { border-bottom: 0; }
.bestari-page .table-tentang th { width: 240px; background: #f2f5f9; color: var(--navy); font-weight: 700; }
.bestari-page .table-tentang tr:nth-child(even) td { background: #fafafa; }
.bestari-page .table-tentang a { color: #1a5fb4; }
.bestari-page .table-tentang tr { transition: background .2s; }
.bestari-page .table-tentang tr:hover th { background: #e1ecf9; }
.bestari-page .table-tentang tr:hover td { background: #f1f7fd; }

/* ---------- Efek biru halus saat scroll ---------- */
:root { --b-scroll: 0; } /* 0 = paling atas, 1 = paling bawah; diisi JavaScript */
.bestari-body, .pkp_structure_content {
  background:
    radial-gradient(ellipse 85% 42% at 50% calc(4% + var(--b-scroll, 0) * 90%), rgba(70,150,235,.26), rgba(70,150,235,0) 72%) fixed,
    linear-gradient(180deg, #c6e1fa 0%, #e9f4fd 280px, #ffffff 620px) scroll,
    #fff;
  background-repeat: no-repeat;
}
.b-progress {
  position: fixed; top: 0; left: 0; z-index: 99999; height: 3px; pointer-events: none;
  width: calc(var(--b-scroll, 0) * 100%);
  background: linear-gradient(90deg, #3d9be9, #9fd0fb, #f5a65b);
  box-shadow: 0 0 8px rgba(61,155,233,.6);
}
.bestari-page.b-js .b-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.bestari-page.b-js .b-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Animasi masuk ---------- */
@keyframes b-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bestari-page .b-banner, .bestari-page .b-hero, .bestari-page #tentang { animation: b-rise .6s ease both; }
.bestari-page .b-hero { animation-delay: .1s; }
.bestari-page #tentang { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  .bestari-page *, .bestari-page *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .bestari-page.b-js .b-reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif: mengikuti lebar kolom (HP, tablet, laptop) ---------- */
@container (max-width: 620px) {
  .bestari-page .b-hero { padding: 16px; column-gap: 16px; row-gap: 14px; grid-template-rows: auto auto; }
  .bestari-page .b-cover { grid-row: 1; }
  .bestari-page .b-body { grid-column: 1 / -1; }
  .bestari-page .b-sub { font-size: 12px; margin-bottom: 12px; }
  .bestari-page .b-link { flex: 1 1 auto; justify-content: center; }
  .bestari-page .b-about p { text-align: left; } /* rata kiri di kolom sempit */
}
@container (max-width: 520px) {
  .bestari-page .table-tentang, .bestari-page .table-tentang tbody,
  .bestari-page .table-tentang tr, .bestari-page .table-tentang th,
  .bestari-page .table-tentang td { display: block; width: 100%; }
  .bestari-page .table-tentang th { padding-bottom: 4px; border-bottom: 0; }
  .bestari-page .table-tentang td { padding-top: 4px; }
  .bestari-page .table-tentang td a { font-size: 13px; }
}

/* ==========================================================
   PERBAIKAN TAMPILAN HP & TABLET
   ========================================================== */
@media (max-width: 991px) {
  /* latar "fixed" sering patah-patah di HP, jadi ikut bergulir saja */
  .bestari-body, .pkp_structure_content { background-attachment: scroll, scroll, scroll; }
  .pkp_structure_main, .pkp_structure_sidebar { max-width: 100%; }
  .pkp_structure_main img { max-width: 100%; height: auto; }
  .pkp_structure_sidebar { padding: 1rem; border-left: 0; }
  .pkp_block { padding: .9rem 1rem; margin-bottom: 1rem; }
}
@media (max-width: 767px) {
  /* gambar di beranda tidak lagi dikecilkan 60-70% dan tidak bergeser ke kiri */
  .pkp_page_index .additional_content img { width: 100%; max-width: 100%; }
  .pkp_page_index .additional_content p:first-child { margin-left: 0; margin-right: 0; }
  .pkp_page_index .additional_content p:first-child img { width: 100%; max-width: 100%; }
  .obj_article_summary { box-shadow: 2px 2px #004b9a; }
}
