/* =====================================================
   BLOGS & NEWS STYLES — FUSION FOAMS
   ===================================================== */

:root {
  --tan: #d80b32;
  --tan-dark: #a80725;
  --tan-tint: #fdf1f3;
  --tan-light: #ff5470;
  --text-grey: #676c74;
  --nav-grey: #2c3138;
  --hairline: #e4e6e9;
  --surface: #f8f9fa;
  --navy: #1a1d23;
  --navy-light: #2c3138;
}

/* =====================================================
   1. CONTROL BAR (SEARCH & FILTER PILLS)
   ===================================================== */
.bn-section {
  padding: 60px 0 80px;
  background-color: var(--surface);
}

.bn-search-wrapper {
  max-width: 650px;
  margin: 0 auto 35px;
}

.bn-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--hairline);
  border-radius: 50px;
  padding: 6px 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.bn-search-box:focus-within {
  border-color: var(--tan);
  box-shadow: 0 6px 20px rgba(216, 11, 50, 0.12);
}

.bn-search-box .search-icon {
  color: var(--tan);
  font-size: 16px;
  margin-right: 12px;
}

.bn-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 8px 0;
  font-size: 15px;
  color: var(--nav-grey);
}

.bn-search-input::placeholder {
  color: #9ba0a8;
}

.bn-search-clear {
  border: none;
  background: #e4e6e9;
  color: #555;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
}

.bn-search-clear:hover {
  background: var(--tan);
  color: #fff;
}

/* Filter Pills */
.bn-filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 45px;
}

.bn-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  border: 1px solid var(--hairline);
  background: #ffffff;
  color: var(--nav-grey);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.bn-filter-btn i {
  font-size: 13px;
  color: var(--text-grey);
  transition: color 0.25s ease;
}

.bn-filter-btn:hover {
  background: var(--tan-tint);
  color: var(--tan);
  border-color: rgba(216, 11, 50, 0.3);
}

.bn-filter-btn:hover i {
  color: var(--tan);
}

.bn-filter-btn.active {
  background: var(--tan);
  color: #ffffff;
  border-color: var(--tan);
  box-shadow: 0 4px 14px rgba(216, 11, 50, 0.3);
}

.bn-filter-btn.active i {
  color: #ffffff;
}

.bn-filter-count {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: currentColor;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.bn-filter-btn:not(.active) .bn-filter-count {
  background: #eef0f3;
  color: var(--text-grey);
}

/* =====================================================
   2. CARD GRID & CARD DESIGN
   ===================================================== */
.bn-grid {
  transition: opacity 0.3s ease;
}

.bn-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.bn-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(216, 11, 50, 0.25);
}

/* Card Header Media */
.bn-card-media {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f2f5;
}

.bn-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bn-card:hover .bn-card-media img {
  transform: scale(1.07);
}

/* Category Badge */
.bn-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.bn-badge--blog {
  background: linear-gradient(135deg, var(--tan), var(--tan-light));
}

.bn-badge--news {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
}

.bn-card-date {
  position: absolute;
  bottom: 12px;
  right: 15px;
  z-index: 2;
  background: rgba(26, 29, 35, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Card Body */
.bn-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bn-card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: var(--text-grey);
  margin-bottom: 12px;
}

.bn-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bn-card-meta i {
  color: var(--tan);
}

.bn-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--nav-grey);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.bn-card:hover .bn-card-title {
  color: var(--tan);
}

.bn-card-text {
  font-size: 14px;
  color: var(--text-grey);
  line-height: 1.6;
  margin: 0 0 20px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bn-card-footer {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bn-card-author {
  font-size: 12px;
  font-weight: 600;
  color: #7d838c;
}

.bn-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tan);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: gap 0.2s ease, color 0.2s ease;
}

.bn-card-link:hover {
  gap: 10px;
  color: var(--tan-dark);
}

/* =====================================================
   3. EMPTY STATE
   ===================================================== */
.bn-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px dashed var(--hairline);
}

.bn-empty-icon {
  font-size: 48px;
  color: var(--tan-light);
  margin-bottom: 16px;
  opacity: 0.8;
}

.bn-empty-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--nav-grey);
  margin-bottom: 8px;
}

.bn-empty-desc {
  font-size: 14px;
  color: var(--text-grey);
  max-width: 450px;
  margin: 0 auto 20px;
}

/* =====================================================
   4. ARTICLE MODAL
   ===================================================== */
.modal-header .bn-badge {
  position: static;
  margin-right: 10px;
}

.bn-modal-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-grey);
  margin-top: 8px;
}

.bn-modal-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 24px;
}

.bn-modal-content {
  font-size: 15px;
  line-height: 1.75;
  color: #333840;
}

.bn-modal-content p {
  margin-bottom: 16px;
}

.bn-modal-content h4 {
  font-weight: 700;
  color: var(--nav-grey);
  margin-top: 24px;
  margin-bottom: 12px;
}
