/** @format */

:root {
  --main: #2e3191;
  --secondary: #e6a000;
  --nav-item-padding: 0.5rem 0 1rem 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body * {
  /* border: 1px solid black; */
}

b {
  font-weight: 600;
}

form {
  width: 100%;
}

img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.form-control:focus {
  box-shadow: none;
}

a {
  text-decoration: none;
  width: fit-content;
  height: fit-content;
  display: block;
  /* font-size: 1rem; */
  color: var(--bs-nav-link-color);
}

p {
  margin: 0;
}

span {
  font-weight: 500;
}

.btn-close {
  width: 1rem;
  height: 1rem;
  padding: 0;
}

.topbar {
  background: var(--main);
  height: fit-content;
  position: relative;
  z-index: 100;
}

.topbar::after {
  content: "";
  width: 100%;
  height: 100%;

  position: absolute;
  left: 0;
  top: -101%;
  z-index: 50;

  background-color: white;
  transition: all 0.3s ease;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
}

.topbar .search {
  flex: 1 1 fit-content;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;

  position: relative;
  z-index: 100;
}

.topbar .search i {
  font-size: 1rem;
}

.topbar .btn-close {
  display: none;
}

.topbar .btn-topbar {
  flex: 1 1 fit-content;
  display: flex;
  justify-content: end;
  gap: 1rem;

  position: relative;
  z-index: 10;
}

.topbar .btn-topbar * {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.topbar .btn-enquiry {
  background-color: var(--secondary);
  height: 100%;
  padding: 0.5rem 1rem;
  color: white;
  transition: all 0.3s ease;
}

.topbar .btn-enquiry:hover {
  background-color: white;
  color: var(--secondary);
  transition: all 0.3s ease;
}

.topbar .btn-lang p {
  transition: all 0.3s ease;
}

.topbar .btn-lang:hover p,
.topbar .btn-lang.select p {
  color: var(--secondary);
  transition: all 0.3s ease;
}

.topbar .btn-lang.select:hover p {
  /* color: white; */
  filter: brightness(0.9);
  transition: all 0.3s ease;
}

.nodisplay {
  display: none;
}

header {
  background: white;
  width: 100vw;
}
.header {
  background: white;
  border-bottom: 1px solid rgba(221, 221, 221, 0.5);
  padding: 1.5rem 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header .logo img {
  height: 4rem;
}

.header .container > * {
  display: flex;
  flex: 1 1 fit-content;
}

.header .header_contact {
  margin: 0;
  justify-content: end;
  align-items: stretch;
  gap: 2rem;
}

.header .header_contact > a {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.5rem;
  color: var(--bs-nav-link-color);
  transition: all 0.3s ease;
}

.header .header_contact > a:hover {
  color: var(--secondary);
  transition: all 0.3s ease;
}

.header .header_contact img {
  height: 2.5rem;
  width: auto;
}

nav.navbar {
  border-bottom: 3px double black;
  position: relative;
  padding-bottom: 0;
  border: 0;
}

nav:after {
  content: "";
  width: 100%;
  height: 5px;
  position: absolute;
  bottom: 0;
  left: 0;
  border-top: 1px solid black;
  border-bottom: 3px solid black;
  /* background: black; */
  pointer-events: none;
}

nav .navbar-collapse {
  background: white;
  position: relative;
}

nav .navbar-nav {
  justify-content: center;
  width: 100%;
  gap: 0.5rem;
  background: white;
}

nav .nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: var(--nav-item-padding);
  cursor: pointer;
  position: relative;
  background-color: white;
  flex: 1 1 100%;
}

nav .nav-item:before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background-color: black;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
}

nav .deco {
  content: "//";
  border: 0;
  font-size: 0.5rem;
  color: lightgrey;
  cursor: default;
  flex: 1 1 fit-content;
}

nav .deco::before {
  display: none;
}

nav .nav-link {
  white-space: nowrap;
  padding: 0.5rem 0.5rem !important;
  width: 100%;
  display: flex;
  justify-content: center;
  font-weight: 500;
  color: var(--bs-nav-link-color);
}

nav .nav-item.select .nav-link {
  background-color: var(--secondary);
  color: white;
}

nav .nav-item.select:hover .nav-link,
nav .nav-item:hover .nav-link {
  background-color: var(--main);
  color: white;
}

nav .dropdown-toggle::after {
  display: none;
}

nav .pointer {
  pointer-events: none;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border: 2px solid grey;
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

nav .pointer::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid black;
  /* background-color: black; */
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.dropdown .dropdown-menu {
  filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.2));
  min-width: 250px;
  border: 0;
  border-radius: 0;
  border-top: 2px solid var(--main);
  position: relative;
  padding: 0;
  margin-top: -2px;
  z-index: 5;
}

