/* blog-home.css
   Blog layout styles with Bootstrap 3
   Notes:
   - Adjust colors/spacing as you like
   - This file loads after bootstrap.min.css
*/
.navbar-inverse {
  background-color: #000;
  border-color: #101a33;
}
.navbar-inverse .navbar-brand,
.navbar-inverse .navbar-nav > li > a {
  color: #ffffff;
}
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-nav > li > a:hover {
  color: #ffdd57;
}

/* ===== Page layout tweaks + sticky footer ===== */
html, body { height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 70px; /* offset for fixed navbar */
}
.container.site-content {  /* Applied in header.php to stretch the layout */
  flex: 1 0 auto;
}
.site-footer {
  flex-shrink: 0;
}

/* General spacing */
.section {
  margin-bottom: 30px;
}

/* Page header */
.page-header {
  border-bottom: 1px solid #eee;
  margin-top: 0;
  margin-bottom: 25px;
}

/* Post preview cards */
.post-preview {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 20px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.post-preview:hover {
  border-color: #ddd;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.post-preview h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.4;
}
.post-meta {
  color: #888;
  font-size: 12px;
  margin-bottom: 10px;
}
.post-preview .post-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 10px 0 15px;
}
.post-preview .read-more {
  margin-top: 10px;
}

/* Sidebar */
.sidebar .well {
  border-radius: 6px;
}
.sidebar h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Search form */
.search-box input[type="text"] {
  height: 38px;
}
.search-box .btn {
  padding-left: 16px;
  padding-right: 16px;
}

/* Category list links */
.categories-list {
  list-style: none;
  margin: 0; padding: 0;
}
.categories-list li + li {
  margin-top: 6px;
}

/* Back-to-top button */
#backToTop {
  position: fixed;
  right: 15px;
  bottom: 20px;
  display: none;
  z-index: 9999;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  line-height: 44px;
  text-align: center;
  background: #337ab7;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: opacity .2s ease, transform .2s ease;
}
#backToTop:hover {
  background: #286090;
  transform: translateY(-2px);
}

/* Helper spacing utilities */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* Images inside posts */
#content img {
  max-width: 100%;
  height: auto;
}

/* ====== Footer ====== */
.site-footer {
  background: #000;
  border-top: 4px solid #111;
  padding: 40px 0 24px;
  color: #eee;
  font-size: 13px;
}
.site-footer .footer-widgets {
  margin-bottom: 30px;
}
.site-footer .footer-widget {
  margin-bottom: 20px;
}
.site-footer .footer-widget h5 {
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #fff;
}
.site-footer .footer-widget p {
  margin-bottom: 12px;
  color: #cfcfcf;
  line-height: 1.8;
}
.site-footer .footer-widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-widget ul li + li {
  margin-top: 8px;
}
.site-footer .footer-widget a {
  color: #b3b3b3;
  text-decoration: none;
}
.site-footer .footer-widget a:hover,
.site-footer .footer-widget a:focus {
  color: #fff;
  text-decoration: underline;
}
.site-footer .footer-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #222;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.site-footer .footer-btn:hover,
.site-footer .footer-btn:focus {
  background: #444;
  transform: translateY(-1px);
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-footer .footer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
}
.site-footer .footer-meta p {
  margin: 0;
}
.site-footer .footer-separator {
  color: rgba(255,255,255,.4);
}
.site-footer .footer-tagline {
  color: #777;
  font-size: 12px;
}
.site-footer .footer-social {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.site-footer .footer-social li {
  margin: 0;
}
.site-footer .footer-social a {
  color: #b3b3b3;
  text-decoration: none;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus {
  color: #fff;
}

/* Stack footer content on small screens */
@media (max-width: 767px) {
  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .site-footer .footer-meta {
    flex-direction: column;
    gap: 4px;
  }
  .site-footer .footer-separator {
    display: none;
  }
}

/* Minor adjustments */
a, a:focus, a:hover { outline: 0; }
