/* ðŸ§± Brick & Beyond Blog Styles (Final Polished) */

/* ===== Full-width Layout for Blog Pages ===== */
.archive .ast-container,
.archive .ast-row,
.single-post .ast-container,
.single-post .ast-row {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}




/* ===== Blog Images ===== */
.bnb-blog-content img {
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  height: auto;
  margin: 20px 0;
  max-width: 100%;
}

/* ===== Blog Container ===== */
#bnb-blog-archive,
#bnb-single-blog {
  background: #fff;
  padding: 40px 0;
  width: 100%;
}

.bnb-container {
  box-sizing: border-box;
  display: flex;
  gap: 40px;
  margin: 0 auto;
  max-width: 1400px;
  width: 100%;
}

/* ===== Page Header ===== */
.bnb-page-header {
  margin-bottom: 30px;
  text-align: center;
}

.bnb-page-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-top: 10px;
  margin-bottom: 60px;
}

.bnb-page-title {
  color: #1e1e1e;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* ===== Blog Grid Layout ===== */
.bnb-blog-grid {
  flex: 1;
  display: grid;
  gap: 35px;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}

/* ===== Blog Card ===== */
.bnb-blog-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 460px;
  margin: 0 auto;
  max-width: 360px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bnb-blog-card:hover {
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  transform: translateY(-6px);
}

/* ===== Blog Card Image ===== */
.bnb-blog-thumb img {
  border-bottom: 3px solid #aa4a44;  /*==== changed from #f58220 ======= */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  height: 220px;
  object-fit: cover;
  width: 100%;
}

/* ===== Blog Card Content ===== */
.bnb-blog-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  padding: 20px;
}

.bnb-blog-excerpt {
  color: #555;
  display: -webkit-box;
  flex-grow: 1;
  line-height: 1.5em;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 0.95rem;
}

.bnb-blog-title {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px;
  transition: color 0.3s ease;
}

.bnb-blog-title a {
  color: #222;
  text-decoration: none;
}

.bnb-blog-title a:hover {
  color: #aa4a44;  /*==== changed from #f58220 ======= */
}

.bnb-blog-meta {
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.bnb-readmore-link {
  color: #aa4a44;  /*==== changed from #f58220 ======= */
  display: inline-block;
  font-weight: 600;
  margin-top: 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.bnb-readmore-link:hover {
  color: #8c3936;  /*==== changed from #d46a0c; ======= */
}



/* ===== Sidebar ===== */
.bnb-sidebar {
  flex-shrink: 0;
  position: relative;
  width: 280px;
}

/* ===== Sidebar Inner ===== */
.bnb-sidebar-inner {
  position: sticky;        /* enable sticky */
  top: 100px;              /* distance from top of viewport */
  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 8px 5px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px;           /* optional: more comfortable padding */
  height: fit-content;     /* allow sidebar to grow with content */
  max-height: calc(100vh - 100px); /* optional: limit height to viewport minus top spacing */
  overflow-y: auto;        /* scroll if content exceeds height */
  box-sizing: border-box;
}


.bnb-sidebar-inner::-webkit-scrollbar {
  width: 6px;
}

.bnb-sidebar-inner::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

/* ===== Sidebar Widgets ===== */
.bnb-widget {
  background: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  margin: 0;
  padding: 20px;
  border-radius: 15px;
  transition: all 0.3s ease;
}



.bnb-widget h3 {
  border-bottom: 2px solid #aa4a44;  /*==== changed from #f58220 ======= */
  color: #1e1e1e;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.bnb-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bnb-widget ul li a {
  color: #444;
  font-size: 0.95rem;
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Unified Hover Effect for Archives, Categories, Widgets ===== */
.bnb-archives a:hover,
.bnb-categories a:hover,
.bnb-widget ul li a:hover {
  background-color: #f0f0f0;
  border-radius: 6px;
  color: #aa4a44;  /*==== changed from #f58220 ======= */
  padding: 6px 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}



/* ===== Mobile Categories ===== */
.bnb-mobile-categories {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: none;
  margin-top: 40px;
  padding: 30px;
  text-align: center;
}

.bnb-mobile-categories h3 {
  color: #1e1e1e;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.bnb-mobile-categories a {
  color: #aa4a44;  /*==== changed from #f58220 ======= */
  text-decoration: none;
}



/* ===== Responsive Styles ===== */
@media (max-width: 1200px) {
  .bnb-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .bnb-blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .bnb-container {
    display: block;
  }

  .bnb-sidebar,
  .bnb-sidebar-inner {
    display: none;
  }

  .bnb-mobile-categories {
    display: block;
  }
}

@media (max-width: 600px) {
  .bnb-blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .bnb-pagination {
    gap: 10px;
  }

 