/*
 * Bootstrap 4 -> 5 compatibility layer
 * ------------------------------------
 * The site was upgraded from Bootstrap 4.3 (unsupported, XSS CVEs) to
 * Bootstrap 5.3.8. Bootstrap 5 changed some defaults and removed a few
 * classes this theme relies on. This file restores the Bootstrap 4 look
 * so the design stays exactly the same. Load it right after bootstrap.min.css.
 */

/* Grid: Bootstrap 4 used 30px gutters (BS5 default is 24px) */
.container, .container-fluid, .container-sm, .container-md,
.container-lg, .container-xl, .container-xxl, .row {
  --bs-gutter-x: 30px;
}

/* BS5 forces every direct child of .row to full width with gutter padding.
   BS4 only did that for .col-* elements; restore that for non-column children
   (e.g. .header-info-left / .header-info-right in the top bar). */
.row > :not([class^="col"]):not([class*=" col"]) {
  flex-shrink: 1;
  width: auto;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  margin-top: 0;
}

/* BS4 gave every .col-* 15px side padding even outside a .row
   (e.g. the top bar's .col-xl-12); BS5 only pads columns inside rows. */
[class^="col-"], [class*=" col-"] {
  position: relative;
  padding-right: 15px;
  padding-left: 15px;
}

/* Bootstrap 4 had no 1320px "xxl" container; keep max width at 1140px */
@media (min-width: 1400px) {
  .container, .container-sm, .container-md,
  .container-lg, .container-xl, .container-xxl {
    max-width: 1140px;
  }
}

/* Links: Bootstrap 4 was not underlined by default, only on hover */
a { color: #007bff; text-decoration: none; }
a:hover { color: #0056b3; text-decoration: underline; }

/* Headings: Bootstrap 4 used fixed sizes (BS5 shrinks them on small screens) */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }

small, .small { font-size: 80%; font-weight: 400; }

label { display: inline-block; margin-bottom: .5rem; }

/* Form inputs: BS4 border colour and corner radius */
.form-control { border-color: #ced4da; border-radius: .25rem; height: calc(1.5em + .75rem + 2px); }
textarea.form-control { height: auto; }
.form-control::placeholder { color: #6c757d; opacity: 1; }

/* Classes removed in Bootstrap 5 that this site still uses */
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1; }
.form-group { margin-bottom: 1rem; }
.pl-1 { padding-left: .25rem !important; }
