/**
 * Place your custom styles here.
 */
 @font-face {
    font-family: NotoScansTC;
    src: url('../webfonts/NotoSansTC-Light.otf');
    font-weight: bold;
}

.appweb {
    font-size: 14px;
}

.swiper-container {
    position: relative;
    overflow-x: hidden;
  }

img.news-image {
    width: 100%;
}

.navbar-header {
    display: flex;
    justify-self: center;
    align-items: center;
}

.navbar-default .navbar-header .navbar-brand {
    font-size: 2em;
    font-weight: bold;
    color: green;
    line-height: 1em;
    height: 100%;
}

#navbar .navbar-toggle {
    /* display: none; */
}

h2.block-title {
    position: relative;
    font-family: NotoScansTC, sans-serif, Arial, Helvetica, '微軟正黑體', Microsoft JhengHei, Apple LiGothic, '蘋果儷中黑';
    font-size: 2em;
    color: green;
    font-weight: bold;
    padding-bottom: initial;
    border-bottom: initial;
    margin: 20px 0 20px;
    text-align: left;
}

h2.block-title::after {
    content: "";
    background: #287059;

    width: 2em;
    height: 2px;

    position: absolute;
    bottom: -8px;
    left: 0;
}

.menu.navbar-nav {
    font-size: 1.1em;
}

.menu.navbar-nav li{
    font-size: 1.5em;
    background-color: #9CB96D;
    height: 35px;
    margin-right: 2px;
}

/* .menu.navbar-nav li::after {
    content: "|";
    float: right;
    color: white;
}

.menu.navbar-nav li:last-child:after {
    display: none;
} */

li.blog-id-2.mlp-language-nav-item, li.blog-id-5.mlp-language-nav-item {
    pointer-events:none; 
    opacity:0.6;  
}


.i18n-pt #block-views-download-block-block .download-item {
    text-align: center;
}

.menu.navbar-nav li:a{
    font-size: 1.5em;
    background-color: #9CB96D;
    height: 45px;
    position: relative;
    /* margin-right: 2px; */
}


.navbar-nav > li > a {
	line-height: initial; 
}


.news-content .news-body p {
    margin: 12px;
}


#block-views-download-block-block img {
    height: 70px;
    width: auto;
    margin-bottom: 10px;
}

#block-views-download-block-block span.field-content {
    color: black;
    font-weight: bold;
}

#block-views-download-block-block .download-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.swiper-slide img{
    display: block;
    width: 100%;
}

.logo.pull-left img {
    padding-right: 10px;

}

#block-views-download-block-block .download-item {
    font-size: 1.2em;
    font-weight: bold;
    color: black;
    max-width: 300px;
    text-align-last: center;
}



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


.view-download .download-item {
    font-size: 1.2em;
    font-weight: bold;
    color: black;
}

/* Hide Emblem of Macau in portal */
body.header-slim .logo.pull-left, body.header-slim ul.language-switcher-locale-url, body.header-slim #footer {
    display: none;
}

body.header-slim .navbar-default {
    border: none;
}

body.header-slim .navbar-header {
    display: flex;
    justify-content: center;
}

body.header-slim #navbar {
    padding-top: 30px;
}


body.header-slim .navbar-nav>li>a {
    line-height: initial;
}

body.header-slim .navbar-nav>li>a {
    color: black;
}

#block-views-download-block-block .views-row .field-content {
    margin: 10px;
    text-wrap: wrap;
}


.news-body {
    line-height: 1.5em;
    overflow: hidden;
    font-size: 1.1em;
    text-align: justify;
    text-overflow: ellipsis;

    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
}


.news-body a {
    color: #6b7280;
    font-weight: bold;
}

.node-news .news-body {
    display: block;
} 

.news-title {
    font-weight: bold;
    margin: 0.5em 0px 0.5em;
    font-size: 1.2em;
    color: black;
}

.news-date {
    color: orangered;
    font-weight: bold;
}

.news-body p {
    text-indent: 2em;
    padding: 0px;
    margin: 0px;
}

