/* Flex container for the view */
.critic-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.views-view-responsive-grid--horizontal{
margin:20px !important;
}
/* Each card wrapper */
.critic-card-wrapper {
  flex: 1 1 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  display: flex;
}

.critic-card * {
  font-family: 'Roboto' !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* Full card style */
.critic-card {
  display: flex;
  flex-direction: column;
  height: 450px;
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06); 
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.critic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1); 
}


.critic-card-image-wrapper {
  position: relative;
  height: 145px; 
  overflow: hidden;
  flex-shrink: 0;
}

.critic-card-image {
  width: 100%;
  height: 100%;
}

.critic-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.critic-card-image--placeholder {
  background: #f0f2f5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.critic-card-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: #007acc;
  color: white;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 2;
}

/* Card content */
.critic-card-content {
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden; /* Prevent content overflow */
}

/* Title */
.critic-card-title {
  font-size: 16px;
  font-weight: bold;
  color: #000;
  margin-bottom: 8px;
  line-height: 150%;
  margin-top: 10px;
}

.critic-card-title a {
  color: black !important;
  text-decoration: none !important;
}

/* Trimmed body */
.critic-card-body {
  color: #444;
  font-size: 0.85rem;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Show only 3 lines */
  -webkit-box-orient: vertical;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Footer row */
.critic-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 10px;
  flex-shrink: 0;
  flex-direction: column;

}

/* Button */
.critic-card-button {
  padding: 6px;
  color: black !important;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.3s ease !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.critic-card-button a {
  text-decoration: none !important;
  color: #343741;
  font-size: 16px;
  font-weight: 500;
}

.critic-card-button img{
  width: 20px;
  height: 20px;
}

.critic-card-button a:hover, img:hover{
  color: #005fa3 !important;
}

/* Social */
.critic-card-social {
  text-align: right;
  font-size: 0.8rem;
}

/* Make responsive */
@media (max-width: 992px) {
  .critic-card-wrapper {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .critic-card-wrapper {
    flex: 1 1 100%;
    max-width: 100%;
  }
}