:root { --cnvs-themecolor: #ce9c45; --cnvs-themecolor-rgb: 206, 156, 69; }
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

:root {
  --cnvs-themecolor: #ce9c45;
  --cnvs-themecolor-rgb: 206, 156, 69;
  --ph-dark: #101b30;
  --ph-cream: #fdf8f3;
  --ph-rust: #a98039;
  --ph-teal: #0089c7;
  --ph-amber: #dfbf86;
  --ph-green: #3c6e4f;
  --ph-indigo: #2d4f8f;
  --ph-text: #0e1729;
  --ph-ink-warm: #223962;
  --ph-muted: #5b6b8c;
  --ph-shadow: 0 4px 24px rgba(206,156,69,0.10), 0 2px 8px rgba(0,0,0,0.07);
  --ph-shadow-hover: 0 12px 40px rgba(206,156,69,0.18), 0 4px 16px rgba(0,0,0,0.10);
  --ph-radius: 20px;
  --ph-radius-pill: 999px;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--ph-text);
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Nunito', sans-serif;
}

/* Section padding rhythm */
.section { padding: 96px 0 !important; }
.section.py-lg { padding: 120px 0 !important; }
.section.py-sm { padding: 64px 0 !important; }

/* Section eyebrow label */
.ph-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cnvs-themecolor);
  margin-bottom: 14px;
}
.ph-label.white { color: rgba(255,255,255,0.85); }

