/* 1. Tag based CSS*/
html {
  height: 100vh;
  background: #ccc;
  scroll-behavior: smooth;
}

body {
  background: rgb(253,234,219);
  overflow: auto;
  font-family: "Microsoft JhengHei", sans-serif;
}
*[dir="rtl"] {
  text-align: right !important;
}

div[lang]{
  clear:both;
}

ul {
  list-style-position: outside;
}
@media (max-width: 1199px) {
  body.full-screen {
    overflow: hidden;
  }
}

h1 {
  font-size: 2.1rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.6rem;
  font-weight: bold;
  background:rgba(128, 31, 108, 0.15);
  padding:.2em;
  margin-top:.5em;
}
h4 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top:.5em;
}
h5 {
  font-size: 1.1rem;
  font-weight: bold;
}
h6 {
  font-size: 1rem;
  font-weight: bold;
}

a {
  color: #801f6c;
  -webkit-transform: all 0.2s;
      -ms-transform: all 0.2s;
          transform: all 0.2s;
}
a:hover {
  color: #521546;
  -webkit-text-decoration: underline solid #521546;
          text-decoration: underline solid #521546;
}
::-moz-selection {
  background: #000;
  color: white;
}

::selection {
  background: #000;
  color: white;
}
.text-break-all{
  word-break: break-all;
}

.list-disc{
  list-style-type: disc !important;
}

.list-none{
  list-style:none !important;
}

.border-dashed{
  border: dashed 1px !important;
}
.h6{
  font-size:0.85rem;
}
.w-80{
  width:80% !important;
}

.b-cdafd3{
  border-color:#CDAFD3;
}
.bg-info {
  background: #0c454e !important;
}
.table-bordered td,
.table-bordered th {
  border: 1px solid #999;
}
.table-borderless td{
  vertical-align: middle;
}

.border-primary{
 border-color: #521546!important;
}

.bg-border-purple{
  background: rgba(128, 31, 108, 0.15);
  border-right: 2px solid #9e7496;
}
/* 2. Header section (Desktop and Mobile Version)   */
/* 2.1 Header Wrap                                 */

.container-fluid {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0;
}

#header-wrapper {
  padding: 0;
}

/* 2.2.1 Header Site Logo */
/* 2.2.1.1 Header Site Logo (Desktop Adjust)*/

#site-logo {
  padding: 1em;
}

/* 2.2.1.2 Header Site Logo (Mobile Adjust)  */
#site-logo-mobile {
  padding: 1em 0 1em 1em;
}

/* 2.2.2 Header Top Right Nav */
/* 2.2.2.1 Lang Selector (Desktop) */
.site-top-nav_lang {
  list-style: none;
  padding: 0;
  margin: 0;
  float: left;
}

.site-top-nav_lang li {
  margin: 0 0.8em;
  padding:1rem;
  display: inline-block;
}

.site-top-nav_lang li a {
  float: left;
  display: block;
  padding:0.6rem;
  background-size: cover;
  border-radius: 2em;
  background-color: #fff;
  -webkit-transition: background-color 0.5s;
  -o-transition: background-color 0.5s;
  transition: background-color 0.5s;
}

.site-top-nav_lang li a:hover,
.site-top-nav_txtSize a:hover,
.site-top-nav_lang li a:focus,
.site-top-nav_txtSize a:focus,
.lang-en.current-lang,
.lang-sc.current-lang,
.lang-tc.current-lang {
  background-color: #801f6c;color:#fff;
}

a[class^="lang-"] {
  background-position: center;
  background-repeat: no-repeat;
}

/* 2.2.2.1 Txt Size and Search (Desktop) */
.site-top-nav_txtSize a,
.site-top-nav_search a {
  float: left;
  display: block;
  width: 2em;
  height: 2em;
  background-size: cover;
  border-radius: 2em;
  background-color: #fff;
  background-image: url("../images/icon_nav_search_pur.png");
  -webkit-transition: background-color 0.5s;
  -o-transition: background-color 0.5s;
  transition: background-color 0.5s;
}

.site-top-nav_txtSize,
.site-top-nav_search {
  float: left;
  border-radius: 2em;
  margin: 0 0.8em;
  background: #fff;
  position: relative;
}


/* 3. Nav Section */
/* 3.1 Nav bar (Desktop) */

.navbar {
  padding: 0;
  z-index: 999;
  width: 100%;
}

.navbar-brand {
  padding: 0;
  font-size: 1em;
}

.navbar-nav {
  width: 100%;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  background: #fff;
  border-bottom: 2px solid #801f6c;
}

a.nav-link {
  color: #801f6c;
  font-weight: bold;
  padding: 1em 0;
}

#xl-nav li.nav-item {
  text-align: center;
  position: relative;
  -webkit-perspective: 500px;
  perspective: 500px;
  background-color: #fff;
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  -ms-flex-negative: 1;
  flex-shrink: 1;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
}

#xl-nav li.nav-item:last-child a.nav-link {
  border-right: 0;
}

#xl-nav li.nav-item:hover, #xl-nav li.nav-item:focus-within{
  -webkit-box-shadow: 1px 1px 5px #190615 inset;
          box-shadow: 1px 1px 5px #190615 inset;
  background-color: #801f6c;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

