:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --accent: #2563eb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --safe: #16a34a;
  --safe-light: #f0fdf4;
  --safe-border: #bbf7d0;
  --star-gold: #f59e0b;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  width: 100%;
}

.nav-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.brand-sub-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-left: 0.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid #cbd5e1;
  display: inline-block;
}

/* CENTERED MENU LINKS */
.nav-links-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.35rem 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: #059669;
  font-weight: 700;
}

/* RIGHT ACTION BUTTON */
.nav-right-action {
  flex-shrink: 0;
}

.nav-action-btn {
  background-color: #059669;
  color: #ffffff !important;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.nav-action-btn:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .nav-links-center {
    gap: 0.9rem;
  }
  .nav-link {
    font-size: 0.88rem;
  }
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 100%);
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  border: 1px solid var(--primary-border);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
}

/* SEARCH BAR */
.search-wrapper {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.2);
  transition: all 0.2s ease;
}

.search-box:focus-within {
  box-shadow: 0 12px 30px -4px rgba(16, 185, 129, 0.3);
  transform: translateY(-2px);
}

.search-icon {
  padding-left: 1.25rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 0.75rem;
  font-size: 1.1rem;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  color: #0f172a;
}

.search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 380px;
  overflow-y: auto;
  z-index: 50;
  display: none;
  text-align: left;
}

.search-dropdown.active {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-light);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dropdown-icon {
  font-size: 1.5rem;
}

.dropdown-name {
  font-weight: 700;
  color: #0f172a;
}

