.elementor-1597 .elementor-element.elementor-element-5b1a47e{--display:flex;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--padding-top:50px;--padding-bottom:50px;--padding-left:50px;--padding-right:50px;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-1597 .elementor-element.elementor-element-c601702 > .elementor-widget-container{margin:0px 0px -40px 0px;padding:50px 0px 0px 0px;}.elementor-1597 .elementor-element.elementor-element-c601702{text-align:center;}.elementor-1597 .elementor-element.elementor-element-c601702 .elementor-heading-title{font-family:"Lato", Sans-serif;font-size:32px;font-weight:600;color:var( --e-global-color-secondary );}.elementor-1597 .elementor-element.elementor-element-d6cf060 .latepoint-book-button{font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-weight:var( --e-global-typography-accent-font-weight );background-color:var( --e-global-color-accent );border-radius:500px 500px 500px 500px;}.elementor-1597 .elementor-element.elementor-element-d6cf060 .latepoint-book-button:hover{background-color:#1F404A;}.elementor-1597 .elementor-element.elementor-element-d6cf060 .resource-item{background-color:var( --e-global-color-primary );border-radius:12px 12px 12px 12px;}.elementor-1597 .elementor-element.elementor-element-d6cf060 .resource-item h3{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-secondary );}.elementor-1597 .elementor-element.elementor-element-d6cf060 .ri-description{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-size:var( --e-global-typography-secondary-font-size );font-weight:var( --e-global-typography-secondary-font-weight );}.elementor-1597 .elementor-element.elementor-element-d6cf060 .resource-item .ri-description{color:var( --e-global-color-text );}@media(max-width:1024px){.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-1597 .elementor-element.elementor-element-c601702 > .elementor-widget-container{margin:0px 0px -20px 0px;padding:20px 0px 0px 0px;}.elementor-1597 .elementor-element.elementor-element-d6cf060 .resource-item h3{font-size:var( --e-global-typography-primary-font-size );}.elementor-1597 .elementor-element.elementor-element-d6cf060 .ri-description{font-size:var( --e-global-typography-secondary-font-size );}}@media(max-width:767px){.elementor-1597 .elementor-element.elementor-element-5b1a47e{--padding-top:30px;--padding-bottom:30px;--padding-left:30px;--padding-right:30px;}.elementor-widget-heading .elementor-heading-title{font-size:var( --e-global-typography-primary-font-size );}.elementor-1597 .elementor-element.elementor-element-c601702 .elementor-heading-title{font-size:20px;}.elementor-1597 .elementor-element.elementor-element-d6cf060 .resource-item h3{font-size:var( --e-global-typography-primary-font-size );}.elementor-1597 .elementor-element.elementor-element-d6cf060 .ri-description{font-size:var( --e-global-typography-secondary-font-size );}}/* Start custom CSS for latepoint_list_of_resources, class: .elementor-element-d6cf060 */.os-item-details-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    pointer-events: none; /* avoid capturing clicks when hidden */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Dialog */
.os-item-details-popup-inner {
    position: relative;
    transform: scale(0.96);
    width: 92%;
    max-width: 1100px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    box-shadow: 0 18px 50px rgba(0,0,0,0.35);

    /* Grid layout for desktop */
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 28px;
    max-height: 90vh;
    padding: 20px;
}

/* Active */
.os-item-details-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.os-item-details-popup.active .os-item-details-popup-inner {
    transform: scale(1);
    opacity: 1;
}

/* Left side (sticky box) */
.item-details-popup-head {
    position: sticky;
    top: 20px;
    align-self: start;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding: 72px 24px 36px;
    color: #fff;
}
.item-details-popup-head:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.32), rgba(0,0,0,0.72));
    border-radius: 12px;
}
.item-details-popup-head h3 {
    position: relative;
    color: #fff;
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 600;
}
.item-details-popup-title {
    position: relative;
    color: #fff;
    font-size: 15px;
    opacity: 0.95;
}

/* Close button */
.os-item-details-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: #fff;
    color: #000;
    padding: 0;
    z-index: 20;
}
.os-item-details-popup-close span {
    display: none; /* hide text, keep only SVG */
}
.os-item-details-popup-close svg {
    width: 18px;
    height: 18px;
}

/* Right side (scrollable content) */
.item-details-popup-content {
    padding: 28px 32px 40px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
    color: #333;
    line-height: 1.6;
}

