/* ===============================
   BGS Transfusion – Custom Styles
   =============================== */

/* Tables & layout helpers */
table#sm {
  margin: auto;
  width: 300px;
  text-align: center;
}

#footer_icon {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 10px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Apply button block */
table#button {
  margin-left: 50px;
  width: 300px;
  height: 220px;
}

table#button td {
  width: 300px;
  height: 220px;
  text-align: center;
  border: 3px solid #257efc;
  border-radius: 10px;
  background-color: rgba(39, 128, 252, 0.15);
}

table#button td a {
  display: inherit;
  vertical-align: middle;
  width: 300px;
  height: 200px;
}

/* Button links */
a.button,
a.button:visited,
a.button:hover {
  color: #257efc;
  font-size: 20px;
  text-decoration: none;
}

/* Hero image */
.hero-img {
  display: block;
  margin: 80px auto 0;
  width: 70%;
  max-width: 100%;
}

/* ===============================
   Desktop layout tweaks
   =============================== */
@media (min-width: 993px) {
  .w3-main {
    margin-left: 340px;
    margin-right: 40px;
  }
}

/* ===============================
   Mobile optimisations
   =============================== */
@media (max-width: 600px) {
  .hero-img {
    width: 100%;
    margin-top: 64px;
  }

  h1.w3-xxxlarge {
    font-size: 32px;
    line-height: 1.2;
  }

  h2 {
    font-size: 22px;
  }

  .w3-third {
    margin-bottom: 24px;
  }

  .w3-ul li {
    padding: 12px !important;
  }

  .w3-table-all {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Committee layout */
  .w3-col.m2 {
    width: 100%;
  }

  .w3-col.m2 img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
}