.jkptg-updates {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  padding: 70px 0;
  color: var(--jkptg-text-primary);
  background: rgb(252 252 252 / 70%);
}

.jkptg-updates__inner {
  width: min(
    calc(100% - (2 * var(--jkptg-layout-page-gutter))),
    var(--jkptg-layout-container-max-width)
  );
  margin-inline: auto;
}

.jkptg-updates__header {
  display: flex;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(
    var(--jkptg-layout-page-gutter),
    calc((100vw - 1200px) / 2)
  );
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
}

.jkptg-updates__header::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--jkptg-border-neutral-on-light-20);
  content: "";
  transform: translateX(-50%);
}

.jkptg-updates__heading {
  margin: 0 0 9px;
  font: 700 clamp(32px, 3vw, 40px) / 38.4px var(--jkptg-font-family-title);
}

.jkptg-updates__tablist {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 37px;
  gap: 20px;
  align-items: flex-start;
}

.jkptg-update-tab__button {
  position: relative;
  display: flex;
  min-height: 37px;
  padding: 0 0 10px;
  flex-direction: column;
  align-items: center;
  color: var(--jkptg-text-secondary);
  font: 400 18px / 21.6px var(--jkptg-font-family-title);
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.jkptg-update-tab__button:hover,
.jkptg-update-tab__button:focus-visible {
  color: var(--jkptg-text-action-hover);
}

.jkptg-update-tab__button:focus-visible {
  outline: 2px solid var(--jkptg-border-action-press);
  outline-offset: 3px;
}

.jkptg-update-tab__button[aria-selected="true"] {
  color: var(--jkptg-text-action-press);
  font-weight: 600;
}

.jkptg-update-tab__button[aria-selected="true"]::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--jkptg-border-action-press);
  border-radius: var(--jkptg-radius-full);
  content: "";
}

.jkptg-updates__panels {
  margin-top: 35px;
}

.jkptg-update-panel[hidden] {
  display: none;
}

.jkptg-update-panel__cards > .field--name-field-hebahan-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.jkptg-update-panel__view-slot {
  display: grid;
  padding: 32px;
  place-items: center;
  color: var(--jkptg-text-secondary);
  background: var(--jkptg-surface-primary);
  border-radius: var(--jkptg-radius-xl);
  text-align: center;
}

.jkptg-update-panel__view-slot p {
  margin: 0;
  font: 400 18px / 1.5 var(--jkptg-font-family-title);
}

/* The tender empty message sits directly on the section background. */
.jkptg-update-panel__view-slot[data-jkptg-view-slot="tender"] {
  background: transparent;
}

