body {
  background: #1a1a1a; /* Dark gray background */
  color: #e5e7eb;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Main content panel */
.customInteriorContent .railedContent.mainContent {
  min-height: 600px;
  padding-bottom: 50px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent black */
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

/* Hero image flush with container */
.heroBannerStatic {
  margin-top: -10px;
  margin-left: -10px;
  margin-right: -10px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

/* Intro copy */
.introContentWrapper {
  max-width: 1200px;
  margin: 24px auto 16px;
  padding: 24px 24px 12px;
  color: #f9fafb;
  background: rgba(0, 0, 0, 0.6); /* Darker, less blue */
  border-radius: 12px;
  border: 1px solid rgba(100, 100, 100, 0.3); /* Gray border */
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.introSection p {
  line-height: 1.7;
  letter-spacing: 0.01em;
}
@media (min-width: 992px) {
  .introSection p {
    font-size: 18px;
    margin-bottom: 15px;
  }
}

/* Search bar */
.searchWrapper {
  position: relative;
  width: 97%;
  max-width: 720px;
  margin: 28px auto 0;
}

.searchWrapper input[type="text"] {
  width: 100%;
  padding: 10px 40px 10px 14px;
  font-size: 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8); /* Darker search input */
  border: 1px solid rgba(100, 100, 100, 0.4); /* Gray border */
  color: #e5e7eb;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.searchWrapper input[type="text"]::placeholder {
  color: #888; /* Lighter gray placeholder */
}

.searchWrapper input[type="text"]:focus {
  outline: none;
  border-color: #aaa;
  box-shadow: 0 0 0 1px rgba(200, 32, 30, 0.5), 0 10px 25px rgba(0, 0, 0, 0.7);
  background: rgba(0, 0, 0, 0.9);
}

/* Clear button */
.searchWrapper .clearBtn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 16px;
  color: #aaa; /* Lighter gray for clear button */
  cursor: pointer;
  padding: 0;
  width: 26px;
  height: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.searchWrapper .clearBtn.visible {
  display: flex;
}

.searchWrapper .clearBtn:hover {
  background: rgba(100, 100, 100, 0.18); /* Gray hover background */
  color: #e5e7eb;
  transform: translateY(-50%) scale(1.06);
}

/* "No results" message */
.noResultsMessage {
  display: none;
  margin: 10px auto 0;
  width: 97%;
  max-width: 720px;
  font-size: 14px;
  color: #fef2f2;
  background: #c8201e;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid rgba(200, 32, 30, 0.7);
}

/* Cards layout */
.existingPartnersContainer {
  text-align: center;
  margin-top: 30px;
}

.cardWrapper {
  display: inline-block;
  margin: 14px 12px;
  font-size: 16px;
}

/* Card base */
.card {
  width: 240px;
  aspect-ratio: 1 / 1;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #222; /* Dark gray card background */
  border: 1px solid rgba(100, 100, 100, 0.3); /* Gray border */
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  transform: translateY(0);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
  border-color: #aaa;
}

/* Card title */
.card h3 {
  font-size: 1em;
  font-weight: 700;
  margin: 0 -18px;
  padding: 0 1vw;
  height: 70px;
  color: #f9fafb;
  border-bottom: 1px solid rgba(100, 100, 100, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* "Learn more" link */
.card a.txtLink {
  font-size: 0.8em;
  color: #fdb927;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  transition: color 0.14s ease;
}

.card a.txtLink:hover,
.card a.txtLink:focus {
  text-decoration: none;
  color: #e02b28;
}

/* Website button */
.customInteriorContent .card a.btnWebsite {
  width: 100%;
  font-size: 0.9em;
  padding: 6px 10px;
  margin: 0px 0 15px;
  font-weight: 500;
  border-radius: 999px;
  background: #e5e7eb;
  border: 1px solid rgba(31, 41, 55, 0.3);
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.customInteriorContent .card a.btnWebsite:hover,
.customInteriorContent .card a.btnWebsite:focus {
  background: #c8201e;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Social icons */
.customInteriorContent .card a.socialBtn {
  color: #c8201e;
  font-size: 1.35em;
  margin: 0 6px;
  transition: color 0.14s ease, transform 0.12s ease;
}

.customInteriorContent .card a.socialBtn:hover,
.customInteriorContent .card a.socialBtn:focus {
  color: #e02b28;
  transform: translateY(-1px);
}

.socialBtnsContainer {
  margin: 20px 0 25px;
}

.companyInfo {
  padding: 0 18px;
}

.socialBtnsContainer a {
  vertical-align: middle;
}

.moreinfoLinkContainer {
  margin-top: 6px;
  margin-bottom: 2px;
}

/* Modal tweaks */
.companyModal .modal-content {
  padding: 0 0 24px;
  background: #222; /* Dark gray modal background */
  color: #e5e7eb;
  border-radius: 16px;
  border: 1px solid rgba(100, 100, 100, 0.4); /* Gray border */
}

.companyModal .heroBannerStatic {
  margin-bottom: 22px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.companyModal .modal-content h3 {
  margin-bottom: 14px;
  font-size: 1.5em;
  font-weight: 700;
}

.companyModal .modal-content p {
  font-size: 1.02em;
  line-height: 1.7;
  color: #d1d5db;
}

@media (min-width: 768px) {
  .companyModal .modal-body-inner {
    padding-left: 26px;
    padding-right: 26px;
  }
}

/* Responsive cards */
@media (max-width: 1399px) {
  .customInteriorContent .card a.btnWebsite {
    margin: 0.5vw 0 1.5vw;
  }
  .cardWrapper {
    margin: 0.6em;
  }
  .card {
    width: 20vw;
    aspect-ratio: 1 / 1.1;
    font-size: 1.4vw;
    border-radius: 16px;
  }
  .card h3 {
    font-size: 1em;
    margin: 0 -1.1em 0.75em;
    height: 5em;
    padding: 1vw 1vw;
  }
  .socialBtnsContainer {
    margin: 1vw 0 2vw;
  }
}

@media (max-width: 767px) {
  .introContentWrapper {
    padding: 18px 16px 8px;
    margin-top: 8px;
  }
  .introSection p {
    font-size: 14px;
    margin-bottom: 14px;
  }
  .cardWrapper {
    margin: 0.5em;
  }
  .card {
    width: 40vw;
    font-size: 3vw;
    aspect-ratio: 1 / 1.1;
  }
  .card h3 {
    padding: 1vw 2vw;
  }
  .customInteriorContent .card a.btnWebsite {
    margin: 0.5vw 0 2.5vw;
  }
  .socialBtnsContainer {
    margin: 1vw 0 5vw;
  }
}

@media (max-width: 499px) {
  .card {
    width: 40vw;
    aspect-ratio: 1 / 1.2;
  }
}

@media (max-width: 399px) {
  .cardWrapper {
    margin: 0.25em;
  }
  .card {
    width: 40vw;
    aspect-ratio: 1 / 1.2;
  }
  .companyInfo {
    padding: 0 10px;
  }
  .customInteriorContent .card a.socialBtn {
    font-size: 1.25em;
    margin: 0 0.25em;
  }
}
