/**
Theme Name: SAGE SSHSPH 
Author: SSHSPH Developer
Author URI: http://wpastra.com/about/
Description: SSHSPH Header and Footer Guideline
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sage-astra-child
Template: astra
*/

/*** Header ***/
.ast-below-header-wrap {
  background-color: #f8f8f8;
  border: 1px solid #e7e7e7;
}

.nus-logo {
  width: 140px;
  aspect-ratio: auto;
  height: auto;
  object-fit: contain !important;
}

.sage-logo {
  width: 320px;
}

img.nus-logo {
  border-right: 1pt solid #003d7c;
  padding-right: 10px;
}

.main-header-bar .ast-site-identity img {
  margin-left: 5px;
}

.ast-builder-layout-element[data-section="title_tagline"] {
  padding-left: 0;
}

@media only screen and (max-width: 768px) {
  .ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-1 {
    width: 70px;
    padding: 0px;
  }
  .ast-builder-layout-element.ast-flex.site-header-focus-item.ast-header-html-2 {
    padding: 0;
  }
  img.nus-logo {
    padding-right: 5px;
  }
}

@media (max-width: 544px) {
  [data-section="sidebar-widgets-header-widget-1"] section#block-7 {
    max-width: 100%;
    width: 80px;
  }
  [data-section="sidebar-widgets-header-widget-1"] .wp-block-image img {
    vertical-align: middle;
  }
}

:root {
  --e-global-typography-primary-font-family: "Roboto";
  --tec-font-family-sans-serif: Roboto, sans-serif;
  --tec-color-accent-primary: #3a668c;
  --bs-secondary-rgb: 244, 90, 40;
  --bs-link-color: #495259;
  --bs-link-hover-color: #495259;
}

.btn-outline-primary {
  --bs-btn-color: #495259;
  --bs-btn-border-color: #495259;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #495259;
  --bs-btn-hover-border-color: #495259;
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #495259;
  --bs-btn-active-border-color: #495259;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #495259;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #495259;
  --bs-gradient: none;
}

.pagination {
  --bs-pagination-active-bg: #495259;
  --bs-pagination-active-border-color: #495259;
}

a.btn.btn-outline-primary {
  text-decoration: none;
}

.number-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.number-icon h3.elementor-heading-title {
  text-align: center;
  margin-top: 3px;
}

li.join-us-menu .menu-text {
  background-color: #f45a28;
  padding: 0.5em;
  color: #fff;
  font-family: Roboto, sans-serif;
}

li.join-us-menu .menu-text:hover {
  background-color: #495259;
}

/*** Footer ***/
h2.footnav-title {
  font-size: 18px;
  color: #fff;
  text-align: center;
}

.footnav-social a {
  display: inline-block;
  margin: 0px 6px;
}

.footnav-info {
  width: fit-content;
  margin: 0 auto;
}

.footnav-info,
.footnav-info .fa-envelope + a {
  color: #999;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .site-footer-section {
  width: fit-content;
}

.site-primary-footer-wrap[data-section="section-primary-footer-builder"],
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  border-top-color: #003d7c;
}

/*** Copyright ***/
.t3-copyright {
  color: #999999;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}
.t3-copyright .copyright-info a {
  color: #999999;
}
.t3-copyright .copyright-info a:hover,
.t3-copyright .copyright-info a:focus {
  color: #ffffff;
  text-decoration: none;
}
.copyright-links .nav {
  display: inline-block;
}
.copyright-links .nav li {
  display: inline-block;
  margin: 0 0 5px 15px;
  text-align: center;
}
.copyright-links .nav li a {
  color: #999999;
  padding: 0;
  display: inline-block;
}
.copyright-links .nav li a:hover,
.copyright-links .nav li a:focus {
  color: #ffffff;
  text-decoration: none;
}
.copyright-links .nav li:before {
  content: "\f111";
  display: inline-block;
  font-family: FontAwesome;
  font-size: 4px;
  margin-right: 15px;
  vertical-align: middle;
}

ul.nav.nav-pills.nav-stacked {
  margin-left: 0;
}

.copyright-links .nav li:first-child {
  margin-left: 0;
}
.copyright-links .nav li:first-child:before {
  display: none;
}

.ast-plain-container.ast-no-sidebar #primary {
  margin: 0;
}

mark {
  background: #f14624;
  padding: 0px 0.25em;
}

a {
  text-decoration: none;
}

span.elementor-cta__button::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
  transform: translateY(-1px);
}

.CTA-equal-height a.elementor-cta {
  text-decoration: none;
}

.CTA-equal-height .elementor-cta {
  flex-direction: column;
  height: 100%;
}

.CTA-equal-height .elementor-cta__content {
  flex-grow: 1;
  flex-direction: column;
  justify-content: flex-start;
}

.CTA-equal-height .elementor-cta__button-wrapper {
  margin-top: auto;
}

.CTA-equal-height .elementor-testimonial-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.CTA-equal-height .elementor-testimonial-meta {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: flex-end;
}

.elementor-testimonial-wrapper .elementor-testimonial-content {
  margin-block-end: 2em;
}

a.chinatown-card,
a.kinship-card,
a.queenstown-card,
a.school-card {
  padding: 0;
  border: solid 1px transparent;
  transition: box-shadow 0.3s ease-out;
  box-shadow: 0 0 0 0;
}