.region-content .block-title {
    position: relative;
}

.region-content .block-title::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px; /* suit your need */
    background-color: #6b7280; /* suit your need */
    display: block;
    top: -10px;
    left: 0;
}



div.appweb .video-player-container {
    padding-top: initial;
    height: 300px;
}


.video-player-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}
  
  /* Then style the iframe to fit in the container div with full height and width */
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.video-list ul {
    list-style-type: none;
    padding-inline-start: 10px;
}

.video-list li i {
    margin-right: 10px;
    font-size: 1.8em;
}

.video-list li span {
    font-weight: bold;
    font-size: 1.1em;
    color:#000;
}

.video-list .fa-youtube:before {
    background-image: linear-gradient(#fff,#fff);
    background-repeat: no-repeat;
    background-size: 50% 50%;
    background-position: center;
}


.video-item:hover {
    text-decoration: underline;
}

.video-title {
    font-size: 1.2em;
    font-weight: bold;
    color: black;
}

.view-video-list ul {
    list-style-type: none;
    padding-inline-start: 0px;
}

.ytplayer-logo {
    width: 25px;
    height: auto;
    margin-right: 10px;
} 

body.appweb, section.appweb, div.appweb {
    background: linear-gradient(to right, #ffffff, #cbddb3, #ffffff);     
}

body.contentonly {
    background: initial;
}

body.isdark {
    background: black;
    color: #ccc;
}
div.appweb .container {
    padding-left: 15px;
    padding-right: 15px;
}

.navbar-default, .appweb .navbar-default {
    background-color: initial;
}

.appweb section {
    position: initial;
    padding: inherit;
}

#navbar-collapse>nav {
    display: flex;
    justify-content: center;
}

.view-video .view-head {
    margin-bottom: 30px;
}

.view-video .view-content {
    display: contents;
}

.view-video .views-field-video {
    text-align: center;
}

.view-video .views-field-video img{
    max-height: 100%;
    width: 100%;
}

.view-video .views-row-1 .views-field-video {
    height: 600px;
}

.view-video>.view-content>:not(h3,.views-row-1)>.views-field-video {
    height: 232px;
}
/* .view-video .views-row-2, .view-video .views-row-3, .view-video .views-row-4 {
    width: 350px;
    display: inline-block;
    padding: 5px;
} */

/* .view-video>.view-content>:not(h3,.views-row-1) {
    width: 33%;
    display: inline-grid;
    padding: 5px;
} */
.view-video .img-responsive {
    width: 100%;
    height: 100%;
}

#video-block .video-item {
    height: 300px;
}


.navbar {
    border: initial;
    margin-bottom: initial;
}

#navbar .left-icons {
    float: left;
}

#navbar .left-icons .icons{
    display: inline-flex;
    margin-top: 5px;
}

#navbar .left-icons .icons>div{
    margin-right: 5px;
}

#navbar .right-icons {
    float: right;
    margin-top: 10px;
    position: absolute;
    right: 0px;
    bottom: 0px;    
}

#navbar .right-icons .header-head img.header-head {
    margin-top: 30px;
}

#navbar .right-icons .icons {
    float: right;
    display: inline-flex;
}

#navbar .right-icons .header-event-icon {
    margin-right: 5px;
}


#navbar .right-icons .icons .navbar {
    display: none;
}

#navbar .right-icons>div,#navbar .right-icons>section{
    margin-right: 5px;
}

#navbar .right-icons>nav>button{
    width: 45px;
    height: 45px;
}

#navbar .navbar-header .row {
    display: flex;
}

#navbar .header-icon {
    /* position: absolute;
    bottom:0px;
    left: 120px; */
}

#navbar .header-download {
    /* position: absolute;
    left: 260px;
    bottom: 0px;
    z-index: 10; */
    /* padding-left: 30px; */
}

#navbar .header-mo-icon {
    /* position: absolute; */
    /* right: 80px;
    top: 10px;
    z-index: 10; */
    margin-right: 5px;
}

#navbar #block-locale-language {
    margin-right: 5px;
}

