/* ==========================================================================
   THE PETS PASSION - EDITORIAL THEME MAIN STYLESHEET (main.css)
   Clean, human-designed, AdSense-safe, accessible pet-care publication.
   ========================================================================== */

/* 1. UTILITY / TRUST STRIP */
.tpp-utility-strip {
  background: var(--tpp-forest-dark);
  color: #D1D5DB;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 8px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tpp-utility-strip .tpp-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tpp-utility-alert-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #EF4444;
}

.tpp-utility-strip a {
  color: #F3F4F6;
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}

.tpp-utility-strip a:hover {
  color: #FFFFFF;
}

/* 2. MAIN HEADER */
.tpp-header {
  background: var(--tpp-surface);
  border-bottom: 1px solid var(--tpp-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.tpp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.tpp-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  max-height: 54px;
}

.tpp-brand-wrap .custom-logo-link,
.custom-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  line-height: 1 !important;
  max-height: 50px !important;
}

.tpp-brand-wrap .custom-logo,
.custom-logo,
img.custom-logo {
  max-height: 48px !important;
  width: auto !important;
  max-width: 240px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  vertical-align: middle !important;
}

.tpp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.tpp-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.tpp-brand-text {
  display: flex;
  flex-direction: column;
}

.tpp-brand-name {
  font-family: var(--tpp-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--tpp-forest);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.tpp-brand-tagline {
  font-size: 11px;
  color: var(--tpp-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tpp-nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tpp-nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tpp-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tpp-nav-link:hover {
  color: var(--tpp-forest);
  background: var(--tpp-forest-soft);
}

.tpp-nav-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  background: var(--badge-tool-bg);
  color: var(--badge-tool-color);
  border: 1px solid var(--badge-tool-border);
}

.tpp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tpp-search-btn {
  background: none;
  border: 1px solid var(--tpp-border);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--tpp-muted);
  font-size: 13.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.tpp-search-btn:hover {
  border-color: var(--tpp-forest);
  color: var(--tpp-forest);
  background: var(--tpp-forest-soft);
}

.tpp-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--tpp-border);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--tpp-dark);
}

/* Mobile Nav Drawer */
.tpp-mobile-drawer {
  display: none;
  background: var(--tpp-surface);
  border-bottom: 1px solid var(--tpp-border);
  padding: 16px 20px 24px;
}

.tpp-mobile-drawer.is-open {
  display: block;
}

.tpp-mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.tpp-mobile-menu li {
  border-bottom: 1px solid var(--tpp-border-light);
}

.tpp-mobile-menu a {
  display: block;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tpp-dark);
}

/* 3. COMPACT EDITORIAL HERO (LEAD STORY & SLIDER) */
.tpp-hero-section {
  padding: 28px 0 24px;
}

/* Trending Ticker Bar (Moving Right to Left) */
.tpp-trending-ticker {
  display: flex;
  align-items: center;
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  gap: 16px;
}

.tpp-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tpp-forest-soft);
  color: var(--tpp-forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
  white-space: nowrap;
}

.tpp-ticker-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #EF4444;
  animation: tickerPulse 1.8s infinite;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.tpp-ticker-track-wrap {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

.tpp-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 20px;
  animation: tickerSlide 40s linear infinite;
}

.tpp-ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.tpp-ticker-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--tpp-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tpp-ticker-item:hover {
  color: var(--tpp-forest);
  text-decoration: underline;
}

.tpp-ticker-sep {
  color: #CBD5E1;
  font-size: 14px;
}

/* Hero Carousel Wrapper & Track */
.tpp-hero-slider-wrap {
  position: relative;
  width: 100%;
}

.tpp-hero-slider {
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
}

.tpp-hero-slides-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.tpp-hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.tpp-hero-card {
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: row;
  min-height: 400px;
  max-height: 460px;
}

/* Slider Controls Bar */
.tpp-hero-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 4px;
}

.tpp-hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpp-hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 2px;
  background: #D1D5DB;
  border: none;
  padding: 0;
  cursor: pointer;
  transform-origin: left center;
  transition: transform 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.tpp-hero-dot.is-active {
  background: var(--tpp-forest);
  transform: scaleX(1.75);
}

