/* Staffs page */

.staffs.page-banner {
    background: url(/static/images/introduction/introduction-banner.1536.jpg) no-repeat center center;
    background-size: cover;
}

.staffs.page-contents {
    padding-top: 0;
}

.upper-staffs {
    background-color: var(--creamy-white);
    position: relative;
    animation: floating-effect 2s;
}

.upper-staffs-inner {
    position: relative;
}

.upper-staffs > img {
    position: absolute;
    right: 3%;
    bottom: -12%;
    width: 500px;
}

.upper-staffs h1.sub-title {
    padding-top: 70px;
}

img.profile-img {
    width: 200px;
    height: 265px;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(128, 128, 128, 0.753);
}

.senior-pastor {
    display: flex;
    padding: 20px 0 50px 0;
    align-items: flex-end;
}

.senior-pastor-profile {
    margin-left: 20px;
}

.staff-name {
    font-size: 20px;
    font-weight: 500;
    display: inline-block;
}

.staff-name span {
    font-size: 16px;
}

.staffs .fa-regular.fa-envelope {
    color: var(--red-wine);
    font-weight: 500;
    font-size: 20px;
    padding-left: 5px;
    transition: 0.25s;
}

.staffs .fa-regular.fa-envelope:hover {
    transform: scale(120%);
    font-weight: 600;
}

.upper-staffs p, .lower-staffs p {
    margin: 0;
    padding-bottom: 4px;
}

.senior-pastor-profile p:nth-of-type(1),.pastors-profile .profile-card p:nth-of-type(1), .junior-pastors .profile-card p:nth-of-type(1), .junior-pastors-em .profile-card p:nth-of-type(1)  {
    font-size: 14px;
    color: var(--dark-gray);
}

.senior-pastor-profile p:nth-of-type(2), .pastors-profile .profile-card p:nth-of-type(2), .junior-pastors .profile-card p:nth-of-type(2), .junior-pastors-em .profile-card p:nth-of-type(2) {
    font-weight: 500;
    color: var(--deep-latte);
}

.senior-pastor-profile ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.senior-pastor-profile ul li {
    font-size: 14px;
}

.lower-staffs {
    position: relative;
}

.lower-staffs img.jubilee-background {
    position: absolute;
    opacity: 3%;
    width: 1530px;
    z-index: -1;
}

.lower-staffs img.jubilee-background:nth-of-type(1) {
    top: 10%;
    left: 0;
}

.lower-staffs img.jubilee-background:nth-of-type(2) {
    bottom: 10%;
    right: 0;
}

.lower-staffs-inner {
    padding-top: 50px;
}

.lower-staffs-inner img.profile-img{
    display: block;
}

.pastors-profile, .junior-pastors, .junior-pastors-em {
    display: flex;
    flex-wrap: wrap;
}

.lower-staffs-inner .profile-card {
    margin-right: 100px;
    margin-bottom: 50px;
}

.junior-pastors-em .profile-card {
    margin-bottom: 0;
}

.lower-staffs-inner .profile-card {
    text-align: center;
}

.lower-staffs-inner .profile-card .staff-name {
    padding-top: 10px;
}

@media(max-width:768px) {

  /* Staffs page */
  .upper-staffs h1.sub-title {
    padding-top: 40px;
  }
  .upper-staffs > img {
    width: 280px;
    right: 0;
    bottom: -10%;
  }
  img.profile-img {
    width: 120px;
    height: 160px;
    border-radius: 5px;
    box-shadow: 1px 1px 5px rgba(128, 128, 128, 0.502);
  }
  .upper-staffs p, .lower-staffs p {
    line-height: 1;
  }
  .senior-pastor {
    padding: 30px 0;
    align-items: center;
  }
  .senior-pastor-profile {
    margin-left: 10px;
  }
  .staff-name {
    font-size: 16px;
  }
  .staff-name span {
    font-size: 14px;
  }
  .staffs .fa-regular.fa-envelope {
    font-size: 16px;
  }
  .senior-pastor-profile {
    text-align: left;
  }
  .senior-pastor-profile p:nth-of-type(1),.pastors-profile .profile-card p:nth-of-type(1), .junior-pastors .profile-card p:nth-of-type(1), .junior-pastors-em .profile-card p:nth-of-type(1) {
    font-size: 12px;
    padding-bottom: 7px;
  }
  .senior-pastor-profile p:nth-of-type(2), .pastors-profile .profile-card p:nth-of-type(2), .junior-pastors .profile-card p:nth-of-type(2), .junior-pastors-em .profile-card p:nth-of-type(2) { 
    font-size: 10px;
  }
  .senior-pastor-profile ul {
    margin-top: 10px;
    padding-left: 10px;
  }
  .senior-pastor-profile ul li {
    font-size: 10px;
    line-height: 1.4;
  }
  .lower-staffs img.jubilee-background {
    display: none;
  }
  .lower-staffs-inner {
    padding-top: 40px;
  }
  .lower-staffs-inner .profile-card {
    margin: 0 10px;
    margin-bottom: 30px;
  }
  .pastors-profile, .junior-pastors, .junior-pastors-em {
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .junior-pastors-em .profile-card .eng-name {
    font-family: var(--primary-en);
    line-height: 1;
  }

}

/* The card a link from another page lands on shakes once (hash-scroll.js).
   These were the only rules used from animate.min.css. */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__shakeX {
    animation-name: shakeX;
}

@keyframes shakeX {
    0%, to { transform: translateZ(0); }
    10%, 30%, 50%, 70%, 90% { transform: translate3d(-10px, 0, 0); }
    20%, 40%, 60%, 80% { transform: translate3d(10px, 0, 0); }
}

@media (prefers-reduced-motion: reduce), print {
    .animate__animated {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
