.navbar {
  position: relative !important;
}
/* Blog Posts Section */
.blog-posts {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.blog-post {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.post-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

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

.blog-post:hover .post-image img {
  transform: scale(1.1);
}

.post-category {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #f7a608, #e6940a);
  color: var(--black);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.post-content {
  padding: 30px;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

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

.post-meta i {
  color: #f7a608;
}

.post-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #fff;
  line-height: 1.4;
}

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

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

.read-more:hover {
  color: #e6940a;
}

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

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

/* Pagination */
.pagination {
  padding: 60px 0;
  text-align: center;
}

.pagination-list {
  display: inline-flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #666;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination-link:hover,
.pagination-link.active {
  background: linear-gradient(135deg, #f7a608, #e6940a);
  border-color: #f7a608;
  color: white;
}

/* Newsletter Section */
.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, #f7a608, #e6940a);
  color: white;
  text-align: center;
}

.newsletter h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 15px;
}

.newsletter p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
}

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

.newsletter-form button {
  padding: 15px 30px;
  background: white;
  color: #f7a608;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

/* Blog Detail Styles */
.blog-detail {
  padding: 80px 0;
}

.blog-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-detail-header {
  margin-bottom: 40px;
}

.blog-detail-header .post-meta {
  justify-content: center;
  margin-bottom: 20px;
}

.blog-detail-header h1 {
  font-size: 42px;
  font-weight: 600;
  color: var(--black);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 20px;
}

.blog-detail-image {
  margin-bottom: 40px;
  border-radius: 15px;
  overflow: hidden;
}

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

.blog-detail-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--black);
}

.blog-detail-text h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--black);
  margin: 40px 0 20px;
}

.blog-detail-text h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--black);
  margin: 30px 0 15px;
}

.blog-detail-text p {
  margin-bottom: 20px;
}

.blog-detail-text ul,
.blog-detail-text ol {
  margin: 20px 0;
  padding-left: 30px;
  list-style-type: disc;
}

.blog-detail-text li {
  margin-bottom: 10px;
  list-style-type: disc;
}

.blog-detail-text blockquote {
  border-left: 4px solid #f7a608;
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
  font-size: 20px;
}

/* Related Posts */
.related-posts {
  padding: 80px 0;
}

.related-posts .section-title {
  margin-bottom: 50px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-post {
    margin: 0 auto;
    max-width: 400px;
  }

  .post-content {
    padding: 25px 20px;
  }

  .post-content h2 {
    font-size: 20px;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 15px;
  }

  .newsletter h2 {
    font-size: 28px;
  }

  .newsletter p {
    font-size: 16px;
  }

  .blog-detail-header h1 {
    font-size: 32px;
  }

  .blog-detail-text {
    font-size: 16px;
  }

  .blog-detail-text h2 {
    font-size: 24px;
  }

  .blog-detail-text h3 {
    font-size: 20px;
  }

  .blog-detail-image img {
    height: 250px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blog-posts,
  .newsletter,
  .blog-detail,
  .related-posts {
    padding: 50px 0;
  }

  .post-image {
    height: 200px;
  }

  .post-content {
    padding: 20px 15px;
  }

  .post-content h2 {
    font-size: 18px;
  }

  .post-meta {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter h2 {
    font-size: 24px;
  }

  .newsletter p {
    font-size: 15px;
  }

  .blog-detail-header h1 {
    font-size: 26px;
  }

  .blog-detail-text {
    font-size: 15px;
  }

  .blog-detail-image img {
    height: 200px;
  }

  .pagination-link {
    width: 40px;
    height: 40px;
  }
}
