/* ============================================================
   BLOG PAGE STYLES
   ============================================================ */

.bl-gradient {
  background: linear-gradient(90deg, #1a72ec, #783af3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- HERO --- */
.bl-hero {
  padding: 160px 0 60px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  text-align: center;
}

.bl-hero-label {
  display: inline-block;
  background: rgba(120,58,243,0.15);
  border: 1px solid rgba(120,58,243,0.3);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.bl-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.bl-hero h1 span {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bl-hero p {
  font-size: 17px;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* Search bar */
.bl-search-wrap {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.bl-search-wrap input {
  width: 100%;
  padding: 14px 52px 14px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
}

.bl-search-wrap input::placeholder { color: #475569; }

.bl-search-wrap input:focus {
  border-color: #783af3;
  background: rgba(255,255,255,0.09);
}

.bl-search-wrap i {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 18px;
}

/* --- CATEGORY FILTER --- */
.bl-filter {
  padding: 32px 0 0;
  background: #fff;
}

.bl-filter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.bl-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
}

.bl-filter-btn:hover,
.bl-filter-btn.active {
  background: linear-gradient(90deg, #1a72ec, #783af3);
  border-color: transparent;
  color: #fff;
}

/* --- FEATURED POST --- */
.bl-featured {
  padding: 60px 0 0;
  background: #fff;
}

.bl-featured-card {
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.07);
  transition: 0.3s;
}

.bl-featured-card:hover {
  box-shadow: 0 28px 70px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.bl-featured-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.bl-featured-body {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bl-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.bl-cat-growth    { background: rgba(26,114,236,0.1);  color: #1a72ec; }
.bl-cat-ai        { background: rgba(120,58,243,0.1);  color: #783af3; }
.bl-cat-marketing { background: rgba(16,185,129,0.1);  color: #059669; }
.bl-cat-branding  { background: rgba(245,158,11,0.1);  color: #d97706; }
.bl-cat-automation{ background: rgba(239,68,68,0.1);   color: #dc2626; }
.bl-cat-business  { background: rgba(6,182,212,0.1);   color: #0891b2; }

.bl-featured-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 14px;
}

.bl-featured-body p {
  font-size: 15px;
  color: #64748b;
  line-height: 1.8;
  margin-bottom: 24px;
}

.bl-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.bl-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bl-meta i { font-size: 14px; color: #783af3; }

.bl-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(90deg, #1a72ec, #783af3);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  align-self: flex-start;
}

.bl-read-btn:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateX(3px);
}

/* --- SECTION HEADING --- */
.bl-section {
  padding: 60px 0;
  background: #fff;
}

.bl-section-alt {
  background: #f8fafc;
}

.bl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.bl-section-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  position: relative;
  padding-left: 16px;
}

.bl-section-head h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #1a72ec, #783af3);
}

.bl-view-all {
  font-size: 13px;
  font-weight: 600;
  color: #783af3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: 0.3s;
}

.bl-view-all:hover { color: #1a72ec; gap: 8px; }

/* --- BLOG CARD --- */
.bl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
}

.bl-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #c4b5fd;
}

.bl-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bl-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bl-card-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 10px 0 10px;
  flex: 1;
}

.bl-card-body p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 16px;
}

.bl-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.bl-card-date {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bl-card-link {
  font-size: 12px;
  font-weight: 600;
  color: #783af3;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.3s;
}

.bl-card-link:hover { gap: 7px; color: #1a72ec; }

/* --- HORIZONTAL CARD (list style) --- */
.bl-hcard {
  display: flex;
  gap: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  padding: 16px;
  transition: 0.3s;
  align-items: flex-start;
}

.bl-hcard:hover {
  border-color: #c4b5fd;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transform: translateX(4px);
}

.bl-hcard-img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.bl-hcard-body h5 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 6px;
}

.bl-hcard-body p {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.5;
}

.bl-hcard-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- NEWSLETTER --- */
.bl-newsletter {
  padding: 60px 0;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.bl-newsletter-box {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.bl-newsletter-box h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.bl-newsletter-box p {
  font-size: 15px;
  color: #94a3b8;
  margin-bottom: 28px;
  line-height: 1.7;
}

.bl-nl-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.bl-nl-input {
  flex: 1;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
  font-family: 'Inter', sans-serif;
}

.bl-nl-input::placeholder { color: #475569; }
.bl-nl-input:focus { border-color: #783af3; }

.bl-nl-btn {
  padding: 13px 24px;
  background: linear-gradient(90deg, #1a72ec, #783af3);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.bl-nl-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .bl-hero h1 { font-size: 38px; }
  .bl-featured-card { grid-template-columns: 1fr; }
  .bl-featured-img { min-height: 260px; }
  .bl-featured-body { padding: 32px 28px; }
}

@media (max-width: 768px) {
  .bl-hero { padding: 130px 0 40px; }
  .bl-hero h1 { font-size: 30px; }
  .bl-featured-body h2 { font-size: 22px; }
  .bl-featured-body { padding: 24px 20px; }
  .bl-section { padding: 40px 0; }
  .bl-nl-form { flex-direction: column; }
  .bl-nl-btn { width: 100%; }
}

@media (max-width: 576px) {
  .bl-hero h1 { font-size: 26px; }
  .bl-hcard-img { width: 80px; height: 65px; }
  .bl-section-head h2 { font-size: 20px; }
}

/* ---- Additional responsive fixes ---- */
@media (max-width: 576px) {
  .bl-featured-body { padding: 20px 16px; }
  .bl-card-body { padding: 16px 16px 18px; }
  .bl-card-img { height: 180px; }
  .bl-meta { gap: 10px; font-size: 12px; }
  .bl-read-btn { font-size: 13px; padding: 9px 18px; }
  .bl-search-wrap input { font-size: 13px; }
  .bl-nl-input { font-size: 13px; }
  .bl-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 400px) {
  .bl-hero h1 { font-size: 20px; }
  .bl-hero p { font-size: 13px; }
  .bl-filter-btn { font-size: 11px; padding: 5px 10px; }
}
