:root {
  --bg: #ffffff;
  --text: #2c3e50;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --primary: #1e6c93;
  --primary-hover: #154c68;
  --secondary: #1e293b;
  --accent: #d9381e;
  --accent-hover: #b9260e;
  --heading: #1e293b;
  --header-bg: #d8cfbd;
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.3;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================================
   SALIENT HEADER & NAVIGATION
   ===================================================================== */
#header-outer {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

#logo {
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: #1e293b;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

#logo:hover {
  color: #0f172a;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sf-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
  align-items: center;
}

@media (min-width: 1366px) {
  .nav-wrap {
    gap: 24px;
  }
  .sf-menu {
    gap: 20px;
  }
}

.sf-menu > li {
  position: relative;
}

.sf-menu > li > a {
  font-family: 'Open Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 8px 0;
  display: block;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.sf-menu > li > a:hover,
.sf-menu > li.current-menu-item > a {
  color: #104461;
}

.sf-menu > li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #104461;
}

/* Dropdown menus */
.sf-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 230px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 1001;
  border: 1px solid #f1f5f9;
}

.sf-menu > li:hover > .sub-menu {
  display: block;
}

.sf-menu .sub-menu li a {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  display: block;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sf-menu .sub-menu li a:hover {
  background: #f8fafc;
  color: var(--primary);
}

/* Header Rehome Button */
.btn-rehome-header {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217, 56, 30, 0.25);
}

.btn-rehome-header:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

