/* General Styles */
body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    color: #5c3a21;
    background-color: #f4e3d7;
    line-height: 1.6;
  }
  
  /* Blog Grid Animation */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
  }
  
  .blog-item {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }
  
  .blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }
  
  .blog-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .blog-item:hover img {
    transform: scale(1.05);
  }
  
  .blog-item h3 {
    font-size: 26px;
    color: #5c3a21;
    margin: 20px 20px 10px;
    animation: fadeInUp 1s ease-out;
  }
  
  .blog-item p {
    font-size: 16px;
    color: #5c3a21;
    margin: 0 20px 20px;
    animation: fadeInUp 1.5s ease-out;
  }
  
  .read-more {
    display: inline-block;
    padding: 12px 24px;
    background: #5c3a21;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    margin: 0 20px 20px;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  
  .read-more:hover {
    background: #3e2715;
    transform: translateY(-3px);
  }
  
  @keyframes fadeInUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  /* Popup Styles */
  .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Start hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .popup.active {
    opacity: 1; /* Show popup */
    visibility: visible; /* Show popup */
  }
  
  .popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
    transform: translateY(-20px); /* Start slightly above */
    opacity: 0; /* Start hidden */
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  
  .popup.active .popup-content {
    transform: translateY(0); /* Move to center */
    opacity: 1; /* Show content */
  }
  
  .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #5c3a21;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .close-btn:hover {
    color: #3e2715;
  }
  
  
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }