/* Blog Section */
.blog-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: #fefce8;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.blog-snippet {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.5;
}

/* =================
   Modal Styles
================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 700px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.4s ease-in-out;
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: #1e293b;
}

.modal-content p, .modal-content ul {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 12px;
}

.modal-content ul li {
  margin-bottom: 8px;
}

/* Close Button */
.close {
  color: #333;
  font-size: 28px;
  font-weight: bold;
  float: right;
  cursor: pointer;
}

.close:hover {
  color: #e11d48;
}

/* Animation */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
  .blog-title {
    font-size: 1.1rem;
  }
  .blog-snippet {
    font-size: 0.9rem;
  }
}
