/* ==========================================================================
   Landing Page “Guides & Offers” Links Styles
   ========================================================================== */

/* 1) Outer grid wrapper */
.background-container {
  width: 100%;
  margin-top: 2.5%;
  padding: 5%;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  background-image: linear-gradient(
    to right,
    var(--clr-light-greem-100),
    var(--clr-dark-green-100)
  );
}

.background-container ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;       /* spacing between cards */
  list-style: none;/* remove bullets */
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   Card component inside the grid
   ========================================================================== */
.card {
  background-color: #fff;
  border-radius: 12px;           /* soft corners */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;              /* crop the image */
  display: flex;
  flex-direction: column;        /* stack image > title > date */
  transition: transform 0.2s ease,
              box-shadow 0.2s ease;
}

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

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* 3) Optional top image (if you want to use one) */
.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* 4) Title and date */
.card-title {
  margin: 1rem;
  font-size: 1rem;
  line-height: 1.3;
  color: #222;
  flex-shrink: 0;
}

.card-date {
  margin: 0 1rem 1rem;
  font-size: 0.875rem;
  color: #666;
  flex-shrink: 0;
}

/* ==========================================================================
   Responsive tweak (push back SVGs or adjust grid) — if needed later
   ========================================================================== */
/* @media (min-width: 550px) {
  .background-container ul {
    gap: 1.5rem;
  }
} */