/* Simple grid example */
.item-details-popup-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

/* Prevent body scroll when popup open */
body.popup-open { overflow: hidden; }

body.popup-open .resource-item *:hover {
  pointer-events: none !important;
}

body.popup-open .os-item-details-popup {
  pointer-events: auto !important;
}

/* Highlights */
.agent-highlights {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: start;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  list-style: none;
  font-family: lato;
  font-weight: 500;
}

.agent-highlight {
  background: rgba(39, 81, 93, 0.10);
  width: max-content;
  color: #111827;
  font-size: 14px;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.agent-highlight svg path{
    stroke: #27515D !important
}

/* Buttons */
.ri-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 12px;
}
.os-item-details-popup-btn {
    padding: 8px 18px;
    background: #7C804A;
    border-radius: 500px;
    color: #fff;
    font-family: roboto;
    font-weight: 400;
}
.os-item-details-popup-btn:hover {
    background: #5b5e38;
    color: #fff;
}

/* Avatar */
.ri-avatar {
    width: 200px !important;
    height: 200px !important;
    aspect-ratio: 1;
    border-radius: 20px !important;
}

/* Highlights container */
.item-details-popup-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Book button */
.book-button-highlights .latepoint-book-button {
    padding: 16px 32px;
    background: #7C804A;
    border-radius: 500px;
    color: #fff;
    font-family: roboto;
    font-weight: 400;
}
.book-button-highlights .latepoint-book-button:hover {
    background: #5b5e38;
    color: #fff;
}
.book-button-highlights {
    height: 120px;
    display: flex;
    justify-content: start;
    align-items: center;
}
.heading-highlight {
    margin-block-end: 0 !important;
}

/* RESPONSIVE */

/* Tablet + Mobile adjustments */
@media (max-width: 1024px) {
  .os-item-details-popup-inner {
      width: 90vw;
      height: 90vh;
      max-width: none;
      max-height: none;
      border-radius: 12px;
      display: flex;
      flex-direction: column;
      overflow-y: auto; /* make entire popup scrollable */
  }

  .os-item-details-popup-close {
      width: 28px;
      height: 28px;
  }
  .os-item-details-popup-close svg {
      width: 14px;
      height: 14px;
  }

  .item-details-popup-head {
      position: relative;
      top: auto;
      min-height: auto;
      border-radius: 0;
      height: auto;
  }

  .ri-avatar {
      width: 100px !important;
      height: 100px !important;
  }
}

/* Mobile-specific */
@media (max-width: 767px) {
  .ri-avatar {
      width: 100% !important;
      height: 300px !important;
      border-radius: 12px !important;
  }
}
/* === Agent Cards Grid === */
.resource-items-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop: 4 cols */
  gap: 24px;
}

@media (max-width: 1023px) {
  .resource-items-wrapper {
    grid-template-columns: repeat(3, 1fr); /* Tablet: 3 cols */
  }
}

@media (max-width: 767px) {
  .resource-items-wrapper {
    grid-template-columns: repeat(1, 1fr); /* Mobile: 2 cols */
  }
  .ri-buttons a {
    width: 100% !important; /* Full width buttons */
    text-align: center;
  }
}

/* === Popup Close Button === */
.os-item-details-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #fff;
  color: #000;
  padding: 0;
  z-index: 20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.os-item-details-popup-close svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 1024px) {
  .os-item-details-popup-close {
    width: 28px;
    height: 28px;
  }
  .os-item-details-popup-close svg {
    width: 14px;
    height: 14px;
  }
}

/* === Popup Layout on Mobile/Tablet === */
@media (max-width: 1024px) {
  .os-item-details-popup-inner {
    width: 90vw;
    height: 90vh;
    max-width: none;
    max-height: none;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0; /* remove padding, image takes full width */
  }

  .item-details-popup-head {
    width: 100%;
    height: 50%; /* Take 50% height */
    min-height: auto;
    border-radius: 0;
    position: relative;
    padding: 24px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .item-details-popup-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
}


.agents-search-wrapper {
  text-align: center;
  margin: 20px auto;
}

#agents-search {
display: block;
  width: 100%;
  min-width: 300px;
  max-width: 500px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}



.elementor-1597 .elementor-element.elementor-element-d6cf060 .latepoint-resources-items-w {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center;
    align-items: center;
}/* End custom CSS */