/* --- Layout / navbar spacing (fixed nav) --- */
html, body { height: 100%; }
body { 
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
  color: #8f9397;
  background-color: #ffffff;
  padding-top: 64px; /* adjust to your navbar height (e.g. 56–70px) */
}

/* Keep footer pinned if page is short */
body.d-flex { min-height: 100vh; }
main.flex-fill { flex: 1 0 auto; }

/* --- Jumbotron panel look (Bootstrap 3-like) --- */
.jumbotron {
  padding: 20px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

/* --- Labels used as section headers (you’re using .label label-default) --- */
.label.label-default {
  display: inline-block;
  background: #777;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: .35rem .5rem;
  border-radius: .25rem;
  margin-bottom: .5rem;
}

/* --- Form spacing consistency --- */
.form-group .form-control { margin-bottom: .5rem; }

/* --- Normalize select height/appearance to match inputs --- */
.form-control {
  font-size: 14px;            /* keep things compact */
}
select.form-control {
  -webkit-appearance: none;   /* tame iOS native look */
  -moz-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #999 50%),
    linear-gradient(135deg, #999 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 2.25rem) 50%;
  background-size: 6px 6px, 6px 6px, 1px 2rem;
  background-repeat: no-repeat;
  padding-right: 2.5rem;      /* leave room for the chevron */
}

/* --- Card hover (kept from your CSS) --- */
.card-custom {
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}
.card-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

/* --- Card images --- */
.img-card-top {
  object-fit: cover;
  width: 100%;
  height: 100px;
}
@media (max-width: 768px) {
  .img-card-top {
    object-fit: cover;
    width: 100%;
    height: 100px;
    margin-left: .5rem;
    margin-right: .5rem;
  }
}
@media (max-width: 1080px) {
  .img-card-top {
    object-fit: contain;
    width: 100%;
    height: 100px;
    margin-left: .5rem;
    margin-right: .5rem;
  }
}

/* --- Your custom margin: move OUTSIDE media query so it applies everywhere --- */
.custom-margin {
  margin-bottom: 4rem;
  margin-left: 1rem;
  margin-right: 1rem;
}
