/**
 * @file
 * Subtheme specific CSS.
 */

#toolbar-bar a{
  font-size:14px;transition: all, 0.2s;
}

#toolbar-bar{
  width: 100%; position: fixed;
}

.toolbar .toolbar-bar .toolbar-tab:not(.workspaces-toolbar-tab) > .toolbar-item {
  color: #bebebe;
  font-weight: 600;
}

.toolbar .toolbar-bar {
  background-color: #2d2d2d;
  box-shadow: none;
}

/**
 * @file
 * Theme styling for tabs.
 */

nav.tabs {
  margin-bottom: 1rem;
}

nav.tabs ul {
  background: #e9ecef;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
}

nav.tabs ul .nav-item {
  flex-grow: 1;
}

nav.tabs ul .nav-item a {
  color: #303030;
  text-align: center;
}

nav.tabs ul .nav-item.active a {
  background: #303030;
  color: #e9ecef;
}

/* STARTS: MySPH login */
.topnavbar .cta-holder .region-top-header-form {
  display: inline-block;
}

.topnavbar .cta-holder .region-top-header-form a.mysph_login {
  border-color: #464646;
    color: #464646;
    letter-spacing: 1px;
    padding: 0 8px;
    font-size: 1.3rem;
    line-height: 28px;
    min-width: 80px;
    text-align: center;
    border-style: solid;
    border-width: 1px;
    border-radius: 15px;
    height: 30px;
    outline: 0;
    background-color: transparent;
    font-family: 'Noto Sans SC', Arial, sans-serif;
    font-weight: 500;
    display: block;
}

.topnavbar .cta-holder .region-top-header-form a.mysph_login:hover {
  background-color: #464646;
  color: #ffffff;
}
.topnavbar .cta-holder .region-top-header-form a.user-login-dd {
  color: #464646;
}
.topnavbar .cta-holder .region-top-header-form a.user-login-dd:hover {
  color: #A80034;
}
.topnavbar .cta-holder .region-top-header-form .dropdown:hover .dropdown-toggle-down {
  background-color: transparent;
}
.topnavbar .cta-holder .region-top-header-form .dropdown .dropdown-toggle-down::after {
  color: #464646;
}
.topnavbar .cta-holder .region-top-header-form .dropdown:hover .dropdown-toggle-down::after {
  color: #A80034;
}

.topnavbar .cta-holder .region-top-header-form a.user-login-dd #sph_user_name{
  font-size: 11px;
}

.topnavbar .cta-holder .region-top-header-form .dropdown .dropdown-menu {
  box-shadow: 0 0 4px 0 rgba(58,58,58,.5);
  background-color: #f4f5f7;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  left: -30px;
}

.topnavbar .cta-holder .region-top-header-form .dropdown .dropdown-menu > li {
  padding: 5px 15px;
}

.topnavbar .cta-holder .region-top-header-form .dropdown .dropdown-menu > li:first-child {
  padding-top: 10px;
}
.topnavbar .cta-holder .region-top-header-form .dropdown .dropdown-menu > li:last-child {
  padding-bottom: 10px;
}

.topnavbar .cta-holder .region-top-header-form .dropdown .mysph-dropdown-menu li a {
  font-weight: normal;
  font-size: 1.4rem;
  color: #464646;
}

.topnavbar .cta-holder .region-top-header-form .dropdown .mysph-dropdown-menu li a:hover {
  color: #A80034;
}

.topnavbar .cta-holder .region-top-header-form .dropdown .mysph-dropdown-menu .mysph-line {
  border: none;
}

.topnavbar.animated.slideDown {
  -webkit-animation-name: none;
  animation-name: none;
}

body.is-scrolled-down .topnavbar-primary.topnavbar {
  overflow: initial;
}

.topnavbar-login .region-top-header-form a.mysph_login {
  display: inline-block;
  color: #fff;
  font-family: 'Noto Sans SC',Arial,sans-serif;
  font-weight: 500;
  font-size: 1.8em;
  padding-top: 9px;
  padding-bottom: 9px;
  padding-left: 10px;
  padding-right: 10px;
  text-decoration: none;
  background-color: transparent;
}

.topnavbar-login .region-top-header-form a.dropdown-toggle::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  color: #b00141;
}

.topnavbar-login .region-top-header-form .mysph-dropdown-menu .mysph-line {
  border: none;
}

.topnavbar-login .region-top-header-form .dropdown .dropdown-menu > li a {
  color: #464646;
}

