.menu {
  background-color: #283893;
  z-index: 999;
  width: 100%;
  text-align: center;
  box-shadow: 0 0px 8px #777;
}

.en .menu a {
  letter-spacing: 0 !important;
}

.description {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.menu-container {
  width: 80%;
  margin: 0 auto;
  background: #e9e9e9;
}

.menu-dropdown-icon:before {
  content: "+";
  display: none;
  cursor: pointer;
  right: 0;
  padding: 15px 19px;
  color: #333;
  position: absolute;
}

.menu>ul {
  margin: 0 auto;
  width: 100%;
  list-style: none;
  padding: 0;
  position: relative;
  box-sizing: border-box;
  max-width: 1200px;
}

.menu>ul:before,
.menu>ul:after {
  content: "";
  display: table;
}

.menu>ul:after {
  clear: both;
}

.menu>ul>li {
  display: inline-block;
  padding: 0;
  margin: 0;
}

.menu>ul>li a {
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  font-size: 110%;
  letter-spacing: 1px;
  color: #ffffff;
}

.menu.smaller>ul>li a h2 {
  padding: 5px 0;
}

.menu>ul>li:hover {
  background: #ff9800;
}

.menu>ul>li>ul {
  display: none;
  width: 100%;
  background: #f0f0f0;
  padding: 10px;
  z-index: 9999;
  left: 0;
  margin: 0;
  list-style-type: none;
  box-sizing: border-box;
  -webkit-box-shadow: 0px 5px 11px 2px rgba(0, 0, 0, 0.63);
  box-shadow: 0px 5px 11px 2px rgba(0, 0, 0, 0.63);
}

.menu>ul>li a h2 {
  font-size: 1em;
  margin: 0;
}

.menu>ul>li>ul:before,
.menu>ul>li>ul:after {
  content: "";
  display: table;
}

.menu>ul>li>ul:after {
  clear: both;
}

.menu>ul>li>ul>li {
  margin: 0;
  padding-bottom: 0;
  list-style: none;
  width: 25%;
  background: none;
  float: left;
  padding: 5px;
}

.menu>ul>li>ul>li a {
  padding: 7px;
  font-size: 100%;
  display: block;
  background-color: #555;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.menu>ul>li>ul>li a:hover {
  background-color: #2196F3;
}

.menu>ul>li>ul>li>ul {
  display: block;
  padding: 0;
  margin: 0;
  list-style: none;
  box-sizing: border-box;
  text-align: left;
}

.menu>ul>li>ul>li>ul:before,
.menu>ul>li>ul>li>ul:after {
  content: "";
  display: table;
}

.menu>ul>li>ul>li>ul:after {
  clear: both;
}

.menu>ul>li>ul>li>ul>li {
  float: left;
  width: 100%;
  padding: 8px 10px;
  margin: 0;
  border-top: 1px #cecece solid;
  position: relative;
}

.menu>ul>li>ul>li>ul>li.more a {
  color: #3153ba !important;
  opacity: 1;
  font-weight: 600;
  font-size: 90%;
  letter-spacing: 0;
}

.menu>ul>li>ul>li>ul>li.more a:hover {
  color: #f8781d !important;
}

.menu>ul>li>ul>li>ul>li.more {
  text-align: right;
}

.menu>ul>li>ul>li>ul>li:nth-child(1) {
  border: none;
}

.menu>ul>li>ul>li>ul>li a {
  border: 0;
  background-color: transparent;
  color: #444;
  padding: 0;
  /* opacity: 0.65; */
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.menu>ul>li>ul>li>ul>li a:hover {
  opacity: 1;
  background-color: transparent;
  color: #3153ba;
}

.menu>ul>li>ul>li>ul>li a:before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: solid 5px transparent;
  border-right: solid 5px transparent;
  border-bottom: solid 5px transparent;
  border-left: solid 6px #000000;
}

.menu>ul>li>ul>li>ul>li.more a:before {
  display: none;
}

.menu>ul>li>ul.normal-sub {
  width: 300px;
  left: auto;
  padding: 10px 20px;
}

.menu>ul>li>ul.normal-sub>li {
  width: 100%;
}

.menu>ul>li>ul.normal-sub>li a {
  border: 0;
  padding: 1em 0;
}

@media only screen and (min-width: 992px) {
  .page .menu {
    border-bottom: 1px #ccc solid;
  }

  .menu.smaller {
    position: fixed;
    width: 100%;
    top: 0;
    -moz-box-shadow: 0 0 12px hsla(0, 0%, 0%, 0.38);
    -webkit-box-shadow: 0 0 12px hsla(0, 0%, 0%, 0.38);
    box-shadow: 0 0 12px hsla(0, 0%, 0%, 0.38);
  }

  .menu>ul>li>ul {
    position: absolute;
    max-height: 60vh;
    overflow: scroll;
  }

  .menu>ul>li:hover>ul {
    display: flex !important;
  }

  .menu-mobile {
    display: none;
  }
}

@media only screen and (max-width: 992px) {
  .menu>ul>li:hover {
    background: #dbdbdb;
  }

  .menu-container {
    width: 100%;
  }

  .menu {
    top: -166px;
    background-color: transparent;
    height: 0;
    text-align: left;
    margin: auto;
    position: relative;
  }

  .menu-mobile {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 9999;
    text-indent: -9999px;
    background-image: url("../images/template/h_menu.png");
    width: 55px;
    height: 45px;
    background-repeat: no-repeat;
    background-size: 55%;
    background-position: center;
    background-color: #283893;
    opacity: 1;
  }

  .menu>ul {
    display: none;
  }

  .menu>ul>li {
    width: 100%;
    float: none;
    display: block;
    border-bottom: 1px #c3c2c2 solid;
    position: relative;
  }

  .menu>ul>li a {
    padding: 10px;
    width: 100%;
    display: block;
    text-align: center;
    position: relative;
    color: #000;
  }

  .menu>ul>li a::after {
    content: "\e409";
    position: absolute;
    right: 20px;
    font-family: "zico", "zicoTm", "zicoGov";
    top: 20%;
  }

  .menu .toplink a::after,
  .menu>ul>li>ul>li a::after {
    display: none;
  }

  .menu>ul>li a:hover,
  .menu>ul>li a:focus {
    background-color: #2465b5;
    color: #fff;
  }

  .menu .advanced a {
    padding: 10px;
    top: 0;
    font-size: 88%;
  }

  .menu>ul>li>ul>li a {
    background-color: transparent;
    color: #000;
    padding: 9px 15px;
    text-align: left;
  }

  .menu>ul>li>ul>li>ul>li a {
    color: #000 !important;
    opacity: 1;
    padding: 10px 20px;
    opacity: 0.7;
  }

  .menu>ul>li>ul>li>ul>li a:before {
    opacity: 1;
    border: none;
    content: "-";
    width: auto;
    margin-right: 5px;
  }

  .menu>ul>li>ul {
    position: relative;
    background-color: #ffffff;
    padding: 0;
  }

  .menu>ul>li>ul.normal-sub {
    width: 100%;
  }

  .menu>ul>li>ul>li {
    float: none;
    width: 100%;
    margin-top: 0;
    padding: 0;
    border-bottom: 1px #79aad4 solid;
    text-align: left;
  }

  .menu>ul>li>ul>li>ul {
    position: relative;
  }

  .menu>ul>li>ul>li>ul>li {
    float: none;
    font-size: 95%;
    padding: 0;
    border-top: 1px #d0d0d0 solid !important;
  }

  .menu>ul>li>ul>li>ul>li.more a {
    text-align: center;
  }

  .menu .show-on-mobile {
    display: block;
    background-color: #f0f0f0;
    position: relative;
    z-index: 90;
  }
}

@media only screen and (max-width: 480px) {
  .menu {
    top: -146px;
  }
}

@media only screen and (max-width: 380px) {
  .menu {
    top: -122px;
  }
}

.tabs {
  display: flex;

  width: 100%;
  box-sizing: border-box;
}

.tab-btn {
  flex: 1;
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  border: none;
  background: #eee;
  font-weight: bold;
  border: 1px solid #c6c5c5;
  transition: 0.2s ease;
}

.tab-btn.active {
  background: #ff9800;
  color: #000;
}

.tab-btn:hover:not(.active) {
  background: #fdcf53;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-wrapper select {
  width: 100%;
  display: block;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 12px 40px 12px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #fff;
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

/* hover */
.custom-select-wrapper select:hover {
  border-color: #ff9800;
}

/* focus */
.custom-select-wrapper select:focus {
  outline: none;
  border-color: #ff9800;
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

/* 自訂箭頭 */
.custom-select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #666;
  font-size: 12px;
}

.pd {
  padding: 6px 0 0 0;
}