/* ==========================================================================
   Modal - from assets/css/modal.css
   Only the rules this page uses. The .x-modal-sm/md/lg size modifiers,
   .no-scroll and .x-modal-content .has-text-decor:after target markup this
   page never renders - #applyNow sets its own sizing with Tailwind, and
   authors-hub-lite.js fills #authorModal with .modal-content/.modal-lg, not
   the x-modal equivalents.

   Kept at the top of the file because modal.css was linked before this
   stylesheet: the .x-modal-close override further down still has to win.
   ========================================================================== */

body.modal-show .nav-wrapper {
   z-index: 10 !important;
}

#page-heading span {
   padding-left: 5px;
   margin-left: -5px;
}

.x-modal {
   display: none;
   padding: 24px;
   position: fixed;
   z-index: 1000;
   left: 0;
   top: 0;
   width: 100%;
   height: 100%;
   background: rgba(0, 0, 0, 0.6);
   align-items: center;
   justify-content: center;
   opacity: 0;               /* start hidden */
   transition: opacity 0.3s ease;
   overflow-y: auto;
}

.x-modal.show {
   display: flex;
   opacity: 1;
}

.x-modal-content {
   background: white;
   padding: 20px;
   border-radius: 10px;
   position: relative;
   box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
   transform: translateY(-50px);  /* start above */
   opacity: 0;                    /* start transparent */
   transition: all 0.3s ease;
}

.x-modal.show .x-modal-content {
   transform: translateY(0);      /* slide to center */
   opacity: 1;                    /* fade in */
   overflow-y: scroll;
   max-height: 95%;
   height: auto;
}

.x-modal-close {
   position: absolute;
   top: 10px;
   right: 15px;
   font-size: 24px;
   cursor: pointer;
   color: #999;
}

.x-modal-close:hover {
   color: #333;
}

:root {
   --default-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.10);
}

.site-main {
   max-width: 100%;
   width: 100%;
   padding: 0;
}

.content-wrap {
   max-width: 1192px;
   margin: auto;
   padding: 0 24px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
   margin: 0;
   font-family: Poppins, sans-serif;
}

/* spinner */
.spinner-container {
   display: flex;
   justify-content: center;
   align-items: center;
   min-height: 100px;
}

.spinner {
   border: 4px solid rgba(0, 0, 0, 0.1);
   border-top: 4px solid var(--coral);
   border-radius: 50%;
   width: 40px;
   height: 40px;
   animation: spin 0.8s linear infinite;
}

@keyframes spin {
   to {
      transform: rotate(360deg);
   }
}

/* banner section */
.banner-section {
   position: relative;
   padding: 80px 0px;
   overflow: visible;
}
.banner-section::before {
   content: '';
   width: 1300px;
   height: 1300px;
   background: url('/assets/img/peoples-hub/eclipse-coral-full.svg');
   background-size: contain;
   background-repeat: no-repeat;
   position: absolute;
   top: -50px;
   left: -450px;
   z-index: 0;
}
.banner-section::after {
   content: '';
   width: 1300px;
   height: 1300px;
   background: url('/assets/img/peoples-hub/banner-decal-2.svg');
   background-size: contain;
   background-repeat: no-repeat;
   position: absolute;
   top: -50px;
   right: -450px;
   z-index: 0;
}
.banner-section .content-wrap {
   position: relative;
   z-index: 2;
}

.banner-section .banner-content {
   display: flex;
   align-items: flex-end;
   margin-bottom: 96px;
   padding: 0;
   justify-content: space-between;
}

.banner-section .banner-content .text-content {
   display: flex;
   flex-direction: column;
   gap: 24px;
}

.banner-section .banner-content .btn {
   white-space: nowrap;
}

.banner-section .banner-content h1 {
   text-align: left;
   margin-bottom: 0;
}

.banner-section .banner-content p {
   width: min(80ch, 100%);
}

.banner-section .banner-content h1 .text-italic {
   padding-bottom: 10px;
}

.banner-section .banner-images img {
   width: 100%;
}

.banner-images img:first-child {
   scale: 1.2;
}

/* peoples hub section */
.peoples-section {
   padding: 80px 0;
   position: relative;
   overflow: hidden;
}

.peoples-section::before {
   content: '';
   width: 1000px;
   height: 1000px;
   background: url('/assets/img/peoples-hub/eclipse-coral-full.svg');
   background-size: contain;
   background-repeat: no-repeat;
   position: absolute;
   top: 20%;
   left: -300px;
   z-index: 0;
}
.peoples-section::after {
   content: '';
   width: 1000px;
   height: 1000px;
   background: url('/assets/img/peoples-hub/banner-decal-2.svg');
   background-size: contain;
   background-repeat: no-repeat;
   position: absolute;
   top: 20%;
   right: -330px;
   z-index: 0;
}

.peoples-section .content-wrap {
   position: relative;
   z-index: 2;
}

.peoples-section .header {
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   margin-bottom: 32px;
}

