/* Requested-only website updates: counters, author list and shared page banner. */

/* Home statistics: compact K/M presentation while preserving the existing counter animation. */
.funfacts-area .funfact-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 3px;
  white-space: nowrap;
}
.funfacts-area .funfact-number h3 {
  display: inline-block;
  margin: 0;
  line-height: 1;
}
.funfacts-area .funfact-number .counter-unit,
.funfacts-area .funfact-number .plus-add {
  display: inline-block;
  color: #fff;
  font-size: 31px;
  line-height: 1;
  font-weight: 600;
}
.funfacts-area .funfact-number .counter-unit {
  margin-left: 1px;
}
.funfacts-area .funfact-number .plus-add {
  margin-left: 0;
}

/* Supplied common banner for Author List, Careers and Events. */
.page-title-area.shared-team-banner {
  position: relative;
  overflow: hidden;
  background-image: url(../img/page-title/team-banner.png) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-color: #f4f5f2;
}
body .page-title-area.page-title-style-three.shared-team-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.36) 24%, rgba(255,255,255,.08) 43%, rgba(255,255,255,0) 58%);
  pointer-events: none;
}
.page-title-area.shared-team-banner .container {
  position: relative;
  z-index: 1;
}
.page-title-area.shared-team-banner .page-title-content h2,
.page-title-area.shared-team-banner .page-title-content ul li,
.page-title-area.shared-team-banner .page-title-content ul li a {
  color: #17233d;
  opacity: 1;
  text-shadow: none;
}
.page-title-area.shared-team-banner .page-title-content ul li::before {
  color: #56617a;
}

