/* Center the main heading */
.building-types h1 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 50px;
  margin-top: 50px;
}

/* Ensure the image scales properly */
.building-types img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image covers the area without distortion */
}

/* Optional: Add some padding and styling for the text */
.building-types h2 {
  font-size: 1.75rem;
}

.building-types p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Google Translate Widget Styles */
.navbar-nav #google_translate_element {
  display: inline-block !important;
  margin-left: 10px;
  min-width: 150px; /* Ensure enough space for dropdown */
  visibility: visible !important;
  z-index: 1000; /* Prevent overlap */
  position: relative;
}

.navbar-nav .goog-te-combo {
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #fff;
  font-size: 0.9rem;
  width: 100%;
  min-width: 120px;
  max-width: 200px;
  cursor: pointer;
  color: #333;
  box-shadow: none;
}

/* Fallback for Google Translate iframe */
.goog-te-banner-frame {
  display: none !important; /* Hide top banner if it appears */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .building-types img {
    margin-bottom: 1.5rem;
  }
  .navbar-nav #google_translate_element {
    margin-left: 5px;
    min-width: 100px;
  }
  .navbar-nav .goog-te-combo {
    font-size: 0.8rem;
    min-width: 100px;
    max-width: 150px;
  }
}

@media (max-width: 575.98px) {
  .navbar-nav #google_translate_element {
    margin-left: 0;
    min-width: 80px;
  }
  .navbar-nav .goog-te-combo {
    font-size: 0.75rem;
    min-width: 80px;
    max-width: 120px;
  }
}