.peoples-section .people-contents {
   display: flex;
   flex-direction: column;
   gap: 24px;
}

.peoples-section .peoples-list {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   align-items: flex-start;
   gap: 16px;
}

.peoples-section .peoples-list .people-item {
   display: flex;
   padding: 40px 32px;
   align-items: flex-start;
   gap: 16px;
   align-self: stretch;
   border-radius: 12px;
   background: var(--Pale, #F5F3ED);
   box-shadow: var(--default-shadow);
   cursor: pointer;
}

.peoples-list .people-details {
   width: 100%;
}

.peoples-section .people-item .people-details {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 16px;
   flex: 1 0 0;
}

.peoples-list .people-info {
   position: relative;
   width: 100%;
}

.peoples-section .people-item .people-image img {
   width: 100px;
   border-radius: 5px;
   object-fit: cover;
   object-position: center;
}

.peoples-section .people-item .people-name {
   font-size: 16px;
   font-style: normal;
   font-weight: 500;
   line-height: 24px;
   letter-spacing: normal;
}

.peoples-section .people-item .people-position {
   font-size: 14px;
}

.peoples-section .people-item .people-company-logo img {
   height: 37px;
}

.peoples-section .peoples-list-v2 .people-item {
   flex-direction: column;
}

.peoples-section .peoples-list-v2 .people-item .people-image {
   width: 100%;
}

.peoples-section .peoples-list-v2 .people-item .people-image img {
   width: 100%;
   border-radius: 12px;
   /* 17:14 frame (323x266 at full card width) so every card is the same shape;
      cover crops the overflow instead of squashing the portrait */
   height: auto;
   aspect-ratio: 17 / 14;
   object-fit: cover;
   object-position: center;
}

.peoples-list .people-item h5:after {
   position: absolute;
   top: 0;
   right: 0;
   transition: all 0.2s ease-out;
   content: url(/assets/img/arrow-right-coral.svg?v=3221);
   filter: invert(78%) sepia(9%) saturate(17%) hue-rotate(358deg) brightness(88%) contrast(91%);
}

.peoples-list .people-item:hover h5:after {
   filter: invert(0);
   transform: translateX(5px);
}

/* get involve section */
.get-involve-section {
   background: var(--black);
   padding: 80px 0;
   color: var(--white);
   background-image: url('/assets/img/peoples-hub/Eclipse.svg?v=2');
   background-repeat: no-repeat;
   background-position: bottom right;
   background-size: cover;
}

.get-involve-section .cta-content {
   max-width: 1192px;
   margin: auto;
}

.get-involve-section h2 {
   margin-top: 0;
   margin-bottom: 24px;
}

.get-involve-section .cta-content img {
   margin-bottom: 24px;
}

.get-involve-section .cta-content p {
   width: 631px;
   display: block;
   font-family: Poppins, sans-serif;
   font-size: 16px;
   font-weight: 300;
   line-height: 24px;
   margin-bottom: 24px;
}

.get-involve-section .cta-content .btn {
   display: inline-block;
}

.get-involve-section .text-italic {
   display: block;
   font-family: IvyJournal !important;
   font-style: italic;
}

/* section transition fade mask */
.section-transition {
   position: relative;
}
.section-transition::after {
   content: "";
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 100px;
   background: linear-gradient(
      to bottom,
      rgba(249,248,245, 0) 0%,
      rgba(249,248,245, 1) 100%
   );
   pointer-events: none;
   z-index: 10;
}

/* authorModal (injected by the authors-hub widget) */
/* Same close control as the membership modal. font-size:0 suppresses the
   &times; glyph authors-hub-lite.js puts in the span, so only the icon shows. */
#authorModal .modal-close::before {
   content: url("/assets/img/close.svg");
}
#authorModal .modal-content .right-content .modal-social-link,
#authorModal .modal-content .right-content .modal-social-link:hover {
   padding: 0;
   background: none;
}
/* The panel chrome that .modal-content gets from modal-override.css on the
   membership pages - this page never loaded that file, so the modal rendered
   as transparent full-bleed text over the page. Mirrors the .modal-content
   rule in css/page-pro-membership-plan.css. The responsive padding/stacking
   for this modal already lives in the media queries further down. */
#authorModal .modal-content {
   position: relative;
   display: flex;
   padding: 80px 124px;
   justify-content: space-between;
   align-items: center;
   gap: 102px;
   width: 100%;
   max-width: 1192px;
   margin: auto;
   max-height: 90%;
   overflow: auto;
   background-color: #fff;
   border-radius: 12px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Without this the injected close button sits in the flex flow as a stray
   glyph at the left edge of the panel. */
#authorModal .modal-close {
   position: absolute;
   top: 29px;
   right: 27px;
   cursor: pointer;
   font-size: 0;
   line-height: 0;
}

#authorModal .modal-content .left-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 24px;
   width: 330px;
}