/* Heading styles */
.ph-h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ph-text);
  margin-bottom: 1.25rem;
}
.ph-h2.white { color: #ffffff; }

/* Pill / badge CTA buttons */
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--ph-radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.975rem;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.ph-btn-primary {
  background: var(--cnvs-themecolor);
  color: #ffffff;
  border-color: var(--cnvs-themecolor);
}
.ph-btn-primary:hover {
  background: #a98039;
  border-color: #a98039;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(206,156,69,0.35);
}
.ph-btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.75);
}
.ph-btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}
.ph-btn-outline-orange {
  background: transparent;
  color: var(--cnvs-themecolor);
  border-color: var(--cnvs-themecolor);
}
.ph-btn-outline-orange:hover {
  background: var(--cnvs-themecolor);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(206,156,69,0.3);
}
.ph-btn-white-solid {
  background: #ffffff;
  color: var(--cnvs-themecolor);
  border-color: #ffffff;
}
.ph-btn-white-solid:hover {
  background: #fff8f2;
  color: var(--cnvs-themecolor);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Paw print SVG watermark (reusable) */
.ph-paw-watermark {
  position: absolute;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* Smooth section transitions */
.section { position: relative; overflow: hidden; }

/* Orange top border accent */
.ph-border-top-orange {
  border-top: 5px solid var(--cnvs-themecolor);
}

/* Filter pill toggle bar */
.ph-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

/* On mobile the filter pills don't fit in one row, so instead of wrapping
   into a tall multi-line block, let the row scroll horizontally — same
   pattern as a chip carousel, swipeable left/right with a bit of edge-bleed
   so the next pill peeks in as a scroll affordance. */
@media (max-width: 768px) {
  .ph-filter-bar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding: 4px 0.75rem 10px;
  }
  .ph-filter-bar::-webkit-scrollbar {
    display: none;
  }
  .ph-filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}
.ph-filter-btn {
  padding: 9px 24px;
  border-radius: var(--ph-radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid var(--cnvs-themecolor);
  background: transparent;
  background-clip: padding-box;
  color: var(--cnvs-themecolor);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}
.ph-filter-btn[data-filter="all"].active,
.ph-filter-btn[data-filter="all"]:hover {
  background: var(--cnvs-themecolor);
  color: #ffffff;
}

/* Region buttons: the flag itself becomes the button background on hover/active.
   background-size is 100% 100% (not cover) so the whole flag always shows —
   cover was cropping horizontal stripes (e.g. Thailand's red bands) on wide pill buttons. */
.ph-filter-btn[data-filter]:not([data-filter="all"]) {
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}
.ph-filter-btn[data-filter]:not([data-filter="all"]):hover,
.ph-filter-btn[data-filter]:not([data-filter="all"]).active {
  background-image: linear-gradient(rgba(14,23,41,0.55), rgba(14,23,41,0.55)), var(--flag-bg);
  color: #ffffff;
  border-color: transparent;
}

/* Bootstrap's .d-flex on the card column uses !important, so plain
   style.display = 'none' from JS is silently overridden — this class
   needs !important too to actually hide filtered-out cards. */
.ph-filter-hidden {
  display: none !important;
}

/* Solid-fill filter buttons (no flag image behind them, e.g. article categories) */
.ph-filter-btn.ph-filter-solid:hover,
.ph-filter-btn.ph-filter-solid.active {
  background: var(--cnvs-themecolor);
  color: #ffffff;
  border-color: var(--cnvs-themecolor);
}

/* Pet adoption card */
.ph-pet-card {
  background: #ffffff;
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: var(--ph-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ph-pet-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ph-shadow-hover);
}
.ph-pet-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.ph-pet-card .card-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ph-pet-card .card-body .ph-btn {
  margin-top: auto;
}
.ph-pet-badge {
  display: inline-block;
  padding: 2px 11px;
  border-radius: var(--ph-radius-pill);
  border: 1.5px solid var(--cnvs-themecolor);
  background: rgba(var(--cnvs-themecolor-rgb), 0.08);
  color: var(--cnvs-themecolor);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  align-self: flex-start;
}
/* Three-way tour badge theme: gold stays the default (beach/mainland),
   green marks the rice-terrace region, indigo marks island/ocean tours. */
.ph-pet-badge.ubud {
  border-color: var(--ph-green);
  background: rgba(60, 110, 79, 0.08);
  color: var(--ph-green);
}
.ph-pet-badge.nusa-penida,
.ph-pet-badge.gili-islands {
  border-color: var(--ph-indigo);
  background: rgba(45, 79, 143, 0.08);
  color: var(--ph-indigo);
}
.ph-pet-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ph-text);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: 2.6em;
}
.ph-pet-meta {
  font-size: 0.825rem;
  color: var(--ph-muted);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ph-pet-blurb {
  font-size: 0.875rem;
  color: var(--ph-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Paw watermark inside card */
.ph-pet-card::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 100px;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='25' cy='20' rx='10' ry='13' fill='%23ce9c45'/%3E%3Cellipse cx='55' cy='14' rx='9' ry='12' fill='%23ce9c45'/%3E%3Cellipse cx='80' cy='25' rx='8' ry='11' fill='%23ce9c45'/%3E%3Cellipse cx='90' cy='55' rx='7' ry='10' fill='%23ce9c45'/%3E%3Cpath d='M15 55 Q50 100 85 55 Q70 35 50 38 Q30 35 15 55Z' fill='%23ce9c45'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Article teaser card */
.ph-article-card {
  background: #ffffff;
  border-radius: var(--ph-radius);
  padding: 28px 26px 24px;
  box-shadow: var(--ph-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ph-article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--ph-shadow-hover);
}
.ph-article-card .ph-view-all {
  margin-top: auto;
}

/* Progress bar */
.ph-progress-wrap { margin: 32px 0 40px; }
.ph-progress-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ph-text);
  margin-bottom: 10px;
}
.ph-progress-track {
  width: 100%;
  height: 18px;
  background: #f0e8de;
  border-radius: var(--ph-radius-pill);
  overflow: hidden;
}
.ph-progress-fill {
  height: 100%;
  border-radius: var(--ph-radius-pill);
  background: linear-gradient(90deg, #ce9c45 0%, #dfbf86 100%);
  width: 0%;
  transition: width 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ph-progress-fill.animate { width: 68%; }

/* Donation amount grid */
.ph-donation-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
}
.ph-amount-btn {
  padding: 11px 28px;
  border-radius: var(--ph-radius-pill);
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  border: 2px solid var(--cnvs-themecolor);
  background: transparent;
  color: var(--cnvs-themecolor);
  cursor: pointer;
  transition: all 0.2s ease;
}
.ph-amount-btn:hover, .ph-amount-btn.active {
  background: var(--cnvs-themecolor);
  color: #ffffff;
}
.ph-custom-amount {
  padding: 11px 20px;
  border-radius: var(--ph-radius-pill);
  border: 2px solid #d4bfad;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ph-text);
  outline: none;
  width: 150px;
  text-align: center;
  transition: border-color 0.2s;
}
.ph-custom-amount:focus { border-color: var(--cnvs-themecolor); }

/* Impact cards */
.ph-impact-card {
  background: var(--ph-cream);
  border-radius: var(--ph-radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.ph-impact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ce9c45, #a98039);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  margin: 0 auto 16px;
}
.ph-impact-stat {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ph-text);
  line-height: 1.4;
}
.ph-impact-label {
  font-size: 0.85rem;
  color: var(--ph-muted);
  margin-top: 4px;
}
.ph-impact-stat a {
  color: inherit;
  text-decoration: none;
}
.ph-impact-stat a:hover {
  color: var(--cnvs-themecolor);
}

/* Volunteer form */
.ph-form-field {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid #e8d9cc;
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 0.975rem;
  color: var(--ph-text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease;
  margin-bottom: 14px;
}
.ph-form-field:focus { border-color: var(--cnvs-themecolor); }
.ph-form-field::placeholder { color: #b8a899; }

/* Contact form card */
.ph-contact-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 40px;
  box-shadow: 0 8px 40px rgba(169,128,57,0.13), 0 2px 12px rgba(0,0,0,0.06);
}
.ph-contact-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ph-text);
  margin-bottom: 6px;
}
.ph-contact-card > p {
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: var(--ph-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Advantages info cards */
.ph-info-card {
  background: #ffffff;
  border-radius: var(--ph-radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--ph-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ph-info-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ph-shadow-hover);
}
.ph-info-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ce9c45, #a98039);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 24px;
  color: #ffffff;
}
.ph-info-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ph-text);
  margin-bottom: 12px;
}
.ph-info-card p {
  font-size: 0.925rem;
  color: var(--ph-muted);
  line-height: 1.65;
}

