/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
}

/* ─────────────────────────────
   POPUP WRAPPER
───────────────────────────── */
.popup-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;

  width: 100%;
  max-width: 350px;

  z-index: 999999;
  font-family: 'Nunito Sans', sans-serif;

  isolation: isolate;
}

/* ─────────────────────────────
   CARD
───────────────────────────── */
.popup-card {
  background: #0d1f4c;

  border-radius: 16px;
max-width: 350px;
  overflow: hidden;

  margin-bottom: 10px;

  box-shadow: 0 16px 48px rgba(13, 31, 76, 0.45);

  max-height: 0;

  opacity: 0;

  transform: translateY(16px) scale(0.97);

  pointer-events: none;

  transition:
    max-height 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-widget.is-open .popup-card {
  max-height: 700px;

  opacity: 1;

  transform: translateY(0) scale(1);

  pointer-events: auto;
}

/* ─────────────────────────────
   HERO
───────────────────────────── */
.card-hero {
  position: relative;

  height: 180px;

  overflow: hidden;
}

.card-hero img.hero-img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(13, 31, 76, 0.20) 0%,
    rgba(13, 31, 76, 0.60) 100%
  );
}

/* ─────────────────────────────
   LOGO
───────────────────────────── */
.card-logo {
  position: absolute;

  top: 12px;
  left: 12px;

  width: 70px;
  height: 70px;

  border-radius: 10px;

  overflow: hidden;

  background: #ffffff;
}

.card-logo img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

/* ─────────────────────────────
   CLOSE BUTTON
───────────────────────────── */
.hero-badge {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;

  background: #b5904a;

  border-radius: 50%;

  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition: background 0.2s ease;
}

.hero-badge:hover {
  background: #c9a45c;
}

/* ─────────────────────────────
   CARD BODY
───────────────────────────── */
.card-body {
  padding: 22px 20px 10px;
}

/* ─────────────────────────────
   HEADING
───────────────────────────── */
.card-headline {
  font-family: 'Playfair Display', serif;

  font-size: 24px;
  font-weight: 700;

  color: #ffffff;
  text-align:left;

  line-height: 1.35;

  margin-bottom: 14px;

  word-break: break-word;
}

/* ─────────────────────────────
   DESCRIPTION
───────────────────────────── */
.card-desc {
  font-size: 15px;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.72);

  line-height: 1.7;

  margin-bottom: 18px;

  word-break: break-word;
}

/* ─────────────────────────────
   META / ADDRESS
───────────────────────────── */
.card-meta {
  display: flex;
  flex-direction: column;

  gap: 12px;

  margin-bottom: 22px;
}

.meta-row {
  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 15px;
  font-weight: 400;

  line-height: 1.6;

  color: rgba(255, 255, 255, 0.82);
}

.meta-row svg {
  width: 18px;
  height: 18px;

  flex-shrink: 0;
}

/* ─────────────────────────────
   CTA BUTTON
───────────────────────────── */
.card-cta {
  display: block;

  

  margin: 0 12px 12px;

  padding: 16px 20px;

  background: #b5904a;

  color: #ffffff;

  text-align: center;
  text-decoration: none;

  font-family: 'Nunito Sans', sans-serif;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: 0.04em;

  border: none;

  border-radius: 12px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    letter-spacing 0.2s ease;
}

.card-cta:hover {
  background: #c9a45c;

  letter-spacing: 0.08em;
}

/* ─────────────────────────────
   TRIGGER PILL
───────────────────────────── */
.popup-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;

  background: #0d1f4c;

  border-radius: 50px;

  padding: 11px 11px 11px 22px;

  cursor: pointer;

  user-select: none;

  box-shadow: 0 8px 32px rgba(13, 31, 76, 0.35);

  transition: box-shadow 0.2s ease;
}

.popup-trigger:hover {
  box-shadow: 0 12px 40px rgba(13, 31, 76, 0.45);
}

.trigger-label {
  color: #ffffff;

  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.01em;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  padding-right: 10px;
}

/* ─────────────────────────────
   ARROW BUTTON
───────────────────────────── */
.arrow-btn {
  width: 36px;
  height: 36px;

  min-width: 36px;

  border-radius: 50%;

  background: #b5904a;

  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  flex-shrink: 0;

  transition: background 0.2s ease;
}

.arrow-btn:hover {
  background: #c9a45c;
}

.arrow-btn svg {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate arrow when open */
.popup-widget.is-open .arrow-btn svg {
  transform: rotate(180deg);
}

/* ─────────────────────────────
   TABLET
───────────────────────────── */
@media (max-width: 768px) {

  .popup-widget {
    left: 16px;
    right: 16px;
    bottom: 16px;

    width: auto;
    max-width: none;
  }

  .card-hero {
    height: 170px;
  }

  .card-headline {
    font-size: 22px;
  }

  .card-desc,
  .meta-row {
    font-size: 14px;
  }
}

/* ─────────────────────────────
   MOBILE
───────────────────────────── */
@media (max-width: 480px) {

  .popup-widget {
    left: 12px;
    right: 12px;
    bottom: 12px;

    width: auto;
    max-width: none;
  }

  .popup-card {
    border-radius: 14px;
  }

  .card-hero {
    height: 155px;
  }

  .card-logo {
    width: 58px;
    height: 58px;
  }

  .hero-badge {
    width: 32px;
    height: 32px;
  }

  .card-body {
    padding: 18px 16px 8px;
  }

  .card-headline {
    font-size: 20px;
  }

  .card-desc,
  .meta-row {
    font-size: 14px;
  }

  .meta-row svg {
    width: 16px;
    height: 16px;
  }

  .popup-trigger {
    padding: 10px 10px 10px 16px;
  }

  .trigger-label {
    font-size: 12px;
  }

  .arrow-btn {
    width: 34px;
    height: 34px;

    min-width: 34px;
  }

  .card-cta {
    width: calc(100% - 20px);

    margin: 0 10px 10px;

    font-size: 13px;

    padding: 14px 16px;
  }
}

/* ─────────────────────────────
   SMALL MOBILE
───────────────────────────── */
@media (max-width: 360px) {

  .popup-widget {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .card-headline {
    font-size: 18px;
  }

  .card-desc,
  .meta-row {
    font-size: 13px;
  }

  .trigger-label {
    font-size: 11px;
  }
}