/**
Theme Name: PANDA astra child
Author: SSHSPH Developer
Author URI: http://wpastra.com/about/
Description: Physical Activity and Nutrition Determinants in Asia Programme (PANDA) - Powered by Astra child theme
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: panda-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;
}

.panda-logo {
  width: 200px;
}

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;
  }
}

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

.team-member__image {
  width: 60%;
}

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

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

a.team-member-link {
  text-decoration: none !important;
}

.team-posts-widget {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 20px;
}

.team-member-article {
  flex-grow: 1;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
}

.team-member-details {
  padding: 1em;
}

.team-member-details h3 {
  font-size: 1.2em;
  margin-bottom: 0px;
}

@media (min-width: 900px) {
  .page-content {
    padding: 40px 0px;
  }
  .page-content {
    padding: 40px 0px;
  }

  body .site-content .ast-container {
    padding: 2.5em 1.5em;
    column-gap: 5em;
  }

  body.page-template-page-publication .site-content .ast-container {
    display: flex;
    flex-direction: row;
  }

  body.blog .site-content .ast-container {
    display: flex;
    flex-direction: row;
  }

  body.page-template-page-publication aside#secondary {
    width: 30%;
  }

  body.blog aside#secondary {
    width: 30%;
    margin: 0;
  }

  body.blog.ast-right-sidebar #primary {
    padding-right: 0px;
    border-right: none;
  }

  body.blog.ast-right-sidebar #secondary {
    padding-left: 0px;
    border-left: none;
  }

  article.team-member {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
    gap: 40px;
  }

  .team-member-details {
    padding: 1em;
  }

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

  .team-member__image {
    width: 30%;
    flex-grow: 1;
  }

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

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

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

  .team-member__back-button {
    margin-top: 1em;
  }

  .team-posts-widget {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 40px;
  }

  .team-member-article {
    flex-grow: 1;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
  }

  .team-member-article:hover {
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
  }

  .team-member-media {
    overflow: hidden; /* Prevent image overflow */
  }

  .team-member-media img {
    transition: transform 0.3s ease;
    width: 100%;
  }

  .team-member-media:hover img {
    transform: scale(1.1);
  }
}

/*** 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;
}
