/* styles.css */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;

  /* leave room so absolute footer doesn't overlap content */
  padding-bottom: 80px; /* adjust if needed */
}

/* ---------- Header ---------- */
.site-header {
  background-color: #333;
  color: #fff;
  padding: 20px;
  text-align: center;
}

.site-header .logo {
  height: 50px;
  width: auto;
}

/* ---------- Main / Container ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ---------- Card (stretching fixed, image not upscaled) ---------- */
.cards {
  width: 100%;
}

.card {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);

  width: 100%;
  margin: 20px 0;
  padding: 20px;

  display: flex;
  flex-direction: column; /* mobile first */
  align-items: flex-start;
  gap: 16px;
}

.card-img {
  height: 150px;     /* same as your original */
  width: auto;       /* prevents bloating / blur */
  max-width: 100%;   /* never overflow on small screens */
  object-fit: contain;
  display: block;
}

.card-body {
  width: 100%;
  flex: 1;
  min-width: 0; /* avoids flex overflow quirks */
}

.card-title {
  margin: 0 0 10px 0;
}

.card-text {
  margin: 0;
  white-space: normal; /* allow wrapping so it fills width */
}

/* Tablet/Desktop: side-by-side but keep image from stretching */
@media (min-width: 700px) {
  .card {
    flex-direction: row;
    align-items: center;
  }

  .card-img {
    flex: 0 0 auto;
    /* optional: similar to your old "15%" feel without forcing scaling */
    max-width: 180px;
  }

  .card-body {
    flex: 1;
  }
}

/* ---------- Footer (MATCHES your original exactly) ---------- */
footer {
  position: absolute;  /* Set the position of the footer to absolute */
  bottom: 0;           /* Place the footer at the bottom of the page */
  left: 0;             /* Align the footer to the left of the page */
  right: 0;            /* Align the footer to the right of the page */
  background-color: #333; /* Set the background color of the footer */
  color: white;        /* Set the text color of the footer */
  padding: 20px;       /* Add some padding to the footer */
  text-align: center;  /* Center the text in the footer */
}

.email-link {
  color: white; /* Set the font color of the email link to white */
}
