.pv-footer,
.pv-small-footer {
  --pv-footer-inline-pad: clamp(1rem, 2vw, 1.5rem);
  --pv-footer-shell-overhang: 30px;
  --pv-footer-shell-edge-pad: max(12px, calc(var(--pv-gutter) - var(--pv-footer-shell-overhang)));
  --pv-footer-shell-base-width: min(var(--pv-section-width), calc(100vw - var(--pv-gutter) - var(--pv-gutter)));
  --pv-footer-shell-width: min(
    var(--pv-wide-size),
    calc(var(--pv-footer-shell-base-width) + var(--pv-footer-shell-overhang) + var(--pv-footer-shell-overhang)),
    calc(100vw - var(--pv-footer-shell-edge-pad) - var(--pv-footer-shell-edge-pad))
  );
}

.pv-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--pv-border-soft);
  background: #ffffff;
  color: var(--pv-text-color);
}

.pv-footer__inner,
.pv-small-footer > .ast-footer-overlay > .ast-container {
  width: var(--pv-footer-shell-width);
  max-width: none;
  box-sizing: border-box;
  margin-inline: auto;
  padding-inline: var(--pv-footer-inline-pad) !important;
}

.pv-footer__inner {
  padding-block: clamp(34px, 4vw, 52px);
}

.pv-footer__main {
  display: flex !important;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: clamp(28px, 3.5vw, 54px);
  margin: 0;
}