body.nav-open {
  overflow: hidden;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #1e293b;
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

.mobile-nav-drawer {
  display: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px 24px;
  max-height: calc(100vh - 84px);
  overflow-y: auto;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.btn-rehome-mobile {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}

.mobile-nav-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-drawer li {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-drawer li a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
}

.mobile-nav-drawer li a:hover {
  color: var(--primary);
}

.mobile-nav-group {
  border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  list-style: none;
}

.mobile-nav-summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-summary .arrow {
  font-size: 14px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.mobile-nav-group[open] > .mobile-nav-summary .arrow {
  transform: rotate(180deg);
}

.mobile-sub-menu {
  list-style: none;
  padding: 0 0 8px 14px;
  margin: 0;
  background: #f8fafc;
  border-radius: 6px;
}

.mobile-sub-menu li {
  border-bottom: 1px solid #eef2f6 !important;
}

.mobile-sub-menu li:last-child {
  border-bottom: none !important;
}

.mobile-sub-menu li a {
  display: block;
  padding: 9px 0;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
}

.mobile-sub-menu li a:hover {
  color: var(--primary);
}

@media (max-width: 1280px) {
  .sf-menu { gap: 14px; }
  .sf-menu > li > a { font-size: 13px; }
  .btn-rehome-header { padding: 6px 14px; font-size: 12px; }
}

@media (max-width: 1199px) {
  .sf-menu { display: none; }
  /* !important is required: the later .btn-pill-orange rule sets
     display: inline-block !important, which would otherwise re-show this
     CTA on phones and push the hamburger off-screen. */
  .header-inner .btn-rehome-header { display: none !important; }
  .mobile-nav-toggle { display: block; }
}

/* =====================================================================
   HOMEPAGE HERO HEADER
   ===================================================================== */
#page-header-bg {
  position: relative;
  width: 100%;
  min-height: 340px;
  height: 42vw;
  max-height: 560px;
  background-color: var(--header-bg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  #page-header-bg {
    min-height: 240px;
    height: 60vw;
  }
}

/* =====================================================================
   CONTENT & COLUMNS LAYOUT
   ===================================================================== */
.container-wrap {
  padding: 40px 0 60px;
}

.main-content {
  max-width: 1140px;
  margin: 0 auto;
}

.wp-block-columns {
  display: flex;
  gap: 36px;
  margin: 32px 0;
}

.wp-block-column {
  flex: 1;
}

@media (max-width: 767px) {
  .wp-block-columns {
    flex-direction: column;
    gap: 24px;
  }
}

/* =====================================================================
   BUTTONS & ACTIONS
   ===================================================================== */
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
}

.wp-block-buttons.is-content-justification-center {
  justify-content: center;
}

/* WordPress and Platform Buttons Base */
.wp-block-button a,
.wp-block-button__link,
.btn-pill-orange,
.btn-pill-blue,
.btn-pill-secondary {
  font-family: 'Open Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 13px 32px !important;
  border-radius: 50px !important;
  display: inline-block !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  border: none !important;
  text-align: center;
  line-height: 1.4 !important;
}

/* Adoption & General Blue Pill Button (Default) */
.btn-pill-blue,
.btn.primary,
.btn-404-primary,
.wp-block-button a,
.wp-block-button__link,
.wp-block-button a[style*="#1e6c93"],
.wp-block-button a[href*="/dogs-for-adoption/"] {
  background: #1e6c93 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(30, 108, 147, 0.35) !important;
}

.btn-pill-blue:hover,
.btn.primary:hover,
.btn-404-primary:hover,
.wp-block-button a:hover,
.wp-block-button__link:hover {
  background: #154c68 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 108, 147, 0.45) !important;
}

/* Rehoming Orange-Red Pill Button (Takes Precedence for Rehoming) */
.btn-pill-orange,
.wp-block-button.is-style-fill a,
a.has-luminous-vivid-orange-to-vivid-red-gradient-background,
.wp-block-button a[href*="/safe-dog-rehoming/"] {
  background: linear-gradient(135deg, #d9381e 0%, #b9260e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(185, 38, 14, 0.35) !important;
}

.btn-pill-orange:hover,
.wp-block-button.is-style-fill a:hover,
a.has-luminous-vivid-orange-to-vivid-red-gradient-background:hover,
.wp-block-button a[href*="/safe-dog-rehoming/"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185, 38, 14, 0.45) !important;
}

/* Secondary / Outline Button */
.wp-block-button.is-style-outline a,
.btn-pill-secondary,
.btn-404-secondary {
  background: #f8fafc !important;
  color: #1e6c93 !important;
  border: 2px solid #1e6c93 !important;
  box-shadow: none !important;
}
.wp-block-button.is-style-outline a:hover,
.btn-pill-secondary:hover,
.btn-404-secondary:hover {
  background: #1e6c93 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(30, 108, 147, 0.25) !important;
}
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 50px;
  display: inline-block;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.btn-pill-secondary:hover,
.btn-404-secondary:hover {
  background: #e2e8f0;
}

/* =====================================================================
   DOG GRID & CARDS
   ===================================================================== */
.wp-block-post-template.is-layout-grid,
ul.custom-dog-grid,
.homepage-dog-grid ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 32px auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .wp-block-post-template.is-layout-grid,
  ul.custom-dog-grid,
  .homepage-dog-grid ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  .wp-block-post-template.is-layout-grid,
  ul.custom-dog-grid,
  .homepage-dog-grid ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 599px) {
  .wp-block-post-template.is-layout-grid,
  ul.custom-dog-grid,
  .homepage-dog-grid ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.wp-block-post-template li,
ul.custom-dog-grid li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post-template li:hover,
ul.custom-dog-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #f1f5f9;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.wp-block-post-title {
  padding: 14px 16px 8px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.wp-block-post-title a {
  color: #1e293b;
  text-decoration: none;
}

.wp-block-post-title a:hover {
  color: var(--primary);
}

.wp-block-post-excerpt {
  padding: 0 16px 16px;
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 599px) {
  .wp-block-post.post {
    padding: 10px !important;
  }
  .wp-block-post-title {
    font-size: 0.95rem !important;
  }
  .wp-block-post-excerpt {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
  .dog-meta {
    font-size: 0.78rem !important;
    margin-bottom: 6px !important;
  }
  .wp-block-button__link {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
  }
}

/* Status Badges */
.dog-badge-available {
  background: #1e6c93;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.dog-badge-reserved {
  background: #b45309;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.dog-badge-adopted {
  background: #475569;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* =====================================================================
   CONTENT IMAGES IN GUIDES, REHOMING & ARTICLES
   ===================================================================== */
.main-content figure.wp-block-image,
.main-content figure.wp-caption,
.content-inner figure.wp-block-image,
.post-content figure.wp-block-image {
  margin: 24px auto;
  text-align: center;
  max-width: 100%;
}

.main-content figure.wp-block-image img,
.main-content figure.wp-caption img,
.content-inner figure.wp-block-image img,
.post-content figure.wp-block-image img,
.main-content p > img,
.content-inner p > img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .post-content figure.wp-block-image img,
  .content-inner figure.wp-block-image img,
  .main-content figure.wp-block-image img,
  .main-content figure.wp-caption img {
    max-width: 640px;
    max-height: 520px;
    width: auto;
    object-fit: contain;
  }
}

figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* =====================================================================
   AUTHENTIC 3-COLUMN SALIENT FOOTER
   ===================================================================== */
#footer-outer {
  background-color: #1a1e24;
  color: #94a3b8;
  padding: 56px 0 24px;
  margin-top: 60px;
  border-top: 1px solid #2d333b;
}

#footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget-logo img {
  max-width: 240px;
  height: auto;
  margin-bottom: 16px;
  display: block;
}

#footer-widgets h4 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}

#footer-widgets p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #94a3b8;
}

#footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.2;
  font-size: 14px;
}

#footer-widgets ul a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

#footer-widgets ul a:hover {
  color: #ffffff;
}

#copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

#copyright p {
  margin: 0;
}

#copyright .social {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 18px;
  align-items: center;
}

#copyright .social a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

#copyright .social a:hover {
  color: #ffffff;
}

.partner-network {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.8;
}

.partner-network strong {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.partner-network a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 8px;
}

.partner-network a:hover {
  color: #ffffff;
}

/* =====================================================================
   SKIP LINK & ACCESSIBILITY
   ===================================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e6c93;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  top: 0;
}

/* =====================================================================
   APPLICATION PREFILL DOG CARD & DIVIDERS
   ===================================================================== */