/* Success story cards */
.ph-story-card {
  border-radius: var(--ph-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.28s ease;
  border: 2px solid transparent;
}
.ph-story-card:hover {
  transform: translateY(-6px);
  border-color: var(--cnvs-themecolor);
}
.ph-story-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.ph-story-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(16,27,48,0.95) 0%, rgba(16,27,48,0.4) 60%, transparent 100%);
  padding: 32px 24px 24px;
}
.ph-story-pet-name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.ph-story-date {
  font-size: 0.775rem;
  color: var(--cnvs-themecolor);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ph-story-quote {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  font-style: italic;
  line-height: 1.55;
}

/* Stat chips (hero) */
.ph-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: var(--ph-radius-pill);
  padding: 12px 22px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ph-text);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  white-space: nowrap;
}
.ph-stat-chip .chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cnvs-themecolor);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

/* Foster benefit list */
.ph-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.ph-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: 16px;
  line-height: 1.55;
}
.ph-benefit-list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Floating stat card (foster) */
.ph-floating-stat {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  position: absolute;
  bottom: 28px;
  left: -24px;
  max-width: 280px;
  z-index: 2;
}
.ph-floating-stat .stat-heart {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ce9c45, #a98039);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #ffffff;
}
.ph-floating-stat .stat-text {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ph-text);
  line-height: 1.4;
}
.ph-floating-stat .stat-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--cnvs-themecolor);
  line-height: 1;
  margin-bottom: 2px;
}

/* Volunteer role list */
.ph-role-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.ph-role-paw {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.ph-role-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ph-text);
  margin: 0 0 3px;
}
.ph-role-desc {
  font-size: 0.875rem;
  color: var(--ph-muted);
  line-height: 1.55;
  margin: 0;
}

/* View all link */
.ph-view-all {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--cnvs-themecolor);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  padding-bottom: 2px;
}
.ph-view-all:hover { border-color: var(--cnvs-themecolor); }

