.ndc-share {
  --share-ink: #07365f;
  --share-muted: #5e7082;
  --share-line: rgba(8, 54, 95, 0.16);
  --share-surface: rgba(255, 255, 255, 0.96);
  --share-accent: #0c6b79;
  position: relative;
  z-index: 4;
  font-family: inherit;
}

.listing-card,
.gallery-card,
.home-event-card,
.training-card,
.jobs-board-card {
  display: flex;
  flex-direction: column;
}

.listing-card__body,
.gallery-card__body,
.home-event-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.ndc-card-actions {
  height: -webkit-fill-available;
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: auto;
  padding-top: 18px;
}

.ndc-card-actions > p {
  margin: 0;
}

.ndc-card-actions .button,
.ndc-card-actions .gallery-card__button,
.ndc-card-actions .jobs-board-apply {
  margin: 0;
}

.ndc-card-actions .button {
  align-items: center;
  display: inline-flex;
  min-height: 40px;
}

.primary-post-card-btn,
.secondary-post-card-btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  line-height: 1;
  min-height: 44px;
  padding: 12px 18px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.primary-post-card-btn {
  background: linear-gradient(135deg, #075b91 0%, #18876b 100%);
  border: 1px solid rgba(7, 91, 145, 0.2);
  box-shadow: 0 18px 38px rgba(7, 54, 95, 0.16);
  color: #fff !important;
}

.secondary-post-card-btn {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--share-line);
  color: var(--share-ink) !important;
}