#xl-nav li.nav-item:hover > a, #xl-nav li.nav-item:focus-within > a {
  color: #fff;
}

#xl-nav .nav-item:last-child > .dropdown-menu,
#xl-nav .nav-item:nth-last-child(2) > .dropdown-menu {
  right: 0;
  left: initial;
}

#xl-nav .dropdown:hover > .dropdown-menu,  #xl-nav .dropdown:focus-within > .dropdown-menu{
  -webkit-box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
          box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  display: block;
  -webkit-transform: rotate3d(1, 0, 0, 0deg);
  transform: rotate3d(1, 0, 0, 0deg);
  -webkit-transform-origin: 0 0 0;
  -ms-transform-origin: 0 0 0;
  transform-origin: 0 0 0;
  opacity: 1;
}

#xl-nav .dropdown-submenu {
  position: relative;
}

#xl-nav .dropdown-submenu .dropdown-menu {
  top: -3px;
  left: 100%;
  margin-top: 0;
  border-radius: 0 6px 6px 6px;
  border: 2px solid #801f6c;
  border-radius: 0;
  -webkit-transform: rotate3d(0, 1, 0, 90deg);
  transform: rotate3d(0, 1, 0, 90deg);
  opacity: 0;
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, -webkit-transform 0.3s;
  -o-transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
}

#xl-nav .nav-item:last-child .dropdown-submenu .dropdown-menu,
#xl-nav .nav-item:nth-last-child(2) .dropdown-submenu .dropdown-menu {
  right: 100%;
  left: initial;
  margin-top: 0;
  -webkit-transform-origin: right;
  -ms-transform-origin: right;
  transform-origin: right;
  -webkit-transform: rotate3d(0, 1, 0, -90deg);
  transform: rotate3d(0, 1, 0, -90deg);
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, -webkit-transform 0.3s;
  -o-transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
}

#xl-nav .dropdown-submenu:hover .dropdown-menu, 
#xl-nav .dropdown-submenu:focus-within .dropdown-menu {
  -webkit-box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
          box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  display: block;
  -webkit-transform: rotate3d(1, 0, 0, 0deg);
  transform: rotate3d(1, 0, 0, 0deg);
  -webkit-transform-origin: 0 0 0;
  -ms-transform-origin: 0 0 0;
  transform-origin: 0 0 0;
  opacity: 1;
}

#xl-nav .nav-item:last-child .dropdown-submenu:hover .dropdown-menu,
#xl-nav .nav-item:nth-last-child(2) .dropdown-submenu:hover .dropdown-menu,
#xl-nav .nav-item:last-child .dropdown-submenu:focus-within .dropdown-menu,
#xl-nav .nav-item:nth-last-child(2) .dropdown-submenu:focus-within .dropdown-menu {
  -webkit-transform: rotate3d(1, 0, 0, 0deg);
  transform: rotate3d(1, 0, 0, 0deg);
}

#xl-nav .dropdown-menu {
  margin: 0;
  padding: 0;
  -webkit-transform-origin: 0 0 0;
  -ms-transform-origin: 0 0 0;
  transform-origin: 0 0 0;
  -webkit-transform: rotate3d(1, 0, 0, -90deg);
  transform: rotate3d(1, 0, 0, -90deg);
  -webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
  transition: opacity 0.3s, -webkit-transform 0.3s;
  -o-transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s, -webkit-transform 0.3s;
  opacity: 0;
  border-radius: 0;
  border: 0.1em solid #791b66;
  background: rgba(255, 255, 255, 1);
  display: block;
  min-width: 100%;
}

#xl-nav .dropdown-item {
  padding: 0.5em 1em;
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}
#xl-nav .dropdown-menu li:last-child {
  border-bottom: 1px solid #801f6c;
}

#xl-nav .dropdown-item:active {
  color: #000;
}

#xl-nav .dropdown-item:hover, #xl-nav .dropdown-item:focus {
  background: #ffe3ca;
}

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

/* IE hacks*/
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  #xl-nav .nav-item:last-child > .dropdown-menu,
  #xl-nav .nav-item:nth-last-child(2) > .dropdown-menu {
    right: auto;
    left: initial;
  }
  #xl-nav .nav-item:last-child .dropdown-submenu .dropdown-menu,
  #xl-nav .nav-item:nth-last-child(2) .dropdown-submenu .dropdown-menu {
    left: auto;
    right: 100%;
    transform: rotate3d(1, 0, 0, 0deg);
  }

  #xl-nav .dropdown:hover > .dropdown-menu,
  #xl-nav .dropdown-submenu:hover > .dropdown-menu,
  #xl-nav .dropdown.focus-within > .dropdown-menu, 
  #xl-nav .dropdown-submenu.focus-within > .dropdown-menu{
    display: block;
    opacity: 1;
    transform: rotate3d(1, 0, 0, 0deg);
  }
  #xl-nav .dropdown.focus-within > a,
  #xl-nav .dropdown-submenu.focus-within > a,
  #xl-nav li.nav-item:hover > a, 
  #xl-nav li.nav-item > a:focus{
    background-color: #801f6c;
    color:#fff;
  }
  #xl-nav .dropdown-submenu.focus-within > a{
    background: #ffe3ca;
    color:#000;
  } 

}

