/*
 * Puva Custom Footer UX Block, based on original Puva product-review-demo-three.
 * Only affects the globally selected "Footer" UX Block; no Home content.
 * Original footer uses a narrower 1200px reading area than the 1420px Home.
 */
:root { --puva-footer-inner-width: 1230px; }
body.puva-footer-active #footer .absolute-footer { display: none !important; }
body.puva-footer-active #footer { background: #161c2d; }

#footer .puva-footer-main.section {
  padding: 100px 0 70px !important;
  background: #161c2d;
  color: #fff;
}
#footer .puva-footer-middle.section {
  padding: 30px 0 70px !important;
  background: #161c2d;
  color: #fff;
  border-top: 1px solid #303544;
}
#footer .puva-footer-copyright.section {
  padding: 20px 0 !important;
  background: #121625;
  color: #c1c1c1;
}
#footer .puva-footer-main .section-bg,
#footer .puva-footer-middle .section-bg,
#footer .puva-footer-copyright .section-bg {
  background: transparent !important;
}
#footer .row.puva-footer-main-row,
#footer .row.puva-footer-middle-row,
#footer .row.puva-footer-copyright-row {
  width: calc(100% - 48px) !important;
  max-width: var(--puva-footer-inner-width, 1230px) !important;
  margin: 0 auto !important;
  align-items: flex-start;
}
#footer .row.puva-footer-middle-row,
#footer .row.puva-footer-copyright-row { align-items: center; }
#footer .puva-footer-main-row > .col,
#footer .puva-footer-middle-row > .col,
#footer .puva-footer-copyright-row > .col {
  padding: 0 15px !important;
  min-width: 0;
}
#footer .puva-footer-main,
#footer .puva-footer-main a,
#footer .puva-footer-middle,
#footer .puva-footer-middle a,
#footer .puva-footer-copyright,
#footer .puva-footer-copyright a {
  font-family: "DM Sans",Arial,sans-serif;
}
#footer .puva-footer-main .puva-footer-heading {
  display: block;
  margin: 0 0 20px;
  padding: 0 0 10px;
  border-bottom: 1px solid #2d3341;
  color: #fff;
  font: 700 22px/1.45 "DM Sans",Arial,sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
/* Helpful Links: original two-column menu, four rows. */
#footer .puva-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 11px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer .puva-footer-links > li {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  line-height: 1.45;
}
#footer .puva-footer-links > li::before { display: none !important; }
#footer .puva-footer-links a {
  display: inline;
  font: 400 15px/1.45 "DM Sans",Arial,sans-serif;
  color: #ddd;
  text-decoration: none;
  background: linear-gradient(currentColor,currentColor) 0 98%/0 1px no-repeat;
  transition: color .2s ease,background-size .25s ease;
}
#footer .puva-footer-links a:hover {
  color: #fff;
  background-size: 100% 1px;
}
#footer .puva-footer-apps { margin-top: 32px; }
#footer .puva-footer-apps .puva-footer-heading { margin-bottom: 20px; }
#footer .puva-footer-apps-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
#footer .puva-footer-app-badge {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
  min-width: 160px;
  min-height: 62px;
  padding: 10px 13px;
  border-radius: 5px;
  background: #fff;
  color: #17102f;
  text-align: left;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .2s ease,color .2s ease;
}
#footer .puva-footer-app-badge > img {
  flex: 0 0 27px;
  width: 27px;
  max-width: 27px;
  height: auto;
  object-fit: contain;
}
#footer .puva-footer-app-badge > span {
  display: block;
  color: #17102f;
  font-size: 12px;
  white-space: nowrap;
  line-height: 1.35;
}
#footer .puva-footer-app-badge strong {
  display: block;
  color: #17102f;
  font: 700 16px/1.25 "DM Sans",Arial,sans-serif;
  white-space: nowrap;
}
#footer .puva-footer-apps-row a:hover { background: #e9e5ff; }

/* Recent posts / Latest Review: three compact thumbnails and titles */
#footer .puva-footer-post-items { width: 100%; }
#footer .puva-footer-post {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  margin: 0 0 20px;
}
#footer .puva-footer-post:last-child { margin-bottom: 0; }
#footer .puva-footer-post-thumb {
  display: block;
  position: relative;
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
  border-bottom: 3px solid #d6d6d6;
  background: #303544;
}
#footer .puva-footer-post-image,
#footer .puva-footer-no-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}
#footer .puva-footer-post-thumb:hover img { transform: scale(1.06); }
#footer .puva-footer-no-image {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
}
#footer .puva-footer-post-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 5px;
}
#footer .puva-footer-post-copy time {
  display: block;
  margin-bottom: 7px;
  color: #a0aec0;
  font: 400 13px/1.35 "DM Sans",Arial,sans-serif;
}
#footer .puva-footer-post-copy h4 {
  margin: 0;
  padding: 0;
  color: #fff;
  font: 700 14px/1.45 "DM Sans",Arial,sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
