.homepage-popup-dialog {
    width: min(860px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100% - 2rem);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: #24364b;
}

.homepage-popup-dialog::backdrop {
    background: rgba(12, 28, 48, .62);
    backdrop-filter: blur(3px);
}

.homepage-popup-dialog[open] {
    display: block;
    animation: homepage-popup-enter .22s ease-out both;
}

.homepage-popup-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    min-height: 500px;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: inherit;
    background: #fff;
    box-shadow: 0 24px 70px rgba(10, 29, 51, .24);
}

.homepage-popup-card--text-only {
    grid-template-columns: minmax(0, 1fr);
    min-height: 260px;
}

.homepage-popup-image {
    min-height: 360px;
    overflow: hidden;
    background: #edf3f8;
}

.homepage-popup-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.homepage-popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 25px;
}

.homepage-popup-eyebrow {
   margin-bottom: .8rem;
  color: #173b5e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  padding-top: 50px;
}

.homepage-popup-content h2 {
    margin: 0;
    color: #173b5e;
    font-family: inherit;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.2;
}

.homepage-popup-content p {
    margin: 1rem 0 0;
    color: #526579;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-line;
}

.homepage-popup-cta {
    display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.6rem;
  padding: 8px;
  border: 1px solid #173b5e;
  background: #173b5e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.homepage-popup-cta:hover,
.homepage-popup-cta:focus-visible {
    border-color: #0e2d4b;
    background: #0e2d4b;
    color: #fff;
}

.homepage-popup-cta:focus-visible,
.homepage-popup-close:focus-visible {
    outline: 1px solid #eef7ff;
    outline-offset: 3px;
}

.homepage-popup-close {
    position: absolute;
    z-index: 2;
    top: .85rem;
    right: .85rem;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #dce5ed;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #173b5e;
    cursor: pointer;
    font-size: 1rem;
}

.homepage-popup-close:hover {
    background: #edf3f8;
}

@keyframes homepage-popup-enter {
    from { opacity: 0; transform: translateY(8px) scale(.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
    .homepage-popup-dialog {
        width: calc(100% - 1.25rem);
        max-height: calc(100% - 1.25rem);
        border-radius: 16px;
    }

    .homepage-popup-card {
        grid-template-columns: minmax(0, 1fr);
        max-height: calc(100dvh - 1.25rem);
    }

    .homepage-popup-image,
    .homepage-popup-image img {
        min-height: 0;
        height: clamp(150px, 32vh, 230px);
    }

    .homepage-popup-content {
        padding: 1.5rem 1.35rem 1.65rem;
    }

    .homepage-popup-content p {
        font-size: .94rem;
    }

    .homepage-popup-close {
        top: .65rem;
        right: .65rem;
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-popup-dialog[open] {
        animation: none;
    }

    .homepage-popup-cta {
        transition: none;
    }
}
