/* Page Hero Section */
.page-hero {
  position: relative;
  height: 400px;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/blog-hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  margin-top: 80px;
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.2s forwards;
}

/* Blog Grid Section */
.blog-grid {
  padding: 4rem 0;
  background: #f8fafc;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Featured Post */
.featured-post {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.featured-image {
  height: 400px;
  overflow: hidden;
}

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

.featured-post:hover .featured-image img {
  transform: scale(1.05);
}

.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-content h2 {
  font-size: 2rem;
  color: #1f2937;
  margin: 1rem 0;
}

.featured-content p {
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  gap: 1.5rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.post-meta span {
  display: flex;
  align-items: center;
}

.post-meta i {
  margin-right: 0.5rem;
  color: #2563eb;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(5px);
}

/* Blog Posts Grid */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #2563eb;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-meta span {
  display: flex;
  align-items: center;
}

.blog-meta i {
  margin-right: 0.5rem;
}

.blog-content h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-content p {
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-content .read-more {
  background: transparent;
  border: none;
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a.active {
  background: #2563eb;
  color: #fff;
}

.pagination a:hover:not(.active) {
  background: #e5e7eb;
}

.pagination .next {
  width: auto;
  padding: 0 1rem;
}

.pagination .next i {
  margin-left: 0.5rem;
}

/* Blog Modal */
.blog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow-y: auto;
}

.blog-modal-content {
  background: #fff;
  max-width: 800px;
  margin: 2rem auto;
  border-radius: 10px;
  position: relative;
  padding: 2rem;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: #1f2937;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #2563eb;
}

.blog-modal-image {
  margin: -2rem -2rem 2rem;
  height: 400px;
  overflow: hidden;
}

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

.blog-modal-meta {
  display: flex;
  gap: 1.5rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.blog-modal-meta span {
  display: flex;
  align-items: center;
}

.blog-modal-meta i {
  margin-right: 0.5rem;
  color: #2563eb;
}

.blog-text {
  color: #4b5563;
  line-height: 1.8;
}

.blog-text p {
  margin-bottom: 1.5rem;
}

.blog-text ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-text li {
  margin-bottom: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 300px;
  }
}

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

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

  .featured-content h2 {
    font-size: 1.8rem;
  }

  .blog-modal-content {
    margin: 1rem;
  }

  .blog-modal-image {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .post-meta,
  .blog-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pagination {
    gap: 0.25rem;
  }

  .pagination a {
    width: 35px;
    height: 35px;
  }
}