/* ==========================================================================
   VEDEVS BLOG PAGE STYLES — Zero Inline Styles
   ========================================================================== */

/* ── Page Wrapper ─────────────────────────────────────────────────────────── */
.blog-page {
  background-color: #ffffff;
  color: #1e293b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

/* ── Shared Gradient Text ────────────────────────────────────────────────── */
.blog-gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Shared Typography ───────────────────────────────────────────────────── */
.blog-hero-title {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  letter-spacing: -1px;
  line-height: 1.15;
}

.blog-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.6px;
  line-height: 1.2;
}

.blog-hero-desc {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #64748b;
  max-width: 560px;
}

/* ── Hero Section ────────────────────────────────────────────────────────── */
.blog-hero-section {
  background:
    radial-gradient(circle at 8% 20%, rgba(2, 132, 199, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 90% 75%, rgba(139, 92, 246, 0.07) 0%, transparent 48%),
    #ffffff;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

.blog-hero-grid-bg {
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(to right, #f1f5f9 1px, transparent 1px),
    linear-gradient(to bottom, #f1f5f9 1px, transparent 1px);
  background-size: 36px 36px;
}

/* ── Hero Badge ──────────────────────────────────────────────────────────── */
.blog-hero-badge {
  background: #eff6ff;
  color: #0284c7;
  border: 1px solid #bfdbfe;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
}

/* ── Pulse Beacon ────────────────────────────────────────────────────────── */
.blog-pulse-beacon {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #0284c7;
  border-radius: 50%;
  animation: blogPulse 1.8s infinite;
}

@keyframes blogPulse {
  0%   { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* ── Hero Stats Row ──────────────────────────────────────────────────────── */
.blog-stat-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  text-align: center;
}

.blog-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.blog-stat-label {
  font-size: 0.7rem;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
}

/* ── Category Filter Tabs ────────────────────────────────────────────────── */
.blog-filter-section {
  background: #f8fafc;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.blog-filter-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.blog-filter-btn:hover {
  border-color: #bfdbfe;
  color: #0284c7;
  background: #eff6ff;
}

.blog-filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

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

/* ── Featured Post (Hero Card) ───────────────────────────────────────────── */
.blog-featured-section {
  padding: 4rem 0 2rem;
}

.blog-featured-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.blog-featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 60px -15px rgba(2, 132, 199, 0.14);
  color: inherit;
}

.blog-featured-img-wrap {
  overflow: hidden;
  height: 340px;
}

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

.blog-featured-card:hover .blog-featured-img {
  transform: scale(1.04);
}

.blog-featured-label {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  display: inline-block;
}

.blog-featured-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.blog-featured-excerpt {
  font-size: 0.97rem;
  color: #64748b;
  line-height: 1.65;
}

.blog-featured-meta {
  font-size: 0.82rem;
  color: #94a3b8;
}

.blog-featured-meta strong {
  color: #334155;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.blog-read-link:hover {
  gap: 10px;
  color: #0369a1;
}

/* ── Post Grid ───────────────────────────────────────────────────────────── */
.blog-grid-section {
  padding: 2rem 0 4rem;
}

.blog-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none !important;
  color: inherit;
}

.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px -12px rgba(2, 132, 199, 0.12);
  border-color: #bfdbfe;
  color: inherit;
}

.blog-post-img-wrap {
  overflow: hidden;
  height: 200px;
  flex-shrink: 0;
}

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

.blog-post-card:hover .blog-post-img {
  transform: scale(1.06);
}

.blog-post-body {
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 0.22rem 0.6rem;
  display: inline-block;
  margin-bottom: 0.65rem;
}

.tag-web     { background: #eff6ff; color: #0284c7; }
.tag-mktg    { background: #fff7ed; color: #ea580c; }
.tag-staff   { background: #ecfdf5; color: #059669; }
.tag-seo     { background: #faf5ff; color: #7c3aed; }
.tag-design  { background: #fdf4ff; color: #a21caf; }
.tag-tech    { background: #f0fdf4; color: #166534; }

.blog-post-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.blog-post-card:hover .blog-post-title {
  color: #0284c7;
}

.blog-post-excerpt {
  font-size: 0.87rem;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.blog-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.8rem;
  margin-top: auto;
}

.blog-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.blog-author-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.blog-post-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.blog-read-time {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.blog-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.blog-sidebar-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid #f1f5f9;
}

/* Search */
.blog-search-wrap {
  position: relative;
}

.blog-search-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  font-size: 0.88rem;
  color: #1e293b;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-search-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
  background: #ffffff;
}

.blog-search-input::placeholder {
  color: #94a3b8;
}

.blog-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* Categories */
.blog-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none !important;
  color: #475569;
  font-size: 0.87rem;
  font-weight: 600;
  transition: color 0.2s;
}

.blog-cat-item:last-child {
  border-bottom: none;
}

.blog-cat-item:hover {
  color: #0284c7;
}

.blog-cat-count {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
}

/* Popular Posts */
.blog-popular-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f8fafc;
  text-decoration: none !important;
  color: inherit;
}

.blog-popular-item:last-child {
  border-bottom: none;
}

.blog-popular-thumb {
  width: 56px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.blog-popular-text {
  flex: 1;
  min-width: 0;
}

.blog-popular-ttl {
  font-size: 0.83rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  transition: color 0.2s;
}

.blog-popular-item:hover .blog-popular-ttl {
  color: #0284c7;
}

.blog-popular-date {
  font-size: 0.73rem;
  color: #94a3b8;
}

/* Tags Cloud */
.blog-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.blog-tag-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.77rem;
  font-weight: 600;
  border-radius: 7px;
  padding: 0.3rem 0.7rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.blog-tag-chip:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0284c7;
}

/* Newsletter inside sidebar */
.blog-newsletter-card {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
}

.blog-newsletter-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.blog-newsletter-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.blog-newsletter-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 0.6rem;
}

.blog-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.blog-newsletter-input:focus {
  border-color: #38bdf8;
}

.btn-newsletter-sub {
  width: 100%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

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

/* ── Pagination ──────────────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3rem 0 1rem;
}

.blog-page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.blog-page-btn:hover {
  border-color: #bfdbfe;
  color: #0284c7;
  background: #eff6ff;
}

.blog-page-btn.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.blog-page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ── Newsletter Banner (Full Width) ──────────────────────────────────────── */
.blog-newsletter-section {
  background: #0b0f19;
}

.blog-nl-card {
  border-radius: 24px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem 2rem;
}

.blog-nl-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.6px;
}

.blog-nl-sub {
  font-size: 1rem;
  color: #94a3b8;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

.blog-nl-form-wrap {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}

.blog-nl-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-size: 0.92rem;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.blog-nl-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.blog-nl-input:focus {
  border-color: #38bdf8;
}

.btn-nl-subscribe {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nl-subscribe:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(2, 132, 199, 0.4);
}

/* ── CTA Bottom ──────────────────────────────────────────────────────────── */
.blog-cta-section {
  background: #ffffff;
}

.blog-cta-card {
  background: linear-gradient(135deg, #0f172a 0%, #0369a1 100%);
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.28);
  overflow: hidden;
}

.blog-cta-glow {
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 68%);
  pointer-events: none;
}

.blog-cta-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.8px;
}

.btn-blog-cta-white {
  background: #ffffff;
  color: #0f172a !important;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  transition: transform 0.2s ease;
  text-decoration: none !important;
  display: inline-block;
}

.btn-blog-cta-white:hover {
  transform: translateY(-2px);
  color: #0f172a !important;
}

.btn-blog-cta-ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  color: #ffffff !important;
  transition: background 0.2s ease;
  text-decoration: none !important;
  display: inline-block;
}

.btn-blog-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.blog-cta-btn-gap {
  gap: 14px;
}

/* ── Divider ─────────────────────────────────────────────────────────────── */
.blog-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
  border: none;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .blog-featured-img-wrap {
    height: 220px;
  }

  .blog-nl-form-wrap {
    flex-direction: column;
  }

  .btn-nl-subscribe {
    width: 100%;
  }
}

