@font-face {
  font-family: Catamaran;
  src: url(font/Catamaran/Catamaran-VariableFont_wght.ttf);
}

@font-face {
    font-family: Open Sans;
    src: url(font/Open_Sans/OpenSans-Regular.ttf)
        url(font/Open_Sans/OpenSans-SemiBold.ttf)
}

*  {
    font-family: 'Open Sans', sans-serif;
}

:lang(zh)  {
    font-family: 'Noto Sans HK', sans-serif;
}

:lang(zh-Hant)  {
    font-family: 'Noto Sans HK', sans-serif;
}

.body {
        background-color: #1B262C;
}

/* HEADER STYLE */
.brand-logo {
    width: 5rem;   
    display: inline-block;
    padding-top: .3125rem;
    padding-bottom: .3125rem;
    margin-right: .1rem;
}

.navbar-brand {
    text-decoration: none;
    color: black;
    font-family: 'Noto Serif TC', serif;
    font-weight: 700;
    font-size: 1.6rem;
}

.navbar-brand-eng {
    font-family: 'Catamaran';
}


.navbar-light {
    background-color: #e3f2fd;
    box-shadow: 0px 1px 2px 0px rgb(0, 0, 0, .1);
    z-index: 100;
}

.nav-item {
    padding-right: 1rem;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(0,0,0,.45);
}

button:focus {
    outline: 1px dotted;
    outline: 5px auto grey;
}

.dropdown-item:active {
    background-color: #e3f2fd;
    color: #000000;
}

.dropdown-item.active{
    background-color: #e3f2fd;
    color: #000000;
    font-weight: 700;
}

@media (min-width: 992px) {
	.navbar .nav-item:hover .dropdown-menu{ display: block; }
	.navbar .nav-item .dropdown-menu{ display: none; }
}	



.header-container a:hover {
  color: black;
}

@media (max-width: 426px) {
    .brand-logo {
        width: 3.5rem;   
}
    .navbar-brand {
        font-size: 1.2rem;
}
    h6 {
        font-size: .7rem;
    }
    .home-title {
        font-size: 1.6rem;
    }
}

header {
    background-color: white;
    z-index: 100;
}

.header-container {
    padding: 1.5rem 1rem 1.5rem 3.5rem;
}


#navbarSupportedContent {
    font-size: 1rem;
    margin-left: 3rem;
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 600;
}

.navbar-text {
    margin-right: 3rem;
    font-weight: 400;
}

.navbar-toggler {
    margin-left: 3rem;
}
@media (max-width: 426px) {
    .header-container {
    padding: 1rem 1rem 1rem 1.6rem;
}
    .navbar-toggler {
    margin-left: 0rem;
}
}

/* CONTENT STYLE */
main {
    padding: 3rem 10rem 3rem 10rem;
    background-color: #1d2e3b;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#main {
    background-image: url('images/home_section.jpg');
}

#intro, #people, #workshop, #seminar, #activities {
    background-image: url('images/intro_section.jpg');
}

#photo {
    background-image: url('.jpg');
}

.main-text {
  font-weight: 1000;
  background-image: linear-gradient(#19629b, #19629b);
  background-repeat: no-repeat;
  background-position: 0% 100%;
  background-size: 100% .2rem;
}

.main-text:hover {
  background-size: 100% 100%;
  background-position: 0% 0%;
}

.main-text {
  transition: background-size .4s, background-position .2s ease-in .4s;
}
.main-text:hover {
  transition: background-position .4s, background-size .2s ease-in .4s;
}

.home-content {
    color: #000000;
    background-color: rgb(255, 255, 255, .95);
    padding: 2rem 3rem 2rem 3rem;
    box-shadow: 0px 0px 30px rgb(0, 0, 0, .1);
    z-index: 1;
}

.carousel-item a {
    color: #fff;
}

.carousel-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0px;
    z-index: 1;
    color: #fff;
    width: 100%;
    padding: 2.5rem 7rem 2.5rem 7rem;
    text-align: left;
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6026785714285714) 64%, rgba(0,0,0,0) 100%);
}

.carousel-inner .carousel-item {
    transition: -webkit-transform 1.8s ease;
    transition: transform 1.8s ease;
    transition: transform 1.8s ease, -webkit-transform 1.8s ease;
  }

.carousel-caption h5 {
    font-size: 1.5rem;
}