.selected-dog-card[hidden], #fb-dog[hidden], .fb-dog[hidden] {
  display: none !important;
}

.selected-dog-card, #fb-dog, .fb-dog {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fdf6ec;
  border: 1px solid #e7c79a;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 20px;
  color: #1e293b;
}

.selected-dog-card img, #fb-dog img, .fb-dog img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.nectar-shape-divider-wrap {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.nectar-shape-divider {
  width: 100%;
  height: 100%;
  display: block;
}

/* =====================================================================
   SECTION B: LIVE PARITY (Logo, FAQ Accordions, Testimonial Cards)
   ===================================================================== */
#logo img {
  height: 48px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

@media (max-width: 999px) {
  #logo img {
    height: 40px;
    max-width: 220px;
  }
}

/* B2: Native Salient FAQ Accordions */
.salient-faq {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.salient-faq[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.salient-faq summary {
  padding: 16px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.salient-faq summary::-webkit-details-marker {
  display: none;
}

.salient-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e6c93;
  line-height: 1;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.salient-faq[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  color: #0f172a;
}

.salient-faq summary:hover {
  background: #f1f5f9;
  color: #1e6c93;
}

.salient-faq-content {
  padding: 0 20px 20px;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.salient-faq-content p {
  margin: 12px 0 0;
}

.salient-faq-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

/* B3: Responsive Accessible Testimonial Cards Grid */
.testimonial-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card .quote-mark {
  font-size: 2.2rem;
  line-height: 1;
  color: #cbd5e1;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 16px;
  flex-grow: 1;
}

.testimonial-author {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.testimonial-name {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.testimonial-dog {
  display: block;
  font-size: 0.85rem;
  color: #1e6c93;
  margin-top: 2px;
}

/* Accessible Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--primary) !important;
  outline-offset: 3px !important;
}

/* =====================================================================
   UX & APPEARANCE ENHANCEMENTS
   ===================================================================== */

/* Province Location Badges */
.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  width: fit-content;
}

/* Province Filter Chips */
.filter-chips-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 18px 4px;
  margin: 16px 0 24px;
  scrollbar-width: thin;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.filter-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.filter-chip.active {
  background: #1e6c93;
  color: #ffffff;
  border-color: #1e6c93;
  box-shadow: 0 2px 6px rgba(30, 108, 147, 0.25);
}

/* Floating WhatsApp Quick Contact Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #075e54;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(7, 94, 84, 0.35);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(7, 94, 84, 0.45);
  color: #ffffff;
}

/* Ensure all WhatsApp CTA links have accessible contrast (7.7:1 AAA) */
a[href*="wa.me"],
a[href*="whatsapp.com"],
a.wp-block-button__link[style*="25D366"],
a.wp-block-button__link[style*="25d366"] {
  background-color: #075e54 !important;
  color: #ffffff !important;
}
.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
  }
  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
  body:has(.mobile-sticky-cta) .floating-whatsapp {
    bottom: 84px;
  }
}

/* Mobile Sticky CTA Bar on Dog Profile Pages */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
  }
}

/* Next Steps Reassurance Timeline */
.next-steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
@media (max-width: 800px) {
  .next-steps-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.next-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}
.next-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.next-step-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.next-step-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* =====================================================================
   ANSWER-FIRST QUICK ANSWER BOX
   ===================================================================== */
.quick-answer-box {
  background: #f8fafc;
  border-left: 4px solid #1e6c93;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 20px 0 28px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.quick-answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #1e6c93;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quick-answer-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.quick-answer-box p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #1e293b;
}

/* WordPress Block Content Utilities */
.has-white-color {
  color: #ffffff !important;
}

/* =====================================================================
   HOMEPAGE 4-STEP REHOMING PROCESS CARDS (OPTION B)
   ===================================================================== */
.ldr-process-section {
  margin: 36px 0 48px;
}
.ldr-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.ldr-process-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 26px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.ldr-process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}
.ldr-process-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 16px;
}
.ldr-process-card--1 .ldr-process-badge { background: #e0f2fe; color: #0369a1; }
.ldr-process-card--2 .ldr-process-badge { background: #fef3c7; color: #b45309; }
.ldr-process-card--3 .ldr-process-badge { background: #ede9fe; color: #6d28d9; }
.ldr-process-card--4 .ldr-process-badge { background: #dcfce7; color: #15803d; }

.ldr-process-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}
.ldr-process-card:hover .ldr-process-icon-wrap {
  transform: scale(1.08);
}
.ldr-process-card--1 .ldr-process-icon-wrap { background: #f0f9ff; color: #0284c7; }
.ldr-process-card--2 .ldr-process-icon-wrap { background: #fffbeb; color: #d97706; }
.ldr-process-card--3 .ldr-process-icon-wrap { background: #f5f3ff; color: #7c3aed; }
.ldr-process-card--4 .ldr-process-icon-wrap { background: #f0fdf4; color: #16a34a; }

.ldr-process-icon-wrap svg {
  width: 34px;
  height: 34px;
}
.ldr-process-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.35;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ldr-process-desc {
  font-size: 0.90rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 992px) {
  .ldr-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .ldr-process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ldr-process-card {
    padding: 22px 18px;
  }
  .ldr-process-title {
    min-height: auto;
  }
}

/* =====================================================================
   HOMEPAGE DUAL ACTION CARDS (REHOME VS ADOPT)
   ===================================================================== */
.ldr-dual-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 32px 0 44px;
}

.ldr-action-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.ldr-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.ldr-action-card--rehome {
  border-top: 4px solid #ea580c;
}
.ldr-action-card--rehome:hover {
  border-color: #cbd5e1;
  border-top-color: #ea580c;
}

.ldr-action-card--adopt {
  border-top: 4px solid #1e6c93;
}
.ldr-action-card--adopt:hover {
  border-color: #cbd5e1;
  border-top-color: #1e6c93;
}

.ldr-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ldr-action-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
}

.ldr-action-card--rehome .ldr-action-badge {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #ffedd5;
}

.ldr-action-card--adopt .ldr-action-badge {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #e0f2fe;
}

.ldr-action-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.ldr-action-card:hover .ldr-action-icon-wrap {
  transform: scale(1.08);
}

.ldr-action-card--rehome .ldr-action-icon-wrap {
  background: #fff7ed;
  color: #ea580c;
}

.ldr-action-card--adopt .ldr-action-icon-wrap {
  background: #f0f9ff;
  color: #1e6c93;
}

.ldr-action-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.ldr-action-title {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 14px !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.ldr-action-desc {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 24px;
  flex-grow: 1;
}

.ldr-action-footer {
  margin-top: auto;
  display: flex;
}

.ldr-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.ldr-action-btn b {
  display: inline-block;
  text-align: center;
}

.ldr-action-btn--rehome {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.ldr-action-btn--rehome:hover {
  background: linear-gradient(135deg, #ea580c 0%, #b91c1c 100%);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.ldr-action-btn--adopt {
  background: #1e6c93;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(30, 108, 147, 0.25);
}

.ldr-action-btn--adopt:hover {
  background: #165270;
  box-shadow: 0 6px 16px rgba(30, 108, 147, 0.35);
  transform: translateY(-1px);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .ldr-dual-actions {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px 0 36px;
  }
  .ldr-action-card {
    padding: 24px 20px 22px;
  }
  .ldr-action-title {
    font-size: 1.3rem !important;
  }
  .ldr-action-desc {
    font-size: 0.94rem;
  }
}

/* =====================================================================
   HOMEPAGE TRUST & TRANSPARENCY SECTION
   ===================================================================== */
.ldr-trust-section {
  margin: 36px 0 44px;
}

.ldr-trust-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.ldr-trust-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.ldr-trust-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ldr-trust-card:hover .ldr-trust-media img {
  transform: scale(1.03);
}

.ldr-trust-content {
  display: flex;
  flex-direction: column;
}

.ldr-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #dcfce7;
  width: fit-content;
  margin-bottom: 14px;
}

.ldr-trust-title {
  font-size: 1.55rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  margin: 0 0 14px !important;
}

.ldr-trust-desc {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.65;
  margin: 0;
}

.ldr-trust-desc a {
  color: #1e6c93;
  font-weight: 600;
  text-decoration: underline;
}

.ldr-trust-desc a:hover {
  color: #0c4a6e;
}

.ldr-trust-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 16px 24px;
  margin: 0 0 32px;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ldr-trust-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ldr-trust-ribbon-item svg {
  width: 18px;
  height: 18px;
  color: #38bdf8;
  flex-shrink: 0;
}

.ldr-trust-ribbon-divider {
  opacity: 0.4;
  font-weight: 300;
}

@media (max-width: 860px) {
  .ldr-trust-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }
  .ldr-trust-title {
    font-size: 1.35rem !important;
  }
  .ldr-trust-ribbon {
    font-size: 0.95rem !important;
    padding: 14px 18px;
    gap: 8px;
  }
  .ldr-trust-ribbon-divider {
    display: none;
  }
  .ldr-trust-ribbon-item {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================================
   OPTION C: CONNECTED JOURNEY STEPPER
   ===================================================================== */
.ldr-stepper-section {
  margin: 36px 0 48px;
  position: relative;
}

.ldr-stepper-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  margin-top: 36px;
}

/* Continuous connecting progression track across steps */
.ldr-stepper-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: linear-gradient(90deg, #0284c7 0%, #d97706 33%, #7c3aed 66%, #16a34a 100%);
  z-index: 0;
  border-radius: 3px;
  opacity: 0.35;
}

.ldr-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

.ldr-stepper-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ldr-stepper-step:hover .ldr-stepper-node {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.ldr-stepper-step--1 .ldr-stepper-node { border-color: #0284c7; color: #0284c7; }
.ldr-stepper-step--2 .ldr-stepper-node { border-color: #d97706; color: #d97706; }
.ldr-stepper-step--3 .ldr-stepper-node { border-color: #7c3aed; color: #7c3aed; }
.ldr-stepper-step--4 .ldr-stepper-node { border-color: #16a34a; color: #16a34a; }

.ldr-stepper-node svg {
  width: 32px;
  height: 32px;
}

.ldr-stepper-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ldr-stepper-step--1 .ldr-stepper-num { background: #0284c7; }
.ldr-stepper-step--2 .ldr-stepper-num { background: #d97706; }
.ldr-stepper-step--3 .ldr-stepper-num { background: #7c3aed; }
.ldr-stepper-step--4 .ldr-stepper-num { background: #16a34a; }

.ldr-stepper-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 18px 20px;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
}

.ldr-stepper-step:hover .ldr-stepper-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.ldr-stepper-pill {
  display: inline-block;
  align-self: center;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.ldr-stepper-step--1 .ldr-stepper-pill { background: #e0f2fe; color: #0369a1; }
.ldr-stepper-step--2 .ldr-stepper-pill { background: #fef3c7; color: #b45309; }
.ldr-stepper-step--3 .ldr-stepper-pill { background: #ede9fe; color: #6d28d9; }
.ldr-stepper-step--4 .ldr-stepper-pill { background: #dcfce7; color: #15803d; }

.ldr-stepper-title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
  line-height: 1.35 !important;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ldr-stepper-desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .ldr-stepper-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 20px;
  }
  .ldr-stepper-timeline::before {
    top: 36px;
    bottom: 36px;
    left: 45px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, #0284c7 0%, #d97706 33%, #7c3aed 66%, #16a34a 100%);
  }
  .ldr-stepper-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
  }
  .ldr-stepper-node {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .ldr-stepper-card {
    text-align: left;
  }
  .ldr-stepper-pill {
    align-self: flex-start;
  }
  .ldr-stepper-title {
    justify-content: flex-start;
    min-height: auto;
    text-align: left !important;
  }
}

/* =====================================================================
   DESKTOP MERGED STYLES: HERO OVERLAY, CHIPS, REHOMING & CALLOUTS
   ===================================================================== */

/* =====================================================================
   HOMEPAGE HERO OVERLAY & COMPATIBILITY PILLS & INSTANT FILTER
   ===================================================================== */
#page-header-bg {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ldr-hero-overlay {
  width: 100%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.84) 0%, rgba(15, 23, 42, 0.45) 65%, rgba(15, 23, 42, 0.08) 100%);
  padding: 36px 20px 28px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}
.ldr-hero-card {
  max-width: 780px;
  text-align: center;
  color: #ffffff;
}
.ldr-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.ldr-hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(1.45rem, 3.2vw, 2.25rem);
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.ldr-hero-sub {
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  color: #f1f5f9 !important;
  margin: 0 auto 18px auto;
  max-width: 600px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}
.ldr-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-hero-primary {
  background: #d9381e !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(217, 56, 30, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-hero-primary:hover {
  background: #b82d16 !important;
  transform: translateY(-2px);
}
.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-hero-secondary:hover {
  background: #ffffff !important;
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  #page-header-bg {
    height: auto !important;
    min-height: 290px !important;
  }
  .ldr-hero-overlay {
    padding: 28px 16px 22px;
  }
}

.compat-chip {
  display: inline-flex;
  align-items: center;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.3;
}
.profile-compat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}
.profile-compat-pill.ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.profile-compat-pill.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ldr-instant-filter {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ldr-filter-search-wrap {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
}
.ldr-filter-search-wrap svg {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}
.ldr-filter-search-wrap input {
  width: 100%;
  padding: 9px 12px 9px 36px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 0.9rem !important;
  background: #ffffff !important;
  color: #1e293b !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.ldr-filter-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ldr-compat-toggle {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ldr-compat-toggle:hover {
  border-color: #1e6c93;
  color: #1e6c93;
}
.ldr-compat-toggle[aria-pressed="true"] {
  background: #1e6c93;
  color: #ffffff;
  border-color: #1e6c93;
}
.ldr-filter-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-left: auto;
}

/* =====================================================================
   DOG GRID & CARDS
   ===================================================================== */
.wp-block-post-template.is-layout-grid,
ul.custom-dog-grid,
.homepage-dog-grid ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 32px auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1199px) {
  .wp-block-post-template.is-layout-grid,
  ul.custom-dog-grid,
  .homepage-dog-grid ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  .wp-block-post-template.is-layout-grid,
  ul.custom-dog-grid,
  .homepage-dog-grid ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 599px) {
  .wp-block-post-template.is-layout-grid,
  ul.custom-dog-grid,
  .homepage-dog-grid ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.wp-block-post-template li,
ul.custom-dog-grid li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-post-template li:hover,
ul.custom-dog-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #f1f5f9;
}

.wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.wp-block-post-title {
  padding: 14px 16px 8px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.wp-block-post-title a {
  color: #1e293b;
  text-decoration: none;
}

.wp-block-post-title a:hover {
  color: var(--primary);
}

.wp-block-post-excerpt {
  padding: 0 16px 16px;
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 599px) {
  .wp-block-post.post {
    padding: 10px !important;
  }
  .wp-block-post-title {
    font-size: 0.95rem !important;
  }
  .wp-block-post-excerpt {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }
  .dog-meta {
    font-size: 0.78rem !important;
    margin-bottom: 6px !important;
  }
  .wp-block-button__link {
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
  }
}

/* Status Badges */
.dog-badge-available {
  background: #1e6c93;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.dog-badge-reserved {
  background: #b45309;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.dog-badge-adopted {
  background: #475569;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

/* =====================================================================
   CONTENT IMAGES IN GUIDES, REHOMING & ARTICLES
   ===================================================================== */
.main-content figure.wp-block-image,
.main-content figure.wp-caption,
.content-inner figure.wp-block-image,
.post-content figure.wp-block-image {
  margin: 24px auto;
  text-align: center;
  max-width: 100%;
}

.main-content figure.wp-block-image img,
.main-content figure.wp-caption img,
.content-inner figure.wp-block-image img,
.post-content figure.wp-block-image img,
.main-content p > img,
.content-inner p > img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  margin: 0 auto;
  display: block;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .post-content figure.wp-block-image img,
  .content-inner figure.wp-block-image img,
  .main-content figure.wp-block-image img,
  .main-content figure.wp-caption img {
    max-width: 640px;
    max-height: 520px;
    width: auto;
    object-fit: contain;
  }
}

figcaption,
.wp-caption-text {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
  text-align: center;
  font-style: italic;
}

/* =====================================================================
   AUTHENTIC 3-COLUMN SALIENT FOOTER
   ===================================================================== */
#footer-outer {
  background-color: #1a1e24;
  color: #94a3b8;
  padding: 56px 0 24px;
  margin-top: 60px;
  border-top: 1px solid #2d333b;
}

#footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-widget-logo img {
  max-width: 240px;
  height: auto;
  margin-bottom: 16px;
  display: block;
}

#footer-widgets h4 {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 16px;
}

#footer-widgets p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 14px;
  color: #94a3b8;
}

#footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 2.2;
  font-size: 14px;
}

#footer-widgets ul a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

#footer-widgets ul a:hover {
  color: #ffffff;
}

#copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

#copyright p {
  margin: 0;
}

#copyright .social {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 18px;
  align-items: center;
}

#copyright .social a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

#copyright .social a:hover {
  color: #ffffff;
}

.partner-network {
  width: 100%;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.8;
}

.partner-network strong {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
}

.partner-network a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 8px;
}

.partner-network a:hover {
  color: #ffffff;
}

/* =====================================================================
   SKIP LINK & ACCESSIBILITY
   ===================================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e6c93;
  color: #ffffff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  top: 0;
}

/* =====================================================================
   APPLICATION PREFILL DOG CARD & DIVIDERS
   ===================================================================== */
.selected-dog-card[hidden], #fb-dog[hidden], .fb-dog[hidden] {
  display: none !important;
}

.selected-dog-card, #fb-dog, .fb-dog {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #fdf6ec;
  border: 1px solid #e7c79a;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 20px;
  color: #1e293b;
}

.selected-dog-card img, #fb-dog img, .fb-dog img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

.nectar-shape-divider-wrap {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.nectar-shape-divider {
  width: 100%;
  height: 100%;
  display: block;
}

/* =====================================================================
   SECTION B: LIVE PARITY (Logo, FAQ Accordions, Testimonial Cards)
   ===================================================================== */
#logo img {
  height: 48px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}

@media (max-width: 999px) {
  #logo img {
    height: 40px;
    max-width: 220px;
  }
}