.pv-footer__main > *,
.ast-small-footer-wrap > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.pv-footer__section {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

.pv-footer__section--brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pv-footer__section--brand > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

.pv-footer__logo {
  display: block;
  margin: 0;
}

.pv-footer__logo .custom-logo-link {
  display: block;
  width: min(270px, 100%);
}

.pv-footer__logo .custom-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.pv-footer__donation-copy,
.pv-footer__address,
.pv-footer__bank-details {
  color: #333333 !important;
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
}

.pv-footer__section-title {
  margin: 0 0 0.85rem;
  color: var(--pv-heading-color);
  font-size: calc(var(--pv-body-font-size) * 0.94);
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.pv-footer__subheading {
  margin: 0;
  color: var(--pv-heading-color);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
}

.footer-adv a {
  color: var(--pv-link-color);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-adv a:hover,
.footer-adv a:focus-visible {
  color: var(--pv-link-hover-color);
}

.pv-footer__donation-copy {
  margin: 0;
}

.pv-footer__donation-widget {
  width: min(100%, 330px);
}

.pv-footer__donation-form {
  width: 100%;
  margin: 0.9rem 0 0;
}

.pv-footer__donation-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.42fr) minmax(150px, 0.58fr);
  align-items: center;
  gap: 0.65rem;
}

.pv-footer__donation-select {
  width: 100%;
  min-height: 42px;
  padding: 0 0.75rem;
  border: 1px solid var(--pv-border-soft);
  border-radius: var(--pv-radius-sm);
  background: #ffffff;
  color: var(--pv-heading-color);
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1;
}

.pv-footer__donation-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 16px;
  border: 1px solid #ffd140;
  border-radius: 999px;
  background: #ffd140;
  color: #003087;
  font-family: Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.pv-footer__donation-submit:hover,
.pv-footer__donation-submit:focus-visible {
  background: #ffe888;
  border-color: #ffe888;
  color: #003087;
  transform: translateY(-1px);
}

.pv-footer__donation-submit:focus-visible,
.pv-footer__donation-select:focus-visible,
.pv-footer a:focus-visible,
.ast-small-footer a:focus-visible {
  outline: 2px solid rgba(121, 184, 53, 0.34);
  outline-offset: 2px;
}

.pv-footer__bank-details {
  display: grid;
  gap: 0.38rem;
  margin: 0.7rem 0 0;
}

.pv-footer__section-title + .pv-footer__bank-details {
  margin-top: 0;
}

.pv-footer__bank-details div {
  display: grid;
  grid-template-columns: minmax(6.4rem, max-content) minmax(0, 1fr);
  gap: 0.65rem;
}

.pv-footer__bank-details dt {
  color: var(--pv-heading-color);
  font-weight: 500;
}

.pv-footer__bank-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.pv-footer__address {
  display: grid;
  gap: 0;
  margin: 0;
  font-style: normal;
}

.pv-footer__contact-group,
.pv-footer__contact-actions,
.pv-footer__contact-line {
  display: block;
}

.pv-footer__contact-actions {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.pv-footer__contact-actions a {
  width: fit-content;
}

.ast-small-footer {
  border-top: 1px solid var(--pv-border-soft);
  background: #fbfbfa;
  color: var(--pv-text-color);
}

.ast-small-footer > .ast-footer-overlay {
  background-color: transparent;
}

.ast-small-footer-wrap {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  padding: clamp(1.8rem, 3vw, 2.4rem) 0;
  color: var(--pv-text-color);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
}

.pv-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: uppercase;
}

.pv-footer__legal a {
  font-weight: 400;
}

.ast-small-footer a {
  color: var(--pv-heading-color);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ast-small-footer a:hover,
.ast-small-footer a:focus-visible {
  color: var(--pv-link-color);
}

.ast-small-footer-wrap .pv-footer__social {
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link {
  --pv-social-hover-color: var(--pv-link-color);
  background: transparent;
  color: var(--pv-heading-color);
  transition: color 0.18s ease, transform 0.18s ease;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link a {
  color: inherit;
  padding: 0.18rem;
  transition: color 0.18s ease;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link svg {
  fill: currentColor;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link:hover,
.ast-small-footer-wrap .pv-footer__social .wp-social-link:focus-within {
  color: var(--pv-social-hover-color);
  transform: translateY(-1px);
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link-facebook {
  --pv-social-hover-color: #1877f2;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link-instagram {
  --pv-social-hover-color: #e4405f;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link-youtube {
  --pv-social-hover-color: #ff0000;
}

.ast-small-footer-wrap .pv-footer__social .wp-social-link-whatsapp {
  --pv-social-hover-color: #25d366;
}

.pv-footer-partner {
  margin: 0.15rem 0 0 !important;
}

.pv-footer-partner img {
  display: block;
  width: auto;
  max-width: 92px;
  max-height: 34px;
  height: auto;
  object-fit: contain;
}

.footercopyright {
  margin: 0;
  color: var(--pv-text-color) !important;
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
}

@media (max-width: 1180px) {
  .pv-footer,
  .pv-small-footer {
    --pv-footer-inline-pad: 0;
    --pv-footer-shell-width: min(var(--pv-section-width), calc(100vw - (var(--pv-gutter) * 2)));
  }
}

@media (max-width: 980px) {
  .pv-footer__main {
    display: grid !important;
    grid-template-columns: minmax(288px, max-content) minmax(260px, max-content);
    grid-template-areas:
      "brand contact"
      "bank bank";
    justify-content: space-between;
    align-items: start;
    column-gap: clamp(42px, 7vw, 88px);
    row-gap: clamp(44px, 6vw, 72px);
  }

  .pv-footer__section--brand {
    grid-area: brand;
  }

  .pv-footer__section--contact {
    grid-area: contact;
  }

  .pv-footer__section--bank {
    grid-area: bank;
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .pv-footer__inner {
    padding-block: clamp(30px, 8vw, 42px);
  }

  .pv-footer__main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "brand"
      "contact"
      "bank";
    justify-items: stretch;
    gap: clamp(44px, 10vw, 62px);
  }

  .pv-footer__section--brand {
    grid-area: brand;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
  }

  .pv-footer__section--contact {
    grid-area: contact;
  }

  .pv-footer__section--bank {
    grid-area: bank;
    width: 100%;
  }

  .pv-footer__donation-form {
    width: min(100%, 330px);
  }

  .ast-small-footer-wrap {
    align-items: flex-start;
    text-align: left;
  }

  .pv-footer__legal,
  .ast-small-footer-wrap .wp-block-social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .pv-footer__bank-details div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.08rem;
  }
}
