/*
Theme Name: Bubbles Pets Rescue
Theme URI: https://bubbles.pet
Author: Bubbles Pets Rescue
Author URI: https://bubbles.pet
Description: A warm Bootstrap-based WordPress theme for Bubbles Pets Rescue in the UAE, with dog and cat adoption listings, adoption and foster applications, and Amazon wishlist support.
Version: 1.2.4
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bubbles-pet-rescue
*/

:root {
  --bpr-blue: #1767a1;
  --bpr-deep-blue: #0f486f;
  --bpr-sky: #d8eef7;
  --bpr-aqua: #8fd4dd;
  --bpr-coral: #ff8f7a;
  --bpr-sand: #fff7ef;
  --bpr-ink: #17324d;
  --bpr-muted: #6a7b88;
  --bpr-white: #ffffff;
  --bpr-shadow: 0 1rem 2.5rem rgba(15, 72, 111, 0.12);
}

body {
  color: var(--bpr-ink);
  background: var(--bpr-sand);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--bpr-blue); }
a:hover { color: var(--bpr-deep-blue); }

.bpr-top-wave {
  background: linear-gradient(135deg, var(--bpr-sky), var(--bpr-white) 55%, var(--bpr-sand));
}

.bpr-navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 0.5rem 1.5rem rgba(15, 72, 111, 0.08);
}

.bpr-logo {
  max-height: 58px;
  width: auto;
}

.navbar-brand span {
  color: var(--bpr-blue);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-link {
  color: var(--bpr-ink);
  font-weight: 650;
}

.nav-link:hover,
.current-menu-item > .nav-link { color: var(--bpr-blue); }

.bpr-hero {
  padding: 6rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.bpr-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: 4rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(143, 212, 221, 0.65), rgba(143, 212, 221, 0));
  border-radius: 50%;
}