#navbar .navbar-toggle {
    margin: 0px;
    width: 46px;
    height: 46px;
}
#navbar .header-icon img{
    margin-top:  10px;
}

#navbar .header-logo {
    /* position: absolute; */
    /* left: 10px;
    top: 10px; */
    /* z-index: 10; */
    /* margin: auto; */
    width: 100%;
}

#navbar .header-head {
    /* position: absolute; */
    /* bottom: 00px;
    right:0px;
    width: 768px; */
}

#navbar ul.menu {
    /* background-color: black;
    opacity: 0.50;
    display: inline-grid; */
}

.navbar-default .navbar-nav > li > a {
    color: black;
    border-bottom-color: white;
}


.navbar-nav > li > a {
    padding: 3px;
}

.appweb .navbar-default .navbar-nav > .active > a {
    background-color: initial;
}


.appweb .nav>li>a {
    padding: 0px 5px;
}

#navbarToggleExternalContent {
    position: absolute;
    right: 5px;
    top: 60px;
}

#navbarToggleExternalContent ul.menu {
    background-color: #94956d;
    display: grid;
}

.front .table td {
    border-top: initial;
}

.front .intro-text {
     font-size: 16px;
     color: gray;
}

.front .intro-text p.intro-link {
    font-size: 16px;
    color: black;
}

.front .intro-text p.intro-link a {
    font-size: 16px;
    color: black;
}

.intro-title, .page-header {
    font-family: NotoScansTC, sans-serif, Arial, Helvetica, '微軟正黑體', Microsoft JhengHei, Apple LiGothic, '蘋果儷中黑';
    font-size: 1.5em;
    color: green;
    font-weight: bold;
    padding-bottom: initial;
    border-bottom: initial;
    margin: 20px 0 20px;
}

span.intro-title:after, .page-header:after{
    content: '';
    display: block;
    width: 1.8em;
    height: 2px;
    background-color: green;
    margin-top: 5px;
}

.front .feature-block img.row-image {
    /* width: 650px; */
}

.front td.tab-image{
    text-align: center;
    vertical-align: middle
}

.front td.left-tab{
    text-align: right;
    vertical-align: middle
}

.front td.right-tab{
    text-align: left;
    vertical-align: middle
}

.front img.head-image{
    width: 100%;
}

.front td.tab-intro {
    padding: 10px 20px;
}

.front .logo-icon {
    position: absolute;
    bottom: 80px;
    display: none;
}

.front .card-body {
    padding: 10px;
}

.front .card-body span {
    display: block;
}

.front .card-head .item-image {
    height: 160px;
}
.front .card-body .item-date {
    color: #0c7b5b;
}

.front .card-body .item-title {
    color: #94956d;
    font-weight: bolder;
    line-height: 1.5em;
    max-height: 3em;
    overflow: hidden;
    font-size: 1.07em;
    text-align: justify;
}

.front .card-body .item-body {
    line-height: 1.5em;
    height: 6em;
    overflow: hidden;
    font-size: 1.07em;
    text-align: justify;
    word-break: initial;
}

.front .card-head {
    text-align: center;
}

.front .card-head img{
    max-height: 160px;
    max-width: 240px;
}

.front .container .flex-row .intro-icon {
    width: 150px;
}

.front .container .flex-row3 .intro-icon, .front .container .flex-row5 .intro-icon {
    float: right;
}

.front .container .flex-row1 .content-image, .front .container .flex-row3 .content-image, .front .container .flex-row5 .content-image{
    text-align: right;
}

.front .container .flex-row2 .intro-text, .front .container .flex-row4 .intro-text{
    margin-left: 150px;
}

.front .container .flex-row3 .intro-text, .front .container .flex-row5 .intro-text{
    margin-top: 70px;
    padding-right: 150px;
}

.front .container .flex-row {
    display: flex;
}

.front .container .flex-row2,  .front .container .flex-row4{
    flex-direction: row-reverse;
}

.front .container .tab-line {
    width: 100%;
}