/* B2: Native Salient FAQ Accordions */
.salient-faq {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.salient-faq[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.salient-faq summary {
  padding: 16px 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.salient-faq summary::-webkit-details-marker {
  display: none;
}

.salient-faq summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e6c93;
  line-height: 1;
  margin-left: 16px;
  transition: transform 0.2s ease;
}

.salient-faq[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  color: #0f172a;
}

.salient-faq summary:hover {
  background: #f1f5f9;
  color: #1e6c93;
}

.salient-faq-content {
  padding: 0 20px 20px;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.7;
  border-top: 1px solid #f1f5f9;
}

.salient-faq-content p {
  margin: 12px 0 0;
}

.salient-faq-content ul {
  margin: 10px 0;
  padding-left: 20px;
}

/* B3: Responsive Accessible Testimonial Cards Grid */
.testimonial-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card .quote-mark {
  font-size: 2.2rem;
  line-height: 1;
  color: #cbd5e1;
  font-family: Georgia, serif;
  margin-bottom: 8px;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin: 0 0 16px;
  flex-grow: 1;
}

.testimonial-author {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

.testimonial-name {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
}

.testimonial-dog {
  display: block;
  font-size: 0.85rem;
  color: #1e6c93;
  margin-top: 2px;
}

/* Accessible Focus Indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 3px solid var(--primary) !important;
  outline-offset: 3px !important;
}

/* =====================================================================
   UX & APPEARANCE ENHANCEMENTS
   ===================================================================== */

/* Province Location Badges */
.badge-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  width: fit-content;
}

/* Province Filter Chips */
.filter-chips-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 18px 4px;
  margin: 16px 0 24px;
  scrollbar-width: thin;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.filter-chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.filter-chip.active {
  background: #1e6c93;
  color: #ffffff;
  border-color: #1e6c93;
  box-shadow: 0 2px 6px rgba(30, 108, 147, 0.25);
}

/* Floating WhatsApp Quick Contact Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #075e54;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(7, 94, 84, 0.35);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(7, 94, 84, 0.45);
  color: #ffffff;
}

/* Ensure all WhatsApp CTA links have accessible contrast (7.7:1 AAA) */
a[href*="wa.me"],
a[href*="whatsapp.com"],
a.wp-block-button__link[style*="25D366"],
a.wp-block-button__link[style*="25d366"] {
  background-color: #075e54 !important;
  color: #ffffff !important;
}
.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .floating-whatsapp span {
    display: none;
  }
  .floating-whatsapp {
    bottom: 20px;
    right: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    box-sizing: border-box;
  }
  .floating-whatsapp svg {
    width: 28px;
    height: 28px;
  }
  body:has(.mobile-sticky-cta) .floating-whatsapp {
    bottom: 84px;
  }
}

/* Mobile Sticky CTA Bar on Dog Profile Pages */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
  }
}