/* 3.2 Nav bar (Mobile) */
/* hamburger menu */
.navbar-toggler {
  width: 4em;
  height: 4.7em;
  border: 0;
  font-size: 1rem;
  border-radius: 0;
  border-top-left-radius: 0.25rem;
  position: relative;
  cursor: pointer;
}

.navbar-toggler span {
  position: absolute;
  top: 1.7em;
  left: 1.2em;
  background: #801f6b;
  width: 2em;
  height: 0.2em;
  -webkit-transform: rotate(0);
  -ms-transform: rotate(0);
  transform: rotate(0);
  opacity: 1;
  -webkit-transition: all 0.5s;
  -o-transition: all 0.5s;
  transition: all 0.5s;
  border-radius: 2em;
}

.navbar-toggler span:nth-child(2) {
  top: 2.3em;
}

.navbar-toggler span:nth-child(3) {
  top: 3em;
}

.navbar-toggler span.open {
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 35px;
}

.navbar-toggler span:nth-child(2).open {
  opacity: 0;
  -webkit-transform: translateX(-54px);
  -ms-transform: translateX(-54px);
  transform: translateX(-54px);
}

.navbar-toggler span:nth-child(3).open {
  -webkit-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 35px;
}

.navbar-collapse {
  background: #fff;
}

/* 3.2.1 Lang Selector */
#mobile-nav_lang {
  list-style: none;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  padding:0;
  margin: 0;
  text-align: center;
  font-size: 1.2em;
  font-weight: bolder;
}

#mobile-nav_lang .col-3{
  padding:0;
}

#mobile-nav_lang a{
  display: block;
  height: 100%;
  width: 100%;
  padding:1em 0;
  background:white;
  color:#801f6b;
  text-decoration: none;border-radius:0.3em;
}

#mobile-nav_lang a:hover{
  color:white;
  background:#801f6b;
}

#mobile-nav_lang .current-lang{
  background:red;
  color:white;
}


#mobile-nav_lang .active {
  background: #ffd8b3;
  border-radius: 0.8em;
}

#mobile-nav_lang li a {
  display: block;
  color: #000;
  font-weight: 900;
  padding: 1em;
  font-size: 1.2em;
}

#mobile-nav_lang li a:hover {
  text-decoration: none;
}

#mobile-nav_lang li a:active,
#mobile-nav_lang li a.current-lang {
  text-decoration: none;
  -webkit-box-shadow: 0 0 5px #999 inset;
  box-shadow: 0 0 5px #999 inset;
  background: #801f6b;
  color: #fff;
}

/*3.2.2 Main Nav (mobile) */
#mobile-nav_menu {
  background: #521445;
  border-left: 0;
}

#mobile-nav_menu > li.dropdown {
  border-radius: 0;
  background: #521445;
  border-bottom: 1px solid #3b0f32;
}

#mobile-nav_menu li.dropdown > a {
  padding: 1em 1em;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
  display: block;
  font-size: 1.2em;
}

#mobile-nav_menu li.dropdown li.dropdown .dropdown-toggle:hover {
  background: #ffffff;
}

#mobile-nav_menu .dropdown-toggle::after {
  position: absolute;
  top: 1em;
  font-size: 1.5em;
  right: 1em;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

#mobile-nav_menu .dropdown-toggle.open::after {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

#mobile-nav_menu .dropdown-item {
  white-space: normal;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  padding: 1em;
  font-size: 1.15em;
}

#mobile-nav_menu .dropdown-menu {
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0;
  margin: 0.5rem 0 0;
  background: #ffd6b0;
}

#mobile-nav_menu .dropdown-item:hover {
  background: #ffffff;
}

#mobile-nav_menu .dropdown-item.active,
#mobile-nav_menu .dropdown-item:active,
#mobile-nav_menu .dropdown-item .dropdown-item:active {
  color: #000;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #ab8d71;
  border-width: 1px 0;
  -webkit-box-shadow: 0 2px 3px rgba(127, 31, 106, 0.6) inset;
  box-shadow: 0 2px 3px rgba(127, 31, 106, 0.6) inset;
  padding-left: 2em;
}

#mobile-nav_menu ul.dropdown-menu.show {
  border-radius: 0;
  border: 0;
}

#mobile-nav_menu .dropdown-menu .dropdown-sub {
  margin: 0;
  background: #fff3e9;
}

#mobile-nav_menu .dropdown-menu li {
  border-bottom: 2px solid #4e341e38;
}

#mobile-nav_menu .dropdown-menu li:last-child {
  border-bottom: 0;
}

#mobile-nav_menu .dropdown-menu .dropdown-sub {
  margin: 0;
  background: #fff3e9;
  list-style: none;
  padding: 0;
}

#mobile-nav_menu .dropdown-menu .dropdown-sub li a {
  color: #000;
  padding: 1em 3em;
  display: block;
  border: 0;
  font-size: 1.1em;
}