.primary-post-card-btn:hover,
.primary-post-card-btn:focus {
  background: linear-gradient(135deg, #064c79 0%, #d17a12 100%);
  box-shadow: 0 24px 48px rgba(7, 54, 95, 0.22);
  color: #fff !important;
  transform: translateY(-2px);
}

.secondary-post-card-btn:hover,
.secondary-post-card-btn:focus {
  border-color: rgba(12, 107, 121, 0.34);
  box-shadow: 0 14px 34px rgba(7, 54, 95, 0.16);
  color: var(--share-accent) !important;
  transform: translateY(-2px);
}

.ndc-share--full {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 14px 0 0;
}

.ndc-share__label {
  color: var(--share-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ndc-share__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ndc-share__a2a {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ndc-share__a2a.addtoany_list a {
  align-items: center;
  background: var(--share-surface);
  color: var(--share-ink);
  display: inline-flex;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ndc-share__a2a.addtoany_list a:hover {
  border-color: rgba(12, 107, 121, 0.34);
  box-shadow: 0 14px 34px rgba(7, 54, 95, 0.16);
  color: var(--share-accent);
  transform: translateY(-2px);
}

.ndc-share__a2a.addtoany_list a span {
  float: none;
}

.ndc-share__a2a.addtoany_list a::after {
  color: inherit;
  content: "";
}

.ndc-share__a2a.addtoany_list .a2a_button_facebook::after {
  content: "Facebook";
}

.ndc-share__a2a.addtoany_list .a2a_button_facebook_messenger::after {
  content: "Messenger";
}

.ndc-share__a2a.addtoany_list .a2a_button_x::after {
  content: "X";
}

.ndc-share__a2a.addtoany_list .a2a_button_linkedin::after {
  content: "LinkedIn";
}

.ndc-share__a2a.addtoany_list .a2a_button_email::after {
  content: "Email";
}

.ndc-share__a2a.addtoany_list .a2a_button_copy_link::after {
  content: "Copy Link";
}

.ndc-share--icon-only .ndc-share__a2a.addtoany_list a {
  height: 42px;
  justify-content: center;
  padding: 8px;
  width: 42px;
}

.ndc-share--icon-only .ndc-share__a2a.addtoany_list a::after {
  content: none;
}

/* Hide AddToAny text labels when icon-only mode is active */
.ndc-share--icon-only .a2a_label {
  display: none;
}

.ndc-share--icon-only .ndc-share__link,
.ndc-share--icon-only .ndc-share__copy {
  align-items: center;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  padding: 8px;
  width: 42px;
}

.ndc-share--icon-only .ndc-share__link > span,
.ndc-share--icon-only .ndc-share__copy > span {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.ndc-share--icon-only .ndc-share__link::before,
.ndc-share--icon-only .ndc-share__copy::before {
  color: currentColor;
  font-size: 1rem;
  line-height: 1;
}

.ndc-share--icon-only .ndc-share__link--facebook::before {
  content: "f";
  font-weight: 900;
}

.ndc-share--icon-only .ndc-share__link--messenger::before {
  content: "m";
  font-weight: 900;
}

.ndc-share--icon-only .ndc-share__link--x::before {
  content: "X";
  font-weight: 900;
}

.ndc-share--icon-only .ndc-share__link--linkedin::before {
  content: "in";
  font-weight: 900;
}

.ndc-share--icon-only .ndc-share__link--email::before {
  content: "@";
  font-weight: 900;
}

.ndc-share--icon-only .ndc-share__copy::before {
  content: "\1F517";
}

.ndc-share__menu .ndc-share__a2a {
  align-items: stretch;
  display: grid;
  gap: 6px;
}

.ndc-share__menu .ndc-share__a2a.addtoany_list a {
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: none;
  justify-content: flex-start;
  padding: 10px 12px;
  transform: none;
  width: 100%;
}

.ndc-share__menu .ndc-share__a2a.addtoany_list a:hover {
  background: rgba(8, 54, 95, 0.06);
  box-shadow: none;
  transform: none;
}

.readmore-btn,
.ndc-share__link,
.ndc-share__copy,
.ndc-share__toggle,
.ndc-share__menu-link {
  border: 1px solid var(--share-line);
  border-radius: 999px;
  background: var(--share-surface);
  color: var(--share-ink);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ndc-share__link,
.ndc-share__copy {
  padding: 10px 14px;
}

.readmore-btn:hover,
.ndc-share__link:hover,
.ndc-share__copy:hover,
.ndc-share__toggle:hover,
.ndc-share__menu-link:hover {
  border-color: rgba(12, 107, 121, 0.34);
  box-shadow: 0 14px 34px rgba(7, 54, 95, 0.16);
  color: var(--share-accent);
  transform: translateY(-2px);
}

.ndc-share__copy.is-copied,
.ndc-share__menu-copy.is-copied {
  background: #e9f7ef;
  border-color: rgba(62, 157, 86, 0.34);
  color: #20783b;
}

.ndc-share--compact {
  display: inline-flex;
}

.readmore-btn,
.ndc-share__toggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  padding: 10px 13px;
  white-space: nowrap;
}

.ndc-share__toggle svg {
  height: 15px;
  width: 15px;
}

.ndc-share__menu {
  background: var(--share-surface);
  border: 1px solid var(--share-line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(5, 28, 46, 0.18);
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

.ndc-share__menu[hidden] {
  display: none;
}

.ndc-share__menu-link {
  background: transparent;
  border-color: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  justify-content: start;
  width: 100%;
}

.ndc-share__menu-link:hover {
  background: rgba(8, 54, 95, 0.06);
  box-shadow: none;
  transform: none;
}

.listing-card .ndc-share,
.gallery-card .ndc-share,
.home-event-card .ndc-share,
.jobs-board-card .ndc-share,
.procurement-row .ndc-share {
  margin-top: 6px;
}

.jobs-board-card__actions .ndc-share,
.procurement-row__actions .ndc-share,
.gallery-card__actions .ndc-share,
.ndc-card-actions .ndc-share {
  margin-top: 0;
}

.gallery-page__shell .gallery-grid,
.gallery-page__shell .gallery-card,
.gallery-page__shell .gallery-card__body,
.gallery-page__shell .gallery-card__actions {
  overflow: visible;
}

.gallery-page__shell .gallery-card {
  display: flex !important;
  flex-direction: column;
  position: relative;
}

.gallery-page__shell .gallery-card:has(.ndc-share.is-open) {
  z-index: 40;
}

.gallery-page__shell .gallery-card__media {
  border-radius: 20px 20px 0 0;
}

.gallery-page__shell .gallery-card__body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
}

.gallery-page__shell .gallery-card__actions.ndc-card-actions {
  align-items: flex-end;
  height: auto;
  margin-top: auto;
  min-height: 58px;
  position: relative;
  z-index: 12;
}

.gallery-page__shell .gallery-card .ndc-share {
  position: relative;
  z-index: 20;
}

.gallery-page__shell .gallery-card .ndc-share__menu {
  z-index: 999;
}

.jobs-board-card {
  position: relative;
}

.jobs-board-card:has(.ndc-share.is-open) {
  z-index: 40;
}

.jobs-board-card .ndc-share.is-open,
.jobs-board-card .ndc-share__menu {
  z-index: 999;
}

.procurement-row {
  position: relative;
}

.procurement-row:has(.ndc-share.is-open) {
  z-index: 40;
}

.procurement-row .ndc-share.is-open,
.procurement-row .ndc-share__menu {
  z-index: 999;
}

.training-card {
  position: relative;
}

.training-card:has(.ndc-share.is-open) {
  overflow: visible;
  z-index: 40;
}

.training-card .listing-card__body,
.training-card .ndc-card-actions {
  overflow: visible;
}

.training-card .ndc-share.is-open,
.training-card .ndc-share__menu {
  z-index: 999;
}

@media (max-width: 680px) {
  .ndc-share--full {
    align-items: flex-start;
    flex-direction: column;
  }

  .ndc-share__links {
    width: 100%;
  }

  .ndc-share__link,
  .ndc-share__copy {
    flex: 1 1 auto;
    text-align: center;
  }
}