/* Next Steps Reassurance Timeline */
.next-steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
@media (max-width: 800px) {
  .next-steps-timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
.next-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}
.next-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.next-step-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.next-step-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* =====================================================================
   ANSWER-FIRST QUICK ANSWER BOX
   ===================================================================== */
.quick-answer-box {
  background: #f8fafc;
  border-left: 4px solid #1e6c93;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 20px 0 28px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.quick-answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #1e6c93;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.quick-answer-header svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.quick-answer-box p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #1e293b;
}

/* WordPress Block Content Utilities */
.has-white-color {
  color: #ffffff !important;
}

/* =====================================================================
   CATEGORY SPOTLIGHT CARDS & GENERAL APPLICATION CALLOUT BANNER
   ===================================================================== */
.rescue-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 16px 0 20px 0;
}

@media (max-width: 720px) {
  .rescue-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.rescue-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe4ee;
  border-left: 5px solid #1e6c93;
  border-radius: 16px;
  padding: 24px 26px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rescue-card--sizes {
  border-left-color: #dc481e;
}

.rescue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  text-decoration: none !important;
}

.rescue-card-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1e6c93;
  background: #e8f3f8;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.rescue-card--sizes .rescue-card-eyebrow {
  color: #c23b14;
  background: #fff1eb;
}

