.wrapper {
  background: var(--background);
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 auto;
}

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

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

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

.blog-container h1 {
  text-align: center;
  font-size: 2em;
  font-weight: 700;
  color: #444;
  text-shadow: 1px 1px 2px #6c6c6c;
  margin-bottom: 1.5rem;
}

.create-post-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}

.create-post-btn:hover {
  background-color: #0056b3;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.instagram-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(111, 78, 55, 0.25);
}

.post-header {
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.username {
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

.post-date {
  color: #666;
  font-size: 14px;
}

.post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.post-content {
  padding: 1rem;
}

.post-title {
  color: #333;
  font-size: 18px;
  text-align: justify;
  margin: 0 !important;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination a {
  padding: 0.5rem 1rem;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background-color: #fff8f0; /* Light cream color */
  border-color: #c87e4f; /* Cinnamon color */
  color: #c87e4f; /* Cinnamon color */
}

.pagination a.current {
  background-color: #c87e4f; /* Cinnamon color */
  border-color: #c87e4f; /* Cinnamon color */
  color: white;
}

.no-posts {
  text-align: center;
  padding: 3rem;
  background: #f8f9fa;
  border-radius: 8px;
  margin: 2rem 0;
}

.no-posts h2 {
  color: #333;
  margin-bottom: 1rem;
}

.no-posts p {
  color: #666;
}

@media (max-width: 768px) {
  .instagram-feed {
    grid-template-columns: 1fr 1fr;
  }

  .blog-container h1 {
    font-size: 1.5rem;
  }

  .post-title {
    color: #333;
    font-size: 1rem;
  }
  .pagination {
    flex-wrap: wrap;
  }
}

@media (max-width: 425px) {
  .instagram-feed {
    grid-template-columns: 1fr;
  }
}