.tpp-hero-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tpp-hero-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--tpp-border);
  background: var(--tpp-surface);
  color: var(--tpp-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.tpp-hero-arrow-btn:hover {
  background: var(--tpp-forest);
  color: #FFFFFF;
  border-color: var(--tpp-forest);
}

.tpp-hero-slide-num {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--tpp-muted);
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tpp-hero-media {
  flex: 0 0 54%;
  position: relative;
  background: #E5E7EB;
  overflow: hidden;
}

.tpp-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.3s ease;
}

.tpp-hero-card:hover .tpp-hero-media img {
  transform: scale(1.02);
}

.tpp-hero-content {
  flex: 0 0 46%;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--tpp-surface);
}

.tpp-site-h1-subtle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--tpp-forest);
  margin: 0 0 8px;
}

.tpp-hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--tpp-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tpp-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.tpp-badge-dog {
  background: var(--badge-dog-bg);
  color: var(--badge-dog-color);
  border: 1px solid var(--badge-dog-border);
}

.tpp-badge-cat {
  background: var(--badge-cat-bg);
  color: var(--badge-cat-color);
  border: 1px solid var(--badge-cat-border);
}

.tpp-badge-health {
  background: var(--badge-health-bg);
  color: var(--badge-health-color);
  border: 1px solid var(--badge-health-border);
}

.tpp-badge-tool {
  background: var(--badge-tool-bg);
  color: var(--badge-tool-color);
  border: 1px solid var(--badge-tool-border);
}

.tpp-badge-emergency {
  background: var(--badge-emergency-bg);
  color: var(--badge-emergency-color);
  border: 1px solid var(--badge-emergency-border);
}

.tpp-hero-title {
  font-family: var(--tpp-font-serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--tpp-dark);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.tpp-hero-title a {
  color: var(--tpp-dark);
}

.tpp-hero-title a:hover {
  color: var(--tpp-forest);
}

.tpp-hero-excerpt {
  font-size: 15px;
  color: var(--tpp-body);
  line-height: 1.6;
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpp-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tpp-forest);
  text-decoration: none;
  border-bottom: 1.5px solid var(--tpp-forest);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: all 0.15s ease;
}

.tpp-hero-action:hover {
  color: var(--tpp-forest-light);
  border-bottom-color: var(--tpp-forest-light);
  gap: 10px;
}

/* 4. QUICK DISCOVERY NAVIGATION ("What can we help you find?") */
.tpp-discovery-section {
  padding: 12px 0 32px;
}

.tpp-discovery-box {
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.tpp-discovery-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tpp-muted);
  margin: 0 0 14px;
}

.tpp-discovery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tpp-discovery-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--tpp-cream);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-sm);
  color: var(--tpp-dark);
  font-size: 13.5px;
  font-weight: 600;
  transition: all 0.15s ease;
  text-decoration: none;
}

.tpp-discovery-item:hover {
  background: var(--tpp-surface);
  border-color: var(--tpp-forest);
  color: var(--tpp-forest);
  box-shadow: var(--shadow-sm);
}

.tpp-discovery-ico {
  width: 18px;
  height: 18px;
  color: var(--tpp-forest);
  flex-shrink: 0;
}

/* 5. EDITORIAL ARTICLE CARD SYSTEM */
.tpp-section {
  padding: 32px 0;
}

.tpp-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tpp-border);
  padding-bottom: 12px;
  gap: 16px;
}

.tpp-section-heading {
  font-family: var(--tpp-font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--tpp-dark);
  margin: 0 0 4px;
}

.tpp-section-subtitle {
  font-size: 14px;
  color: var(--tpp-muted);
  margin: 0;
}

.tpp-section-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tpp-forest);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tpp-section-link:hover {
  text-decoration: underline;
  gap: 7px;
}

