/* All existing CSS from the first blog post remains the same */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #27ae60; /* Natural green */
  --secondary: #2c3e50; /* Keep dark blue */
  --accent: #e67e22; /* Warm accent */
  --pet-primary: #27ae60;
  --pet-secondary: #219653;
  --deal-color: #e74c3c;
  --bestseller-color: #f39c12;
  --light: #ecf0f1;
  --dark: #171a1d;
  --success: #27ae60;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Breadcrumb Styles */
.breadcrumb-section {
  background-color: #f8f9fa;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  display: inline-block;
  padding: 0 0.5rem;
  color: #6c757d;
}

.breadcrumb-item a {
  color: var(--pet-primary);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-item a:hover {
  color: var(--pet-secondary);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
}

/* Header Styles */
header {
  background: #1a252f;
  color: white;
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Add to existing .logo styles */
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 5px;
  transition: transform 0.3s ease;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover i {
  transform: rotate(15deg);
  color: var(--primary);
}

.logo i {
  font-size: 2rem;
  color: white;
  transition: all 0.3s ease;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

nav a:hover {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: white;
}

/* Hero Section */
.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1778062863085-83d721181d7c?q=80&w=1160&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  box-sizing: border-box;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin: 0 auto 2.5rem;
  max-width: 700px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.5;
}

.hero .btn {
  display: inline-block;
  background-color: #27ae60;
  color: white;
  padding: 14px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.hero .btn:hover {
  background-color: #219653;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.hero-credit {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 1;
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
    min-height: 50vh;
    background-attachment: scroll;
  }
  .hero h2 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }
  .hero .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
  .hero-content {
    padding: 1.5rem;
    margin: 0 15px;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.7rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .hero .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  .hero-content {
    padding: 1.2rem;
  }
}

/* Main Content Layout with Sidebar */
.main-content {
  display: flex;
  gap: 30px;
  margin: 3rem auto;
  position: relative;
}

.content-area {
  flex: 1;
}

.sidebar {
  width: 350px;
  flex-shrink: 0;
}

/* NEW: Sticky Recent Posts Only */
.sticky-recent-posts {
  position: sticky;
  top: 70px; /* Adjust based on your header height */
  transition: all 0.3s ease;
}

/* Blog Post Content */
.blog-post-container {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-post-header {
  padding: 2rem;
  border-bottom: 1px solid #eee;
}

.blog-post-category {
  display: inline-block;
  background-color: var(--pet-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* This is the ONLY H1 on the page for SEO */
.blog-post-title {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-post-meta {
  display: flex;
  gap: 20px;
  color: #888;
  font-size: 0.9rem;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-post-content {
  padding: 2rem;
}

/* NEW: Collapsible Table of Contents Styles */
.toc-container {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 0;
  margin: 2rem 0;
  border-left: 4px solid var(--pet-primary);
  overflow: hidden;
  transition: all 0.3s ease;
}

.toc-header {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  transition: background-color 0.3s;
}

.toc-header:hover {
  background-color: #e9ecef;
}

.toc-title {
  font-size: 1.3rem;
  color: var(--secondary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toc-title i {
  color: var(--pet-primary);
}

.toc-toggle {
  color: var(--pet-primary);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.toc-container.active .toc-toggle {
  transform: rotate(180deg);
}

.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 25px;
}

.toc-container.active .toc-content {
  max-height: 1000px;
  padding: 0 25px 25px;
}

.toc-list {
  list-style-type: none;
  padding-left: 0;
}

.toc-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.toc-list li:before {
  content: "•";
  color: var(--pet-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.toc-list a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.toc-list a:hover {
  color: var(--pet-primary);
  text-decoration: underline;
}

.toc-list a.active {
  color: var(--pet-primary);
  font-weight: bold;
}

.toc-sublist {
  list-style-type: none;
  padding-left: 20px;
  margin-top: 8px;
}

.toc-sublist li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.toc-sublist li:before {
  content: "–";
  color: var(--pet-primary);
}

.blog-post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-post-content h2 {
  font-size: 1.8rem;
  color: var(--secondary);
  margin: 2rem 0 1rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.blog-post-content h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 1.5rem 0 0.8rem;
}

.blog-post-content p {
  margin-bottom: 1.2rem;
  line-height: 1.7;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Communication Signal Styles */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin: 2rem 0;
}

.signal-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eee;
}

.signal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.signal-header {
  padding: 20px;
  background: #f0f7f4;
  border-bottom: 1px solid #e0e0e0;
}

.signal-title {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-title i {
  color: var(--pet-primary);
}

.signal-description {
  padding: 20px;
  flex-grow: 1;
}

.signal-description p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.signal-examples {
  background: #f9f9f9;
  padding: 15px;
  border-top: 1px solid #eee;
}

.signal-examples h4 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1rem;
}

.signal-examples ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.signal-examples li {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.tip-box {
  background-color: #f8f9fa;
  border-left: 4px solid var(--pet-primary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.tip-box h4 {
  color: var(--pet-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-box {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.warning-box h4 {
  color: #856404;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-post-footer {
  padding: 2rem;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.tag {
  background-color: #e9ecef;
  color: #495057;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.author-bio {
  display: flex;
  gap: 15px;
  align-items: center;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--pet-primary);
}

.author-info h4 {
  margin-bottom: 5px;
  color: var(--secondary);
}

.author-info p {
  color: #666;
  font-size: 0.9rem;
}

/* Sidebar Styles */
.sidebar-widget {
  background: white;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-title i {
  color: var(--pet-primary);
}

/* Search Widget */
.search-form {
  display: flex;
  margin-bottom: 0;
}

.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 30px 0 0 30px;
  font-size: 1rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--pet-primary);
}

.search-button {
  background: var(--pet-primary);
  color: white;
  border: none;
  padding: 0 20px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-button:hover {
  background: var(--pet-secondary);
}

/* About Widget */
.about-widget img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  height: 200px;
  object-fit: cover;
}
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.about-widget p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.about-read-more {
  display: inline-block;
  color: var(--pet-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.about-read-more:hover {
  text-decoration: underline;
  transform: translateX(5px);
}

/* Recent Posts Widget */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.recent-post-item {
  display: flex;
  gap: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.recent-post-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.recent-post-item:hover .recent-post-img img {
  transform: scale(1.1);
}

.recent-post-content {
  flex: 1;
}

.recent-post-title {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.recent-post-title a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.recent-post-title a:hover {
  color: var(--pet-primary);
}

.recent-post-date {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Google AdSense Ad Container */
.ad-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 25px 0;
  text-align: center;
  border: 1px dashed #ddd;
}

.ad-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.ad-placeholder {
  background: #e9ecef;
  padding: 40px 20px;
  border-radius: 5px;
  color: #6c757d;
  font-size: 0.9rem;
}

a {
  color: #27ae60;
  text-decoration: none;
  transition: color 0.3s;
}

/* FAQ Section */
.faq-section {
  margin: 4rem 0;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.faq-title {
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-title i {
  color: var(--pet-primary);
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
}

.faq-item {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.faq-item.active {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--pet-primary);
}

.faq-question {
  padding: 18px 20px;
  background: #f0f7f4;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  font-size: 1.1rem;
  color: var(--secondary);
  margin: 0;
  flex: 1;
}

.faq-toggle {
  color: var(--pet-primary);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.faq-answer a {
  color: var(--pet-primary);
  text-decoration: none;
  font-weight: 500;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Recommended Products Section */
.products-section {
  margin: 4rem 0;
  width: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
  width: 100%;
}

.section-title {
  font-size: 1.8rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--pet-primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--pet-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--secondary);
  line-height: 1.4;
  flex-grow: 0;
}

.product-description {
  margin-bottom: 20px;
  color: #666;
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.9rem;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  color: var(--pet-primary);
  font-weight: 700;
  margin-bottom: 15px;
  flex-grow: 0;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ffc107;
  margin-bottom: 15px;
}

.product-rating span {
  color: #666;
  font-size: 0.85rem;
}

.product-link {
  background-color: var(--pet-primary);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.product-link:hover {
  background-color: var(--pet-secondary);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 10px;
  text-align: center;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--pet-primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
  text-align: center;
}

.footer-column a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--pet-primary);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: white;
  transform: translateY(-5px);
}

.social-links a:hover i {
  color: #27ae60;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--pet-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  z-index: 1000;
}

.scroll-to-top:hover {
  background-color: var(--pet-secondary);
  transform: translateY(-3px);
}

/* Image credit styles */
.image-credit {
  text-align: right;
  font-size: 0.8rem;
  color: #888;
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-credit {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(0, 0, 0, 0.3);
  padding: 3px 8px;
  border-radius: 3px;
}

.product-image-credit {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 5px;
  border-radius: 3px;
}

.author-credit {
  text-align: center;
  font-size: 0.7rem;
  color: #888;
  margin-top: 5px;
}

/* Search highlighting */
mark {
  background-color: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
}

/* Loading state */
.toc-content.loading {
  position: relative;
}

.toc-content.loading:after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--pet-primary);
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .blog-post-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .blog-post-content h2 {
    font-size: 1.4rem;
  }

  .blog-post-content h3 {
    font-size: 1.2rem;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .faq-question h3 {
    font-size: 1rem;
    padding-right: 30px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  /* Improved touch targets for mobile */
  .toc-header,
  .faq-question {
    min-height: 60px;
    padding: 15px 20px;
  }

  .btn,
  .product-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Better mobile navigation */
  nav ul {
    padding: 1rem 0;
    gap: 0.25rem;
    background: #1a252f; /* Added mobile nav background color */
  }

  nav ul li {
    margin: 0;
  }

  nav ul a {
    padding: 12px 20px;
    display: block;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .blog-post-header,
  .blog-post-content {
    padding: 1.5rem;
  }

  .blog-post-image {
    height: 250px;
    margin: 1.5rem 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  /* Improved breadcrumb for mobile */
  .breadcrumb {
    font-size: 0.85rem;
  }

  .breadcrumb-item a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .faq-container {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-content {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  /* Disable sticky recent posts on tablets and mobile */
  .sticky-recent-posts {
    position: relative;
    top: 0;
  }

  /* Tablet navigation background color */
  nav ul {
    background: #1a252f; /* Added tablet nav background color */
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a252f; /* Changed to requested color */
    padding: 1rem;
    box-shadow: var(--shadow);
    z-index: 100;
  }

  nav ul.show {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .blog-post-title {
    font-size: 1.8rem;
  }

  .blog-post-image {
    height: 300px;
  }

  /* Products grid shows 2 products per row on tablets */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-credit {
    font-size: 0.7rem;
    bottom: 5px;
    right: 5px;
  }

  /* Tablet fixes */
  .sidebar-widget {
    padding: 20px;
  }

  .recent-post-item {
    flex-direction: column;
    gap: 10px;
  }

  .recent-post-img {
    width: 100%;
    height: 150px;
  }

  .about-widget img {
    height: 180px;
  }

  .toc-header {
    padding: 15px 20px;
  }

  .toc-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .blog-post-title {
    font-size: 1.6rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.3rem;
  }

  .blog-post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .sidebar-widget {
    padding: 15px;
  }

  .widget-title {
    font-size: 1.2rem;
  }

  .about-widget img {
    height: 150px;
  }

  .recent-post-img {
    height: 120px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .social-links {
    gap: 10px;
  }

  .social-links a {
    width: 35px;
    height: 35px;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  /* Products grid shows 1 product per row on mobile */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Breadcrumb responsive styles */
  .breadcrumb-item a {
    font-size: 0.9rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.3rem;
  }

  .toc-header {
    padding: 12px 15px;
  }

  .toc-title {
    font-size: 1.1rem;
  }
}
