body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  main {
    flex: 1;
  }
  
  .card-hover:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .article-content img {
    max-width: 100%;
    height: auto;
  }
  
  /* Add a placeholder image style for when images fail to load */
  .img-placeholder {
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
  }

  /* Add these to your styles.css file */
.small-article-img {
  height: 160px;
  object-fit: cover;
}

.object-fit-cover {
  object-fit: cover;
}

/* For article titles to prevent overflow */
.card-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Add this to your CSS */
.featured-img-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio (3/4 = 0.75 or 75%) */
  overflow: hidden;
}

.featured-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
