/* Custom styling for the bs-blog template */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #212529;
  background-color: #f8f9fa;
  padding-bottom: 2rem;
}

/* Typography styling */
h1, h2, h3, h4, h5, h6 {
  font-family: "Georgia", "Playfair Display", "Times New Roman", serif;
  font-weight: 700;
  color: #111;
}

/* Custom header & branding styling */
.blog-header {
  border-bottom: 1px solid #e5e5e5;
}

.blog-header-logo {
  font-family: "Georgia", "Playfair Display", "Times New Roman", serif;
  font-size: 2.25rem;
}

.blog-header-logo:hover {
  text-decoration: none;
}

/* Navigation bar link formatting */
.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-scroller .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-scroller .nav-link:hover {
  color: #212529;
}

.nav-scroller .active {
  color: #0d6efd;
  font-weight: 500;
}

/* Featured post banner styles */
.featured-banner {
  position: relative;
  background-color: #343a40;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
}

.featured-banner-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
  padding: 3rem;
  height: 100%;
}

/* Custom cards styling overrides */
.blog-posts-container .card {
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.04), 0 2px 4px -1px rgba(0,0,0,.03);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
  margin-bottom: 1.5rem;
}

.blog-posts-container .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -2px rgba(0,0,0,.05);
}

.blog-posts-container .card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  border-bottom: none !important; /* Override inline styles from generator */
  padding: 1.5rem 1.5rem 0.5rem 1.5rem !important;
  font-family: "Georgia", serif !important;
}

.blog-posts-container .card-body {
  padding: 1.5rem;
  padding-top: 0.5rem;
}

.blog-posts-container .card-body a {
  text-decoration: none;
}

.blog-posts-container .card img {
  border-radius: 0;
  max-height: 350px;
  object-fit: cover;
}

/* Article detail view formatting */
.blog-post-title {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}

.blog-post-meta {
  margin-bottom: 1.25rem;
  font-size: .875rem;
  color: #6c757d;
}

.blog-post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

/* Sidebar right-pane design overrides */
.flex-item-right, .position-sticky {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 12px;
  padding: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem;
  }
  .featured-banner-overlay {
    padding: 2rem;
  }
}