/* Variant A: Essential Health Grid (1 Medium Left + 4 Rows Right) */
.tpp-health-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.tpp-featured-card {
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.tpp-featured-thumb {
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #E5E7EB;
  position: relative;
  overflow: hidden;
}

.tpp-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpp-featured-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tpp-featured-title {
  font-family: var(--tpp-font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tpp-dark);
  margin: 8px 0 10px;
}

.tpp-featured-title a:hover {
  color: var(--tpp-forest);
}

.tpp-featured-excerpt {
  font-size: 14px;
  color: var(--tpp-body);
  line-height: 1.55;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Compact Horizontal Rows */
.tpp-rows-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpp-compact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.tpp-compact-row:hover {
  border-color: var(--tpp-forest);
  transform: translateX(2px);
}

.tpp-compact-thumb {
  width: 104px;
  height: 74px;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #E5E7EB;
}

.tpp-compact-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpp-compact-content {
  flex-grow: 1;
  min-width: 0;
}

.tpp-compact-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tpp-dark);
  margin: 4px 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpp-compact-meta {
  font-size: 12px;
  color: var(--tpp-muted);
}

/* Variant B: Standard Editorial Cards (3 & 4 Column Grids & Universal Archive Grid) */
.tpp-grid-3,
.tpp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .tpp-grid-3,
  .tpp-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .tpp-grid-3,
  .tpp-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.tpp-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .tpp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tpp-grid-4 {
    grid-template-columns: 1fr;
  }
}

.tpp-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .tpp-grid-2 {
    grid-template-columns: 1fr;
  }
}

.tpp-card {
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tpp-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.tpp-card-thumb {
  aspect-ratio: 16 / 10;
  height: 185px;
  max-height: 185px;
  width: 100%;
  background: #F1F5F9;
  position: relative;
  overflow: hidden;
  display: block;
}

.tpp-card-thumb img {
  width: 100%;
  height: 100%;
  max-height: 185px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.tpp-card:hover .tpp-card-thumb img {
  transform: scale(1.03);
}

.tpp-card-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.tpp-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tpp-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tpp-muted);
  margin-bottom: 8px;
}

.tpp-card-title {
  font-family: var(--tpp-font-serif);
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tpp-dark);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpp-card-title a {
  color: var(--tpp-dark);
}

.tpp-card-title a:hover {
  color: var(--tpp-forest);
}

.tpp-card-excerpt {
  font-size: 13.5px;
  color: var(--tpp-body);
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpp-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--tpp-forest);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tpp-card-link:hover {
  gap: 7px;
}

/* Ad spaces completely removed from the entire website */
.tpp-ad-slot,
.tpp-ad-wrapper,
.tpp-ad-placeholder,
.tpp-ad-label {
  display: none !important;
}

/* 7. PET TOOLS HUB (DESIGNED FOR 18-19 TOOLS) */
.tpp-tools-hub {
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  padding: 32px 32px 36px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}

.tpp-tools-hub {
  background: var(--tpp-cream);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-lg);
  padding: 44px 36px 40px;
  margin: 56px auto;
}

@media (max-width: 768px) {
  .tpp-tools-hub {
    padding: 28px 18px 24px;
    margin: 36px auto;
  }
}

.tpp-tools-hub-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.tpp-tools-hub-header h2 {
  font-family: var(--tpp-font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--tpp-dark);
  margin: 0 0 10px;
  line-height: 1.25;
}

.tpp-tools-hub-header p {
  font-size: 15px;
  color: var(--tpp-muted);
  line-height: 1.55;
  margin: 0;
}

