/* Added Remix Icon import */
@import url("https://cdn.jsdelivr.net/npm/remixicon@4.3.0/fonts/remixicon.css");

* {
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* MAIN CONTENT STYLES */
.main-content {
  flex: 1;
  background-color: white;
  padding: 2rem 0;
}

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

/* BLOG HEADER */
.blog-header {
  text-align: left;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.blog-header h1 {
  font-size: 4rem;
  margin: 0;
  font-weight: 300;
}

.blog-header p {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
}

/* BLOG POSTS GRID */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  min-height: 400px;
}

.blog-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.post-image {
  width: 100%;
  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.05);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.post-date {
  color: #666;
}

.post-category {
  background: orangered;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-title {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  line-height: 1.4;
}

.post-link {
  text-decoration: none;
  color: #000;
  font-weight: 400;
  transition: color 0.3s ease;
}

.post-link:hover {
  color: orangered;
}

.post-excerpt {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: orangered;
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 0.75rem;
}

.read-more i {
  font-size: 1rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  margin: 3rem 0;
}

.pagination-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.pagination-item {
  display: flex;
}

.pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

.pagination-link:hover:not(.disabled) {
  background: orangered;
  color: white;
  border-color: orangered;
}

.pagination-link.active {
  background: orangered;
  color: white;
  border-color: orangered;
}

.pagination-link.disabled {
  color: #ccc;
  cursor: not-allowed;
  border-color: #eee;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #666;
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  font-size: 1.2rem;
  color: #666;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-posts {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .container {
    padding: 0 15px;
  }

  .main-content {
    padding: 1rem 0;
  }

  .blog-header {
    margin-bottom: 2rem;
    padding: 1rem 0;
  }

  .pagination-list {
    gap: 0.25rem;
  }

  .pagination-link {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .blog-posts {
    grid-template-columns: 1fr;
  }

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

  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
  }
}