.dropdown .dropdown-item {
  padding: 1rem;
  transition: all 0.3s ease;
}

.dropdown .dropdown-item:hover {
  background-color: var(--main);
  color: white;
  transition: all 0.3s ease;
}

.dropdown .dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  animation: show 0.3s ease;
}

@keyframes show {
  from {
    opacity: 0;
    transform: translateY(10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown .dropdown-menu.hide {
  opacity: 1;
  transform: translateY(0);
  animation: hide 0.3s ease;
}

@keyframes hide {
  from {
    /* display: block; */
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(10%);
  }
}

nav .dropdown-toggle.show {
  background-color: var(--main);
  color: white !important;
}

footer {
  background: var(--main);
  padding: 2rem 0 6rem 0;
  width: 100vw;
}

footer * {
  /* color: white; */
}

footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-links {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

footer .footer-links a {
  flex: 1 1 100%;
  height: auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  color: var(--main);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

footer .footer-links a:hover {
  background: var(--secondary);
  color: white;
  transition: all 0.3s ease;
}

footer .footer-address,
footer .copyright {
  flex: 1 1 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

footer .footer-address span {
  display: inline-block;
  font-weight: 400;
}

body {
  background: url(../image/bg.jpg);
  background-size: 50%;
}

main {
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 6rem;
  min-height: 80vh;
}

main.home .photo-group {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  /* flex-wrap: wrap; */
  gap: 1rem;
}

main.home .photo-group > * {
  flex: 1 1 25%;
  position: relative;
}

main.home .bl-info {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 100%;
  color: white;

  display: flex;
  align-items: end;
  justify-content: center;

  background-color: rgba(0, 0, 0, 0);
  background-image: linear-gradient(0, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 75%);
  background-position: top center;
  background-size: 100%;
  transition: all 0.3s ease;
}

main.home .bl-info > * {
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid white;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
}

main.home .bl-info:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.title-border::before {
  content: "";
  background: url(../image/title_bg_top.png);
  position: relative;
  width: 200px;
  height: 25px;
  margin: auto;
  display: table;
  background-size: 100%;
}

.title-border > * {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--secondary);
}

.title-border::after {
  content: "";
  background: url(../image/title_bg_bottom.png);
  position: relative;
  width: 200px;
  height: 23px;
  margin: auto;
  display: table;
  background-size: 100%;
}

.sitemap .content {
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-top: 2rem;
  gap: 2rem;
}

.sitemap .content > * {
  /* flex: 1 1 fit-content; */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sitemap .content h5 {
  color: var(--main);
  margin-bottom: 1rem;
}

.sitemap .content ul {
  padding-left: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sitemap .content li {
  color: black;
  transition: all 0.3s ease;
}

.sitemap .content li:hover {
  color: var(--secondary);
  transition: all 0.3s ease;
}

main .f-panel {
  display: flex;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 2rem;
  gap: 2rem;
}

main .f-panel h6 {
  color: var(--main);
  font-weight: 600;
}

main .f-panel > * {
  flex: 1 1 100%;
}

main .f-panel > *:first-child {
  flex: 1 1 20%;
}

main .facilities360 {
  width: 100%;
  height: calc(80vw * 9 / 16);
  min-height: 400px;
}

main.staff .f-panel > * {
  flex: 1 1 80%;
}

main.staff .f-panel > *:first-child {
  flex: 1 1 fit-content;
}

main.staff .f-panel > * a {
  width: 225px;
}

main.student .f-panel > *:first-child {
  flex: 1;
}

main.student .f-panel > * {
  flex: 1 1 85%;
}

main.student .f-panel > *:first-child a {
  /* display: flex;
  justify-content: space-between;
  flex-direction: column; */

  width: 200px;
  text-align: center;
}

.btn-primary {
  border-radius: 0;
  padding: 0.5rem 1rem;
  min-width: 8rem;
  background-color: var(--main);
}

.btn-primary:active,
.btn-primary:hover {
  background-color: var(--secondary);
  border: 1px solid var(--secondary);
  color: white;
}

.btn-outline-primary {
  border-radius: 0;
  padding: 0.5rem 1rem;
  min-width: 8rem;
  border: 1px solid var(--main);
  color: var(--main);
}

.btn-outline-primary:active,
.btn-outline-primary:hover {
  border: 1px solid var(--secondary);
  background-color: var(--secondary);
  color: white;
}

.button-group {
  display: flex;
  justify-content: space-between;
}

.text-red {
  color: var(--bs-form-invalid-border-color);
  vertical-align: super;
  font-size: xx-small;
}
.bs-table {
  margin-bottom: 2rem;
  width: 100%;
}
.bs-table thead {
  border-top: 1px solid #999999;
  border-bottom: 2px solid #999999;
  color: #333333;
  font-family: Arial, "Helvetica Neue", Helvetica;
  font-weight: bold;
  line-height: 40px;
  text-transform: uppercase;
  font-size: 13px;
}

.bs-table tbody {
  display: table-row-group;
  vertical-align: middle;
  border-color: inherit;
}

.bs-table tbody tr {
  border-bottom: 1px solid #ddd;
  background: #f6f6f6;
  color: #333333;
  line-height: 40px;
}

.bs-table th,
.bs-table td {
  padding: 10px 25px;
  line-height: 20px;
}

main.weather p br {
  display: none;
}

main.course .f-panel {
  gap: 2rem;
}

main.course .f-panel > * {
  flex: auto;
}

main.course .f-panel img {
  width: 3rem;
}

.d-center {
  display: flex;
  justify-content: center;
  width: 100%;
}

main.courselist .content {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
}

main.courselist .content > * {
  flex: 1 1 calc(50% - 2rem);
}

main.courselist .news-thumb {
  position: relative;
}

main.courselist .news-thumb > *:last-child {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  padding: 0.5rem 1rem;
  margin: 0;
  color: white;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

main.courselist .news-thumb:hover > *:last-child {
  color: var(--secondary);
  transition: color 0.3s ease;
}

.h-captcha {
  width: 100%;
}

.h-captcha #status {
  position: relative !important;
}

.image-group {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
  /* flex-wrap: wrap; */
}

.image-group > * {
  flex: 1 1 30%;
  display: block;
  height: auto;
  width: 30%;
}

main #map iframe,
main #map {
  height: 400px;
}

main .map-group {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

main .map-group > * {
  flex: 1 1 50%;
}

main .map-group > * > *:first-child {
  color: var(--main);
}

main .time {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

main .time > * {
  flex: 1 1 45%;
}

.right-banner {
  position: fixed;
  bottom: -2rem;
  right: 0.75rem;
  z-index: 1000;
  padding: 1rem 2rem 3rem 2rem;
  background-color: var(--secondary);
  color: white;
  font-weight: bold;
  transition: all 0.3s ease;
}

.right-banner:hover {
  bottom: 0;
  transition: all 0.3s ease;
}

.button-group.center {
  justify-content: center;
}

.button-group.center > * {
  flex: 1 1 100%;
}

main.photo .image-group {
  flex-wrap: wrap;
}

main.photo .image-group > * {
  flex: 1 1 30%;
}

.swal2-popup {
  border-radius: 0;
  padding: 0;
  width: 80%;
}

.swal2-container .swal2-title,
.swal2-container .swal2-image {
  margin: 0;
  padding: 0;
}

.swal2-container .swal2-actions {
  width: 100%;
  margin: 0;
}

.swal2-container .swal2-styled:hover,
.swal2-container .swal2-styled:active,
.swal2-container .swal2-styled,
.swal2-container .swal2-confirm {
  padding: 1rem;
  border-radius: 0;
  margin: 0;
  width: 100%;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: var(--main);
}

@media screen and (max-width: 768px) {
  .swal2-popup {
    width: 100%;
  }
}

@media screen and (max-width: 1200px) {
  footer .footer-address,
  footer .copyright {
    text-align: center;
    justify-content: center;
  }

  nav .navbar-toggler {
    margin: 0.5rem 0 1.25rem 0;
    padding: 0;
    border: 0;
    font-weight: bold;
    font-size: 1rem;
  }

  nav .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.2));
    z-index: 1000;
  }

  nav .navbar-nav {
    padding: calc(var(--bs-gutter-x) * 0.5) calc(var(--bs-gutter-x) * 0.5);
  }

  nav .nav-item {
    padding: 0;
    flex-direction: column;
  }

  nav .pointer,
  nav .deco,
  nav .nav-item:before {
    display: none;
  }
  nav .navbar-toggler:focus {
    box-shadow: none;
  }

  .dropdown .dropdown-menu {
    width: 100%;
    border: 0;
    position: relative;
  }

  .dropdown .dropdown-item {
    display: flex;
    justify-content: center;
  }
}

@media screen and (max-width: 992px) {
  .topbar .container {
    gap: 1rem;
  }

  .topbar .form-control {
    width: 0;
    padding: 0.375rem 0;
    opacity: 0;
    transform-origin: left;
    transition: all 0.3s ease;
  }

  .topbar.select .form-control {
    padding: 0.375rem 0.75rem;
    width: 100%;
    opacity: 1;
    transition: all 0.3s ease;
  }

  .topbar.select::after {
    top: 0%;
  }

  .topbar.select .search {
    flex: 1 1 100%;
    position: relative;
    z-index: 100;
    color: var(--main);
  }

  .topbar.select .btn-topbar {
    position: absolute;
    right: calc(var(--bs-gutter-x) * 0.5);
    top: auto;
    height: 100%;
  }

  .topbar.select .btn-close {
    display: block;
  }

  .header .container {
    flex-wrap: wrap;
  }

  .header .container > * {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  main.home .photo-group {
    flex-wrap: wrap;
  }

  main.home .photo-group > * {
    flex: 0 1 calc(34% - 1rem);
  }

  main.home .bl-info {
    height: 100%;
    padding: 1rem;
  }

  main.home .bl-info > * {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
  }

  main.courselist .content > * {
    flex: 1 1 100%;
  }

  main .map-group {
    flex-wrap: wrap;
  }

  .sitemap .content {
    gap: 1rem;
  }
  .sitemap .content > * {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 100%;
  }

  .header .header_contact {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .header .header_contact > a {
    flex: 0 0 fit-content;
    justify-content: center;
    white-space: nowrap;
  }

  .image-group {
    flex-direction: column;
  }

  .image-group > * {
    width: 100%;
  }

  footer {
    padding-top: 1rem;
  }
}

@media screen and (max-width: 576px) {
  main.home .photo-group > * {
    flex: 0 1 calc(51.5% - 1rem);
  }

  .header .logo img {
    width: 100%;
    height: auto;
  }

  footer .footer-links {
    flex-wrap: wrap;
  }

  main .f-panel {
    flex-direction: column;
  }

  main .f-panel > * {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  main.staff .f-panel > * a,
  main .f-panel a {
    width: 100%;
  }

  main .f-panel span {
    text-align: center;
    display: block;
  }

  main.student .f-panel > *:first-child,
  main.student .f-panel > * {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  main.student .f-panel > *:first-child a {
    width: 100%;
  }

  main .time {
    gap: 0;
  }

  main .time > * {
    flex: 1 1 100%;
  }

  main .time > *:nth-child(odd) {
    font-weight: bold;
  }

  main .time > *:nth-child(even) {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 480px) {
  main.home .photo-group > * {
    flex: 1 1 50%;
  }

  .header .header_contact > a {
    /* flex: 1 1 100%; */
    justify-content: start;
    gap: 0.5rem;
  }

  .header .header_contact img {
    height: 1rem;
  }

  .header .header_contact > a * {
    display: inline;
  }

  .header .header_contact > a b:after {
    content: ": ";
  }

  .header .header_contact > a br {
    display: none;
  }

  .sitemap .content > * {
    flex: 1 1 100%;
  }
}
