/* ==========================================================================
   BLOG LISTINGS / INDEX SPECIFIC STYLES (public/blogs/index.blade.php)
   ========================================================================== */

/* Hero Header with Brand Navy Palette */
.blogs-public-hero {
  background: linear-gradient(135deg, #0b092a 0%, #151247 65%, #1e195e 100%);
  color: #ffffff;
  padding: 60px 20px 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blogs-hero-content-wrap {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blogs-public-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(circle, rgba(189, 74, 60, 0.22) 0%, rgba(189, 74, 60, 0) 70%);
  pointer-events: none;
}

.blogs-hero-badge {
  display: inline-block;
  background-color: rgba(189, 74, 60, 0.18);
  color: #ff8a7a;
  border: 1px solid rgba(255, 138, 122, 0.35);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 18px;
  border-radius: 50rem;
  margin-bottom: 16px;
}

.blogs-hero-badge i {
  margin-right: 6px;
}

.blogs-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #ffffff;
}

.blogs-hero-subtext {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.blog-search-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 50rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-search-input {
  border: none;
  outline: none;
  padding: 8px 18px;
  flex-grow: 1;
  border-radius: 50rem;
  font-size: 0.95rem;
  background: transparent;
  color: #151247;
}

.blog-search-btn {
  background-color: #bd4a3c;
  color: #ffffff;
  border: none;
  padding: 10px 26px;
  border-radius: 50rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.blog-search-btn:hover {
  background-color: #a63c30;
}

/* Main Container & Grid (Explicit CSS Grid) */
.blogs-public-wrapper {
  background-color: #ffffff;
}

.blogs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 20px 60px;
  background-color: #ffffff;
}

.blogs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 991px) {
  .blogs-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Blog Card Styling */
.blog-card-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.blog-card-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(21, 18, 71, 0.1);
  border-color: #cbd5e1;
}

/* Image Container & Floating Red Badge */
.blog-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
  width: 100%;
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card-item:hover .blog-card-img {
  transform: scale(1.03);
}

.floating-cat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: var(--accent-orange, #bd4a3c);
  color: #ffffff !important;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50rem;
  box-shadow: 0 4px 12px rgba(189, 74, 60, 0.3);
  text-decoration: none;
  line-height: 1;
  transition: all 0.2s ease;
}

.floating-cat-badge:hover {
  background: #a63c30;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(189, 74, 60, 0.4);
}

/* Card Body Content */
.blog-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #151247;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.blog-card-title a {
  color: #151247;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: #bd4a3c;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 10px;
}

/* Read Article Link */
.read-article-link {
  font-size: 0.9rem;
  font-weight: 800;
  color: #151247;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

.read-article-link:hover {
  color: #bd4a3c;
}

/* Filter Bar Pills */
.category-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 30px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #cbd5e1;
  color: #475569;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.filter-btn-pill:hover,
.filter-btn-pill.active {
  background-color: #151247;
  color: #ffffff;
  border-color: #151247;
}

.blog-empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
}

.blog-empty-icon {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.blog-empty-title {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.blog-empty-subtext {
  color: #64748b;
  margin-bottom: 0;
}

.blog-pagination-wrapper {
  margin-top: 40px;
}