.rescue-card h3 {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
}

.rescue-card p {
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  margin: 0 0 18px 0 !important;
}

.rescue-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e6c93;
  background: #f0f7fb;
  border: 1px solid #cde2ee;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.rescue-card--sizes .rescue-button {
  color: #c23b14;
  background: #fff3ed;
  border-color: #fbd5c4;
}

.rescue-card:hover .rescue-button {
  background: #1e6c93;
  color: #ffffff;
  border-color: #1e6c93;
}

.rescue-card--sizes:hover .rescue-button {
  background: #dc481e;
  color: #ffffff;
  border-color: #dc481e;
}

.ldr-match-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #f0f7fb 0%, #f8f5ee 100%);
  border: 1px solid #cde2ee;
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0 0 28px 0;
  box-shadow: 0 6px 18px rgba(30, 108, 147, 0.06);
}

@media (max-width: 768px) {
  .ldr-match-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 16px;
  }
}

.ldr-match-callout-text h3 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 6px 0 !important;
}

.ldr-match-callout-text p {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: #334155 !important;
  margin: 0 !important;
  max-width: 680px;
}

.ldr-match-callout-action {
  flex-shrink: 0;
}

.ldr-match-callout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e6c93;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(30, 108, 147, 0.22);
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.ldr-match-callout-btn:hover {
  background: #155270;
  transform: translateY(-1px);
}

