/**
 * Latest Content Single Card Styles
 *
 * @package Helasverige
 */

/* ==========================================================================
   Wrapper (heading + card)
   ========================================================================== */

.hsn-latest-content-wrap {
  width: 100%;
}

.latest-content-single-wrapper + .latest-content-single-wrapper {
  margin-top: 1.5rem;
}

/* ==========================================================================
   Section Heading (outside the card)
   ========================================================================== */

h2.hsn-latest-content-heading {
  font-weight: 600;
  margin: 0 0 1rem;
}

/* ==========================================================================
   Latest Content Card
   ========================================================================== */

.hsn-latest-content {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 15px;
}

/* Image */
.hsn-latest-content__image {
  position: relative;
  aspect-ratio: 53 / 38;
  overflow: hidden;
  background-color: #f0f0f0;
}

.hsn-latest-content__image--no-thumb {
  background: linear-gradient(135deg, #a21a17 0%, #5c0000 100%);
}

.hsn-latest-content__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hsn-latest-content:hover .hsn-latest-content__img {
  /* transform: scale(1.05); */
}

/* Content */
.hsn-latest-content__body {
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta */
.hsn-latest-content__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #666;
}

.hsn-latest-content__category {
  color: #a21a17;
  font-weight: 500;
}

.hsn-latest-content__meta-separator {
  color: #999;
}

.hsn-latest-content__date {
  color: #666;
}

/* Title — fixed height for 2 lines with ellipsis */
h2.hsn-latest-content__title {
  font-weight: 700 !important;
  font-size: 1.15rem;
  line-height: 1.45;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding: 0;
  color: #1a1a1a;
  height: calc(1.15rem * 1.45 * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Footer — line via ::before, gap between line and button */
.hsn-latest-content__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.hsn-latest-content__footer::before {
  content: '';
  flex: 1;
  border-top: 1px solid #1a1a1a;
}

.hsn-latest-content__cta {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.35rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  /* color: #fff; */
  /* background-color: #a21a17;
  border: 2px solid #a21a17; */
  transition: all 0.25s ease;
}

.hsn-latest-content__cta:hover {
  /* background-color: #7c1512;
  border-color: #7c1512;
  color: #fff; */
}

.hsn-latest-content__cta:focus-visible {
  /* outline: 2px solid #a21a17;
  outline-offset: 2px; */
}
