/* Diary breadcrumb navigation */
.diary-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1.5rem 0;
  background: linear-gradient(135deg, #f0f7f0, #e8f5e9);
  border-radius: 8px;
  border-left: 4px solid #2c7a4b;
  font-size: 0.9rem;
}

.breadcrumb-link {
  color: #2c7a4b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #1b5e30;
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #999;
  font-weight: 300;
  font-size: 1.1rem;
}

.breadcrumb-current {
  color: #666;
  font-weight: 400;
}

/* Back to diary button (bottom) */
.diary-back-bottom {
  text-align: center;
  margin: 2rem 0 1rem 0;
}

.btn-back-diary {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #2c7a4b, #3d9b63);
  color: #fff !important;
  border-radius: 25px;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(44, 122, 75, 0.3);
}

.btn-back-diary:hover {
  background: linear-gradient(135deg, #1b5e30, #2c7a4b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 122, 75, 0.4);
  color: #fff !important;
}

/* Integrated Footer Styles - Ultimate Premium Version */
footer.site-footer {
  margin-top: 5rem;
  border-top: 5px solid #2e7d32 !important; /* Safari Green */
  border-bottom-left-radius: 20px !important;
  border-bottom-right-radius: 20px !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 5rem 1rem 4.5rem 1rem !important;
  background-color: #1a1a1a !important; /* Dark fallback */
}

/* Single Pseudo-element for BOTH Image & Overlay (No leaks possible) */
footer.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Stack: Gradient on top, Image on bottom */
  background: linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85)), var(--footer-bg);
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  z-index: 1;
}

footer.site-footer .container-md {
  position: relative !important;
  z-index: 10 !important;
}

footer.site-footer .copyright, 
footer.site-footer .theme-by {
  color: rgba(255, 255, 255, 0.95) !important;
  margin: 0.6rem 0 !important;
  text-align: center !important;
  opacity: 1 !important;
}

footer.site-footer .copyright {
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em !important;
}

footer.site-footer .theme-by {
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
}

footer.site-footer a {
  color: #a5d6a7 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border-bottom: 1.5px dashed rgba(165, 214, 167, 0.6) !important;
  transition: all 0.3s ease !important;
  display: inline-block !important; /* Ensure border-bottom shows well */
}

footer.site-footer a:hover {
  color: #ffffff !important;
  border-bottom: 1.5px solid #ffffff !important;
  text-shadow: 0 0 15px rgba(255,255,255,0.6) !important;
}

.beautiful-jekyll-footer {
  padding: 0 !important;
}

/* Remove any theme pseudo-elements that might blink or strip */
footer::after { display: none !important; }