/* Safe Dog Rehoming 4-step card badges & icons */
.ldr-process-card { border-top: 4px solid #1e6c93; }
.ldr-process-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f7fb;
  color: #1e6c93;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #cde2ee;
  margin-bottom: 16px;
}

.ldr-process-card:nth-child(even) .ldr-process-step-badge {
  background: #fff3ed;
  color: #c23b14;
  border-color: #fbd5c4;
}

.ldr-process-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ldr-process-icon img {
  width: 96px !important;
  height: 96px !important;
  display: block;
  object-fit: contain;
}

.ldr-process-card h3 {
  font-size: 1.12rem !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

.ldr-process-card p {
  font-size: 0.93rem !important;
  line-height: 1.62 !important;
  color: #475569 !important;
  margin: 0 0 14px 0 !important;
  flex-grow: 1;
}

.ldr-process-tag {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 4px 10px;
}

/* =====================================================================
   SAFE DOG REHOMING PAGE — COLOUR-ZONED LAYOUT & HIERARCHY
   ===================================================================== */
.ldr-rehome-hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #f0f7fb 0%, #fbf8f3 60%, #fff4ee 100%);
  border: 1px solid #cde2ee;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  margin: 12px 0 36px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

@media (max-width: 900px) {
  .ldr-rehome-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.ldr-rehome-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e6c93;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.ldr-rehome-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 12px 0 !important;
}

.ldr-rehome-lead {
  font-size: 1.04rem !important;
  line-height: 1.65 !important;
  color: #334155 !important;
  margin: 0 0 18px 0 !important;
}

.ldr-rehome-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px 0;
  padding: 0;
  list-style: none;
}