#mobile-nav_menu li.dropdown li.dropdown > a {
  color: #000;
  font-weight: normal;
  padding: 1em;
  font-size: 1.15em;
}

/* 3.2.3 Search*/

/* 4. Upper Content Area */
#container-wrapper {
  background: #fff;
  padding-bottom: 2em;
  min-height: 50vh;
}

#content {
  position: relative;
}

.text-danger {
  color: #8b0002;
}
/* 4.1 Header */
/* 4.1.1 Header Desktop*/
.section-header {
  background: #801f6c;
  padding: 0;
}

.section-header > h1 {
  font-size: 2.1em;
  color: white;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.5em 15px;
}

/* 4.1.2 Header Mobile */
/*=====RESERVED========*/

/* 4.2 Breadcrumb */
#breadcrumb-nav {
  padding: 1em 0;
  font-weight: bold;font-size:1.5em;
}

#breadcrumb-nav a {
  color: #801f6c;
  word-break: break-word;
  -webkit-transition:text-shadow .2s;
  -o-transition:text-shadow .2s;
  transition:text-shadow .2s;
}

#breadcrumb-nav a:hover {
  text-shadow: 0 0 .1em #801f6c;
  text-decoration: none;
}
#breadcrumb-nav a:first-child::before {
  content: "";
  margin: 0;
}

#breadcrumb-nav a::before {
  content: "\0020>";
  margin: 0 0.5em;
}

#breadcrumb-nav a:hover::before {
  font-weight: normal;
}
#breadcrumb-nav span::before{
  content:">";
  margin:0 .5em;
}

#breadcrumb-nav .breadcrumb-home {
  width: auto;
  height: 1.5em;
  display: inline-block;
  background: url("../images/icon_home_pur.png") no-repeat 0 0;
  background-size: contain;
  padding-left:2em;
}


/*media queue for different screen size*/
@media (min-width: 1200px) {
  .sub-nav-block {
    float: right;
  }
}

/* 4.3.2 Mobile Adjust */
@media (max-width: 1199px) {
  .sub-nav-block {
    float: none;
  }
  .shorten-url a {
    background: #fff;
  }
 
}

@media (max-width: 576px) {
  #print-version {
    display: none;
  }
 
  .section-header > h1 {
    font-size: 1.5em;
  }
  #content {
    padding-top: 0;
    padding:0 1rem;
  }
}


.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
}
.lds-ellipsis div {
  position: absolute;
  top: 27px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ccc;
  -webkit-animation-timing-function: cubic-bezier(0, 1, 1, 0);
          animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 6px;
  -webkit-animation: lds-ellipsis1 0.6s infinite;
          animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 6px;
  -webkit-animation: lds-ellipsis2 0.6s infinite;
          animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 26px;
  -webkit-animation: lds-ellipsis2 0.6s infinite;
          animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 45px;
  -webkit-animation: lds-ellipsis3 0.6s infinite;
          animation: lds-ellipsis3 0.6s infinite;
}
@-webkit-keyframes lds-ellipsis1 {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes lds-ellipsis1 {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@-webkit-keyframes lds-ellipsis3 {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0);
            transform: scale(0);
  }
}
@-webkit-keyframes lds-ellipsis2 {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  100% {
    -webkit-transform: translate(19px, 0);
            transform: translate(19px, 0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0);
  }
  100% {
    -webkit-transform: translate(19px, 0);
            transform: translate(19px, 0);
  }
}


/* 4.4 Headings and Revision date*/
#content h1.title {
  font-weight: 900;
  border-bottom: 2px dashed #333;
  padding: 0.2em 0;
  margin-bottom:.2em;
}
#content #content-rev-date {
  font-style: italic;
  padding: 0 0 2.5em 0;
}

#content h2 a {
  color: #801f6c;
}
#content h2 span{
  padding:0px;margin:0px;
}

/* 4.5 Paragraphs*/
#content p {
  line-height: 2;
  margin: 0.5em 0 1em 0;
  text-indent: 2em;
  font-size:15px;
}

#content p small{
  line-height: auto;
}


#content *[dir="rtl"]  li::before {
  margin: 0;
}


#content .menu ul {
  padding-left: 1.5em;
}

#content .menu li a {
  padding: 0;
  color: #801f6c;
  position: relative;
  z-index: 1;
}

#content .menu li a:hover {
  text-decoration: underline;
  font-weight: 900;
}
#content .lang-notice {
  padding: 1em;
  margin-top: 1em;
  text-align: center;
}

/* Leaflet lists */
#content .leaflet-list {
  clear: both;
}
#content .leaflet-list-item {
  padding: 1em;
}

#content .leaflet-list-item img {
  -webkit-box-shadow: 1px 1px 3px #b18ca9;
          box-shadow: 1px 1px 3px #b18ca9;
}

#content .leaflet-list-item .right {
  position: relative;
}