.tpp-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .tpp-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tpp-tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Tool Card Base */
.tpp-tool-card {
  background: #FFFFFF;
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

/* Coming Soon Tool Card: Strictly NON-CLICKABLE, default cursor, no misleading hover */
.tpp-tool-status-coming-soon {
  cursor: default;
}

.tpp-tool-status-coming-soon:hover {
  border-color: var(--tpp-border);
  box-shadow: var(--shadow-sm);
  transform: none;
}

/* Published Tool Card: Interactive crawlable destination */
.tpp-tool-status-published {
  cursor: pointer;
}

.tpp-tool-status-published:hover {
  border-color: var(--tpp-forest);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.tpp-tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tpp-tool-ico-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: #F4F6F4;
  color: var(--tpp-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}

.tpp-tool-ico-box svg {
  width: 20px;
  height: 20px;
}

/* Restrained Status Badges */
.tpp-tool-badge-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.2;
}

.tpp-status-soon {
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.tpp-status-live {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.tpp-status-maint {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.tpp-tool-kicker {
  font-size: 11px;
  font-weight: 700;
  color: var(--tpp-muted);
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.tpp-tool-name {
  font-family: var(--tpp-font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--tpp-dark);
  line-height: 1.35;
  margin: 0 0 8px;
}

.tpp-tool-title-link {
  color: var(--tpp-dark);
  text-decoration: none;
}

.tpp-tool-title-link:hover {
  color: var(--tpp-forest);
  text-decoration: underline;
}

.tpp-tool-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}

.tpp-tool-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--tpp-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tpp-tool-note {
  font-size: 12px;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.tpp-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94A3B8;
  display: inline-block;
}

.tpp-tool-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--tpp-forest);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.tpp-tool-cta:hover {
  text-decoration: underline;
  gap: 7px;
}

.tpp-tools-disclaimer {
  background: #FFFFFF;
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 12.5px;
  color: var(--tpp-muted);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 20px;
}

.tpp-tools-hub-action {
  text-align: center;
  padding-top: 6px;
}

.tpp-tools-dir-note {
  font-size: 13px;
  color: var(--tpp-muted);
  font-style: italic;
}

.tpp-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1.5px solid var(--tpp-forest);
  color: var(--tpp-forest);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  transition: all 0.15s ease;
}

.tpp-btn-outline:hover {
  background: var(--tpp-forest);
  color: #FFFFFF;
}

/* 8. TRUST & EDITORIAL TRANSPARENCY SECTION */
.tpp-trust-section {
  background: var(--tpp-surface);
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-md);
  padding: 32px 32px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}

.tpp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.tpp-trust-pillar {
  display: flex;
  gap: 14px;
}

.tpp-trust-ico {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--tpp-forest-soft);
  color: var(--tpp-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tpp-trust-ico svg {
  width: 20px;
  height: 20px;
}

.tpp-trust-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--tpp-dark);
  margin: 0 0 4px;
}

.tpp-trust-info p {
  font-size: 13px;
  color: var(--tpp-muted);
  line-height: 1.5;
  margin: 0;
}

.tpp-medical-disclaimer-box {
  background: var(--tpp-cream);
  border-left: 3px solid var(--tpp-forest);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px;
  color: var(--tpp-body);
  line-height: 1.55;
  margin-bottom: 20px;
}

.tpp-trust-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--tpp-forest);
}

.tpp-trust-links a:hover {
  text-decoration: underline;
}

/* 9. STRUCTURED 5-COLUMN FOOTER */
.tpp-footer {
  background: var(--tpp-forest-dark);
  color: #D1D5DB;
  padding: 56px 0 32px;
  border-top: 1px solid #1E3A31;
}

.tpp-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.tpp-footer-brand-title {
  font-family: var(--tpp-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 10px;
}

.tpp-footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #9CA3AF;
  margin: 0 0 16px;
  max-width: 320px;
}

.tpp-footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  margin: 0 0 14px;
}

.tpp-footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tpp-footer-nav li {
  margin-bottom: 8px;
}

.tpp-footer-nav a {
  font-size: 13.5px;
  color: #9CA3AF;
  transition: color 0.15s ease;
}

.tpp-footer-nav a:hover {
  color: #FFFFFF;
}

.tpp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #6B7280;
  flex-wrap: wrap;
  gap: 16px;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .tpp-discovery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tpp-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpp-footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tpp-footer-brand-col {
    grid-column: span 3;
  }
}

@media (max-width: 860px) {
  .tpp-nav-desktop {
    display: none;
  }

  .tpp-search-btn {
    display: inline-flex;
    padding: 8px 10px;
  }

  .tpp-search-btn span {
    display: none;
  }
  
  .tpp-menu-toggle {
    display: block;
  }
  
  .tpp-hero-card {
    flex-direction: column;
    max-height: none;
  }
  
  .tpp-hero-media {
    flex: 0 0 240px;
    height: 240px;
  }
  
  .tpp-hero-content {
    flex: 1 1 auto;
    padding: 24px;
  }
  
  .tpp-health-layout {
    grid-template-columns: 1fr;
  }

  .tpp-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpp-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tpp-trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tpp-discovery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tpp-grid-3,
  .tpp-grid-4,
  .tpp-grid-2,
  .tpp-tools-grid {
    grid-template-columns: 1fr;
  }
  
  .tpp-hero-title {
    font-size: 24px;
  }
  
  .tpp-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .tpp-footer-brand-col {
    grid-column: span 1;
  }
  
  .tpp-tools-hub {
    padding: 20px 16px;
  }
}

