/* =========================
   BLOG HERO — NEXT LEVEL
   ========================= */
.blog-hero-next {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  isolation: isolate;
}

/* Background Image */
.blog-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(55%) saturate(1.3);
  transform: scale(1.05);
  animation: bg-pan 20s ease-in-out infinite alternate;
}

/* Soft gradient overlay */
.blog-hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* Text Content */
.blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 2rem;
  animation: fadeUp 1.6s ease-out both;
}

.blog-hero-heading {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.blog-hero-heading span {
  background: linear-gradient(90deg, #f59e0b, #ef4444, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
  animation: text-glow 6s ease-in-out infinite alternate;
}

.blog-hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeIn 2.2s ease-out both;
}

/* Buttons */
.blog-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeIn 2.8s ease-out both;
}

.blog-hero-btn {
  position: relative;
  padding: 0.9rem 1.8rem;
  border: none;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  font-size: 1rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  overflow: hidden;
}

.blog-hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #f59e0b, #ef4444, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.blog-hero-btn:hover::before {
  opacity: 1;
}

.blog-hero-btn:hover {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Subtle background motion */
@keyframes bg-pan {
  from {
    transform: scale(1.05) translateX(0);
  }
  to {
    transform: scale(3.1) translateX(-3%);
  }
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes text-glow {
  from {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
  to {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .blog-hero-heading {
    font-size: clamp(1.8rem, 6vw, 3rem);
  }
  .blog-hero-tagline {
    font-size: 1rem;
    padding: 0 1rem;
  }
  .blog-hero-btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
  }
}
