* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  
}

@font-face {
  font-family: 'Baskervville';
  src: url('Baskervville.ttf');
}

body {
  font-family:'Baskervville', sans-serif;
  /* background-color:rgb(201, 210, 235); */


  padding: 2rem;
  color: black ;

}

header {
  text-align: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  /* background:#d0d0ff; */
  background-color: whitesmoke;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  color: rgb(181, 59, 59);
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  background-color: white;
  margin: 2rem auto;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.modal-text {
  line-height: 1.8;
  color: #444;
  font-size: 1.1rem;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
  color: #666;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #333;
}

/* Animation for modal */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.footer_ a{
  text-decoration: none;
  color: black;
}

.footer_{
  margin-top: 10px;
  float: right;
}