a.chinatown-card .e-con-inner,
a.kinship-card .e-con-inner,
a.queenstown-card .e-con-inner,
a.school-card .e-con-inner {
  padding: 0;
}

a.chinatown-card .e-con-inner .elementor-widget-image img,
a.kinship-card .e-con-inner .elementor-widget-image img,
a.queenstown-card .e-con-inner .elementor-widget-image img,
a.school-card .e-con-inner .elementor-widget-image img {
  filter: grayscale(100%);
}

a.chinatown-card:hover {
  box-shadow: 0 0 0 3px #ff0084;
}

a.kinship-card:hover {
  box-shadow: 0 0 0 3px #098b3e;
}

a.queenstown-card:hover {
  box-shadow: 0 0 0 3px #004aad;
}

a.school-card:hover {
  box-shadow: 0 0 0 3px #ef7c00;
}

a.chinatown-card .e-con-inner .elementor-widget-image img:hover,
a.kinship-card .e-con-inner .elementor-widget-image img:hover,
a.queenstown-card .e-con-inner .elementor-widget-image img:hover,
a.school-card .e-con-inner .elementor-widget-image img:hover {
  filter: grayscale(0%);
  transition: filter 1s ease-in-out;
}

main#post-listing {
  padding: 4em 0em;
}

main#post-listing .page-content {
  padding: 0em 2em;
}

section.tribe-common-l-container.tribe-events-l-container {
  padding: 1em !important;
}

.tribe-events .tribe-events-calendar-list__event-date-tag.tribe-common-g-col,
.tribe-events .tribe-events-calendar-latest-past__event-date-tag.tribe-common-g-col {
  border-right: 3px solid #003d7c;
}

.tribe-events-calendar-list .tribe-event-categories li,
.tribe-events-calendar-latest-past li.tribe-event-category {
  display: inline;
  border: 1px solid #003d7c;
  background-color: #003d7c;
  padding: 3px 9px;
  border-radius: 30px;
  margin-right: 3px;
  font-size: 0.8em;
}

.tribe-events-calendar-list .tribe-event-categories li:hover,
.tribe-events-calendar-latest-past li.tribe-event-category:hover {
  background-color: #fff;
}

.tribe-events-calendar-list .tribe-event-categories li a,
.tribe-events-calendar-latest-past li.tribe-event-category a {
  color: #fff !important;
}

.tribe-events-calendar-list .tribe-event-categories li:hover a,
.tribe-events-calendar-latest-past li.tribe-event-category:hover a {
  color: #003d7c !important;
}

.tec-events-calendar-list__category.tribe-events-calendar__category--singapore-chinatown-group {
  display: inline-block;
  background-color: #ff0084;
  color: #fff;
  font-size: 0.8em;
  padding: 0.25em 1em;
  border-radius: 3px;
}

.tec-events-calendar-list__category.tribe-events-calendar__category--kinship-collective {
  display: inline-block;
  background-color: #098b3e;
  color: #fff;
  font-size: 0.8em;
  padding: 0.25em 1em;
  border-radius: 3px;
}

.tec-events-calendar-list__category.tribe-events-calendar__category--queenstown-kakis {
  display: inline-block;
  background-color: #004aad;
  color: #fff;
  font-size: 0.8em;
  padding: 0.25em 1em;
  border-radius: 3px;
}

.tec-events-calendar-list__category.tribe-events-calendar__category--saw-swee-hock-school-of-public-health {
  display: inline-block;
  background-color: #ef7c00;
  color: #fff;
  font-size: 0.8em;
  padding: 0.25em 1em;
  border-radius: 3px;
}

.tec-events-elementor-event-widget__venue-container {
  grid-template-columns: unset !important;
  margin: 0 !important;
  border: unset !important;
}

.tec-events-elementor-event-widget__venue .tec-events-elementor-event-widget__venue-details {
  padding: 0px !important;
}

.card-detail ul {
  padding-left: 0px;
  margin-top: 0px;
}

span.term-singapore-chinatown-group {
  background-color: #ff0084;
  color: #fff !important;
  border: none !important;
  padding: 0.5em 1em;
}

span.term-kinship-collective {
  background-color: #098b3e;
  color: #fff !important;
  border: none !important;
  padding: 0.5em 1em;
}

span.term-queenstown-kakis {
  background-color: #004aad;
  color: #fff !important;
  border: none !important;
  padding: 0.5em 1em;
}

span.term-saw-swee-hock-school-of-public-health {
  background-color: #ef7c00;
  color: #fff !important;
  border: none !important;
  padding: 0.5em 1em;
}

article.team-member {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.team-member__image {
  width: 100%;
}

.team-member__name {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.team-member__name h1 {
  font-size: 2em;
}

.team-member__social-media {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 1em;
}

.team-member__social-media img {
  width: 30px;
}

@media (min-width: 900px) {
  article.team-member {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
  }

  .team-member__left-column {
    width: 30%;
    display: flex;
    flex-direction: column;
  }

  .team-member__image {
    width: 100%;
    margin-bottom: 1em;
  }

  .team-member__content {
    width: 65%;
    flex-grow: 1;
  }

  p.team-member__position {
    font-size: 1.25em;
    margin-bottom: 0em;
  }
}
