/* Colors */

/* https://codepen.io/yago85/pen/KKQoKzw */

.mm-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mm-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 999;
}
.logo {
  width: 322px;
}

/* nav menu button */

.menu-btn {
  position: relative;
  display: none;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  z-index: 2;
}

.mm-navbar .menu-btn__lines::before,
.mm-navbar .menu-btn__lines::after {
  content: "";
  position: absolute;
}

.mm-navbar .menu-btn__lines,
.mm-navbar .menu-btn__lines::before,
.mm-navbar .menu-btn__lines::after {
  width: 1.5rem;
  height: 0.1rem;
  background: #fff;
  transition: all 0.4s ease-in-out;
}

.mm-navbar .menu-btn__lines::before {
  transform: translateY(-0.5rem);
}

.mm-navbar .menu-btn__lines::after {
  transform: translateY(0.5rem);
}

.mm-navbar .menu-items {
  display: flex;
  align-items: center;
  margin-top: 18px;
}

.mm-navbar ul li {
  list-style: none;
  transition: 0.3s ease;
}

.mm-navbar ul li .arrow {
  transition: all 0.3s ease-out;
}

.mm-navbar ul li a {
  text-decoration: none;
  color: #fff;
}

/* dropdown menu */

.mm-navbar .mm-dropdown {
  position: relative;
}
.expand-btn:after {
  content: " \25BE";
  opacity: 0.4;
  margin-left: 5px;
}

.mm-navbar .mm-dropdown-menu,
.menu-right {
  position: absolute;
  background: #1e2e6a;
  width: 240px;
  line-height: 25px;
  border-radius: 0 0 5px 5px;
  top: 65px;
  border-top: 0 solid white;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  -webkit-box-shadow: 0 20px 50px 0 rgb(0 0 0 / 5%);
  box-shadow: 0 20px 50px 0 rgb(0 0 0 / 5%);
}

.mm-navbar .menu-right {
  top: 0;
  left: 100%;
}
.mm-navbar .mm-dropdown-menu,
.menu-left {
  left: unset;
  right: 0;
}
.mm-navbar .menu-left {
  left: -100%;
}

.mm-navbar .menu-item {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 1.5rem;
  font-size: 14px;
}
.mm-navbar .menu-item:hover {
  background: #435bb1;
}

.menu-item.first-item {
  font-size: 17px;
  padding: 1.2rem 1rem;
}

.mm-dropdown-menu li {
    margin-left: -32px;
}

.mm-navbar .mm-dropdown:hover .mm-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.mm-navbar .mm-dropdown-right:hover .menu-right {
  left: 100%;
  opacity: 1;
  visibility: visible;
}

.mm-navbar .mm-dropdown-right:hover .menu-left {
  left: -100%;
}


/* animation menu hamburger */
.menu-btn.open .menu-btn__lines {
  transform: translateX(1rem);
  background: transparent;
}

.menu-btn.open .menu-btn__lines::before {
  transform: rotate(45deg) translate(-0.5rem, 0.5rem);
  background: #fff;
}

.menu-btn.open .menu-btn__lines::after {
  transform: rotate(-45deg) translate(-0.5rem, -0.5rem);
  background: #fff;
}

/* Responsive style */