/* Responsive tweaks */
@media (max-width: 768px) {
  .ph-h2 { font-size: 1.9rem; }
  .ph-floating-stat { left: 50%; transform: translateX(-50%); bottom: -48px; }
  .ph-stat-chip { font-size: 0.8rem; padding: 10px 16px; }
}
  

  #header {
    --cnvs-themecolor: #ce9c45;
    --cnvs-themecolor-rgb: 206, 156, 69;
    --cnvs-primary-menu-font: 'Nunito', sans-serif;
    --cnvs-primary-menu-font-weight: 700;
    --cnvs-primary-menu-font-size: 0.9375rem;
    --cnvs-primary-menu-tt: none;
    --cnvs-primary-menu-ls: 0;
    --cnvs-primary-menu-hover-color: #ce9c45;
    /* Canvas's default .dark background (#212529) is a generic charcoal,
       not our brand color — this is what shows on mobile whenever the
       header can't stay transparent (menu open, no scroll yet). */
    --cnvs-contrast-bg: #101b30;
    --cnvs-contrast-0: #101b30;
  }
  .ph-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    border-radius: 999px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    background: #ce9c45;
    color: #ffffff !important;
    border: 2px solid #ce9c45;
    text-decoration: none;
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  }
  .ph-header-cta:hover {
    background: #a98039;
    border-color: #a98039;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(206, 156, 69, 0.38);
  }

  /* Language switcher */
  .ph-lang-switcher {
    position: relative;
    display: inline-block;
  }
  .ph-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    border-radius: 999px;
    border: 2px solid #ce9c45;
    background: rgba(255,255,255,0.95);
    color: #0e1729;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  }
  .ph-lang-toggle:hover {
    background: #ffffff;
    border-color: #a98039;
  }
  .ph-lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .ph-lang-toggle .bi-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
  }
  .ph-lang-switcher.open .ph-lang-toggle .bi-chevron-down {
    transform: rotate(180deg);
  }
  .ph-lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 170px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 500;
  }
  .ph-lang-switcher.open .ph-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .ph-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #0e1729;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.15s ease;
  }
  .ph-lang-option:hover {
    background: rgba(206,156,69,0.12);
    color: #0e1729;
  }
  .ph-lang-option.active {
    color: #ce9c45;
    background: rgba(206,156,69,0.12);
  }

    #donate .ph-progress-fill { width: 0%; }
    #donate .ph-progress-fill.animate { width: 68%; }
    #donate .donate-impact-card {
      background: #fdf8f3;
      border-radius: 20px;
      padding: 36px 28px;
      text-align: center;
      box-shadow: 0 2px 12px rgba(0,0,0,0.05);
      transition: transform 0.25s ease, box-shadow 0.25s ease;
    }
    #donate .donate-impact-card:hover {
      transform: translateY(-6px);
      box-shadow: 0 12px 32px rgba(206,156,69,0.14);
    }
    #donate .donate-icon-circle {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: linear-gradient(135deg, #ce9c45, #a98039);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      margin: 0 auto 18px;
    }
    #donate .donate-stat {
      font-family: 'Nunito', sans-serif;
      font-size: 1.1rem;
      font-weight: 800;
      color: #0e1729;
      margin-bottom: 6px;
    }
    #donate .donate-stat-label {
      font-size: 0.875rem;
      color: #5b6b8c;
      line-height: 1.55;
    }
  

.ph-story-card {
  border-radius:20px;
  overflow:hidden;
  position:relative;
  cursor:pointer;
  transition:transform 0.28s ease, border-color 0.28s ease;
  border:2px solid transparent;
}
.ph-story-card:hover {
  transform:translateY(-6px);
  border-color:var(--cnvs-themecolor);
}
.ph-story-overlay {
  position:absolute;
  bottom:0;left:0;right:0;
  background:linear-gradient(to top,rgba(16,27,48,0.95) 0%,rgba(16,27,48,0.4) 60%,transparent 100%);
  padding:32px 24px 24px;
}
.ph-story-pet-name {
  font-family:'Nunito',sans-serif;
  font-size:1.15rem;
  font-weight:800;
  color:#ffffff;
  margin-bottom:4px;
}
.ph-story-date {
  font-size:0.775rem;
  color:var(--cnvs-themecolor);
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  margin-bottom:8px;
}
.ph-story-quote {
  font-size:0.875rem;
  color:rgba(255,255,255,0.82);
  font-style:italic;
  line-height:1.55;
  margin:0;
}

/* ----------------------------------------------------------------
	Header scroll transition: transparent/dark over the hero,
	solid light once scrolled.
-----------------------------------------------------------------*/
#header.sticky-header {
  --cnvs-contrast-bg: #ffffff;
  --cnvs-header-sticky-bg: #ffffff;
  --cnvs-contrast-800: #223962;
  --cnvs-contrast-900: #0e1729;
  --cnvs-contrast-1000: #0e1729;
  --cnvs-primary-menu-hover-color: #ce9c45;
}

/* Logo: light-background variant (logo.png) once the header goes solid
   on scroll; dark-background variant (logo-dark.png) stays while
   transparent over the hero. */
#header.sticky-header #logo .logo-dark { display: none !important; }
#header.sticky-header #logo .logo-default { display: flex !important; }
