/* Homepage popup styles */
body.popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.giving-back-popup-wrap {
  background: transparent;
  border: none;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 20px;
  z-index: 99;
}
.giving-back-popup-wrap[open] {
  opacity: 1;
  pointer-events: auto;
  z-index: 999999999;
  background-color: rgb(0 0 0 / 80%);
}

.giving-back-popup-wrapper {
  height: 100%;
  max-height: 90dvh;
  max-width: 770px;
  overflow: visible;
  position: relative;
  padding-top: 40px;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.giving-back-popup-wrapper::-webkit-scrollbar {
  display: none;
}

.giving-back-popup-wrap.active,
.giving-back-popup-wrap[open] {
  opacity: 1;
  pointer-events: auto;
}

.giving-back-popup-wrap::backdrop {
  background-color: rgb(0 0 0 / 80%);
}

.giving-back-popup-wrap .giving-back-popup-box {
  background: #ffffff;
  max-width: 100%;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  border-radius: 5px;
  padding: 0;
  flex-direction: column;
  position: relative;
}

/* Close Button */
.giving-back-popup-wrap .company_popup-close-btn {
  position: absolute;
  top: 40px;
  right: -50px;
  z-index: 10;
  cursor: pointer;
  width: 34px;
  height: 34px;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

@media (max-width: 820px) {
  .giving-back-popup-wrap .company_popup-close-btn {
    top: 10px;
    right: 10px;
  }
}

.giving-back-popup-wrap .company_popup-close-btn img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease-in-out;
}

.giving-back-popup-wrap .company_popup-close-btn:hover img {
  transform: scale(1.05);
}

/* Header Figure */
.popup__header-image {
  display: block !important;
  position: relative;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  display: block;
}

.popup__header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.popup__header-image .header-logo-overlay {
  position: absolute;
  bottom: 20px;
  right: 30px;
}

.popup__header-image .seg-logo {
  font-family: serif;
  font-size: 48px;
  font-weight: bold;
  color: #151630;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Content Section */
.popup__content {
  background: #ffffff;
  padding: 30px 30px 40px 30px;
  flex: 1;
}

@media screen and (min-width: 1320px) {
  .popup__content {
    padding: 62px 72px !important;
  }
}

.popup__content h2 {
  font-family: var(--bs-font-heading, "Figtree", sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--g-secondary, #068cf9);
  margin: 0 0 25px 0;
  line-height: 1.2;
}

.popup__content p {
  font-family: var(--bs-font-body, "Figtree", sans-serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--g-dark, #212529);
  margin: 0 0 18px 0;
}

.popup__content p:last-of-type {
  margin-bottom: 0;
}

.popup__content strong,
.popup__content b {
  font-weight: 600;
  color: var(--g-primary, #151630);
}

/* Footer Section */
.popup__footer {
  position: relative;
  padding: 30px 30px 0px 30px;
  overflow: hidden;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.popup__footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-image: radial-gradient(
      ellipse at 20% 80%,
      rgba(6, 140, 249, 0.2) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 80% 60%,
      rgba(2, 78, 188, 0.15) 0%,
      transparent 50%
    );
  background-size: 400px 300px, 500px 400px;
  background-repeat: no-repeat;
  z-index: 0;
  display: none;
}

.popup__footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 20px;
  flex: 1;
}

@media screen and (min-width: 768px) {
  .popup__footer-content {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* Profile Section */
.popup__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

@media screen and (min-width: 768px) {
  .popup__profile {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
}

.popup__profile-image {
  width: 100%;
  max-width: 265px;
  aspect-ratio: 265/255;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.popup__profile-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

.popup__profile-content {
  flex: 1;
  height: 230px;
  display: flex;
  align-items: flex-end;
}

.popup__profile-content h3 {
  font-size: 18px;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 6px 0;
  font-family: var(--bs-font-heading, "Figtree", sans-serif);
  font-weight: 600;
}

.popup__profile-content p {
  font-size: 14px;
  line-height: 15px;
  color: #ffffff;
  margin: 0;
  font-family: var(--bs-font-body, "Figtree", sans-serif);
  font-weight: 400;
}

/* Continue Link */
.popup__continue-link {
  display: inline-block;
  padding: 12px 0px;
  background: transparent;
  color: #1c1b1f;
  font-family: var(--bs-font-heading, "Figtree", sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: fit-content;
  margin: 0 0 10px;
  border: none;
}

.popup__continue-link:hover {
  opacity: 0.5;
}
