/* css/blog.css */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,10,25,0.7), rgba(10,10,25,0.95));
  z-index: -1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  animation: fadeInUp 1.2s ease outwards;
}

.hero h1 {
  font-size: 5.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00d4ff, #7c3aed, #ff00c8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -3px;
}

.tagline {
  font-size: 1.5rem;
  margin: 1.5rem 0;
  opacity: 0.9;
  font-weight: 300;
}
.blog-section {
  padding: 8rem 5% 12rem;
  background: #0f0f1a;
  min-height: 100vh;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-card {
  background: rgba(20, 20, 40, 0.7);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(40px);
}

.blog-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  transform: translateY(-15px);
  border-color: #00d4ff;
  box-shadow: 0 25px 50px rgba(0, 212, 255, 0.2);
}

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

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

.blog-content {
  padding: 1.8rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #00d4ff;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.blog-title {
  font-size: 1.5rem;
  color: white;
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  color: #00d4ff;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.read-more:hover {
  color: #7c3aed;
  gap: 12px;
}

.read-more i {
  transition: 0.3s;
}

/* Loading State */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem;
  font-size: 1.3rem;
  color: #00d4ff;
}

.loading i {
  font-size: 2.5rem;
  margin-right: 1rem;
}

/* No posts fallback */
.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 6rem 2rem;
  color: #888;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card img { height: 200px; }
}