.button div,
.button a {
  display: inline-block;
  background: #fff;
  color: blue;
  padding: 0.3em;
  border: 1px solid #801f6c;
  border-radius: 3px;
  -webkit-transition: all ease-in-out 0.3s;
  -o-transition: all ease-in-out 0.3s;
  transition: all ease-in-out 0.3s;
  cursor: pointer;
}
.button div:hover,
.button a:hover {
  background: #801f6c;
  color: #fff;
  text-decoration: none;
}
#content .leaflet-list-item p.title {
  font-size: 1.3em;
  margin: 0;
  line-height: 1.1;
}

.leaflet-list-item .right .row {
  height: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column;
          flex-flow: column;
}

#content .leaflet-list-item p {
  margin: 0.4em 0;
}

/* 4.7 Tables*/
.table-hover tbody tr:hover {
  color: #212529;
  background-color: rgba(255, 214, 176, 0.3);
}
.mchc-info-box[data-map] {
  text-align: center;
}

/* MCHC Timetable*/
.child_health {
  background-color: #dbeef4;
}
.family_planning {
  background-color: #feeedd;
}
.postnatal {
  background-color: #91ccdf;
}
.cervical_screening {
  background-color: #feccff;
}
.antenatal {
  background-color: #feff66;
}
.woman_health {
  background-color: #cbcdfd;
}
.blank {
  background-color: #bfbfbf;
}
.table-head{
    background:#E6E0EC;
}
.table-head-text{
    color:#665E78;
}



/* Healthtalk Timetable */
.dataTable td{
  vertical-align: middle;
}
#talk-schedule .col-md-6{
  padding-left:0 !important;
}

.btn-primary {
  color: #fff;
  background-color: #7f1f6a;
  border-color: #7f1f6a;
}

.bg-pale-purple{
  background: rgb(131 22 108 / 3%);
}

.class-format-online, .class-format-f2f, .class-format-replay, .class-format-record{
  position: absolute;
  right: 0;
  top: 0;
  padding: 0.4rem;
  font-size: 1.1rem;
  font-weight: bolder;
  background: rgb(145,231,202);
}
.class-format-f2f{
  background: rgb(165,184,233);
}
.class-format-replay{
  background: rgb(245,175,173);
}
.class-format-record{
  background: rgb(164,216,115);
}

.border-online{
  border: 5px solid rgb(145,231,202) !important;
}
.border-f2f{
  border: 5px solid rgb(165,184,233) !important;
}
.border-replay{
  border: 5px solid rgb(245,175,173) !important;
}
.border-record{
  border: 5px solid rgb(164,216,115) !important;
}

.healthtalk-back a{
  height: 35px;
  background-image: url(/common/images/healthtalk_icon.png);
  background-repeat: no-repeat;
  background-position: 0 center;
  padding: 0.5rem 0.5em 0.5em 2.1em;
  color: #801f6c;
  font-weight: bold;
}


/* 4.8 Boxes*/
.box-container {
  padding: 1em;
  border: 2px solid rgb(128, 31, 108);
  color: #000;
}

/*4.8.1 Result Box Element from bf_video_comp.html*/
.position {
  padding: 5px;
  background: #9f359a;
  color: #fff;
}

.category {
  color: #801f6c;
}

.category:hover {
  color: #801f6c;
}

/* 4.9 iframe (Embed Youtube Video)*/

#transcript{
  border: 2px solid #801f6c;
  padding: 2em;
  margin-top: 2em;
}

#transcript h3 {
  color: #801f6c;
  padding: .5em inherit;
}

/* 4.10 tables*/
.table {
  margin-bottom: 0;
}
.location-map-click {
  cursor: pointer;
}
.location-map-click:hover {
  background: #801f6c;
  color: #fff;
}
.location-map-img {
  display: none;
}
/* 5. Lower Content Area (Leaflet Area block) */

.leaflet-cover .cover {
  margin: 2em 0 0 0;
}


.leaflet-block-wrapper .pdf-download {
  float: left;
}

.leaflet-block-wrapper .cover img {
  padding: 0.3em;
  border: 1px solid #803c26;
}

.leaflet-block-wrapper .leaflet-block {
  margin: 0 10px;
}

.leaflet-block-wrapper .pdf-download {
  margin-left: 1em;
}

.leaflet-block-wrapper .pdf-download .desc .title {
  margin: 0;
  font-size: 1.2em;
  font-weight: 900;
}

.leaflet-block .desc {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  font-size:1.2em;
  font-weight:900;
  text-align:left;
}
.leaflet-block .desc p{
  line-height:1 !important;
}
.leaflet-block .img-thumbnail {
  -webkit-box-shadow: 1px 1px 3px #b18ca9;
          box-shadow: 1px 1px 3px #b18ca9;
  width: 130px;
}
.leaflet-block p {
  margin:0;
}

/*sub-menu for leaflet*/
#content .rel-sec-content {
  border-left: 1px solid #803c26;
  padding: 0 0 0 1em;
}
#content .rel-sec-content ul {
  display: block;
  padding: 0;
  margin: 0.5em 0;
}
#content .rel-sec-content li {
  list-style-position: outside;
}
#content .rel-sec-content p {
  margin: 0;
  line-height: normal;
}
#content .rel-sec-content li::before {
  content: "";
  margin: 0;
  width: 0;
}
#content .rel-sec-content a.active {
  font-weight: 900;
}
#content .rel-sec-content .nav-tabs {
  border: 0;
}
@media (max-width: 576px) {
  #content .rel-sec-content {
    border-left: 0;
    padding: 0;
  }
  #chapter-selector-mobile {
    width: 100%;
    margin: 0 0 1em 0;
    padding: 0.5em;
  }
}