.i18n-en #navbar-collapse ul.navbar-nav {
    display: none;
}

.white-box {
    background-color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 3px rgb(51 51 102 / 50%);
    padding: 10px 40px 40px 40px; 
}

.front .page-header {
    display: none;
}

/* for govmo-portal */
section:lang(zh-hant), section:lang(zh-hans) {
    word-break: initial;
}

body .front {
    line-height: initial;
}

.front .navbar {
    margin-bottom: initial;
}

/* for govmo-portal */
.ga td {
    padding: 10px;
}

footer.container {
    width: 100%;
}

.view-service .view-grouping-header, .view-servicenr .view-grouping-header {
    text-align: center;
    font-weight: bold;
    color: #e38410;
    font-size: 2.5em;
}

.view-service .view-grouping-content h3, .view-servicenr .view-grouping-content h3 {
    font-size: 1.5em;
}

.view-service .view-grouping-content .field-content, .view-servicenr .view-grouping-content .field-content {
    font-size: 1.1em;
}

.view-service .view-grouping-content .field-content a, .view-servicenr .view-grouping-content .field-content a {
    color: black;
}

.view-service .view-grouping-content .field-content a:after, .view-servicenr .view-grouping-content .field-content a:after {
    color: black;
}

.ext-icon-link {
    margin-left: 4px;
    margin-right: 4px;
}

#graphic-abstract-block img {
    width: 100%;
}

#graphic-abstract-block .right-image .content-image {
    padding-bottom: 10px;
}

.view-graphic-abstract-list .view-content {
    margin-top: 50px;
    font-size: 1.2em;
}

.view-event div.event-content {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 2px solid #94956d;
}

.event-content .event-image img{
    height: 100%;
    max-width: 100%;
}

.event-content .event-date{
    color: #0c7b5b;
}

.event-content .event-title{
    color: #94956d;
    font-weight: bolder;
    line-height: 1.5em;
    max-height: 3em;
    overflow: hidden;
    font-size: 1.07em;
    text-align: justify;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;    
}

.event-block .event-content .event-body, .view-event .event-content .event-body{
    line-height: 1.5em;
    overflow: hidden;
    font-size: 1.07em;
    text-align: justify;
    word-break: initial;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.event-block .event-content .event-body{
    height: 9em;
}

.view-event .event-content .event-body{
    height: 10em;
}

.view-download .download-app-content {
    margin: 70px 0px;
}

.view-download .download-app-content a.app-download {
    margin-right: 10px;
}
.event-content .event-image {
    margin-bottom: 10px;
    height: 175px;
    text-align: center;    
}

.view-card .views-field-title-field .field-content {
    text-indent: 2em;
}

#graphic-abstract-block .owl-item:not(.center) img {
	opacity: .50;
}

#graphic-abstract-block .owl-prev,
#graphic-abstract-block .owl-next,
#video-block .owl-prev,
#video-block .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
	font-size: 9em;
	color: black;
	opacity:0.70;
}

.owl-prev {
    left: 4rem;
}

.owl-next {
    right: 4rem;
}

ul.language-switcher-locale-url {
    list-style-type: none; /* Remove bullets */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */    
    display: flex;


    position: absolute;
    top: 80px;
    right: 5px;
}

ul.language-switcher-locale-url li{
    display: inline-block;
}

ul.language-switcher-locale-url li a{
    padding-top: 0px;
}

.navbar-header, .appweb .navbar-header {
    float: none;
}



.studios .title {
    font-size: 22px;
    margin: 20px 0 20px 0;
}

li.studio {
    border-radius: 12px;
    margin: 0 0 16px 0;
    padding: 1em;
}
li.studio:nth-child(4n+1) {
    background-color: #D9EBE7;
}
li.studio:nth-child(4n+2) {
    background-color: #DFEAF5;
}
li.studio:nth-child(4n+3) {
    background-color: #FAEDD9;
}
li.studio:nth-child(4n+4) {
    background-color: #F7E4DA;
}
li.studio h1 {
    color: #232323;
    font-size: 18px;
    margin: 0 0 10px 0;
}
li.studio dl {      
    color: #6C6C6C;
    margin: 0;
}
li.studio dl dt {
    font-weight: 600;
}
li.studio dt { 
    float: left; 
    width: 75px;
}    
li.studio dd {
    margin-left: 75px;
}