.dropdown-cat {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* SAFETY BADGES */
.badge-safe {
  background-color: var(--safe-light);
  color: var(--safe);
  border: 1px solid var(--safe-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-caution {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-toxic, .badge-lethal {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* CATEGORY PILLS */
.category-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.category-pill {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.category-pill:hover, .category-pill.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* MAIN CONTENT CONTAINER */
.main-layout {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* SECTION TITLES */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* FOOD CARDS GRID */
.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.food-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.food-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.food-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.food-card-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.food-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.food-card-verdict {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-card-rating {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.75rem;
}

.stars {
  color: var(--star-gold);
}

.food-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-guide-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.view-guide-btn:hover {
  text-decoration: underline;
}

/* SIDEBAR WIDGETS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tool-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tool-link-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  border: 1px solid #f1f5f9;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
  transition: all 0.15s ease;
}

.tool-link-item:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateX(3px);
}

.tool-link-icon {
  font-size: 1.25rem;
}

/* VETERINARY ADVISORY CALLOUT */
.vet-callout {
  background: #ecfdf5;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #065f46;
}

.vet-callout strong {
  color: #047857;
}

/* EMERGENCY BANNER */
.emergency-banner {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.emergency-title {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.emergency-desc {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.emergency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: #dc2626;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* DETAIL PAGE STYLING */
.article-header {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumb-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb-trail a:hover {
  color: var(--primary);
}

.article-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-rating-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.rating-score {
  font-weight: 800;
  color: #0f172a;
}

.review-count-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

/* PORTION CHART TABLE */
.portion-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.portion-table th, .portion-table td {
  padding: 0.85rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.portion-table th {
  background-color: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.portion-table tr:last-child td {
  border-bottom: none;
}

/* REVIEW BOX & FORM */
.reviews-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1rem;
}

.review-form-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.form-input, .form-select, .form-textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  background: white;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.star-rating-picker {
  display: flex;
  gap: 0.35rem;
  font-size: 1.75rem;
  cursor: pointer;
}

.star-rating-picker span {
  color: #cbd5e1;
  transition: color 0.1s ease;
}

.star-rating-picker span.active {
  color: var(--star-gold);
}

.submit-review-btn {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s ease;
}

.submit-review-btn:hover {
  background: var(--primary-hover);
}

/* REVIEW ITEM CARD */
.review-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 1.25rem 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

.verified-pill {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.pet-tag {
  display: inline-block;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.review-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.helpful-btn {
  background: none;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.15s ease;
}

.helpful-btn:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* CALCULATOR INTERFACE */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.calc-result-box {
  background: #f8fafc;
  border: 2px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.calc-big-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* FOOTER */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 1.25rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-title {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-heading {
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   VETERINARY BLOG SYSTEM STYLES
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.blog-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.blog-category-badge {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  font-size: 0.85rem;
}

.blog-author-info {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #1e293b;
}

.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

.blog-article-body h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.4rem;
}

.blog-article-body p {
  margin-bottom: 1.25rem;
}

.blog-article-body ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.blog-article-body li {
  margin-bottom: 0.5rem;
}

.blog-article-body strong {
  color: #0f172a;
}


/* =============================================================
   HOMEPAGE COMMUNITY REVIEWS & BLOG DISCUSSIONS SECTION (ABOVE FOOTER)
   ============================================================= */
.home-reviews-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 4rem 1.5rem;
  margin-top: 2rem;
  width: 100%;
}

.home-reviews-container {
  max-width: 1350px;
  margin: 0 auto;
}

.home-reviews-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.reviews-badge {
  display: inline-block;
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
}

.home-reviews-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
}

.home-reviews-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0 auto;
}

.reviews-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.review-filter-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.review-filter-btn:hover {
  border-color: #059669;
  color: #059669;
  background: #f0fdf4;
}

.review-filter-btn.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}

.home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.home-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.home-review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

.home-review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-stars-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-date-tag {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.review-type-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-blog {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-food {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.home-review-body {
  flex: 1;
  margin-bottom: 1.25rem;
}

.home-review-text {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.home-review-author-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.author-info {
  flex: 1;
  overflow: hidden;
}

.author-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.author-name {
  font-size: 0.95rem;
  color: #0f172a;
}

.verified-parent-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.author-pet-details {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-review-source-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.source-label {
  color: #64748b;
  font-weight: 600;
  flex-shrink: 0;
}

.source-link {
  color: #059669;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-link:hover {
  text-decoration: underline;
  color: #047857;
}

.home-reviews-cta {
  margin-top: 3rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cta-content h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.cta-content p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.cta-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.primary-cta {
  background: #059669;
  color: #ffffff;
}

.primary-cta:hover {
  background: #047857;
  color: #ffffff;
}

.secondary-cta {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.secondary-cta:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

@media (max-width: 768px) {
  .home-reviews-grid {
    grid-template-columns: 1fr;
  }
  .home-reviews-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =============================================================
   MASTER MOBILE VIEWPORT OPTIMIZATIONS (APP-LIKE NATIVE FEEL)
   ============================================================= */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 850px) {
  /* NAVBAR */
  .navbar {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-container {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 0.4rem 0.75rem !important;
    padding: 0.5rem 1rem 0.35rem !important;
  }

  .brand-logo {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 1.15rem !important;
    gap: 0.35rem !important;
  }

  .brand-icon-img {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-sub-badge {
    font-size: 0.68rem !important;
    padding-left: 0.35rem !important;
    margin-left: 0.2rem !important;
  }

  .nav-right-action {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    justify-content: flex-end !important;
  }

  .nav-action-btn {
    padding: 0.35rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  /* ROW 2: Mobile Horizontal Scrollable Pill Tabs */
  .nav-links-center {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    gap: 0.5rem !important;
    padding: 0.35rem 0 0.35rem 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    width: 100% !important;
  }
  .nav-links-center::-webkit-scrollbar {
    display: none !important;
  }

  .nav-links-center li {
    flex-shrink: 0 !important;
    list-style: none !important;
  }

  .nav-link {
    font-size: 0.8rem !important;
    padding: 0.32rem 0.75rem !important;
    border-radius: 9999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    text-decoration: none !important;
    display: inline-block !important;
  }

  .nav-link.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    font-weight: 700 !important;
  }

  /* HERO SECTION */
  .hero-section {
    padding: 2rem 1rem 1.75rem !important;
  }

  .hero-badge {
    font-size: 0.75rem !important;
    padding: 0.35rem 0.75rem !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.22 !important;
    margin-bottom: 0.6rem !important;
  }

  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    padding: 0 0.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .search-input {
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem 0.75rem 2.6rem !important;
  }

  /* CATEGORY PILLS: APP-STYLE HORIZONTAL SWIPE */
  .category-bar {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    padding: 0.5rem 0.25rem !important;
    margin: 1rem -0.5rem 0 !important;
    scrollbar-width: none !important;
    justify-content: flex-start !important;
  }
  .category-bar::-webkit-scrollbar {
    display: none !important;
  }

  .category-pill {
    flex-shrink: 0 !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  /* MAIN LAYOUT & CARDS */
  .main-layout {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .section-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.25rem !important;
    margin-bottom: 1rem !important;
  }

  .section-title {
    font-size: 1.35rem !important;
  }

  .food-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* REVIEWS SECTION MOBILE */
  .home-reviews-section {
    padding: 2.75rem 1rem !important;
    margin-top: 1rem !important;
  }

  .home-reviews-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  .home-reviews-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
  }

  .reviews-filter-bar {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    padding: 0.25rem 0.25rem 0.5rem !important;
    margin-bottom: 1.5rem !important;
    scrollbar-width: none !important;
  }
  .reviews-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .review-filter-btn {
    flex-shrink: 0 !important;
    padding: 0.45rem 0.85rem !important;
    font-size: 0.82rem !important;
  }

  .home-reviews-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  .home-review-card {
    padding: 1.25rem !important;
  }

  .home-reviews-cta {
    padding: 1.25rem !important;
    gap: 1rem !important;
  }

  .cta-actions {
    width: 100% !important;
    flex-direction: column !important;
  }

  .cta-btn {
    width: 100% !important;
    text-align: center !important;
  }
}