@media (max-width: 768px) {
  .leaflet-block-wrapper {
    text-align: center;
  }
  .leaflet-cover.cover {
    float: none;
  }
  .leaflet-desc.pdf-download {
    margin: 1em 0 0 0;
    float: none;
  }
  .leaflet-desc .button {
    margin: 0;
  }

  .leaflet-block-wrapper .desc .button div {
    height: auto;
    width: auto;
  }
}

/* 6. Sitemap */
#sitemap-title {
  font-size: 2.5em;
  text-align: center;
  font-weight: bold;
  margin: 0.5em 0 1em 0;
}

#footer-sitemap {
  padding: 3em 0 2em 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  max-width: 1140px;
  margin: 0 auto;
  -webkit-box-ordinal-group: 2;
      -ms-flex-order: 1;
          order: 1;
}
#footer-sitemap .col-3 {
  margin-top: 1em;
}

#footer-sitemap .col-3 li {
  margin: 0.2em 0;
}

#footer-sitemap ul ul {
  padding-left: 1em;
}

#footer-sitemap > ul {
  list-style: none;
  padding: 0;
}

#footer-sitemap a {
  color: black;
}

#footer-sitemap a:hover {
  color: black;
  text-decoration: underline;
}

#footer-sitemap a.cat-title {
  font-size: 1.3em;
  font-weight: bold;
}
#footer-sitemap ul {
  margin: 0;
}
/* banner icons */
#banner-icons-wrapper {
  display: none;
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  #footer-sitemap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  #footer-sitemap:before,
  #footer-sitemap:after {
    content: "";
    display: block;
  }
  #footer-sitemap .row {
    width: 100%;
  }
}

.row {
  margin: 0 auto;
}

/* 7. Footer */
/* 7.1 Desktop Adjust */
footer {
  font-size: 0.8em;
  position: static;
  width: 100%;
  bottom: 0;
  padding-top: 0.5em;
  background: #ddd;
}

.footer-wrapper {
  margin: 0 auto;
}

.footer_left-col {
  float: left;
  padding: 0.5em 1em;
}

.footer_left-col a {
  padding: 0 0.3em;
  font-size: 1em;
  color: #000;
}

.footer_left-col a:last-child {
  border-left: 1px solid #000;
}

.footer_left-col a:hover {
  text-decoration: underline;
  color: #000;
}

footer div.footer-nav {
  display: inline-block;
}

.footer_right-col {
  float: right;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
}

.footer_right-col img {
  width: 100px;
}

.footer_right-col a {
  margin: 0 0.5em;
}

/* 7.2 Mobile Adjust */
@media (max-width: 575px) {
  .footer_right-col,
  .footer_left-col {
    float: none;
  }
  .footer-wrapper {
    text-align: center;
  }
  .footer_right-col {
    margin-top: 0.8em;
  }
}

.footer-rights {
  padding: 1em 0 3em 0;
  border-top: 1px #999 dashed;
  background: #bbb;
}

@media (max-width: 1199px) {
  .footer-rights {
    border-top: 0;
    margin-top: 0;
  }
  .leaflet-list-item .right .row {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}

/* 8. Others */
#goToTop {
  padding: 35px;
  bottom: 9em;
  right: 1em;
  position: fixed;
  display: none;
  background: url(../images/back_to_top_arrow.png) center no-repeat;
  background-size: 50% 50%;
  z-index: 9000;
  cursor: pointer;
  -webkit-transition: 0.3s transform;
  -o-transition: 0.3s transform;
  -webkit-transition: 0.3s -webkit-transform;
  transition: 0.3s -webkit-transform;
  transition: 0.3s transform;
  transition: 0.3s transform, 0.3s -webkit-transform;
  cursor: pointer;
}
#goToTop:hover,
.goToTop:active {
  -webkit-transform: translate(0em, -1em);
  -ms-transform: translate(0em, -1em);
  transform: translate(0em, -1em);
}

div[id$="-items"] {
  height: auto;
  border: 0;
  clear: both;
}
div[id$="-items"] .news {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  border: 1px solid #801f6c;
  padding: 1.5em;
  margin: 1em 0;
  -webkit-box-shadow: 0;
          box-shadow: 0;
  -webkit-box-shadow: 3px 4px 5px #ddd;
          box-shadow: 3px 4px 5px #ddd;
}
div[id$="-items"] .news:last-child {
  margin-bottom: 2em;
}
div[id$="-items"] .news-sticky {
  margin-right: 0.5em;
  float: left;
}
div[id$="-items"] .news-date {
  font-size: 1.1em;
  font-weight: 900;
}
div[id$="-items"] .news-important {
  font-weight: 900;
}
div[id$="-items"] h3.news-title {
  margin-top: 0.3em;
  padding-left:0;
}
.pin-icon img{
    vertical-align: sub;
    margin: 0 .5em 0 0;
}
.pdf-text {
  vertical-align: super;
  font-size: x-small;
}
.pdf-icon img {
  vertical-align: initial;
}