.i18n-en li.studio dt, .i18n-pt li.studio dt { 
    float: initial; 
    width: initial;
}    
.i18n-en li.studio dd, .i18n-pt li.studio dd {
    margin-left: initial;
}
.i18n-en #navbar .left-icons .header-download, .i18n-en #navbar .left-icons .icons, .i18n-en #navbar .right-icons .header-mo-icon {
    display: none;
}

.i18n-id #navbar .left-icons .header-download, .i18n-id #navbar .left-icons .icons, .i18n-id #navbar .right-icons .header-mo-icon {
    display: none;
}

.i18n-vn #navbar .left-icons .header-download, .i18n-vn #navbar .left-icons .icons, .i18n-vn #navbar .right-icons .header-mo-icon {
    display: none;
}

.contentheader {
    font-size: 22px;
    font-weight: 800;
    padding-top: 20px;
    padding-bottom: 10px;
}

.i18n-zh-hant .contentheader {
    word-break: keep-all;
}

ul.quicktabs-tabs.quicktabs-style-sky li {
    font-size: 1.2em;
 }
 
 ul.quicktabs-tabs.quicktabs-style-sky li.active {
    margin: initial;
 }
 
ul.quicktabs-tabs.quicktabs-style-sky li a, ul.quicktabs-tabs.quicktabs-style-sky li a:visited {
    padding: 0 20px;
}
 
#quicktabs-news .view-content .item-list {
    min-height: 30vh;
}
 
#quicktabs-news .view-content .item-list ul {
    padding-left: 1.5em;
    list-style: none;
    counter-reset: initial;
}
 
span.service-category-icon {
    width: 2em;
}

span.service-category-icon>i.fa-square {
    font-size: 17pt;
    margin-top: 3px;
}

span.service-category-icon i.fa-inverse {
    font-size: 9pt;
}

span.icon-fa-user {
    color: green;
}

span.icon-fa-building-user {
    color: #3d64d1;
}

.view-service ul.service-category-icon, .view-servicenr ul.service-category-icon {
    list-style: none;
    padding-inline-start: 0px;
}

/* Large desktops and laptops */
@media (min-width: 1200px) {

}

/* Landscape tablets and medium desktops */
@media (min-width: 992px) and (max-width: 1199px) {
    img.header-icon {
        height: 41px;
    }

    #navbar {
        /* height: 310px; */
    }

    #navbar .right-icons .header-head img.header-head {
        margin-top: 50px;
    }    
}

/* Portrait tablets and small desktops */
@media (min-width: 768px) and (max-width: 991px) {
    img.header-icon {
        height: 38px;
    }

    /* #navbar {
        height: 260px;
    } */
    
    #navbar .right-icons .header-head img.header-head {
        margin-top: 60px;
    }    
    #navbar .header-logo {
        width: 90%;
    }   

    ul.video-list .panel .img-responsive {
        min-height: 400px;
    }       
}

/* Landscape phones and portrait tablets */
@media (max-width: 767px) {
    img.header-icon {
        height: 35px;
    }

    /* #navbar {
        height: 300px;
    } */
    
    #navbar .right-icons .header-head img.header-head {
        margin-top: 30px;
    }    
    #navbar .header-logo {
        width: 80%;
    }    

    /* #navbar .left-icons .icons{
        display: initial;
    }

    #navbar .left-icons .icons>div {
        display: inline-block;
    }     */
    ul.video-list .panel .img-responsive {
        min-height: 400px;
    }     
}    



