/*
Theme Name: LPPM ST Bhinneka
Theme URI: https://lppm.satyaterrabhinneka.ac.id/
Author: LPPM ST Bhinneka
Description: Tema responsif LPPM ST Bhinneka dengan halaman dan aset situs yang telah disiapkan.
Version: 1.3.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lppm-stbhinneka
*/

body > header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  flex: 0 0 auto;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex !important;
  flex-direction: column !important;
}

body.page {
  padding: 0 !important;
}

main#top {
  flex: 1 0 auto !important;
}

footer {
  width: 100%;
  flex: 0 0 auto;
  margin-top: auto;
}

html {
  min-height: 100%;
  background: #0a2f5c;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: #fff;
  z-index: 30;
}

header .navbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid #e3edf8;
  box-shadow: 0 4px 24px rgba(15, 76, 147, .08);
}

header .navbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #6db1ff, #1976d2 45%, #0f4c93);
}

header .navbar .container {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 13px 16px 11px;
}

header .navbar .logo {
  display: flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

header .navbar .logo img {
  display: block;
  width: auto;
  height: 58px;
}

header .navbar .menu {
  display: flex;
  align-items: center;
  flex: none;
  gap: 2px;
  margin: 0 0 0 auto;
  padding: 5px;
  list-style: none;
  border: 1px solid #e3edf8;
  border-radius: 999px;
}

header .navbar .menu > li {
  position: relative;
}

header .navbar .menu a,
header .navbar .menu summary.dd {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #3b4a5c;
  font: 600 .92rem / 1.5 var(--font, "Plus Jakarta Sans", sans-serif);
  font-size: .92rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
  list-style: none;
  user-select: none;
}

header .navbar .menu summary.dd::-webkit-details-marker {
  display: none;
}

body.home header .navbar .menu a,
body.home header .navbar .menu summary.dd {
  font-size: 14px;
}

header .navbar .menu a:hover,
header .navbar .menu summary.dd:hover {
  background: #fff;
  color: #1976d2;
  box-shadow: 0 2px 8px rgba(25, 118, 210, .15);
}

header .navbar .menu a.active,
header .navbar .menu summary.dd.active {
  background: #1976d2;
  color: #fff;
  box-shadow: 0 4px 12px rgba(25, 118, 210, .35);
}

header .navbar .menu a.active:hover,
header .navbar .menu summary.dd.active:hover {
  background: #0f4c93;
  color: #fff;
}

main .quick-in a.logo-link.arjuna-logo {
  background: #0f4c93;
  border-color: #0f4c93;
}

main .quick-in a.logo-link.arjuna-logo:hover {
  background: #0f4c93;
  border-color: #1976d2;
}

header .navbar .menu summary.dd::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

header .navbar .menu details[open] > summary.dd::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

header .navbar .menu .sub {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 50;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid #dbe8f7;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 76, 147, .18);
  transform: translateX(-50%);
}

header .navbar .menu .sub::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #fff;
  border-top: 1px solid #dbe8f7;
  border-left: 1px solid #dbe8f7;
  transform: translateX(-50%) rotate(45deg);
}

header .navbar .menu details[open] > .sub {
  display: block;
  animation: lppm-sub-in .16s ease-out;
}

@keyframes lppm-sub-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

header .navbar .menu .sub a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  background: none;
  box-shadow: none;
  color: #3b4a5c;
  font-weight: 500;
  font-size: .92rem;
  line-height: 1.5;
  white-space: nowrap;
}

header .navbar .menu .sub a:hover,
header .navbar .menu .sub a.sel {
  background: #e8f1fb;
  color: #1976d2;
  box-shadow: none;
}

header .navbar .menu .sub a.sel {
  font-weight: 700;
}

header .navbar .toggler {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid #dbe8f7;
  border-radius: 12px;
  background: #f3f8fe;
  color: #1976d2;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 991px) {
  header .navbar .container {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 13px 16px 11px;
  }

  header .navbar .toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  header .navbar .menu {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    margin: 6px 0 4px;
    padding: 8px;
    border-radius: 18px;
  }

  header .navbar .menu.show {
    display: flex;
  }

  header .navbar .menu a,
  header .navbar .menu summary.dd {
    width: 100%;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 12px;
  }

  header .navbar .menu .sub {
    position: static;
    min-width: 0;
    margin: 2px 0 6px 10px;
    padding: 2px 0 2px 10px;
    background: transparent;
    border: 0;
    border-left: 2px solid #dbe8f7;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
  }

  header .navbar .menu .sub::before {
    display: none;
  }
}

@media (min-width: 992px) {
  header .navbar .toggler {
    display: none;
  }

  header .navbar .menu {
    display: flex !important;
    width: auto;
    flex-direction: row;
  }
}

body #top #info a.btn.out {
  background-color: #1976d2 !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  box-shadow: 0 5px 14px rgba(25, 118, 210, .22);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body #top #info a.btn.out:hover {
  background-color: #0f4c93 !important;
  box-shadow: 0 9px 20px rgba(15, 76, 147, .3);
  transform: translateY(-3px) scale(1.02);
}

body #top #info a.btn.out:active {
  transform: translateY(0) scale(.98);
}

body .view[data-route="cpd-research-week-1"] .artbody p {
  text-align: justify !important;
}

@media (prefers-reduced-motion: reduce) {
  body #top #info a.btn.out {
    transition: none;
  }
}

body #top #info a.btn.out:hover {
  background-color: #0f4c93 !important;
}
