/** 
 * Color Variables
 */
.block-hotlinks {
  position: relative;
  display: flex;
  padding: 5%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  align-items: stretch;
  gap: 8px;
}

.block-hotlinks__overlay {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(0, 13, 66, 0.8);
  border-radius: 8px;
  margin: 0 16px;
}

.block-hotlink {
  flex: 1;
  z-index: 1;
  border-radius: 10px;
  background-color: white;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.block-hotlink:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.block-hotlink__thumbnail {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 225px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  flex-shrink: 0;
}

.block-hotlink__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.block-hotlink__content h5 {
  margin-top: 0;
  margin-bottom: 8px;
}
.block-hotlink__content p {
  margin: 0;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .block-hotlinks {
    flex-wrap: wrap;
    justify-content: center;
  }
  .block-hotlink {
    flex: 0 0 calc(50% - 8px); /* Two items per row */
  }
}
@media (max-width: 768px) {
  .block-hotlinks {
    flex-direction: column;
    align-items: center;
    padding: 5%;
  }
  .block-hotlink {
    flex: 0 0 100%; /* Full width */
    max-width: 400px; /* Optional: limit max width for better aesthetics */
  }
}
@media (max-width: 480px) {
  .block-hotlinks {
    padding: 3%;
  }
  .block-hotlink__thumbnail {
    height: 180px; /* Reduce height for better scaling */
  }
  .block-hotlink__content {
    padding: 12px;
  }
}