.ldr-rehome-pills li {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 3.5px solid #16a34a;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.ldr-rehome-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.ldr-rehome-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c23b14;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 6px 16px rgba(194, 59, 20, 0.25);
  transition: background 0.2s ease, transform 0.15s ease;
}

.ldr-rehome-btn-primary:hover {
  background: #a32f0e;
  transform: translateY(-1px);
}

.ldr-rehome-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e6c93 !important;
  border: 1.5px solid #93c5fd;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.ldr-rehome-btn-secondary:hover {
  background: #e0f2fe;
}

.ldr-rehome-hero-media {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ldr-rehome-hero-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

.ldr-rehome-hero-img-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.ldr-rehome-quote-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.ldr-rehome-quote-card img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.ldr-rehome-quote-card blockquote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
  font-style: italic;
}

.ldr-rehome-quote-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.ldr-prep-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0 0 36px 0;
}

@media (max-width: 768px) {
  .ldr-prep-strip {
    grid-template-columns: 1fr;
  }
}

.ldr-prep-card {
  border-radius: 14px;
  padding: 20px 24px;
  border: 1px solid #e2e8f0;
}

.ldr-prep-card--amber {
  background: #fffbeb;
  border-color: #fde68a;
  border-left: 5px solid #d97706;
}

.ldr-prep-card--blue {
  background: #f0f9ff;
  border-color: #bae6fd;
  border-left: 5px solid #0284c7;
}

.ldr-prep-card h3 {
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
}

.ldr-prep-card p {
  font-size: 0.92rem !important;
  line-height: 1.58 !important;
  color: #334155 !important;
  margin: 0 !important;
}

.ldr-form-stage {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 2px solid #bfdbfe;
  border-radius: 22px;
  padding: clamp(20px, 3.5vw, 36px);
  margin: 0 0 44px 0;
  box-shadow: 0 12px 36px rgba(30, 108, 147, 0.08);
}

.ldr-form-stage-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 24px auto;
}

.ldr-form-stage-badge {
  display: inline-block;
  background: #dc481e;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ldr-form-stage-header h2,
.ldr-form-stage-header h3 {
  font-size: clamp(1.45rem, 2.5vw, 1.85rem) !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
}

.ldr-form-stage-header p {
  font-size: 0.95rem !important;
  color: #475569 !important;
  line-height: 1.55 !important;
  margin: 0 0 8px 0 !important;
}

.ldr-rehome-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 0 40px 0;
}

@media (max-width: 860px) {
  .ldr-rehome-info-grid {
    grid-template-columns: 1fr;
  }
}

.ldr-info-panel {
  border-radius: 18px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.ldr-info-panel--warm {
  background: linear-gradient(145deg, #fffdf9 0%, #fef7ed 100%);
  border-color: #fed7aa;
  border-top: 4px solid #ea580c;
}

.ldr-info-panel--sky {
  background: linear-gradient(145deg, #f8fcff 0%, #eef7fc 100%);
  border-color: #bae6fd;
  border-top: 4px solid #1e6c93;
}

.ldr-info-panel h2 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

.ldr-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 14px 0 18px 0 !important;
}

.ldr-reason-chips li {
  background: #ffffff;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.ldr-faq-section {
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-top: 4px solid #1e6c93;
  border-radius: 18px;
  padding: clamp(22px, 3.5vw, 34px);
  margin: 0 0 36px 0;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.04);
}

.ldr-rehome-hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 0 24px 0;
}

@media (max-width: 768px) {
  .ldr-rehome-hub {
    grid-template-columns: 1fr;
  }
}

.ldr-hub-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
}

.ldr-hub-card h2 {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #1e6c93 !important;
  margin: 0 0 12px 0 !important;
}

.ldr-hub-card ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.85;
}

/* Multi-step rehoming form progress indicator */
.fb-progress {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 28px;
  counter-reset: step;
}
.fb-progress li {
  flex: 1;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  border-top: 4px solid #cbd5e1;
  padding-top: 8px;
  transition: border-color 0.2s, color 0.2s;
}
.fb-progress li.is-current {
  font-weight: 700;
  color: #c23b14;
  border-top-color: #c23b14;
}
.fb-progress li.is-done {
  font-weight: 600;
  color: #1e6c93;
  border-top-color: #1e6c93;
}