#mobile-back-to-top {
  display: none;
}

.disclaimer{
  font-size: .85em;
  font-weight: normal;
  text-align: start;
}

@media (max-width: 768px) {
  #mobile-back-to-top {
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ddd;
    z-index: 9999;
    display: none;
    -webkit-transition: bottom 0.2s;
    -o-transition: bottom 0.2s;
    transition: bottom 0.2s;
    cursor: pointer;
  }

  #mobile-back-to-top #m-goToTop {
    text-decoration: none;
    text-align: center;
    padding: 1em;
    color: #000;
    font-weight: 900;
    background: #bbb;
    font-size: 1.3em;
  }
  #goToTop {
    display: none !important;
  }
}
@media (max-width: 576px) {
  footer {
    padding: 0;
  }
  #content .leaflet-list-item .button {
    position: relative;
  }
  .leaflet-block img {
    display: block;
    margin: 0 auto 1em;
  }
  .leaflet-block .desc {
    text-align: center;
  }
  .leaflet-block a {
    display: block;
  }
  #content .leaflet-list-item .right {
    position: relative;
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* 8.1 OMP E-news */
.enews-year a {
  margin-right: 1em;
  padding: 0.3em;
  text-decoration: underline;
}

.enews-full-button {
  font-weight: bold;
  color: #007bff;
}

/* 9. Print */
/* 10. Media */
@media (max-width: 576px) {
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.4rem;
  }
  h4 {
    font-size: 1.2rem;
  }
  h5 {
    font-size: 1.1rem;
  }
  h6 {
    font-size: 1rem;
  }
  body {
    font-size: 0.9rem;
  }
  .title a{font-size: 1rem; color:red;}
  .section-header {
    font-size: 1.5em;
  }
  .dropdown-item {
    font-size: 1em;
  }
  #mobile-nav_lang li a {
    font-size: 1em;
  }
  .leaflet-list-item {
    text-align: center;
  }
  .leaflet-list-item h3 {
    font-size: 1.2em;
  }
  .leaflet-block {
    text-align: left;
  }
}
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  html[lang="zh-hk"] body,
  html[lang="zh-cn"] body {
    font-family: sans-serif;
  }
}


.index-6-content .index6-items .index6-item:nth-of-type(n + 2){display:none}
/* 文章内容图片自适应 */
#content img, 
.entry-content img {
    max-width: 100%;  /* 图片最大宽度不超过容器宽度 */
    height: auto;     /* 高度自适应，保持比例 */
    display: block;   /* 避免图片下方出现空隙 */
    margin: 0 auto;   /* 居中图片，可选 */
}

.tabs{display:none;}
@media screen and (max-width: 768px){
.tabs .tabs-ul  {margin:0px;padding:0px;}
.tabs .tabs-ul .tab-li {
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    flex: 1;
}
.tabs {
    display: block;
    position: fixed;
    background: #fff;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 60px;
    padding-top: 5px;
    z-index: 999;
    box-shadow: 0 -5px 8px #e0e0e0;
}
.tabs .tab-img {
    display: flex;
    justify-content: center;
}

.tabs .tab-img img {
    width: 28px;   /* 或你需要的大小 */
    height: auto;
}
.tabs .tabs-ul .tab-li .tab-text {
    color: #000;
    font-size: 16px;
}

.navList_tabs li a{font-size: 15px}

}


		.navbar-toggler {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
}

.navbar-toggler span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* 三條線位置 */
.navbar-toggler span:nth-child(1) {
    top: 0;
}
.navbar-toggler span:nth-child(2) {
    top: 10px;
}
.navbar-toggler span:nth-child(3) {
    top: 20px;
}

/* 點擊後（展開狀態，無 collapsed）變成 X */
.navbar-toggler:not(.collapsed) span:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}
.navbar-toggler:not(.collapsed) span:nth-child(2) {
    opacity: 0;
}
.navbar-toggler:not(.collapsed) span:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}





.section-header {
  display: none;
}
/*/*Bootstrap Banner*/
.banner-carousel {
  padding: 0;
}
.carousel-item img {
  box-shadow: 1px 1px 5px #aaa;
}
.carousel-caption {
  padding: 0;
  right: 0;
  left: 0;
  bottom: 0;
	position:relative;
}
.carousel-caption p {
  margin: 0;
  background: #fff;
  color: #000;
  padding: 0.5em 0;
  box-shadow: 1px 1px 5px #aaa;
}
.carousel-control-next,
.carousel-control-prev {
  width: 10%;
  top:auto;
  bottom:1.5em;
}
.carousel-inner {
  position: relative;
  width: 100%;
  padding: 1em;
}
.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e")
}
/* bottom container elements: News, featured, info*/
.container {
  margin-top: 2em;
}
 /*News*/
h2 {
  color: #000;
  font-size: 1.5rem;
  margin-bottom: 0;
  font-weight: bold;
}

h3 {
  font-size: 1.2rem;
}