@media screen and (max-width: 1024px) {
  .mm-navbar {
    padding: 10px 20px;
  }

  .overflow {
    overflow: hidden;
  }

  .overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    background-color: rgba(0, 0, 0, 0.0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

  .overlay--active {
    opacity: 1;
    visibility: visible;
  }

  .logo {
    width: 240px !important;
  }

  .menu-btn {
    display: flex;
  }

  .mm-navbar .menu-items {
    position: fixed;
    height: 100%;
    max-height: initial;
    overflow-y: auto;
    width: 80%;
    top: 72px;
    left: 0;
    background: #1e2e6a;
    display: block;
    transform: translateX(-100vh);
    transition: 0.3s ease-out;
  }

  .menu-items.open {
    transform: translateY(0);
  }

  .menu-items li:first-child {
    margin-top: 20px;
  }

  .menu-items li a {
    padding: 10px 1rem;
    display: block;
    font-size: 18px;
  }

  .menu-items .mm-dropdown-right .right-arrow {
    transform: rotate(90deg);
  }

  .menu-item.first-item {
    padding: 1rem 1rem;
  }

  /* DROPDOWN, MEGA MENUS */
  .menu-items .mm-dropdown-menu,
  .menu-items .menu-right,
  .menu-items .mega-menu {
    position: static;
    opacity: 1;
    top: 4rem;
    visibility: visible;
    margin-left: -18px;
    width: auto;
    max-height: 0;
    transform: scaleX(0);
    transform-origin: left;
    overflow: hidden;
    transition: all 0.5s ease;
  }

  .menu-items .mm-dropdown-menu,
  .menu-items .menu-right {
    padding-left: 1rem;
    width: 102%;
    margin-left: -10px;
  }

  .menu-items .menu-right li:first-child {
    margin-top: 0;
  }

  .mm-dropdown-menu li {
    margin-left: 0;
  }

  .menu-items .mega-menu .col {
    padding-left: 1rem;
  }

  .expand-btn.open + .sample {
    max-height: 100%;
    transform: scaleZ(1);
  }

  .expand-btn.open + .blog.sample {
    max-height: 100%;
    transform: scaleZ(1);
    max-width: fit-content;
  }

  .mm-navbar .sample {
    border-top: none;
  }
}

/* Import */
/* Colors */
/* Basic */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto Slab", serif;
  font-size: 14px;
}
a {
  color: #1e2e6a;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
section {
  padding: 20px 0;
}
h1 {
  font-size: 32px;
  margin-bottom: 15px;
  text-transform: uppercase;
}
.bg-gray {
  background: #eef0fc;
}
.ar-1 {
  aspect-ratio: 1;
}
.ar-169 {
  aspect-ratio: 1.7777777778;
}
.button {
  border: 0;
  background: #1e2e6a;
  color: #fff;
  padding: 7px 24px 10px 24px;
  text-decoration: none;
  transition: 0.3s;
}
.button:hover {
  background: #435bb1;
  color: #fff;
  text-decoration: none;
}
form input, form select {
  background: #eef0fc;
  border: 1px solid #dadfe6;
  padding: 8px 15px;
}
form button {
  border: 0;
  background: #1e2e6a;
  color: #fff;
  padding: 7px 24px 10px 24px;
  transition: 0.3s;
}
form button:hover {
  background: #435bb1;
}
.box {
  background: #fff;
  border: 1px solid #eef0fc;
  padding: 40px;
}
.box a:hover {
  text-decoration: none;
}
.box a ion-icon {
  font-size: 45px;
  margin: 2px 12px 0 0;
}
.box a h2 {
  color: #1e2e6a;
  font-size: 20px;
  margin-bottom: 2px;
}
.box a span {
  color: #212529;
}
/* Header */
header {
  background: #1e2e6a;
  color: #fff;
}
.search button {
  padding: 0;
}
.breadcrumb {
  background: #435bb1;
  font-size: 13px;
  padding: 12px 0 15px 0;
}
.breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb a:after {
  content: ">";
  cursor: default;
  padding: 0 10px 0 12px;
}
.breadcrumb a:last-child:after {
  content: "";
  padding: 0;
}
/* Content */
.detail-text {
  border-color: #1e2e6a;
  border-style: solid;
  border-width: 1px 0;
  padding: 20px 0 10px 0;
  text-align: justify;
}
.detail-box {
  border: 1px solid #1e2e6a;
  margin-bottom: 20px;
  padding: 10px;
}
.detail-box a {
  transition: 0.3s;
}
.detail-box a:hover {
  text-decoration: none !important;
}
.detail-box .detail-image {
  background-size: cover;
}
.detail-box .detail-bg {
  background: #f8f8f8;
  padding: 20px 20px 2px 20px;
}
.detail-box .detail-bg h3 {
  font-size: 18px;
  margin-top: -10px;
  text-align: center;
}
.detail-date {
  color: #888;
  margin-top: 10px;
}
p.subp {
  margin-bottom: 2px;
}
.staff-box {
  border: 1px solid #435bb1;
  display: block;
  margin: 8px 0;
  padding: 5px;
  text-align: center;
  transition: 0.3s;
}
.staff-box:hover {
  text-decoration: none;
}
.staff-box img {
  margin-bottom: 3px;
}
.masonry {
  column-count: 3;
  column-gap: 20px;
}
.masonry .masonry-item {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  break-inside: avoid;
}
.masonry .masonry-item > div {
  grid-row: 1 / -1;
  grid-column: 1;
}
#map {
  height: 600px;
  width: 100%;
}
/* Form */
.form form {
  padding-right: 30px;
}
.form label {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}
.form .form-control {
  border: 1px solid #bebebe;
  margin-bottom: 20px;
  padding: 10px 15px;
  width: 100%;
}
.form button {
  margin-top: 10px;
  padding: 15px 30px;
}
.form .greyform {
  background: #fafafa;
  padding: 30px;
}
.form .greyform .form-control, .form .greyform textarea {
  border: none;
}
.form .greyform .space {
  height: 0px;
}
.form .greyform input {
  padding: 12px 15px;
}
.form .greyform select {
  border: 0;
  padding: 11px 15px;
  width: 100%;
}
.form .greyform .choices__inner {
  padding: 8px 0 0 12px !important;
}
.form .greyform .choices__input {
  background: none;
  padding: 0;
}
.institution {
  margin-top: -40px;
}
.institution .institution-header {
  background-color: #d5d5d5;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}
.institution .institution-header .dark-layer {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding-bottom: 60px;
  text-align: center;
}
.institution .institution-header .dark-layer h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 300;
  margin-top: 160px;
}
.institution .institution-header .dark-layer h1:after {
  background: #db1430;
  content: "";
  display: block;
  height: 2px;
  margin: 40px auto 0 auto;
  width: 40px;
}
.institution .institution-header .dark-layer .location {
  display: block;
  font-size: 24px;
  font-weight: 300;
  margin: 50px 0 90px 0;
  text-transform: uppercase;
}
.institution .institution-info .col-sm-6 {
  background: #a2abc4;
  padding: 30px 0 40px 0;
  text-align: center;
}
.institution .institution-info .col-sm-6 .img {
  height: 80px;
  margin: 0 auto;
}
.institution .institution-info .col-sm-6 a {
  color: #fff;
}
.institution .institution-openhours {
  background: #eee;
  padding: 40px 0;
}
.institution .institution-openhours .col-md-8 img {
  float: left;
  margin-right: 40px;
}
.institution .institution-openhours .col-md-8 div {
  float: left;
}
.institution h2 {
  font-size: 32px;
  font-weight: 300;
  margin: 60px 0 40px 0;
  text-align: center;
}
.institution .institution-items {
  margin-left: -50px;
}
.institution .institution-location {
  margin: -15px 0 -55px -50px;
}
.institution .institution-location .container-fluid .col-md-6 {
  padding: 0;
}
.institution .institution-location .container-fluid iframe {
  height: 100%;
  width: 100%;
}
/* Footer */
footer {
  background: #1e2e6a;
  color: #a9a9a9;
  margin: 20px 0 -20px 0;
}
footer .container {
  padding-top: 30px;
}
footer a, footer a:hover {
  color: #fff;
  display: block;
  transition: 0.3s;
}
footer .col-lg-7 img {
  height: 83px;
  opacity: 0.4;
}
footer .col-lg-7 a:nth-child(2) {
  margin: 0 50px 0 60px;
}
footer .subline {
  background: #435bb1;
  margin-top: 30px;
  padding: 20px;
}
footer .subline a {
  border-bottom: 1px solid #435bb1;
  display: inline;
  margin: 0 10px;
  padding-bottom: 2px;
  text-decoration: none;
}
footer .subline a:hover {
  border-color: #fff;
}
/* Responsive */
@media screen and (max-width: 991px) {
  .sf-menu a {
    font-size: 16px;
  }
  .detail-text {
    text-align: left;
  }
  .masonry {
    column-count: 1;
  }
  footer .col-lg-7 a:nth-child(2) {
    margin: 0 10px 0 20px;
  }
}
@media screen and (max-width: 768px) {
  .sf-menu a {
    font-size: 15px;
  }
  footer {
    text-align: center;
  }
  footer .col-lg-7 {
    justify-content: center !important;
    margin-left: -6px;
  }
  footer .col-lg-7 a {
    margin: 20px 10px 20px 20px;
  }
}
@media screen and (max-width: 480px) {
  .sf-menu a {
    font-size: 14px;
  }
}
