/* Portal Jurnal FAI UMI. Applies to the OJS multi-journal homepage. */
body.pkp_page_index:has(.page_index_site) {
  --fai-ink: #18352b;
  --fai-muted: #50665b;
  --fai-green: #174b3c;
  --fai-deep: #102f27;
  --fai-gold: #edc874;
  --fai-line: #dce5df;
  color: var(--fai-ink);
  background: #f8f8f2;
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_page {
  max-width: none;
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_head {
  background: var(--fai-deep);
  border-bottom: 3px solid var(--fai-gold);
}
body.pkp_page_index:has(.page_index_site) .pkp_site_name > a {
  color: #fff;
  font-family: Georgia, serif;
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_content {
  display: flex;
  flex-direction: column;
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 0;
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_main {
  float: none;
  width: 100%;
  min-height: 0;
  padding: 0;
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_main::before,
body.pkp_page_index:has(.page_index_site) .pkp_structure_main::after { display: none; }

.page_index_site .about_site {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 24px 0 0;
  padding: clamp(28px, 6vw, 74px) clamp(22px, 6vw, 78px);
  border-radius: 16px;
  background: radial-gradient(circle at 87% 18%, #32604c 0, #1c493a 32%, #10352d 77%);
  color: white;
}
.page_index_site .about_site::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 6%;
  top: calc(50% - 137px);
  width: 274px;
  height: 274px;
  border: 1px solid #edc87480;
  border-radius: 50%;
  box-shadow: 0 0 0 25px #edc87428, 0 0 0 52px #edc87414, 0 0 0 78px #edc8740b;
  pointer-events: none;
}
.page_index_site .about_site h2 {
  margin: 9px 0 15px;
  color: white;
  font: 400 clamp(2.7rem, 6.1vw, 6rem)/.98 Georgia, serif;
  letter-spacing: -.05em;
}
.page_index_site .about_site h2 em { color: var(--fai-gold); }
.page_index_site .about_site p {
  margin: 0 0 15px;
  max-width: 60ch;
  color: #f1f5f0;
  font-size: 1rem;
  line-height: 1.55;
}
.page_index_site .about_site p:first-child {
  color: var(--fai-gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.page_index_site .about_site p:last-child { margin-bottom: 0; }
.page_index_site .about_site a {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 9px 15px;
  border: 1px solid #f0dbad;
  border-radius: 7px;
  color: #fff7e6;
  font-weight: 700;
  text-decoration: none;
}
.page_index_site .about_site a:first-child { background: var(--fai-gold); color: #302713; }
.page_index_site .about_site a:hover { text-decoration: underline; }

.page_index_site .journals { margin: 0; padding: clamp(25px, 4vw, 52px) 0; }
.page_index_site .journals > h2 {
  position: static;
  display: block;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  margin: 0 0 20px;
  padding: 0;
  color: var(--fai-ink);
  font: 400 clamp(1.8rem, 4vw, 3.2rem)/1.12 Georgia, serif;
  letter-spacing: -.04em;
}
.page_index_site .journals > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
.page_index_site .journals > ul > li {
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--fai-line);
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 18px #16392a0a;
}
.page_index_site .journals > ul > li::after { display: none; }
.page_index_site .journals .thumb,
.page_index_site .journals .thumb + .body {
  float: none;
  width: 100%;
}
.page_index_site .journals .thumb {
  padding: 0;
  background: #e8f0e8;
  border-bottom: 1px solid var(--fai-line);
}
.page_index_site .journals .thumb a { display: block; padding: 12px; }
.page_index_site .journals .thumb img {
  display: block;
  width: 100%;
  height: 144px;
  max-height: none;
  object-fit: contain;
  margin: 0;
}
.page_index_site .journals li .body {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
}
.page_index_site .journals .body h3 {
  margin: 0 0 8px;
  font: 700 1.2rem/1.2 Georgia, serif;
}
.page_index_site .journals .body h3 a { color: var(--fai-ink); }
.page_index_site .journals .description { color: var(--fai-muted); font-size: .875rem; line-height: 1.47; }
.page_index_site .journals .description > :not(p:first-of-type) { display: none; }
.page_index_site .journals .description > p:first-of-type {
  margin: 0 0 15px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page_index_site .journals ul.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: auto 0 0;
  padding: 0;
}
.page_index_site .journals ul.links > li { margin: 0; padding: 0; }
.page_index_site .journals ul.links a {
  display: inline-block;
  padding: 6px 9px;
  border: 1px solid #b4ccc1;
  border-radius: 6px;
  color: var(--fai-green);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}
.page_index_site .journals ul.links > li:first-child a { background: var(--fai-green); color: white; }
.page_index_site .journals a:hover { text-decoration: underline; }
body.pkp_page_index:has(.page_index_site) .pkp_structure_sidebar {
  display: flex;
  flex-wrap: wrap;
  float: none;
  width: 100%;
  gap: 18px;
  margin: 0 0 20px;
  border-top: 1px solid var(--fai-line);
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_sidebar .pkp_block {
  margin: 0;
  padding: 14px 10px 0 0;
}
body.pkp_page_index:has(.page_index_site) .pkp_structure_footer_wrapper { background: #eaf0ea; }
body.pkp_page_index:has(.page_index_site) a:focus-visible {
  outline: 3px solid #a77923;
  outline-offset: 3px;
}
@media (max-width: 1020px) {
  .page_index_site .journals > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.pkp_page_index:has(.page_index_site) .pkp_structure_content { width: calc(100% - 28px); }
  .page_index_site .about_site { margin-top: 12px; }
  .page_index_site .about_site::after { opacity: .45; }
  .page_index_site .journals > ul { gap: 10px; }
  .page_index_site .journals li .body { padding: 10px; }
  .page_index_site .journals .thumb img { height: 98px; }
  .page_index_site .journals ul.links a { padding: 5px 7px; }
}
@media (max-width: 380px) {
  .page_index_site .journals > ul { grid-template-columns: 1fr; }
}
