/* blogs/blogs-index.css
   Styling for blogs/index.html (archive list).
   Includes: panel layout, search row, left-aligned list, and hero-image thumbnails.
*/

/* Soft app background behind the main card */
body.blogs-page {
  background: #f2f4f7;
}

/* Big rounded "page card" */
.blogs-shell {
  background: #ffffff;
  border-radius: 28px;
  padding: 44px 42px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

@media (max-width: 991.98px) {
  .blogs-shell {
    padding: 28px 22px;
    border-radius: 24px;
  }
}

/* Inner panel */
.blog-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  text-align: left !important; /* guard against any global centering */
}

@media (max-width: 991.98px) {
  .blog-panel {
    padding: 18px;
    border-radius: 18px;
  }
}

/* Section heading styling */
.section-title h2 {
  letter-spacing: 0.08em;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}

.section-title p {
  margin-top: 12px;
}

/* Search */
.blog-search .input-group-text {
  background: #fff;
  border-right: 0;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.blog-search input.form-control {
  border-left: 0;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.blog-search .input-group-text,
.blog-search input.form-control {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

/* Top-right buttons */
.blog-rss-btn,
.blog-admin-btn {
  border-radius: 999px;
  padding-left: 14px;
  padding-right: 14px;
}

/* -------------------------------------------------------
   LIST ALIGNMENT FIX
   The search field is inside a Bootstrap column (gutter).
   The list container (#blogAllPosts) is NOT inside a column,
   so we add the same half-gutter padding to align it.
-------------------------------------------------------- */
#blogAllPosts {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
}

/* List layout */
.blogs-list {
  margin-top: 10px;
  width: 100%;
  max-width: none;
  margin-left: 0 !important;
  margin-right: 0 !important;
  text-align: left !important;
}

/* -------------------------------------------------------
   BLOG ROW SPACING (edit these to tighten/loosen)
-------------------------------------------------------- */
/* controls spacing above/below each listing */
.blogs-item {
  padding: 10px 0; /* tweak: try 8px 0 or 12px 0 */
}

@media (min-width: 992px) {
  .blogs-item {
    padding: 14px 0; /* tweak: try 12px 0 or 16px 0 */
  }
}

.blogs-item + .blogs-item {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Thumbnail + text row */
.blogs-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.blogs-row:hover,
.blogs-row:focus {
  text-decoration: none;
}

/* Hero-image thumbnail */
.blogs-thumb {
  width: 140px;
  height: 90px;
  border-radius: 12px;
  margin-top: 24px;
  object-fit: cover;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #eef1f5;
}

@media (max-width: 575.98px) {
  .blogs-thumb {
    width: 64px;
    height: 48px;
    border-radius: 10px;
  }
}

/* Text block */
.blogs-meta {
  min-width: 0; /* allows long titles to wrap nicely */
}

.blogs-item h3 {
  font-size: 1.05rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin: 0 0 4px 0;
}

.blogs-item a:hover h3,
.blogs-item a:focus h3 {
  text-decoration: underline;
}

.blogs-item .blogs-author {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.72);
  margin-top: 2px;
}

.blogs-item .blogs-date {
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.7);
}

.blogs-item .blogs-excerpt {
  margin-top: 6px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tag pills under each listing */
.blogs-tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blogs-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: rgba(15, 23, 42, 0.82);
}

@media (max-width: 575.98px) {
  .blogs-tags {
    margin-top: 6px;
    gap: 6px;
  }
  .blogs-tag {
    font-size: 0.74rem;
    padding: 3px 9px;
  }
}

/* -------------------------------------------------------
   HARD OVERRIDES (keep the list LEFT-JUSTIFIED)
   Some global site CSS targets <article> or list items and
   can center/narrow them (e.g., max-width + margin:auto).
   These rules force full-width, left-aligned rows.
-------------------------------------------------------- */
#blogAllPosts {
  text-align: left !important;
}

.blog-panel article.blogs-item {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  text-align: left !important;
}

.blog-panel .blogs-row {
  width: 100%;
  justify-content: flex-start;
}

.blog-panel .blogs-meta,
.blog-panel .blogs-meta * {
  text-align: left !important;
}
