/* Modern Blog Styles */

/* Hero Section */
.blog-hero {
  position: relative;
  height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.7)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-tag {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.9);
  color: #fff;
  border-radius: 30px;
  font-size: 14px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Navigation */
.blog-navigation {
  background: #fff;
  padding: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.category-btn {
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  color: #2d3436;
  background: #f8f9fa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #6c5ce7;
  color: #fff;
}

/* Blog Content */
.blog-content {
  padding: 60px 0;
}

/* Featured Posts */
.featured-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.featured-post {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.featured-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-post .thumb {
  position: relative;
  height: 240px;
}

.featured-post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff6b6b;
  color: #fff;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.down-content {
  padding: 25px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.category-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #6c5ce7;
  background: rgba(108, 92, 231, 0.1);
  text-decoration: none;
}

.date {
  font-size: 14px;
  color: #6c757d;
}

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.post-image {
  position: relative;
  height: 200px;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
}

.post-content {
  padding: 25px;
}

.post-date {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
  display: block;
}

.post-content h3 {
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.post-content h3 a {
  color: #2d3436;
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-content h3 a:hover {
  color: #6c5ce7;
}

.post-content p {
  color: #636e72;
  line-height: 1.6;
  margin-bottom: 20px;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3436;
}

.read-more {
  color: #6c5ce7;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #6c5ce7, #a594f9);
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.newsletter-form input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  border-radius: 30px;
  font-size: 16px;
}

.newsletter-form button {
  padding: 15px 40px;
  background: #2d3436;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: #1e2528;
  transform: translateY(-2px);
}

/* Pagination */
.pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.page-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8f9fa;
  color: #2d3436;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-item.active .page-link,
.page-link:hover {
  background: #6c5ce7;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .featured-post .thumb {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .blog-hero {
    height: 350px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .post-card {
    margin: 0 15px;
  }

  .newsletter-content h3 {
    font-size: 1.5rem;
  }
}