@media (max-width: 380px) {
  .tpp-discovery-grid {
    grid-template-columns: 1fr;
  }

  .tpp-hero-media {
    flex: 0 0 200px;
    height: 200px;
  }
}

/* Global Comments / Leave a Reply Styling & Protection */
#comments,
.comments-area,
.tpp-comments-section {
  max-width: 820px;
  margin: 40px auto 60px;
  width: 100%;
  clear: both;
}

#respond,
.comment-respond {
  background: #FFFFFF;
  border: 1px solid var(--tpp-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  box-sizing: border-box;
}

.tpp-comments-box #respond,
.tpp-comments-box .comment-respond {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

#commentform textarea,
#respond textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  min-height: 120px !important;
  padding: 12px 16px !important;
  background: #FAF8F5 !important;
  border: 1.5px solid var(--tpp-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--tpp-font-sans) !important;
  font-size: 14.5px !important;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"] {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 11px 14px !important;
  background: #FAF8F5 !important;
  border: 1.5px solid var(--tpp-border) !important;
  border-radius: var(--radius-sm) !important;
  font-family: var(--tpp-font-sans) !important;
  font-size: 14.5px !important;
}

#commentform input[type="submit"],
#respond input[type="submit"],
#respond #submit {
  background: var(--tpp-forest) !important;
  color: #FFFFFF !important;
  font-family: var(--tpp-font-sans) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 12px 30px !important;
  border-radius: var(--radius-full) !important;
  border: none !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 10px rgba(26, 77, 46, 0.22) !important;
  transition: all 0.2s ease !important;
}

#commentform input[type="submit"]:hover,
#respond input[type="submit"]:hover,
#respond #submit:hover {
  background: var(--tpp-forest-dark) !important;
  transform: translateY(-2px) !important;
}

/* ==========================================================================
   404 ERROR PAGE & SEARCH FORM STYLES
   ========================================================================== */
.tpp-error-404-card {
  transition: box-shadow 0.3s ease;
}

/* Custom Search Form Styling */
.tpp-search-form {
  position: relative;
  width: 100%;
}