/* Author List: same content, cleaner and more consistent presentation. */
.authors-list-page-pro .authors-list-modern {
  position: relative;
  overflow: hidden;
  padding-top: 82px !important;
  padding-bottom: 58px !important;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 42%, #ffffff 100%);
}
.authors-list-page-pro .authors-list-modern .row > [class*="col-"] {
  display: flex;
  margin-bottom: 28px;
}
.authors-list-page-pro .authors-list-modern .single-instructor-member {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin-bottom: 0 !important;
  overflow: hidden;
  border: 1px solid #e5eaf4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 48, 86, .09);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.authors-list-page-pro .authors-list-modern .single-instructor-member::after {
  display: none;
}
.authors-list-page-pro .authors-list-modern .single-instructor-member:hover,
.authors-list-page-pro .authors-list-modern .single-instructor-member:focus-within {
  transform: translateY(-6px);
  border-color: rgba(47, 87, 239, .22);
  box-shadow: 0 18px 42px rgba(31, 48, 86, .14);
}
.authors-list-page-pro .authors-list-modern .member-image {
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(145deg, #f8faff, #edf2ff);
}
.authors-list-page-pro .authors-list-modern .member-image a {
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #f3f5fa;
}
.authors-list-page-pro .authors-list-modern .member-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  transform: scale(1) !important;
  transition: transform .4s ease !important;
}
.authors-list-page-pro .authors-list-modern .single-instructor-member:hover .member-image img,
.authors-list-page-pro .authors-list-modern .single-instructor-member:focus-within .member-image img {
  transform: scale(1.045) !important;
}
.authors-list-page-pro .authors-list-modern .member-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 20px 18px 22px;
  border-top: 1px solid #eef1f6;
}
.authors-list-page-pro .authors-list-modern .member-content h3 {
  margin: 0 0 10px;
  color: #252f46;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}
.authors-list-page-pro .authors-list-modern .member-content h3 a {
  color: inherit;
}
.authors-list-page-pro .authors-list-modern .member-content .author_descri {
  margin: 0;
  color: #69748d;
  font-size: 13.5px;
  line-height: 1.65;
}
.authors-list-page-pro .authors-list-modern .member-content .social {
  display: none;
}

@media (max-width: 991px) {
  .page-title-area.shared-team-banner {
    min-height: clamp(220px, 56.28vw, 430px);
    padding-top: 50px !important;
    padding-bottom: 50px !important;
    background-size: contain !important;
    background-position: center center !important;
  }
  body .page-title-area.page-title-style-three.shared-team-banner::before {
    background: linear-gradient(90deg, rgba(255,255,255,.60) 0%, rgba(255,255,255,.40) 30%, rgba(255,255,255,.06) 54%, rgba(255,255,255,0) 68%);
  }
  .authors-list-page-pro .authors-list-modern {
    padding-top: 60px !important;
    padding-bottom: 38px !important;
  }
}

@media (max-width: 767px) {
  .funfacts-area .funfact-number .counter-unit,
  .funfacts-area .funfact-number .plus-add {
    font-size: 20px;
  }
  .page-title-area.shared-team-banner {
    min-height: max(220px, 56.28vw);
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }
  .page-title-area.shared-team-banner .page-title-content h2 {
    font-size: 30px;
  }
  .authors-list-page-pro .authors-list-modern {
    padding-top: 46px !important;
    padding-bottom: 28px !important;
  }
}

@media (max-width: 575px) {
  .page-title-area.shared-team-banner {
    min-height: 220px;
  }
  body .page-title-area.page-title-style-three.shared-team-banner::before {
    background: linear-gradient(90deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.46) 38%, rgba(255,255,255,.10) 68%, rgba(255,255,255,.02) 100%);
  }
  .authors-list-page-pro .authors-list-modern .row > [class*="col-"] {
    margin-bottom: 20px;
  }
  .authors-list-page-pro .authors-list-modern .single-instructor-member {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .authors-list-page-pro .authors-list-modern .member-content h3 {
    font-size: 18px;
  }
}

/* ===== Events loader + shared image lightbox (requested 2026-08-14) ===== */
/* Keep the Events preloader visually identical in behaviour to the site: two halves move away from the centre. */
.event-page-body .preloader {
  transition: visibility 0s linear .30s;
}
.event-page-body .preloader::before,
.event-page-body .preloader::after {
  width: 50%;
  transition: width .30s cubic-bezier(.65, 0, .35, 1);
}
.event-page-body .preloader::before {
  left: 0;
  right: auto;
}
.event-page-body .preloader::after {
  left: auto;
  right: 0;
}
.event-page-body .preloader.preloader-deactivate {
  visibility: hidden;
}
.event-page-body .preloader.preloader-deactivate::before,
.event-page-body .preloader.preloader-deactivate::after {
  width: 0;
}
.event-page-body .preloader.preloader-deactivate .loader {
  opacity: 0;
  visibility: hidden;
}

/* Shared lightbox: only content/gallery images are opened; navigation/logo links keep their normal behaviour. */
.gbp-lightbox-open {
  overflow: hidden !important;
}
.gbp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 82px;
  background: rgba(3, 8, 20, .92);
  opacity: 0;
}
.gbp-lightbox.is-open {
  display: flex;
  opacity: 1;
}
.gbp-lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.gbp-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 68px);
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
  user-select: none;
  -webkit-user-drag: none;
}
.gbp-lightbox__close,
.gbp-lightbox__nav {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, .38);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gbp-lightbox__close {
  top: 18px;
  right: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 1;
}
.gbp-lightbox__nav {
  top: 50%;
  width: 50px;
  height: 64px;
  border-radius: 12px;
  transform: translateY(-50%);
  font-size: 42px;
  line-height: 1;
}
.gbp-lightbox__prev { left: 18px; }
.gbp-lightbox__next { right: 18px; }
.gbp-lightbox__close:hover,
.gbp-lightbox__close:focus-visible,
.gbp-lightbox__nav:hover,
.gbp-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, .18);
  outline: 2px solid rgba(255, 255, 255, .7);
  outline-offset: 2px;
}
.gbp-lightbox__nav[hidden] {
  display: none !important;
}

/* Safe responsive guards without changing the site's existing design. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
img,
video,
canvas,
svg {
  max-width: 100%;
}
iframe {
  max-width: 100%;
}

@media (max-width: 767px) {
  .gbp-lightbox {
    padding: 60px 48px 28px;
  }
  .gbp-lightbox__image {
    max-height: calc(100vh - 88px);
  }
  .gbp-lightbox__close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }
  .gbp-lightbox__nav {
    width: 40px;
    height: 54px;
    border-radius: 10px;
    font-size: 34px;
  }
  .gbp-lightbox__prev { left: 6px; }
  .gbp-lightbox__next { right: 6px; }
}

@media (max-width: 420px) {
  .gbp-lightbox {
    padding-left: 42px;
    padding-right: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-page-body .preloader::before,
  .event-page-body .preloader::after {
    transition-duration: .01ms;
  }
}