.jkptg-update-panel__view-slot:has(.view-content) {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.jkptg-update-panel__block-slot {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.jkptg-update-panel__view-slot .view-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jkptg-update-panel__more {
  display: flex;
  margin-top: 32px;
  justify-content: center;
}

.jkptg-update-panel__more-link {
  display: inline-flex;
  min-height: 44px;
  padding: 9px 18px;
  align-items: center;
  justify-content: center;
  color: var(--jkptg-text-inverse, #fcfcfc);
  font: 400 18px / 24px var(--jkptg-font-family-body, Inter, sans-serif);
  text-decoration: none;
  background: var(--jkptg-button-primary-background-default, #2d9bd3);
  border: 1px solid var(--jkptg-button-primary-border-default, #2d9bd3);
  border-radius: var(--jkptg-radius-lg, 8px);
}

.jkptg-update-panel__more-link:hover,
.jkptg-update-panel__more-link:focus-visible {
  color: var(--jkptg-text-inverse, #fcfcfc);
  text-decoration: none;
  background: var(--jkptg-button-primary-background-hover, #1985bc);
  border-color: var(--jkptg-button-primary-border-hover, #1985bc);
}

.jkptg-update-panel__more-link:active {
  background: var(--jkptg-button-primary-background-pressed, #026ca3);
  border-color: var(--jkptg-button-primary-border-pressed, #026ca3);
}

.jkptg-update-panel__more-link:focus-visible {
  outline: 2px solid var(--jkptg-border-action-press, #026ca3);
  outline-offset: 3px;
}

.jkptg-update-panel__view-slot .views-view-grid > .views-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jkptg-calendar-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jkptg-calendar-card {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
  min-height: 136px;
  padding: 20px 15px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--jkptg-surface-primary, #fff);
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 10px;
}

/* Views wraps each calendar card in a row and field element. Let that wrapper
 * stretch too, so every card on the same grid row has an equal height. */
.jkptg-update-panel__block-slot .view-content:has(.jkptg-calendar-card),
.jkptg-update-panel__view-slot .view-content:has(.jkptg-calendar-card) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jkptg-update-panel__block-slot .view-content:has(.jkptg-calendar-card) .views-row,
.jkptg-update-panel__view-slot .view-content:has(.jkptg-calendar-card) .views-row,
.jkptg-update-panel__block-slot .view-content:has(.jkptg-calendar-card) .views-field,
.jkptg-update-panel__view-slot .view-content:has(.jkptg-calendar-card) .views-field,
.jkptg-update-panel__block-slot .view-content:has(.jkptg-calendar-card) .field-content,
.jkptg-update-panel__view-slot .view-content:has(.jkptg-calendar-card) .field-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

.jkptg-calendar-card__date {
  display: inline-flex;
  height: 28px;
  align-items: center;
  gap: 5px;
  color: var(--jkptg-text-primary, #00122a);
  font: 400 16px / 24px var(--jkptg-font-family-title);
  white-space: nowrap;
}

.jkptg-calendar-card__date img {
  display: none;
}

.jkptg-calendar-card__date::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.jkptg-calendar-card__title {
  margin: 0;
  color: var(--jkptg-text-primary, #00122a);
  font: 400 18px / 24px var(--jkptg-font-family-title);
  text-decoration: none;
}

.jkptg-calendar-card__title a {
  color: inherit;
  text-decoration: none;
}

.jkptg-calendar-card__title:hover,
.jkptg-calendar-card__title:focus-visible {
  color: var(--jkptg-text-action-hover, #1985bc);
  text-decoration: none;
}

.jkptg-calendar-card__title a:hover,
.jkptg-calendar-card__title a:focus-visible {
  color: var(--jkptg-text-action-hover, #1985bc);
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .jkptg-update-panel__view-slot .view-content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jkptg-update-panel__block-slot .view-content:has(.jkptg-calendar-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jkptg-update-panel__view-slot .views-view-grid > .views-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jkptg-calendar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .jkptg-update-panel__view-slot .view-content,
  .jkptg-update-panel__block-slot .view-content:has(.jkptg-calendar-card),
  .jkptg-update-panel__view-slot .view-content:has(.jkptg-calendar-card),
  .jkptg-update-panel__view-slot .views-view-grid > .views-row,
  .jkptg-calendar-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

.jkptg-update-card {
  position: relative;
  display: flex;
  width: 386px;
  height: 350px;
  flex: 0 0 386px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--jkptg-radius-xl);
}

.jkptg-update-card--social {
  height: 600px;
  background: var(--jkptg-surface-primary, #fcfcfc);
  border: 1px solid var(--jkptg-border-neutral-on-light-15, #00000026);
}

.jkptg-social-feed__header {
  display: flex;
  min-height: 52px;
  padding: 12px 16px;
  align-items: center;
  color: var(--jkptg-text-inverse, #fcfcfc);
  background: var(--jkptg-surface-dark, #00122a);
}

.jkptg-social-feed__profile {
  color: inherit;
  font: 700 18px / 1.4 var(--jkptg-typography-family-title);
  text-decoration: none;
}

.jkptg-social-feed__profile:hover,
.jkptg-social-feed__profile:focus-visible {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jkptg-social-feed__profile:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.jkptg-social-feed__embed {
  width: 100%;
  height: 548px;
  overflow: auto;
  background: var(--jkptg-surface-primary, #fcfcfc);
}

.jkptg-social-feed__embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.jkptg-social-feed__embed--facebook-post iframe {
  height: 818px;
}

.jkptg-social-feed__embed .tiktok-embed {
  width: 100%;
  min-width: 288px;
  max-width: 100%;
  margin: 0 auto;
}

.jkptg-social-feed__embed {
  position: relative;
}

.jkptg-social-feed__loader {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--jkptg-surface-secondary, #f3f5f8);
}

.jkptg-social-feed__embed[data-social-state="pending"] > .jkptg-social-feed__loader,
.jkptg-social-feed__embed[data-social-state="loading"] > .jkptg-social-feed__loader {
  display: flex;
}

.jkptg-social-feed__loader-icon {
  width: 44px;
  height: 44px;
  border: 4px solid var(--jkptg-border-default, #d3d7dc);
  border-top-color: var(--jkptg-border-action-default, #2d9bd3);
  border-radius: 50%;
  animation: jkptg-social-feed-loading 800ms linear infinite;
}

@keyframes jkptg-social-feed-loading {
  to {
    transform: rotate(360deg);
  }
}

.jkptg-update-card__image {
  display: block;
  width: 386px;
  height: 190px;
  max-width: none;
  flex: 0 0 190px;
  object-fit: cover;
}

.jkptg-update-card__content {
  display: flex;
  width: 386px;
  height: 160px;
  padding: 20px 17px;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  color: var(--jkptg-text-inverse);
  background: var(--jkptg-surface-brand);
}

.jkptg-update-card__date {
  display: flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  font: 400 16px / 24px var(--jkptg-typography-family-body);
  white-space: nowrap;
}

.jkptg-update-card__date img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.jkptg-update-card__link {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font: 700 18px / 21.6px var(--jkptg-typography-family-title);
  text-decoration: none;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.jkptg-update-card__link:hover,
.jkptg-update-card__link:focus-visible {
  color: var(--jkptg-text-inverse);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jkptg-update-card__link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.jkptg-update-card:hover,
.jkptg-update-card:focus-within {
  box-shadow: 0 8px 20px rgb(0 0 0 / 18%);
  transform: translateY(-2px);
}

.jkptg-updates.is-initialized .jkptg-updates__source {
  display: none;
}

@media (max-width: 991.98px) {
  .jkptg-updates__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .jkptg-updates__tablist {
    width: 100%;
    overflow-x: auto;
  }

  .jkptg-update-card,
  .jkptg-update-card__image,
  .jkptg-update-card__content {
    width: min(386px, 100%);
  }
}

@media (max-width: 575.98px) {
  .jkptg-updates {
    padding: 48px 0;
  }

  .jkptg-updates__heading {
    margin-bottom: 0;
    font-size: 30px;
  }

  .jkptg-update-card {
    max-width: 100%;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jkptg-update-card {
    transition: none;
  }

  .jkptg-social-feed__loader-icon {
    animation: none;
  }
}