.bpr-pill {
  background: var(--bpr-sky);
  color: var(--bpr-deep-blue);
  border: 1px solid rgba(23, 103, 161, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 750;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
}

.bpr-heading {
  color: var(--bpr-deep-blue);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.bpr-lede {
  color: var(--bpr-muted);
  font-size: 1.15rem;
  line-height: 1.75;
}

.btn-bpr-primary {
  background: var(--bpr-blue);
  border-color: var(--bpr-blue);
  color: var(--bpr-white);
  border-radius: 999px;
  font-weight: 800;
  padding: 0.8rem 1.35rem;
}

.btn-bpr-primary:hover {
  background: var(--bpr-deep-blue);
  border-color: var(--bpr-deep-blue);
  color: var(--bpr-white);
}

.btn-bpr-secondary {
  background: var(--bpr-white);
  border: 1px solid rgba(23, 103, 161, 0.24);
  color: var(--bpr-blue);
  border-radius: 999px;
  font-weight: 800;
  padding: 0.8rem 1.35rem;
}

.btn-bpr-secondary:hover {
  background: var(--bpr-sky);
  color: var(--bpr-deep-blue);
}

.bpr-card {
  background: var(--bpr-white);
  border: 1px solid rgba(23, 103, 161, 0.1);
  border-radius: 1.25rem;
  box-shadow: var(--bpr-shadow);
  overflow: hidden;
}

.bpr-card-soft {
  background: linear-gradient(180deg, var(--bpr-white), rgba(216, 238, 247, 0.45));
  border: 1px solid rgba(23, 103, 161, 0.11);
  border-radius: 1.25rem;
}

.bpr-section {
  padding: 4.5rem 0;
}

.bpr-section-title {
  color: var(--bpr-deep-blue);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.bpr-pet-card > a {
  aspect-ratio: 1 / 1;
  background: var(--bpr-sky);
  display: block;
  overflow: hidden;
  width: 100%;
}

.bpr-pet-img {
  background: var(--bpr-sky);
  display: block;
  height: 100% !important;
  object-fit: cover;
  width: 100% !important;
}

.bpr-badge {
  background: var(--bpr-sky);
  color: var(--bpr-deep-blue);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
}

.bpr-badge-coral {
  background: rgba(255, 143, 122, 0.18);
  color: #9a3c2d;
}

.bpr-bubble-icon {
  align-items: center;
  background: var(--bpr-sky);
  border-radius: 50%;
  color: var(--bpr-blue);
  display: inline-flex;
  font-size: 1.35rem;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.bpr-form .form-control,
.bpr-form .form-select,
.bpr-form textarea {
  border: 1px solid rgba(23, 103, 161, 0.18);
  border-radius: 0.9rem;
  padding: 0.8rem 0.95rem;
}

.bpr-form label {
  color: var(--bpr-deep-blue);
  font-weight: 750;
  margin-bottom: 0.35rem;
}

.bpr-footer {
  background: var(--bpr-deep-blue);
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0;
}

.bpr-footer a { color: var(--bpr-white); }

.wp-block-image img,
.entry-content img {
  border-radius: 1rem;
  height: auto;
  max-width: 100%;
}

@media (max-width: 767.98px) {
  .bpr-hero { padding: 4rem 0 3rem; }
  .bpr-heading { font-size: 2.35rem; }
}

/* Pet profiles and galleries */
.bpr-pet-card {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bpr-pet-card:hover {
  box-shadow: 0 1.25rem 3rem rgba(15, 72, 111, 0.17);
  transform: translateY(-3px);
}

.bpr-pet-gallery-sticky {
  position: sticky;
  top: 7rem;
}

.bpr-pet-carousel {
  background: #eef6f9;
}

.bpr-gallery-open {
  background: transparent;
  border: 0;
  display: block;
  padding: 0;
  position: relative;
  width: 100%;
}

.bpr-carousel-image {
  aspect-ratio: 4 / 3;
  background: #eef6f9;
  object-fit: cover;
}

.bpr-gallery-expand {
  align-items: center;
  background: rgba(15, 72, 111, 0.82);
  border-radius: 50%;
  bottom: 1rem;
  color: #fff;
  display: flex;
  height: 2.75rem;
  justify-content: center;
  position: absolute;
  right: 1rem;
  width: 2.75rem;
}

.bpr-pet-carousel .carousel-control-prev,
.bpr-pet-carousel .carousel-control-next {
  background: rgba(15, 72, 111, 0.48);
  bottom: calc(50% - 1.5rem);
  height: 3rem;
  opacity: 1;
  top: auto;
  width: 3rem;
}

.bpr-pet-carousel .carousel-control-prev {
  border-radius: 0 999px 999px 0;
}

.bpr-pet-carousel .carousel-control-next {
  border-radius: 999px 0 0 999px;
}

.bpr-gallery-thumbnails {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.45rem;
}

.bpr-gallery-thumbnails button {
  background: #fff;
  border: 3px solid transparent;
  border-radius: 0.75rem;
  flex: 0 0 5rem;
  height: 4.1rem;
  overflow: hidden;
  padding: 0;
}

.bpr-gallery-thumbnails button.active {
  border-color: var(--bpr-blue);
}

.bpr-gallery-thumbnails img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.bpr-gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--bpr-sky);
}

.bpr-personality-tag {
  background: rgba(143, 212, 221, 0.24);
  border: 1px solid rgba(23, 103, 161, 0.16);
  border-radius: 999px;
  color: var(--bpr-deep-blue);
  font-size: 0.86rem;
  font-weight: 750;
  padding: 0.45rem 0.75rem;
}

.bpr-detail-list > div {
  align-items: start;
  border-bottom: 1px solid rgba(23, 103, 161, 0.1);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(8rem, 0.85fr) minmax(0, 1.15fr);
  padding: 0.65rem 0;
}

.bpr-detail-list > div:first-child {
  padding-top: 0;
}

.bpr-detail-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.bpr-detail-list dt {
  color: var(--bpr-deep-blue);
  font-weight: 800;
}

.bpr-detail-list dd {
  color: var(--bpr-muted);
  margin: 0;
}

.bpr-pet-story > *:last-child {
  margin-bottom: 0;
}

.bpr-health-note {
  align-items: flex-start;
  background: rgba(216, 238, 247, 0.58);
  border: 1px solid rgba(23, 103, 161, 0.14);
  border-radius: 1rem;
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
}

.bpr-health-note > i {
  color: var(--bpr-blue);
  font-size: 1.4rem;
}

.bpr-gallery-modal .modal-content {
  background: rgba(7, 26, 40, 0.97);
  color: #fff;
}

.bpr-gallery-modal .modal-body {
  min-height: 0;
}

.bpr-modal-image {
  height: calc(100vh - 5rem);
  margin: 0 auto;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

@media (max-width: 991.98px) {
  .bpr-pet-gallery-sticky {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .bpr-detail-list > div {
    gap: 0.2rem;
    grid-template-columns: 1fr;
  }

  .bpr-pet-actions .btn {
    width: 100%;
  }

  .bpr-carousel-image {
    aspect-ratio: 1 / 1;
  }
}


/* Dog directory and editorial pet profiles */
.bpr-content-narrow {
  max-width: 1020px;
}

.bpr-content-wide {
  max-width: 1160px;
}

.bpr-breadcrumb {
  align-items: center;
  color: var(--bpr-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.95rem;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
}

.bpr-breadcrumb a {
  color: var(--bpr-blue);
  text-decoration: none;
}

.bpr-breadcrumb a:hover {
  text-decoration: underline;
}

.bpr-script-heading {
  color: var(--bpr-deep-blue);
  font-family: "Caveat", cursive;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.bpr-dog-archive {
  background: #fff;
  min-height: 60vh;
  padding: 1.4rem 0 3rem;
}

.bpr-dog-archive-section {
  margin-bottom: 2.5rem;
}

.bpr-dog-archive-section + .bpr-dog-archive-section {
  margin-top: 1rem;
}

.bpr-dog-archive-section .bpr-script-heading {
  margin-bottom: 1.4rem;
}

.bpr-dog-card-grid {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.bpr-dog-directory-card {
  background: #fff;
  border: 1px solid rgba(23, 50, 77, 0.1);
  border-radius: 0.35rem;
  box-shadow: 0 0.15rem 0.4rem rgba(15, 72, 111, 0.08);
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.bpr-dog-directory-card:hover {
  box-shadow: 0 0.8rem 1.6rem rgba(15, 72, 111, 0.13);
  transform: translateY(-2px);
}

.bpr-dog-directory-image-link {
  aspect-ratio: 1 / 1;
  background: var(--bpr-sky);
  display: block;
  overflow: hidden;
  width: 100%;
}

.bpr-dog-directory-image {
  background: var(--bpr-sky);
  display: block;
  height: 100% !important;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100% !important;
}

.bpr-dog-directory-card:hover .bpr-dog-directory-image {
  transform: scale(1.025);
}

.bpr-dog-directory-placeholder {
  align-items: center;
  color: var(--bpr-blue);
  display: flex;
  font-size: 2.25rem;
  justify-content: center;
}

.bpr-dog-directory-body {
  min-height: 7.8rem;
  padding: 1rem 1rem 1.15rem;
  text-align: center;
}

.bpr-dog-directory-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.bpr-dog-directory-name a {
  color: var(--bpr-ink);
  text-decoration: none;
}

.bpr-dog-directory-meta,
.bpr-dog-directory-breed {
  color: var(--bpr-muted);
  line-height: 1.35;
  margin: 0;
}

.bpr-dog-directory-breed {
  margin-top: 0.12rem;
}

.bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-body {
  background: var(--bpr-deep-blue);
}

.bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-name a,
.bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-meta,
.bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-breed {
  color: #fff;
}

.bpr-dog-directory-card-soon .bpr-dog-directory-body {
  border-top: 3px solid var(--bpr-aqua);
}

.bpr-empty-message {
  color: var(--bpr-muted);
  margin: 0 auto;
  max-width: 38rem;
}

.bpr-single-profile {
  background: #fff;
  min-height: 60vh;
  padding: 1.4rem 0 3.5rem;
}

.bpr-profile-layout {
  border-bottom: 1px solid rgba(23, 50, 77, 0.1);
  padding-bottom: 2.5rem;
}

.bpr-profile-header {
  margin-bottom: 0.55rem;
}

.bpr-profile-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 0.35rem;
}

.bpr-profile-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.bpr-profile-statuses span {
  background: rgba(216, 238, 247, 0.72);
  border-radius: 999px;
  color: var(--bpr-deep-blue);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
}

.bpr-profile-story {
  color: var(--bpr-ink);
  font-size: 1.04rem;
  line-height: 1.62;
  max-width: 46rem;
}

.bpr-profile-story > *:last-child {
  margin-bottom: 0;
}

.bpr-profile-personality {
  margin-top: 1.2rem;
}

.bpr-profile-notes {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.bpr-profile-note {
  border-left: 3px solid var(--bpr-aqua);
  padding: 0.15rem 0 0.15rem 0.9rem;
}

.bpr-profile-note h2 {
  color: var(--bpr-deep-blue);
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.bpr-profile-note p {
  color: var(--bpr-muted);
  margin: 0;
}

.bpr-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.bpr-profile-actions .btn {
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
}

.bpr-profile-support {
  margin-top: 1.5rem;
}

.bpr-profile-support h2 {
  color: var(--bpr-ink);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bpr-profile-support p {
  color: var(--bpr-muted);
  margin-bottom: 0.55rem;
  max-width: 44rem;
}

.bpr-profile-support a {
  font-weight: 700;
  text-decoration: none;
}

.bpr-profile-support a:hover {
  text-decoration: underline;
}

.bpr-profile-media-sticky {
  position: sticky;
  top: 7rem;
}

.bpr-profile-carousel {
  background: #eef6f9;
  border-radius: 0.38rem;
  box-shadow: 0 0.4rem 1rem rgba(15, 72, 111, 0.09);
  overflow: hidden;
}

.bpr-profile-carousel .carousel-inner {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.bpr-profile-carousel .carousel-item,
.bpr-profile-carousel .bpr-gallery-open {
  height: 100%;
}

.bpr-profile-carousel-image {
  display: block;
  height: 100% !important;
  object-fit: cover;
  width: 100% !important;
}

.bpr-profile-placeholder {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.bpr-profile-placeholder {
  color: var(--bpr-blue);
  font-size: 3rem;
}

.bpr-profile-carousel .carousel-control-prev,
.bpr-profile-carousel .carousel-control-next {
  background: transparent;
  height: 100%;
  opacity: 0.9;
  top: 0;
  width: 14%;
}

.bpr-profile-carousel .carousel-control-prev:hover,
.bpr-profile-carousel .carousel-control-next:hover {
  background: rgba(15, 72, 111, 0.08);
}

.bpr-profile-carousel .carousel-indicators {
  bottom: 0.55rem;
  margin-bottom: 0;
}

.bpr-profile-carousel .carousel-indicators [data-bs-target] {
  border: 0;
  border-radius: 999px;
  height: 3px;
  opacity: 0.65;
  width: 2rem;
}

.bpr-profile-carousel .carousel-indicators .active {
  opacity: 1;
}

.bpr-profile-summary {
  color: var(--bpr-ink);
  font-size: 0.98rem;
  margin: 0;
  padding: 0.8rem 0.6rem 0.9rem;
  text-align: center;
}

.bpr-profile-facts {
  background: #f5f8fa;
  border-radius: 0.38rem;
  margin-top: 0.15rem;
  padding: 1rem 1.05rem;
}

.bpr-profile-facts dl {
  margin: 0;
}

.bpr-profile-facts dl > div {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  line-height: 1.42;
  padding: 0.12rem 0;
}

.bpr-profile-facts dt,
.bpr-profile-facts dd {
  font-size: 0.94rem;
  margin: 0;
}

.bpr-profile-facts dt {
  align-items: center;
  color: var(--bpr-ink);
  display: inline-flex;
  font-weight: 700;
  gap: 0.55rem;
}

.bpr-profile-facts dt span {
  background: var(--bpr-deep-blue);
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 0.9rem;
  height: 0.9rem;
  opacity: 0.65;
  width: 0.9rem;
}

.bpr-profile-facts dd {
  color: var(--bpr-ink);
}

@media (max-width: 991.98px) {
  .bpr-profile-media-sticky {
    position: static;
  }

  .bpr-profile-copy-column {
    order: 2;
  }

  .bpr-profile-media-column {
    order: 1;
  }

  .bpr-profile-carousel,
  .bpr-profile-facts,
  .bpr-profile-summary {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
  }
}

@media (max-width: 767.98px) {
  .bpr-dog-archive,
  .bpr-single-profile {
    padding-top: 1rem;
  }

  .bpr-dog-archive-section {
    margin-bottom: 2rem;
  }

  .bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-body {
    background: #fff;
  }

  .bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-name a {
    color: var(--bpr-ink);
  }

  .bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-meta,
  .bpr-dog-card-column:nth-child(3n + 2) .bpr-dog-directory-breed {
    color: var(--bpr-muted);
  }

  .bpr-dog-card-column:nth-child(even) .bpr-dog-directory-body {
    background: var(--bpr-deep-blue);
  }

  .bpr-dog-card-column:nth-child(even) .bpr-dog-directory-name a,
  .bpr-dog-card-column:nth-child(even) .bpr-dog-directory-meta,
  .bpr-dog-card-column:nth-child(even) .bpr-dog-directory-breed {
    color: #fff;
  }
}

@media (max-width: 575.98px) {
  .bpr-breadcrumb {
    font-size: 0.88rem;
    margin-bottom: 1.3rem;
  }

  .bpr-script-heading {
    font-size: 2.9rem;
  }

  .bpr-profile-title {
    font-size: 3.1rem;
  }

  .bpr-profile-actions {
    display: grid;
  }

  .bpr-profile-actions .btn {
    width: 100%;
  }

  .bpr-profile-carousel .carousel-inner,
  .bpr-profile-placeholder {
    aspect-ratio: 1 / 1;
  }
}

/* Homepage rescue and featured pet */
.bpr-home-actions {
  padding-bottom: 4.5rem;
}

.bpr-home-featured-section {
  background: #fff;
  border-top: 1px solid rgba(23, 103, 161, 0.08);
  padding-bottom: 5rem;
  padding-top: 5rem;
}

.bpr-home-rescue-copy,
.bpr-home-featured-pet {
  color: var(--bpr-ink);
}

.bpr-home-rescue-copy p,
.bpr-home-featured-excerpt {
  color: var(--bpr-muted);
  line-height: 1.65;
}

.bpr-home-rescue-heading {
  font-size: clamp(2.65rem, 4.5vw, 3.75rem);
  margin-bottom: 0.8rem;
}

.bpr-script-subheading {
  color: var(--bpr-deep-blue);
  font-family: "Caveat", cursive;
  font-size: clamp(2.1rem, 3.3vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  margin: 1.45rem 0 0.55rem;
}

.bpr-home-featured-image-link {
  aspect-ratio: 1 / 1;
  background: var(--bpr-sky);
  border-radius: 0.7rem;
  box-shadow: 0 0.7rem 1.8rem rgba(15, 72, 111, 0.13);
  display: block;
  overflow: hidden;
  width: 100%;
}

.bpr-home-featured-image {
  display: block;
  height: 100% !important;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100% !important;
}

.bpr-home-featured-image-link:hover .bpr-home-featured-image {
  transform: scale(1.025);
}

.bpr-home-featured-placeholder {
  align-items: center;
  color: var(--bpr-blue);
  display: flex;
  font-size: 3rem;
  justify-content: center;
}

.bpr-home-featured-statuses,
.bpr-home-featured-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.bpr-home-featured-statuses {
  margin-bottom: 0.65rem;
}

.bpr-home-featured-statuses span {
  background: var(--bpr-sky);
  border-radius: 999px;
  color: var(--bpr-deep-blue);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.58rem;
}

.bpr-home-featured-name {
  font-size: clamp(2.8rem, 4.5vw, 3.9rem);
  margin-bottom: 0.65rem;
}

.bpr-home-featured-details {
  color: var(--bpr-ink);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.55;
  margin-bottom: 0.7rem;
}

.bpr-home-featured-traits {
  margin-bottom: 1rem;
}

.bpr-home-featured-traits span {
  background: var(--bpr-deep-blue);
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
  padding: 0.3rem 0.58rem;
}

.bpr-home-featured-button {
  border-radius: 0.55rem;
  margin-top: 0.2rem;
  padding: 0.7rem 1rem;
}

@media (max-width: 991.98px) {
  .bpr-home-featured-section {
    padding-bottom: 4rem;
    padding-top: 4rem;
  }

  .bpr-home-rescue-copy {
    margin: 0 auto 0.75rem;
    max-width: 42rem;
  }
}

@media (max-width: 767.98px) {
  .bpr-home-featured-image-link {
    margin: 0 auto;
    max-width: 34rem;
  }

  .bpr-home-featured-pet {
    margin: 0 auto;
    max-width: 34rem;
  }
}

@media (max-width: 575.98px) {
  .bpr-home-actions {
    padding-bottom: 3.5rem;
  }

  .bpr-home-featured-section {
    padding-bottom: 3.5rem;
    padding-top: 3.5rem;
  }

  .bpr-home-featured-button {
    width: 100%;
  }
}

/* Mobile layout hardening: prevent intrinsic pet images from widening the page. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body,
.bpr-navbar,
main,
section,
.bpr-footer {
  width: 100%;
}

img,
picture,
svg,
video,
iframe {
  max-width: 100%;
}

.container,
.container-fluid,
.row,
.row > * {
  min-width: 0;
}

.custom-logo-link {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
}

.custom-logo,
.bpr-logo {
  height: auto;
  max-width: 100%;
}

/* The frame, rather than the attachment, owns the square dimensions. */
.bpr-home-featured-image-link,
.bpr-dog-directory-image-link {
  aspect-ratio: 1 / 1;
  max-width: 100%;
  position: relative;
}

.bpr-home-featured-image,
.bpr-dog-directory-image {
  height: 100% !important;
  inset: 0;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  position: absolute;
  width: 100% !important;
}

.bpr-profile-carousel,
.bpr-profile-carousel .carousel-inner,
.bpr-profile-carousel .carousel-item,
.bpr-profile-carousel .bpr-gallery-open {
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.bpr-profile-carousel .carousel-inner {
  aspect-ratio: 1 / 1;
  height: auto;
  position: relative;
}

.bpr-profile-carousel .carousel-item,
.bpr-profile-carousel .bpr-gallery-open {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.bpr-profile-carousel-image {
  height: 100% !important;
  inset: 0;
  max-height: none !important;
  max-width: none !important;
  object-fit: cover !important;
  position: absolute;
  width: 100% !important;
}

.bpr-profile-summary,
.bpr-profile-facts,
.bpr-profile-story,
.bpr-home-featured-pet,
.bpr-home-rescue-copy,
.bpr-dog-directory-body {
  overflow-wrap: anywhere;
}

@media (max-width: 767.98px) {
  .bpr-navbar .container,
  .bpr-hero .container,
  .bpr-home-actions .container,
  .bpr-home-featured-section .container,
  .bpr-dog-archive .container,
  .bpr-single-profile .container,
  .bpr-footer .container {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
  }

  .bpr-hero .row,
  .bpr-home-actions .row,
  .bpr-home-featured-section .row,
  .bpr-dog-card-grid,
  .bpr-profile-layout > .row {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .bpr-hero .row > *,
  .bpr-home-actions .row > *,
  .bpr-home-featured-section .row > *,
  .bpr-dog-card-grid > *,
  .bpr-profile-layout > .row > * {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }

  .bpr-home-actions .row,
  .bpr-home-featured-section .row,
  .bpr-dog-card-grid,
  .bpr-profile-layout > .row {
    gap: 1.5rem;
  }

  .bpr-home-featured-image-link,
  .bpr-home-featured-pet,
  .bpr-dog-directory-card,
  .bpr-profile-media-sticky,
  .bpr-profile-carousel,
  .bpr-profile-summary,
  .bpr-profile-facts {
    margin-left: auto;
    margin-right: auto;
    max-width: 30rem;
    width: 100%;
  }

  .bpr-dog-directory-card {
    max-width: 22rem;
  }

  .bpr-home-featured-image-link,
  .bpr-profile-carousel {
    max-width: 26rem;
  }

  .bpr-home-featured-section,
  .bpr-single-profile,
  .bpr-dog-archive {
    overflow-x: clip;
  }

  .bpr-home-featured-name,
  .bpr-profile-title,
  .bpr-dog-archive .bpr-script-heading {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    max-width: calc(100% - 3.75rem);
    min-width: 0;
  }

  .navbar-brand .custom-logo,
  .navbar-brand .bpr-logo {
    max-height: 44px;
    width: auto;
  }

  .bpr-hero {
    padding-bottom: 2.5rem;
    padding-top: 2.75rem;
  }

  .bpr-heading {
    font-size: clamp(2rem, 10vw, 2.55rem);
  }

  .bpr-lede {
    font-size: 1rem;
    line-height: 1.6;
  }

  .bpr-home-featured-section {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .bpr-home-featured-name,
  .bpr-profile-title {
    font-size: clamp(2.45rem, 13vw, 3.15rem);
  }

  .bpr-profile-facts dl > div {
    align-items: flex-start;
    display: grid;
    gap: 0.15rem;
    grid-template-columns: 1fr;
    padding: 0.35rem 0;
  }

  .bpr-profile-facts dd {
    padding-left: 1.45rem;
  }
}


/* Hero featured pet (homepage hero right column) */
.bpr-hero-featured .bpr-home-featured-name {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-top: 0.35rem;
}
.bpr-hero-featured .bpr-home-featured-button {
  margin-top: 0.85rem;
}
@media (max-width: 767.98px) {
  .bpr-hero-featured .col-md-6:first-child {
    max-width: 340px;
    margin-inline: auto;
  }
}

/* Block-editor content styling for pages built from the starter patterns */
.entry-content .wp-block-button__link {
  background: var(--bpr-blue);
  border: 2px solid var(--bpr-blue);
  border-radius: 999px;
  color: var(--bpr-white);
  font-weight: 800;
  padding: 0.8rem 1.35rem;
  text-decoration: none;
}
.entry-content .wp-block-button__link:hover {
  background: var(--bpr-deep-blue);
  border-color: var(--bpr-deep-blue);
  color: var(--bpr-white);
}
.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--bpr-blue);
}
.entry-content .is-style-outline .wp-block-button__link:hover {
  background: var(--bpr-sky);
  color: var(--bpr-deep-blue);
}
.entry-content .wp-block-details {
  background: rgba(216, 238, 247, 0.35);
  border: 1px solid rgba(23, 103, 161, 0.11);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  padding: 1rem 1.25rem;
}
.entry-content .wp-block-details summary {
  color: var(--bpr-deep-blue);
  cursor: pointer;
  font-weight: 750;
}
.entry-content .wp-block-details[open] summary {
  margin-bottom: 0.5rem;
}
.entry-content p.bpr-pill {
  margin-bottom: 1rem;
}
.entry-content .wp-block-columns {
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Header menu: nested items become hover dropdowns */
.bpr-navbar .navbar-nav .nav-item { position: relative; }
.bpr-navbar .navbar-nav .menu-item-has-children > .nav-link::after {
  content: "\25BE";
  font-size: 0.75em;
  margin-left: 0.3rem;
  opacity: 0.65;
}
.bpr-navbar .navbar-nav .sub-menu {
  background: var(--bpr-white);
  border: 1px solid rgba(23, 103, 161, 0.12);
  border-radius: 0.9rem;
  box-shadow: 0 0.75rem 2rem rgba(15, 72, 111, 0.16);
  display: none;
  left: 0;
  list-style: none;
  margin: 0;
  min-width: 230px;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
  z-index: 1030;
}
.bpr-navbar .navbar-nav .nav-item:hover > .sub-menu,
.bpr-navbar .navbar-nav .nav-item:focus-within > .sub-menu {
  display: block;
}
.bpr-navbar .navbar-nav .sub-menu .nav-link {
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}
.bpr-navbar .navbar-nav .sub-menu .nav-link:hover {
  background: var(--bpr-sky);
  color: var(--bpr-deep-blue);
}
@media (max-width: 991.98px) {
  /* In the collapsed mobile menu, show nested items inline and indented */
  .bpr-navbar .navbar-nav .sub-menu {
    border: 0;
    box-shadow: none;
    display: block;
    min-width: 0;
    padding: 0 0 0 1.1rem;
    position: static;
  }
  .bpr-navbar .navbar-nav .menu-item-has-children > .nav-link::after { content: ""; }
}

/* Back to top */
.bpr-back-to-top {
  align-items: center;
  background: var(--bpr-blue);
  border: 0;
  border-radius: 50%;
  bottom: 1.5rem;
  box-shadow: 0 0.6rem 1.6rem rgba(15, 72, 111, 0.28);
  color: var(--bpr-white);
  cursor: pointer;
  display: flex;
  font-size: 1.25rem;
  height: 3rem;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 1.5rem;
  transform: translateY(0.75rem);
  transition: opacity 200ms ease, transform 200ms ease, background 160ms ease;
  width: 3rem;
  z-index: 1040;
}
.bpr-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.bpr-back-to-top:hover {
  background: var(--bpr-deep-blue);
}

/* Primary menu: bold uppercase links, with the last item as a CTA pill. */
.bpr-navbar .navbar-nav > .nav-item > .nav-link {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bpr-navbar .navbar-nav > .nav-item:last-child > .nav-link {
  background: var(--bpr-blue);
  border-radius: 999px;
  color: var(--bpr-white);
  padding: 0.6rem 1.35rem;
}
.bpr-navbar .navbar-nav > .nav-item:last-child > .nav-link:hover {
  background: var(--bpr-deep-blue);
  color: var(--bpr-white);
}

/* Mobile menu: full-height panel sliding in from the right */
.bpr-offcanvas.offcanvas-lg {
  width: min(20rem, 86vw);
}
@media (max-width: 991.98px) {
  .bpr-offcanvas {
    background: linear-gradient(180deg, var(--bpr-white), var(--bpr-sky));
    border-left: 1px solid rgba(23, 103, 161, 0.12);
  }
  .bpr-offcanvas .offcanvas-header {
    border-bottom: 1px solid rgba(23, 103, 161, 0.12);
    padding: 1.1rem 1.35rem;
  }
  .bpr-offcanvas .offcanvas-body {
    padding: 1rem 1.35rem 2rem;
  }
  .bpr-offcanvas .navbar-nav .nav-link {
    border-bottom: 1px solid rgba(23, 103, 161, 0.08);
    font-size: 1.05rem;
    padding: 0.85rem 0.25rem;
  }
  .bpr-offcanvas .navbar-nav > .nav-item:last-child > .nav-link {
    border-bottom: 0;
    border-radius: 999px;
    margin-top: 0.9rem;
    padding: 0.75rem 1.25rem;
    text-align: center;
  }
}

/* Footer columns */
.bpr-footer-brand {
  margin-bottom: 0.9rem;
}
.bpr-footer-logo {
  height: 56px;
  width: auto;
}
.bpr-footer-wordmark {
  color: var(--bpr-white);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin-bottom: 0.9rem;
  text-transform: uppercase;
}
.bpr-footer-heading {
  color: var(--bpr-white);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.55rem;
  position: relative;
  text-transform: uppercase;
}
.bpr-footer-heading::after {
  background: var(--bpr-aqua);
  border-radius: 2px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  width: 2.1rem;
}
.bpr-footer-menu li {
  line-height: 1.3;
  margin-bottom: 0.2rem;
}
.bpr-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}
.bpr-footer a:hover {
  color: var(--bpr-white);
  text-decoration: underline;
}
.bpr-footer-contact > div {
  align-items: baseline;
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}
.bpr-footer-contact i {
  color: var(--bpr-aqua);
}
.bpr-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.bpr-social-links a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--bpr-white);
  display: inline-flex;
  font-size: 1.05rem;
  height: 2.6rem;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
  width: 2.6rem;
}
.bpr-social-links a:hover {
  background: var(--bpr-white);
  color: var(--bpr-deep-blue);
  text-decoration: none;
}

/* Center the icon glyphs inside the social circles: kill the inline
   line-box entirely so flexbox centers the bare glyph box */
.bpr-social-links a {
  line-height: 0;
}
.bpr-social-links a i {
  display: block;
  height: 1em;
  line-height: 1;
}
.bpr-social-links a i::before {
  display: block;
  vertical-align: 0;
}

/* Header brand lockup: blue heart-paw mark with the wordmark to its right. */
.bpr-brand-mark {
  height: 52px;
  width: auto;
}
.bpr-brand-wordmark {
  color: var(--bpr-blue);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
@media (max-width: 991.98px) {
  .bpr-brand-mark {
    height: 44px;
  }
  .bpr-brand-wordmark {
    font-size: 1rem;
  }
}