#authorModal .modal-content .left-content h2 {
   color: var(--black, #09100F);
   font-family: Poppins;
   font-size: 56px;
   font-style: normal;
   font-weight: 400;
   line-height: 40px;
   letter-spacing: -0.84px;
}

#authorModal .modal-content .left-content .modal-author-image {
   width: 100%;
   height: auto;
   aspect-ratio: 17 / 14;
   border-radius: 12px;
   object-fit: cover;
   object-position: center;
}

#authorModal .modal-content .left-content img {
   width: 100%;
   height: 100%;
   border-radius: 5px;
   object-fit: cover;
   object-position: center;
}

#authorModal .modal-content .left-content .modal-company-logo {
   width: auto;
   height: 48px;
   border-radius: 5px;
   object-fit: cover;
   object-position: center;
}

#authorModal .modal-content .right-content {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 24px;
   align-self: stretch;
   flex: 1;
}

/* Typography copied from the instructor modal in
   css/page-pro-membership-plan.css. */
#authorModal .modal-content .right-content .modal-author-description {
   font-size: 16px;
   line-height: 24px;
   font-weight: 300;
}

#authorModal .modal-content .right-content h6 {
   color: var(--black, #09100F);
   font-family: Poppins;
   font-size: 24px;
   font-style: normal;
   font-weight: 400;
   line-height: 32px;
   letter-spacing: -0.96px;
}

#authorModal .modal-content .right-content .modal-social-link {
   font-size: 24px;
   color: var(--white);
   border-radius: 5px;
   display: inline-flex;
   text-decoration: none;
}

#authorModal .modal-content .right-content .modal-social-link:hover {
   background: var(--black, #09100F);
   color: var(--white);
   text-decoration: none;
   opacity: 1;
}

/* modal chrome override for this page */
.x-modal-close {
   font-size: 50px;
   top: 15px;
   right: 15px;
}

@media screen and (max-width: 1024px) {
   .content-wrap {
      max-width: 100%;
   }

   .banner-section .banner-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      margin-bottom: 40px;
   }

   .get-involve-section .cta-content p {
      width: 100%;
   }

   .peoples-section .peoples-list {
      grid-template-columns: repeat(2, 1fr);
   }
}

@media all and (min-width: 601px) and (max-width: 1024px) {
   .peoples-list.peoples-list-v2 .people-item:nth-child(odd):last-child {
      transform: translateX(50%);
   }
}

@media all and (max-width: 992px) {
   #authorModal .modal-content {
      padding: 80px;
      max-height: 90%;
      overflow: scroll;
      gap: 24px;
   }
}

@media all and (max-width: 820px) {
   .banner-section::before {
      background: none;
   }
   
   .ticked-item, .ticked-list li {
      align-items: flex-start;
   }
   .ticked-list li::before {
      margin-top: 5px;
   }
   #authorModal .modal-content {
      padding: 24px;
      flex-direction: column;
      max-height: 90%;
      overflow: scroll;
      gap: 24px;
   }
}

@media screen and (max-width: 768px) {
   .section-transition::after {
      background: none;
   }
   h1#page-heading span {
      hyphens: auto;
      padding-right: 5px;
   }
   .people-contents {
      z-index: 10;
      position: relative;
   }
   .banner-section .banner-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 24px;
      margin-bottom: 24px;
   }
   .peoples-section .peoples-list {
      grid-template-columns: 1fr 1fr;
   }
   .banner-section::before, .banner-section::after {
      width: 700px;
   }
   .banner-section::before {
      top: 100px;
      left: -300px;
   }
   .banner-section::after {
      top: 100px;
      right: -300px;
   }
   #authorModal .modal-content {
      padding: 40px;
      max-height: 100%;
      overflow: scroll;
      gap: 24px;
   }
   #authorModal .modal-content .left-content {
      width: 45%;
   }
}

@media screen and (max-width: 600px) {
   #authorModal .modal-content .left-content h2 {
      font-size: 42px;
   }
   .peoples-section .peoples-list {
      grid-template-columns: 1fr;
   }
   .banner-section::before, .banner-section::after {
      width: 700px;
   }
   .banner-section::before {
      top: 500px;
      left: -300px;
   }
   .banner-section::after {
      top: 300px;
      right: -300px;
   }
   /* Full-screen sheet on mobile, matching the membership modal: the scrim's
      24px inset is dropped and the panel fills the viewport, so the rounded
      corners and drop shadow go with it. */
   #authorModal.x-modal {
      padding: 0;
   }
   #authorModal .modal-content {
      padding: 56px 32px;
      flex-direction: column;
      width: 100%;
      max-width: 100%;
      height: 100%;
      max-height: 100%;
      margin: 0;
      border-radius: 0;
      box-shadow: none;
      overflow-y: auto;
      gap: 24px;
   }
   #authorModal .modal-content .left-content {
      width: 100%;
   }
   .peoples-section .header {
      flex-direction: column;
      align-items: start;
      gap: 24px;
   }
}
