html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", Verdana, Arial, sans-serif;
  background: linear-gradient(
    to bottom,
    rgb(192, 211, 216),
    /* rgb(150, 180, 200)  */ /*A more muted blue-gray.*/ rgb(120, 150, 170)
      /*A deeper blue-gray.*/ /* rgb(100, 130, 150) */
      /*A darker and richer blue-gray. */ /* rgb(80, 110, 130) */
  );
  background-size: cover;
  min-height: 100vh;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-container {
  flex: 1 0 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cards-row {
  display: flex;
  gap: 5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  padding: 2rem;
}

.business-card {
  width: 260px;
  height: 340px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1.5px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}

.business-card:hover {
  /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06); */
  /* box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08); */
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.2), 0 6px 24px rgba(0, 0, 0, 0.1);
}

.business-card.landscape {
  width: 100%;
  height: 100%;
}

.business-card.landscape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: content-box;
  background: rgba(255, 255, 255, 0.85);
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .cards-row {
    gap: 2.5rem;
    max-width: 100vw;
    padding: 1rem;
  }
  .business-card.landscape {
    width: 420px;
    height: 217px;
  }
}

@media (max-width: 1200px) {
  .cards-row {
    gap: 2rem;
    max-width: 100vw;
    padding: 1rem;
  }
  .business-card.landscape {
    width: 288px;
    height: 186px;
  }
}

@media (max-width: 900px) {
  .cards-row {
    gap: 1rem;
    max-width: 100vw;
    padding: 1rem;
  }
  .business-card {
    width: 200px;
    height: 260px;
  }
  .business-card.landscape {
    width: 320px;
    height: 155px;
  }
}

@media (max-width: 700px) {
  .cards-row {
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }
  .business-card {
    width: 90vw;
    max-width: 340px;
    height: 180px;
  }
  .business-card.landscape {
    width: 98vw;
    max-width: 600px;
    height: auto;
    aspect-ratio: 3/2;
  }
  .business-card.landscape img {
    height: auto;
    aspect-ratio: 3/2;
    object-fit: contain;
  }
}

.footer-links {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  font-size: 0.95em;
  color: rgb(230, 230, 230);
  padding: 1.2em 0 1.5em 0;
  background: transparent;
}

.footer-links a {
  color: rgb(230, 230, 230);
  text-decoration: none;
  margin: 0 0.5em;
  font-weight: 400;
  font-size: 0.97em;
}

.footer-links a:hover {
  text-decoration: underline;
}

.card-front,
.card-back {
  background: rgba(255, 255, 255, 0.85);
}

/* MODAL */

.center-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
}
.modal-box {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.1);
  width: 900px;
  max-width: 98vw;
  height: 600px;
  max-height: 98vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  padding: 0;
}
.modal-title {
  font-size: 1.9em;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 0.5em 2em 0.3em 2em;
  border-radius: 1.25rem 1.25rem 0 0;
  background: transparent;
  background-color: rgb(60, 90, 110);
  color: rgb(230, 230, 230);
  letter-spacing: 0.01em;
  font-family: "Open Sans", Verdana, Arial, "Trebuchet MS", Helvetica,
    sans-serif;
  line-height: 1.375em;
}
.modal-subtitle {
  font-size: 0.75em;
  font-weight: 300;
  text-align: center;
  margin: 0;
  padding: 0em 2em 1.5em 2em;
  background: transparent;
  background-color: rgb(60, 90, 110);
  color: rgb(230, 230, 230);
  letter-spacing: 0.01em;
  font-family: "Open Sans", Verdana, Arial, "Trebuchet MS", Helvetica,
    sans-serif;
  line-height: 1.375em;
}
.modal-content {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 2.5em 1.5em 2.5em;
  font-size: 1.1em;
  color: rgb(60, 90, 110);
  font-family: "Open Sans", Verdana, Arial, "Trebuchet MS", Helvetica,
    sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.375em;
}

.modal-content-columns {
  display: flex; /* Use flexbox for the columns */
  flex-wrap: wrap; /* Allow wrapping */
  margin: 0em 0; /* Add some spacing above and below the columns */
}

.modal-content-column {
  flex: 1 1 45%; /* Adjust the width of each column */
  margin: 0.5em; /* Add some spacing between columns */
  box-sizing: border-box; /* Ensure padding and border are included in width */
  padding: 0em; /* Add some padding for content */
}

.divider {
  width: 95%; /* Full width of the parent */
  align-self: center;
  height: 1px; /* Set the height of the divider */
  background-color: rgba(60, 90, 110, 0.5); /* Set the color of the divider */
  margin: 0em auto; /* Add some spacing around the divider */
}

.modal-close {
  position: absolute;
  top: 1.1em;
  right: 1.1em;
  background: #eee;
  color: #444;
  border: none;
  border-radius: 0.7em;
  font-size: 0.9em;
  padding: 0.4em 1.2em;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}

.modal-close:hover {
  background: #ddd;
}

@media (max-width: 1300px) {
  .modal-box {
    width: 98vw;
  }
}

@media (max-width: 700px) {
  .modal-box {
    width: 99vw;
    height: 99vh;
    padding: 0;
  }
  .modal-title {
    font-size: 1.2em;
    padding: 1em 1em 0.5em 1em;
  }
  .modal-content {
    padding: 0 1em 1em 1em;
    font-size: 1em;
  }
  .modal-close {
    top: 1em;
    right: 1em;
    font-size: 1em;
    padding: 0.3em 1em;
  }
}