@media (min-width: 426px) {
    .carousel-caption h5{
        font-size: 1.8rem;
    }
}

@media (min-width: 766px) {
    .carousel-caption h5{
        font-size: 2rem;
    }
}

@media (max-width: 766px) {
    .carousel-caption {
        padding: 2rem 3rem 2rem 3rem;
    }
}


#home-section-wrap {
    background-color: #1d2e3b;
    background-color: #fff;
}

.home-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2.6rem;
    padding: 3rem 1rem 3rem 1rem;
    z-index: 2;
    max-width: 87%;
}

.section-content {
    color: #000000;
    background-color: rgb(255, 255, 255, .95);
    list-style: none;
    box-shadow: 0px 2px 10px 0px #00000017;
    border: #e3f2fd solid 4px;
    -webkit-transition:  border .8s ease-out;
    -moz-transition:  border .8s ease-out;
    -o-transition:  border .8s ease-out;
    -ms-transition: border .8s ease-out;
    transition: border .8s ease-out; 
}

.section-content:hover {
    border: #17a2b8 solid 4px;
}

.section-content h5 {
    padding: 0.7rem 3rem 0 3rem;
}

.section-content p {
    font-size: 0.9rem;
    color: darkgray;
    padding: 0rem 2rem 1.5rem 2rem;
    display: flex;
    margin: 0;
}

.img-wrap {
    overflow: hidden;
}

.section-content img {
    width: 101%;
    transition: ease .8s;
}

.section-content img:hover {
    transform: scale(1.2);
}

.section-content li:before {
    content:        "";
    border-color:   transparent #111;
    border-style:   solid;
    border-width:   0.35rem 0 0.35rem 0.45rem;
    display:        block;
    height:         0;
    left:           -1rem;
    position:       relative;
    top:            1.1rem;
    width:          0;
}

@media (max-width: 1080px) {
    .section-content {
        height: 340px;
    }
}

@media (max-width: 991px) {
    .section-content {
        height: 320px;
    }
}

@media (max-width: 885px) {
    .section-content {
        height: 310px;
    }
}

@media (max-width: 831px) {
    .section-content {
        height: 300px;
    }
}

@media (max-width: 800px) {
    .section-content {
        height: 280px;
    }
}

.section-content-eng {
    height: auto;
}

@media (max-width: 766px) {
.home-section {
    grid-template-columns: repeat(1, 1fr);
    padding: 2rem 1rem 2rem 1rem;
    grid-gap: 1.6rem;
}

.section-content {
    height: auto;
}
    
.section-content h5 {
    padding: 0.2rem 3rem 0.6rem 3rem;
    font-size: 1rem;
}

.section-content p {
    display: none;
}

.section-content li:before {
    left:           -1rem;
    position:       relative;
    top:            .98rem;
    width:          0;
}
    
}


.titlecontainer {
    position: relative;
    text-align: center;
  }
  
.title-caption {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0px;
    z-index: 1;
    color: #fff;
    width: 100%;
    padding: 1rem 3rem;
    text-align: left;
    background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6026785714285714) 64%, rgba(0,0,0,0) 100%);
}

.title-caption h5 {
    font-size: 1.5rem;
}

@media (min-width: 426px) {
    .title-caption h5{
        font-size: 1.8rem;
    }
}

@media (min-width: 766px) {
    .title-caption h5{
        font-size: 2rem;
    }
}

@media (min-width: 2200px) {
.home-section {
    grid-template-columns: repeat(4, 1fr);
}
}


@media (max-width: 991px) {
    main {
    padding: 3rem 3rem 3rem 3rem;
    }
    .home-content {
    padding: 2.5rem;
}
    .title-caption {
    padding: 1rem 2.5rem;
    }
}
@media (max-width: 426px) {
    main {
    padding: 2rem 1.5rem 2rem 1.5rem;
}
    .home-content {
    padding: 2rem;
}
.title-caption {
    padding: 1rem 2rem;
    }
}

@media (min-width: 565px) {
    .expand {
    display:block;
        padding-bottom: 12rem;
}
}

h5 {
    font-weight: 700;
}

#people h5 {
    padding-top: 1.6rem;
}
.people-table {
    margin: 1rem 0;
}

.people-name a {
    font-weight: 700;
    text-decoration: underline;
    color: #000000;
}

#people .table-light, .table-light>td, .table-light>th {
    background-color: rgb(0,0,0,0);
}