/* Portrait phones and smaller */
@media (max-width: 480px) {

    .main-container {
        width: min(95%, 480px);
        margin-inline: auto;
    
    }

    .logo.pull-left img {
        width: 100%;
    }


    #navbar-collapse>nav {
        display: block;
    }


    /* #block-views-download-block-block .view-download-block {
        display: flex;
        justify-content: left;
    }

    #block-views-download-block-block .download-item {
        display: flex;
        flex-direction: row;
        max-width: 350px;
        text-align-last: left;
    }

    
    #block-views-download-block-block img {
        margin: 10px;

    }


 */

    .video-list li span {
        font-weight: bold;
        font-size: 1em;
        color:#000;
    }
    .navbar-header {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    ul.language-switcher-locale-url {
        list-style-type: none; /* Remove bullets */
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margins */    
        display: flex;
        position: initial;
    }

    .navbar-header .logo {
        flex: 0 0 20%;
        order: -1;
    }

    .navbar-header .site-name {
        flex: 0 0 80%;
        order: 2;
    }

    .navbar-header .lang-switch {
        flex: 0 0 auto;
        order: 10;
    }

    .navbar-header button.navbar-toggle {
        order: 5;
    }

    .view-download-block .views-row {
        display: flex;
        justify-content: center;
    }


    .front .container .flex-row {
        display: initial;
    }

    .front .feature-block img.row-image {
        width: 100%;
    }
    .front .container .flex-row .intro-icon {
        display: none;
    }    

    .front .container .flex-row2 .intro-text, .front .container .flex-row4 .intro-text{
        margin-left: initial;
    }
    
    .front .container .flex-row3 .intro-text, .front .container .flex-row5 .intro-text{
        margin-top: initial;
        padding-right: initial;
    }

    #navbar .header-head{
        /* padding: 0px 20px;
        width: 90%; */
        display: none;
    }

    /* #navbar .header-head img{
        width: 100%;
    } */

    #navbar .header-logo{
        top: 5px;
        width: initial;
    }
    #navbar .header-logo img{
        width: 100%;
    }

    #navbar .header-mo-icon {
        /* right: 0px;
        top: 100px;
        position: absolute; */
    }

    #navbar .header-mo-icon img{
        /* height: 40px; */
    }

    #navbar .right-icons {
        position: absolute;
        right: 0px;
        bottom: 90px;
    }

    #navbar .right-icons .header-event-icon{
        float: right;
        margin-bottom: 10px;
    }   

    #navbar .right-icons .header-event-icon img{
        height: 40px;
    }   

    ul.language-switcher-locale-url {
        float: right;
    }

    #navbar .right-icons .icons {
        display: block;
        padding-bottom: 10px;
    }

    #navbar .header-download {
        top: 50px;
        right: 64px;
        left: initial;
    }

    /* #navbar .header-download img{
        height: 40px;
    } */
    div.appweb #navbar .left-icons .icons{
        /* height: 40px; */
        width: 240px;
    }

    /* #navbar .left-icons .icons img{
        height: 40px;
    } */

    /* #navbar .language-switcher-locale-url .language-link img {
        height: 40px;
    } */

    #navbar #block-locale-language {
        right: 100px;
        top: -30px;
    }

    #navbar {
        /* height: 200px; */
    }

    .white-box {
        margin: 10px;
    }

    .view-video .views-field-video img {
        max-height: 232px;
    }

    .view-video .views-row-1 .views-field-video {
        height: initial;
    }    

    .view-video>.view-content>:not(h3,.views-row-1) {
        width: initial;
        padding: initial;
    }

    .owl-prev {
        left: 1rem;
    }    

    .owl-next {
        right: 1rem;
    }    

    #graphic-abstract-block .owl-prev, #graphic-abstract-block .owl-next, #video-block .owl-prev, #video-block .owl-next {
        font-size: 4em;
    }

    .view-download .app-download img, .view-download .file-download img {
        max-width: 100%;
        margin-bottom: 10px;
        max-height: 48px;
    }

    ul.video-list .panel .img-responsive {
        min-height: initial;
    }     
}

@media (prefers-color-scheme: dark) {
    /* Your dark mode styles: */

    :root, body.contentonly {
        background: black;
        color: #ccc;
    }

    .contentheader {
        color: white;
    }
}