#footer .puva-footer-post-copy h4 a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(currentColor,currentColor) 0 97%/0 1px no-repeat;
  transition: background-size .25s ease;
}
#footer .puva-footer-post-copy h4 a:hover { background-size: 100% 1px; }

/* Logo + Follow Us, below full-width subtle divider */
#footer .puva-footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
#footer .puva-footer-logo-link {
  display: inline-block;
  text-decoration: none;
}
#footer .puva-footer-logo-link img {
  display: block;
  width: 73px;
  height: auto;
  max-width: 100%;
}
#footer .puva-footer-socials {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 34px;
  color: #fff;
}
#footer .puva-footer-socials > strong {
  font: 700 20px/1.35 "DM Sans",Arial,sans-serif;
  color: #fff;
  white-space: nowrap;
}
#footer .puva-footer-social-icons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
#footer .puva-footer-social-icons > a,
#footer .puva-footer-social-icons > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  background: #212737;
  color: #fff;
  text-decoration: none;
  transition: background .2s ease;
}
#footer .puva-footer-social-icons > a:hover { background: #473bf0; }
#footer .puva-footer-social-icons i { font-size: 20px; line-height: 1; }

/* Bottom copyright bar is part of UX Block, not the native absolute footer. */
#footer .puva-footer-credits {
  margin: 0;
  color: #c1c1c1;
  font: 400 15px/1.35 "DM Sans",Arial,sans-serif;
}
#footer .puva-footer-credits a,
#footer .puva-footer-credits strong {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
#footer .puva-footer-legal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#footer .puva-footer-legal a {
  color: #c1c1c1;
  font: 400 14px/1.35 "DM Sans",Arial,sans-serif;
  text-decoration: none;
}
#footer .puva-footer-legal a:hover { color: #fff; }
#footer .puva-footer-legal-separator {
  display: inline-block;
  height: 13px;
  width: 1px;
  background: #c1c1c1;
}
body.puva-footer-active #top-link {
  width: 44px;
  height: 44px;
  border-radius: 0 !important;
  border: 0 !important;
  background: #473bf0 !important;
  color: #fff !important;
  box-shadow: none !important;
}
body.puva-footer-active #top-link i { color: #fff !important; }

/* Laptop/narrow desktop */
@media (max-width: 1199px) {
  #footer .puva-footer-main.section { padding: 75px 0 50px !important; }
  #footer .puva-footer-main .puva-footer-heading { font-size: 20px; }
  #footer .puva-footer-apps-row { gap: 10px; }
  #footer .puva-footer-app-badge { min-width: 145px; padding: 10px; }
  #footer .puva-footer-post { gap: 12px; }
}
/* Tablet: helpful links full-width above two post widgets. */
@media (max-width: 849px) {
  #footer .puva-footer-main .puva-footer-main-row > .col {
    flex: 0 0 50%;
    max-width: 50%;
    padding-bottom: 38px !important;
  }
  #footer .puva-footer-main .puva-footer-main-row > .col:first-child {
    flex: 0 0 100%;
    max-width: 100%;
  }
  #footer .puva-footer-links { max-width: 560px; }
  #footer .puva-footer-apps-row { gap: 14px; }
  #footer .puva-footer-main.section { padding-bottom: 42px !important; }
  #footer .puva-footer-middle.section { padding: 34px 0 48px !important; }
}
@media (max-width: 549px) {
  #footer .puva-footer-main.section { padding: 55px 0 28px !important; }
  #footer .row.puva-footer-main-row,
  #footer .row.puva-footer-middle-row,
  #footer .row.puva-footer-copyright-row {
    width: calc(100% - 24px) !important;
  }
  #footer .puva-footer-main .puva-footer-main-row > .col {
    flex: 0 0 100%;
    max-width: 100%;
    padding-bottom: 38px !important;
  }
  #footer .puva-footer-main .puva-footer-heading { font-size: 21px; }
  #footer .puva-footer-links { gap: 10px 14px; }
  #footer .puva-footer-links a { font-size: 14px; }
  #footer .puva-footer-post-copy h4 { font-size: 14px; }
  #footer .puva-footer-middle.section { padding: 30px 0 35px !important; }
  #footer .puva-footer-middle-row > .col,
  #footer .puva-footer-copyright-row > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  #footer .puva-footer-brand { justify-content: center; }
  #footer .puva-footer-socials { justify-content: center; gap: 18px; margin-top: 24px; }
  #footer .puva-footer-socials > strong { font-size: 18px; }
  #footer .puva-footer-copyright.section { padding: 20px 0 25px !important; }
  #footer .puva-footer-credits { text-align: center; font-size: 13px; }
  #footer .puva-footer-legal { justify-content: center; gap: 9px; margin-top: 14px; }
  #footer .puva-footer-legal a { font-size: 13px; }
}