.tpp-search-form-inner {
  display: flex;
  align-items: center;
  background: #FAF8F5;
  border: 1.5px solid var(--tpp-border, #E5E2D9);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  transition: all 0.2s ease;
}

.tpp-search-form-inner:focus-within {
  border-color: var(--tpp-forest, #0D3B2E);
  background: #FFFFFF;
  box-shadow: 0 0 0 3.5px rgba(13, 59, 46, 0.12);
}

.tpp-search-form-icon {
  flex-shrink: 0;
  color: #9CA3AF;
  margin-right: 10px;
}

.tpp-search-form-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-family: var(--tpp-font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 14.5px !important;
  color: var(--tpp-dark, #111827) !important;
  padding: 9px 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.tpp-search-form-input::placeholder {
  color: #9CA3AF;
}

.tpp-search-form-submit {
  flex-shrink: 0;
  background: var(--tpp-forest, #0D3B2E) !important;
  color: #FFFFFF !important;
  font-family: var(--tpp-font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(13, 59, 46, 0.2) !important;
  transition: all 0.2s ease !important;
}

.tpp-search-form-submit:hover {
  background: var(--tpp-forest-dark, #08261E) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(13, 59, 46, 0.28) !important;
}

/* 404 Action Button Group */
.tpp-404-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tpp-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--tpp-font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.2;
}

.tpp-404-btn-home {
  background: var(--tpp-forest, #0D3B2E) !important;
  color: #FFFFFF !important;
  border: 1.5px solid var(--tpp-forest, #0D3B2E) !important;
  box-shadow: 0 2px 6px rgba(13, 59, 46, 0.2) !important;
}

.tpp-404-btn-home:hover {
  background: var(--tpp-forest-dark, #08261E) !important;
  border-color: var(--tpp-forest-dark, #08261E) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 14px rgba(13, 59, 46, 0.3) !important;
}

.tpp-404-btn-dog {
  background: #FFFBEB !important;
  color: #92400E !important;
  border: 1.5px solid #FDE68A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.tpp-404-btn-dog:hover {
  background: #FEF3C7 !important;
  border-color: #F59E0B !important;
  color: #78350F !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

.tpp-404-btn-cat {
  background: #F0FDF4 !important;
  color: #166534 !important;
  border: 1.5px solid #BBF7D0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.tpp-404-btn-cat:hover {
  background: #DCFCE7 !important;
  border-color: #22C55E !important;
  color: #14532D !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2) !important;
}

@media (max-width: 600px) {
  .tpp-error-404-card {
    padding: 38px 20px !important;
    margin: 30px auto !important;
  }
  .tpp-404-btn-group {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .tpp-404-btn {
    width: 100% !important;
    padding: 13px 20px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   CATEGORY & ARCHIVE PAGINATION STYLING
   ========================================================================== */
.tpp-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 48px 0;
  width: 100%;
}

.tpp-pagination .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.tpp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm, 8px);
  background: var(--tpp-surface, #FFFFFF);
  border: 1.5px solid var(--tpp-border, #E5E2D9);
  color: var(--tpp-dark, #111827);
  font-family: var(--tpp-font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.tpp-pagination .page-numbers:hover {
  border-color: var(--tpp-forest, #0D3B2E);
  color: var(--tpp-forest, #0D3B2E);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 59, 46, 0.12);
}

.tpp-pagination .page-numbers.current {
  background: var(--tpp-forest, #0D3B2E) !important;
  color: #FFFFFF !important;
  border-color: var(--tpp-forest, #0D3B2E) !important;
  box-shadow: 0 3px 8px rgba(13, 59, 46, 0.28) !important;
}

.tpp-pagination .page-numbers.dots {
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--tpp-muted, #6B7280);
}

/* ==========================================================================
   EXPANDABLE HEADER SEARCH DRAWER
   ========================================================================== */
.tpp-search-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 2px solid #1A4D2E;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  animation: tppDrawerSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tppDrawerSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tpp-search-drawer-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 24px 24px;
}

.tpp-search-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tpp-search-drawer-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #1A4D2E;
  background: #EAF3ED;
  padding: 4px 12px;
  border-radius: 999px;
}

.tpp-search-drawer-close {
  background: #F3F4F6;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #6B7280;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.tpp-search-drawer-close:hover {
  background: #E5E7EB;
  color: #111827;
}

.tpp-search-bar-wrap {
  display: flex;
  align-items: center;
  background: #F9F9F7;
  border: 2px solid #1A4D2E;
  border-radius: 12px;
  padding: 5px 6px 5px 16px;
  box-shadow: 0 4px 14px rgba(26, 77, 46, 0.08);
  gap: 10px;
}

.tpp-search-bar-wrap svg {
  color: #1A4D2E;
  flex-shrink: 0;
}

.tpp-search-bar-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-family: var(--tpp-font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 16px !important;
  color: #111827 !important;
  padding: 8px 0 !important;
  outline: none !important;
  box-shadow: none !important;
  width: 100%;
}

.tpp-search-bar-input::placeholder {
  color: #9CA3AF;
  font-size: 14.5px;
}

.tpp-search-bar-btn {
  background: #1A4D2E !important;
  color: #FFFFFF !important;
  font-family: var(--tpp-font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer !important;
  flex-shrink: 0;
  transition: all 0.2s ease !important;
}

.tpp-search-bar-btn:hover {
  background: #143D24 !important;
}

.tpp-search-drawer-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tpp-search-drawer-pills-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #6B7280;
}

.tpp-search-pill {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  background: #F3F4F6;
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.tpp-search-pill:hover {
  background: #1A4D2E;
  color: #FFFFFF;
}

.tpp-search-btn.is-active {
  background: #1A4D2E !important;
  color: #FFFFFF !important;
  border-color: #1A4D2E !important;
}

@media (max-width: 600px) {
  .tpp-search-drawer-inner {
    padding: 16px;
  }
  .tpp-search-bar-wrap {
    padding: 4px 4px 4px 12px;
  }
  .tpp-search-bar-input {
    font-size: 14px !important;
  }
  .tpp-search-bar-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }
}


