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

/* PAGE HERO — background */
.page-hero {
  background:
    linear-gradient(120deg, rgba(3,30,48,0.85) 0%, rgba(7,54,81,0.72) 55%, rgba(10,77,112,0.55) 100%),
    url('https://images.unsplash.com/photo-1504711434969-e33886168f5c?w=1800&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
}

/* FEATURED POST */
.blog-featured { padding: 70px 0 40px; background: #fff; }
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e8eef3;
  box-shadow: 0 24px 50px rgba(10,77,112,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 60px rgba(10,77,112,0.18);
}
.featured-img {
  background:
    linear-gradient(135deg, rgba(3,30,48,0.15), rgba(10,77,112,0.1)),
    url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?w=1100&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  min-height: 340px;
}
.featured-body {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-tag {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-bright));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.featured-body h2 {
  font-size: 30px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}
.featured-body > p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
}
.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.post-meta i { color: var(--brand-bright); }

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-bright);
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  transition: gap 0.25s ease, color 0.25s ease;
}
.read-more:hover { gap: 14px; color: var(--brand-glow); }

/* FILTERS + GRID */
.blog-grid-section { padding: 50px 0 90px; background: #fff; }
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.blog-filter {
  padding: 10px 22px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid #d8e6ee;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s ease;
}
.blog-filter:hover { border-color: var(--brand-bright); color: var(--brand-bright); }
.blog-filter.active {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-bright));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22,184,224,0.3);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-post {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8eef3;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.blog-post:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px rgba(10,77,112,0.16);
  border-color: rgba(22,184,224,0.3);
}
.bp-img {
  height: 190px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
.blog-post:hover .bp-img { transform: scale(1.05); }
.bp-gas       { background-image: url('https://images.unsplash.com/photo-1545459720-aac8509eb02c?w=700&q=80&auto=format&fit=crop'); }
.bp-restaurant{ background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=700&q=80&auto=format&fit=crop'); }
.bp-car       { background-image: url('https://images.unsplash.com/photo-1567449303078-57ad995bd17f?w=700&q=80&auto=format&fit=crop'); }
.bp-ai        { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=700&q=80&auto=format&fit=crop'); }
.bp-cameras   { background-image: url('https://images.unsplash.com/photo-1557597774-9d273605dfa9?w=700&q=80&auto=format&fit=crop'); }
.bp-checklist { background-image: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?w=700&q=80&auto=format&fit=crop'); }
.bp-body { padding: 24px 24px 26px; overflow: hidden; }
.bp-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 10px;
}
.bp-body h3 {
  font-size: 18px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
}
.bp-body > p {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 14px;
}
.bp-body .post-meta { margin-bottom: 14px; }
.bp-body .read-more { font-size: 13px; }

/* PAGINATION */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}
.page-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #d8e6ee;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
}
.page-btn:hover:not(.disabled) {
  border-color: var(--brand-bright);
  color: var(--brand-bright);
  transform: translateY(-2px);
}
.page-btn.active {
  background: linear-gradient(135deg, var(--brand-mid), var(--brand-bright));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(22,184,224,0.3);
}
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; }

/* NEWSLETTER */
.blog-newsletter { padding: 80px 0; background: #fafbfd; }
.nl-card {
  background:
    linear-gradient(135deg, rgba(3,30,48,0.92), rgba(10,77,112,0.9)),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1600&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  border-radius: 18px;
  padding: 50px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(0,224,255,0.2);
  box-shadow: 0 30px 60px rgba(3,30,48,0.35);
}
.nl-content h2 {
  font-size: 28px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 8px;
}
.nl-content p {
  font-size: 14px;
  color: #bce0ee;
  line-height: 1.6;
}
.nl-form {
  display: flex;
  gap: 10px;
}
.nl-form input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 240px;
  transition: all 0.25s ease;
}
.nl-form input::placeholder { color: #9fc3d4; }
.nl-form input:focus {
  border-color: var(--brand-glow);
  background: rgba(255,255,255,0.16);
}
.nl-form .btn-light { color: var(--brand-mid); font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 992px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 240px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .nl-card { grid-template-columns: 1fr; gap: 24px; }
  .featured-body { padding: 32px 28px; }
  .featured-body h2 { font-size: 24px; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-featured { padding: 50px 0 30px; }
  .nl-card { padding: 36px 24px; }
  .nl-form { flex-direction: column; }
  .nl-form input { min-width: 0; width: 100%; }
}
