/* blogs.css */
/* Blog Page Styles */
.blogs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.blogs-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  color: #073550;
}

.blogs-subtitle {
  font-size: 20px;
  text-align: center;
  margin-bottom: 40px;
  color: #555;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  display: flex; /* Add flex display */
  flex-direction: column; /* Stack children vertically */
  height: 100%; /* Take full height of grid cell */
	border-radius: 8px; /* Ensure card corners match the image */
  overflow: hidden; /* Clips image to rounded corners */	
}

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

/*.blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}*/

.blog-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Ensures images fill the space without distortion */
  object-position: center; /* Focus on the center of the image */
	border-radius: 8px 8px 0 0;
}

.blog-content {
  flex-grow: 1; /* Allow content to grow and push link down */
  display: flex; /* Add flex display */
  flex-direction: column; /* Stack children vertically */
  padding: 20px; /* Keep existing padding */
}

.blog-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #073550;
}

.blog-excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  margin-top: auto; /* This pushes the link to the bottom */
  align-self: flex-start; /* Align link to the left */
  /* Keep all other existing styles */
  display: inline-block;
  color: #daa800;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #073550;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blogs-container {
    padding: 20px 15px;
  }
  
  .blogs-title {
    font-size: 28px;
  }
  
  .blogs-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .blogs-title {
    font-size: 24px;
  }
  
  .blogs-subtitle {
    font-size: 16px;
  }
  
  .blog-title {
    font-size: 20px;
  }
}