.topnavbar-login .region-top-header-form .dropdown .dropdown-menu > li:first-child {
  padding-top: 10px;
}

.topnavbar-login .region-top-header-form .dropdown .dropdown-menu > li:last-child {
  padding-bottom: 10px;
}

@media(max-width:991px){
  #login-info-mobile:hover li a {
    color: #464646;
  }
}
/* ENDS: MySPH login */

/* STARTS: Error page */

#error-page-wrap{width:700px;margin:2em auto;padding:0;text-align:center;}
#error-page-wrap .captive{margin:0;padding:0;}
#error-page-wrap #zaobaoSG-logo{width:35%;margin:1em auto;}
#error-page-wrap .wander{margin:2em auto;}

@media (min-width:200px) and (max-width:767px){
  #error-page-wrap{width:90%;}
  #error-page-wrap #zaobaoSG-logo{width:60%;}
  #error-page-wrap .wander{margin:2em auto;width:100%;}
}
/* ENDS: Error page */

/* Oembed Changes */
.oembed{text-align: center;margin:2em auto!important;padding:0;float:none;display:block;background:#fff!important;border:none!important;}
.oembed iframe{margin:auto!important;text-align:center;}
.oembed .oembed-title{display:none!important;}
.oembed .fb_iframe_widget{display:block;}
.oembed .fb_iframe_widget span{display:block;margin:auto!important;}

/* FB follow share widget for zbclub home page */
.page-taxonomy-term-169807 .sticky-wrapper { display: flex; }
.page-taxonomy-term-169807 .stick-main {
  flex: 1;
}

.page-taxonomy-term-169807 .featured-top {
  top: 120px;
  z-index: 3;
}

.page-taxonomy-term-169807 .widget .col-auto {
  text-align: right;
  display: flex;
}
.page-taxonomy-term-169807 .widget .col-auto .fb-like {
  margin: 0 8px;
}

@media (max-width:991px) {
  .page-taxonomy-term-169807 .featured-top {
    padding-bottom: 18px;
  }

  .page-taxonomy-term-169807 .fb-is-sticy.sticky-wrapper {
    left: 50%;
    transform: translateX(-50%);
    right: unset;
  }

  .page-taxonomy-term-169807 .fb-is-sticy.sticky-wrapper .stick-main .widget .col-auto {
    text-align: center;
    justify-content: center;
  }

  .page-taxonomy-term-169807 .sticky-wrapper .widget .col-auto {
    text-align: center;
    justify-content: center;
  }

}

@media (min-width:992px) {
  .p-right {
    text-align: right;
    margin-left: auto;
  }
}

@media (max-width:560px) {
  .page-taxonomy-term-169807 .widget .col-auto .text-right img {
    width: 150px;
  }
}

.page-taxonomy-term-169807 .fb-is-sticy {
  position: fixed;
  top: 46px;
}

.page-taxonomy-term-169807 .fb-follow-image {
  margin-right: 10px;
}

.page-taxonomy-term-169807 .fb-follow-text {
  width: 267px;
  height: 20px;
  font-family: 'Noto Sans SC';
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.066px;
  color: #9E9E9E;
  flex: none;
  order: 0;
  flex-grow: 0;
}
.page-taxonomy-term-169807 .fb-is-sticy .fb-follow-text {
  display: none;
}
.page-taxonomy-term-169807 .fb-widget-grey-bar {
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 120px;
  height: 43px;
  background: #F4F5F7;
  box-shadow: 0px 0px 10px rgba(103, 103, 103, 0.25);
  flex: none;
  order: 3;
  flex-grow: 0;
  top: 39px;
  position: fixed;	
  width: 100%;
}
@media (max-width:991px) {
  .page-taxonomy-term-169807 .fb-widget-grey-bar {
    top: 46px;
  }
  .page-taxonomy-term-169807 .fb-is-sticy{
    top: 52px;
  }
}

.node--type-article .zb-club-red.article-share-fb {	
  width:100%;	
  min-height: 70px;	
  background: url("/themes/custom/zbsg2020/images/common/zb-fb-visitor.jpg");	
  background-repeat: no-repeat;	
  background-position: center;	
  background-size: cover;	
  text-align: start;	
  border-radius: 8px;
}
.node--type-article .zb-club-red.article-share-fb::after {	
  display: none;
}	
.node--type-article .zb-club-red.article-share-fb-cont {	
  display: flex;	
  justify-content: center;	
}	
.node--type-article .zb-club-red.article-share-logo {	
  width:130px;	
  height: 40px;	
  overflow: hidden;	
  margin-right: 32px;	
}	
.node--type-article .zb-club-red.article-share-logo img {	
  width:100%;	
  height: 100%;	
  object-fit: contain;	
}

@media (max-width:767px) {
  .node--type-article .zb-club-red.article-share-fb {	
    padding-top: 2px;
  }
  .node--type-article .zb-club-red.article-share-fb-cont {	
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .node--type-article .zb-club-red.article-share-logo {	
    margin-right: 0;
    margin-bottom: 16px;	
  }
  .node--type-article .zb-club-red.article-share-fb div h4{	
    font-size: 14px;
    line-height: 20px;
  }

  .sticky-wrapper .stick-main .widget .col-auto{
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .sticky-wrapper .stick-main .widget .col-auto .fb-follow-text{
    margin-bottom: 8px;
  }

  .page-taxonomy-term-169807 .sticky-wrapper .stick-main .widget .col-auto {
    flex-direction: row;
    text-align: right;
  }
}

@media (max-width: 1679px) {
  .page-taxonomy-term-169807 .fb-is-sticy {right: 0;}
}

/* Label changes */
.label.label-topic {
  font-weight: 500;
  background: #F4F5F7;
  color: #A80034;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 0px 10px 2px 10px;
}
.label.label-premium.regular {
  margin-top: 10px;
}
h4.title-byline.publication {
  clear: none;
}
.label.label-sponsor {
  background-color: #f4f5f7;
  color: #9e9e9e;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  height: 20px;
  padding: 0px 10px 2px 10px;	
  margin-bottom: 5px;
  border-radius: 10px;	
}
.node--type-article .group-story-timestamp .group-story-postdate {
  margin-top: 0px;
}
.page-article .content-primary .label-topic {
  margin-bottom: 0px;
}
.node--type-article .label {
  margin-right: 10px;
}
.node--type-article .label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  height: 20px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.share-btn-head {
  display: flex;
  align-items: center;
}
.fb-btn {
  background: #1877f2;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: Helvetica, Arial, sans-serif;
  position: relative;
  white-space: nowrap;
  border-radius: 4px;
  font-size: 14px;
  height: 28px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  margin:0 4px;
  font-weight: bold;
}
.fb-btn img {
  margin-right: 4px;
}
.fb-btn.fb-detail {
  font-size: 12px;
  line-height: 20px;
  height: 20px;
  padding: 0 6px;
}
.fb-btn:hover {
  color: #fff;
}
.fb-share-button { 
  margin:0 4px;
}

@media (max-width:767px) {
  .share-btn-head {
    justify-content: center;
  }
}
.fb-like-sg .share-btn-head {
  justify-content: center;
}

/* gift article */
.article-gift {
  margin-top: 10px;
  position: relative;
}

.article-gift-head {
  position: relative;
  float: right;
  bottom: 2px;
}

.gift-article-link {
  font-family: 'Noto Sans SC';
  font-style: normal;
  text-align: center;
  color: #A80034;
}
.article-gift-popup {
  box-shadow: 0px 0px 10px rgba(103, 103, 103, 0.25);
  border-radius: 5px;
  background-color: #fff;
  padding: 8px 20px 15px;
  position: absolute;
  width: 253px;
  display: none;
  right: 35px;
  top: 42px;
  z-index: 2;
}
.article-gift-popup.open {
  display: block;
}
.article-gift-popup::before {
  content: '';
  position: absolute;
  top: -9px;
  right: 48px;
  width: 0; 
  height: 0; 
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff;
  filter: drop-shadow(0px 0px 10px rgba(103, 103, 103, .25));
}
.article-gift-popup h6 {
  font-weight: 500;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 1px;
  color: #1E1E1E;
  margin-bottom: 1px;
  padding-right:14px;
}
.article-gift-popup p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #464646;
  margin-bottom: 11px;
}
.article-gift-popup a {
  font-size: 12px;
  line-height: 13px;
  letter-spacing: 0.07px;
  color: #A30C25;
  font-weight: 500;
}


.bottom-sticky-popup {
  max-width: 100%;
  min-height:155px;
  padding: 40px;
  box-shadow: 0px 0px 10px rgba(103, 103, 103, 0.25);
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: none;
}

.bottom-sticky-popup.open {
  display: flex;
}

.bottom-sticky-left {
  padding-right: 65px;
  border-right:1px solid #EAEAEA;
  display:flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 565px;
}

.bottom-sticky-left .bottom-sticky-right-btn {
  margin-bottom:0;
  margin-top:18px;
  justify-content: center;
  width: 100%;
}

.bottom-sticky-left-text {
  display: flex;
  align-items: center;
}

.bottom-sticky-left-text img{
 margin-right: 9px;
 width: 20px;
 height: 20px;
 object-fit: contain;
 object-position: center;
}

.bottom-sticky-left p {
  font-weight: 500;
font-size: 18px;
line-height: 32px;
color: #464646;
letter-spacing: 0.5px;
margin-right: 39px;
margin-bottom: 0;
white-space: nowrap;
}
.bottom-sticky-left span {
  font-weight: 500;
font-size: 12px;
line-height: 17px;
color: #464646;
letter-spacing: 1px;
display: block;
}


.bottom-sticky-right {
 padding-left: 65px;
 /* max-width: 340px; */
}

.bottom-sticky-right p {
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  color: #9E9E9E;
  margin: 0 auto;
  text-align: center;
  display: flex;
  align-items: self-start;
  justify-content: center;
  max-width: 340px;
}

.bottom-sticky-right p a{
 display: flex;
 min-width: 12px;
 max-width: 12px;
 height: 12px;
 overflow: hidden;
 margin-left: 2px;
}
.bottom-sticky-right p a img{
 width: 100%;
 height: 100%;
 object-fit: contain;
 object-position: center;
}

.bottom-sticky-right-btn {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.bottom-sticky-right-btn a {
  font-weight: 500;
font-size: 16px;
line-height: 32px;
letter-spacing: 1px;
color: #FFFFFF;
padding: 4px 55px;
border-radius: 34px;
}
.bottom-sticky-right-btn .gray-btn {
  background-color: #464646;
  margin-right: 18px;
}
.bottom-sticky-right-btn .light-btn {
  background-color: #A80034;
}

.btn-close {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  color: #fff;
  position: absolute;
  right: 14px;
  top: 14px;
  cursor: pointer;
}

.btn-close::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  background-color: #9E9E9E;
  transform: rotate(-45deg);
}

.btn-close:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  transform: rotate(45deg);
  transition: 0.3s;
  background-color: #9E9E9E;
}

.bottom-sticky-popup .social-links ul {
  display: flex;
  align-items: center;
  justify-content: center;
  /*margin:0 0 18px;*/
}
.bottom-sticky-popup .social-links ul li {
  margin:0 10px;
}
.gift-article-slider {
  display: flex;
}

@media (max-width:767px) {
  .bottom-sticky-popup{
    padding: 26px 26px 20px;
    flex-direction: column;
    z-index: 1005;
  }
  
  .bottom-sticky-left{
    padding-right: 0;
    border-right: 0;
  }

  .bottom-sticky-left-text{
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .bottom-sticky-left span{
    width: 100%;
    text-align: center;
  }

  .bottom-sticky-left-text img{
    margin-bottom: 9px;
  }

  .bottom-sticky-left p{
    margin-right: 0;
    margin-bottom: 9px;
  }

  .bottom-sticky-right{
    padding-left: 0;
    width: 100%;
  }

  .bottom-sticky-right-btn {
    flex-wrap: wrap;
    margin: 0 -7px 12px;
    border-bottom: .5px solid #EAEAEA;
    padding-bottom: 12px;
  }

  .bottom-sticky-right-btn a{
    max-width:calc( 50% - 14px);
    width: 100%;
    text-align: center;
    padding: 4px 30px;
    margin: 0 7px !important;
  }

  .bottom-sticky-right p{
    max-width: 307px;
    width: 100%;
    margin: 0 auto;
  }

  .bottom-sticky-left .bottom-sticky-right-btn{
    border-bottom: 0;
    margin-top: 0;
  }

  .bottom-sticky-right .social-links{
    border-bottom: .5px solid #EAEAEA;
    margin-bottom: 12px;
  }
  .bottom-sticky-right .social-links ul{
    margin-bottom: 0;
  }
  .gift-article-slider {
    display: block;
  }
  .ga-shared .social-links {
    border: none;
  }
  img.clippy {
    margin-left: 7px;
  }
}
#show-gift-url {
  display: none;
}
.article-gift-popup a {
  text-decoration: underline;
}
.bottom-sticky-left span.expired {
  width: 350px;
}