div[id$="-wrapper"] .header {
	padding: 0;
	display: flex;
	align-items: baseline;
	width: 100%;
}
div[id$="-wrapper"] .header hr {
  border-top: 0.2em solid #465696;
  width: inherit;
}

div[id$="-wrapper"] div {
  list-style: none;
}
div[id$="-wrapper"] .link-icon {
  width:70%;
}
div[id$="-wrapper"] .feature-link {
  padding: 0;
  font-weight: bolder;
  color: #000;
}

div[id$="-items"] {
  height: 25vh;
  overflow-y: scroll;
  box-shadow: none;
  margin-top: 1em;
}
div[id$="-items"] .news {
  margin: 0 0 1.5em 0;
  box-shadow: none;
  border: 0;
  padding: 0;
}


/* upper container elements: Banner*/
.upper-container {
  border-top: 2px solid #801f6c;
  background-image: url(../images/banner-background.jpg);
  background-clip: content-box;
  background-size: cover;
  background-position: center;
  background-blend-mode: hard-light;
  background-color: #dea46f;
}
.upper-container .row {
  margin: .5em auto;
  max-width: 1120px;
  align-items: center;
}

@media (min-width: 200px) and (max-width: 576px) {
  
  div[id$="-wrapper"] ul {
    list-style: none;
    padding: 1em 0 0 1em;
  }
  div[id$="-wrapper"] h2 {
    font-size: 1.3rem;
  }
  div[id$="-wrapper"] hr {
    display: none;
  }
  .upper-container > .row {
		margin: 0 auto;
		align-items: flex-start;
	}
}

@media (min-width: 576px) and (max-width: 1199px) {
	.upper-container > .row {
		margin: 0 auto;
	}
	#right-column{
		align-items: flex-start;
    justify-content: space-around;
	}
}

.header h2{white-space: nowrap;}

/* feature */
#feature-wrapper{
  background: #fff;
  padding: 1em;
  box-shadow: 1px 1px 5px #aaa;
  margin: .5em auto;
}
#feature-wrapper h2 {
  color: #719ea2;
}
#feature-wrapper .header hr {
  border-color: #719ea2;
}

@media (min-width: 768px) and (max-width: 990px) {
  #feature-wrapper {
    width: 100%;
  }
  #feature-wrapper > .row:last-child{
    margin:.5em 0;
  }
}

 @media (min-width: 200px) and (max-width: 768px) {

    #feature-wrapper .header {
        background: #719ea2;
    }
    
  .container {
    max-width: 100%;
    margin-top: 0;
    padding: 0;
  }
  #right-column{
    padding:0;
    margin:0;
  }
  #news-wrapper,
  #im-wrapper,
  #feature-wrapper,
  #info-block-wrapper {
    padding: 0;
  }
  #news-wrapper #news-items,
  #im-wrapper #im-items {
    padding: 0 1.5em;
    height: 30vh;
    overflow: hidden auto;
    clear: both;
  }
  #news-wrapper .news-section-header,
  #im-wrapper .im-section-header,
  #feature-wrapper .feature-header {
    box-shadow: none;
    padding: 0.5em;
  }
  #feature-wrapper{
    margin-top:0;
    width:100%;
  }
  .carousel-inner {
    padding: 0;
  }
  h2 {
    width: 100%; padding-right: 0;
  }
  .content h2{margin-left:0px;}
  #feature-wrapper .feature-link {
    flex: 0 0 auto;
    text-align: center;
  }
  #feature-wrapper > .row:first a{
    margin:.5em 0;
  }
  .view-more{
    border:none;
  }
  .view-more.d-sm-block {
    text-align: center;
    padding: 0;
    font-size: 1.2em;border-radius:2rem;
  }
  .view-more.d-sm-block a {
    padding: 0.5em;
    display: block;
    margin: 0.5em 0;
  }
 
  div[id$="-wrapper"] .header {
    align-items: center;
    padding: 1em 0;
    background: #465696;
  }
  #news-wrapper hr,
  #news-wrapper h2 {
    border-color: #fff;
    color: #fff;
  }
  #im-wrapper hr,
  #im-wrapper h2 {
    border-color: #fff;
    color: #fff;
  }
  #im-wrapper .header{
    background: #dc3545;
  }

  #feature-wrapper .header {
    background: #719ea2;
  }
  #feature-wrapper h2 {
    color: #fff;text-align:center;
  }
  #feature-wrapper .header hr {
    border-color: #fff;
  }
  #info-block-wrapper .header {
    background-color: #801f6c;
  }
  #info-block-wrapper h2 {
    color: #fff;
  }
  #info-block-wrapper .header hr {
    border-color: #fff;
  }
  
  .info-lists {
    margin-top: 1em;
  }
  .carousel-control-next, .carousel-control-prev {
    bottom: .5em;
  }
  .carousel-caption {
    position:relative;
  }
}


.pagination-wrapper {
    text-align: center;
    margin: 30px 0;
}

.pagination-wrapper .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
}

.pagination-wrapper .page-numbers.current {
    background: #0056b3;
    color: #fff;
    border-color: #0056b3;
}

.pagination-wrapper .page-numbers:hover {
    background: #f2f2f2;
}