#people tbody tr {
    border-bottom: solid 1px #bfd9ec;
}

#people .table-light tbody+tbody, .table-light td, .table-light th, .table-light thead th {
    border-color: #bfd9ec;
}

@media (max-width: 575px) {
.people-table td {
    display: block;
    padding: .2rem 0;
}
    .people-table thead {
        display: none;
    }
    #people tbody tr {
    display: block;
    padding: .3rem 0;
}
    #people .table-light tbody+tbody, .table-light td, .table-light th, .table-light thead th {
    border-color: rgb(0,0,0,0);
}
}

@media (max-width: 766px) {
    #workshop a, #seminar a, #photo a {
    overflow: hidden;
    display:flex;
}
}

#map li {
    list-style: none;
}

.map-item li {
    padding-bottom: .5rem;
}

.activities-card {
    max-width: 766px;
}

.card-body {
    padding: 2rem;
}

@media (max-width: 766px) {
    .card-body {
        padding: 1.25rem;
    }
}

.bannerImg {
    width: 100%;
}

.resourceContainer {
    background-color: #e3f2fd;
    height: calc(100% - 54px);
    border: solid #17a2b840 1px;
    border-bottom: none;
}

.buttonContainer {
    background-color: #e3f2fd;
    height: 54px;
    border: solid #17a2b840 1px;
    border-top: none;
}

.outlineContainer {
    margin-bottom: 15px;
}

@media (min-width: 576px) {
.outlineContainer {
    margin-bottom: 30px;
}
}

@media (min-width: 992px) {
    .col-md-6 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
 }

@media (min-width: 1400px) {
.col-lg-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    }
}

.modal-header {
    display: initial;
}

.modal.fade .modal-dialog {
    transition: -webkit-transform .2s ease-out;
    transition: transform .2s ease-out;
    transition: transform .2s ease-out,-webkit-transform .2s ease-out;
    -webkit-transform: scale(.8);
    transform: scale(.8);
}

.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
}

/* FOOTER STYLE */
footer {
    background-color: #1B262C;
    position: relative;
    width: 100%;
}

.pt-5, .py-5 {
        padding-top: 2rem!important;
        padding-bottom: 1rem!important;
}

@media (min-width: 992px) {
.col-lg-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
}
}

#stickyFooterContent .stickyFooterInfoTable1 {
    width: 100%;
}

#stickyFooterContent {
color: #ffffffab;
font-size: .9rem;
}

#stickyFooterContent h2 {
    font-size: 1.1rem;
}

#stickyFooterContent td {
    vertical-align: top;
  }

#stickyFooterContent a {
    color: #ffffffab;
  }

#stickyFooterMap {
    overflow: hidden;
    position: relative;
    height: 220px;
    /* width: 96%; */
}

#stickyFooterMap iframe, #stickyFooterMap #mapContent {
    left: 0;
    top: 0;
    height: 80%;
    width: 100%;
    position: absolute;
}


.container, .container-lg, .container-sm, .container-xl {
    max-width: 80%;
}

@media  (max-width: 426px) {
    .container, .container-lg, .container-sm, .container-xl {
        max-width: 90%;
    }
}

.footertext {
    color: rgba(255, 255, 255,.5);
}

.footertext a {
    text-decoration: none;
    color: rgba(255, 255, 255,.5);
}

.footcontainer {
    padding: 1.5rem 3rem 1.5rem 3rem;
    background-color: #151d21;
}

.right {
    float: right;
}

@media (max-width: 575px) {
    .footcontainer {
    padding: 1rem 1.5rem 0.1rem 1.5rem;
    }
    
    .left {
        text-align: center;
    }
    .right {
        float: inherit;
        text-align: center;
    }
    
}
/* TEXT ADJUSTMENT */
.text-small {
    font-size: .9rem;
}
@media (max-width: 426px) {
    .text-small {
        font-size: .7rem;
    }
}

.d-sm-inline {
    margin: auto;
    margin-bottom: 1rem;
}

.text-pad1 {
    padding: 0 .7rem 0 0;
}

.text-pad2 {
    padding: 0 0 0 .7rem;
}

.bi.bi-box-arrow-right {
margin-bottom: 3px;
  }

  a {
    word-break: break-all;
  }

  .footcontainer a {
    word-break: normal;
  }
/* EFFECT */
