.btn-secondary {
  color: #fff !important; }

img {
  display: block;
  max-width: 100%;
  height: auto; }

.logo {
  width: 60px;
  height: auto;
}

.navbar {
  opacity: 0.9;
  text-transform: uppercase;
}

.social a {
  margin-right: 0.4rem; }

#showcase {
  background: url(../img/showcase.jpg) no-repeat top center fixed/cover;
  position: relative;
  min-height: 650px;
  color: #fff;
  padding-top: 6rem; }
  #showcase .home-search {
    min-height: 400px;
    position: relative;
    border-radius: 5px; }
  #showcase .overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    min-height: 400px;
    width: 100%;
    background: rgba(51, 51, 51, 0.8); }

#services {
  background: url(../img/building.jpg) no-repeat top center fixed/cover;
  min-height: 300px;
  position: relative;
  overflow: hidden; }
  #services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    width: 100%;
    background: #098e67 !important }

#showcase-inner {
  background: url(../img/building.jpg) no-repeat top center fixed/cover;
  position: relative;
  overflow: hidden;
  min-height: 200px; }
  #showcase-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    min-height: 100%;
    width: 100%;
    background: #098e67 !important }
  #showcase-inner.showcase-search {
    min-height: 270px; }

#work {
  padding: 6rem 0; }

.listing-preview a {
  position: relative; }

.card.listing-preview {
  max-height: 700px; /* adjust as needed */
}

.card-img-top {
  width: 100%;         /* Always fill the card’s width */
  max-height: 200px;   /* Limit vertical size */
  object-fit: cover;   /* Crop rather than distort the image */
}

.card-container {
  display: flex;
  flex-wrap: wrap;
}

.card-container .card {
  display: flex;
  flex-direction: column;
  height: 100%; /* crucial for equal height cards */
}

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.listing-heading {
  flex-grow: 1; /* push elements to bottom */
}

.btn-block {
  margin-top: auto; /* align button to bottom */
}

.img-main {
  max-height: 500px;
  object-fit: cover;
}

.article-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
}

html body {
  background-color: #f9f9f9 !important;
  color: #333;
  font-family: Georgia;
}

/* Underlining text removal for a href */
a.text-decoration-none:hover {
  text-decoration: none !important;
}

/* Changing the date badge colour in the cards */
.badge-custom {
  background-color: #098e67 !important;
  color: #fff !important;
}

/* Lowering the padding between the Search bar and listings elements */
#search-bar {
  padding-bottom: 1rem !important;
}

#listings {
  padding-top: 1rem !important;
}


@media (max-width: 576px) {
  .thumbs .col-md-2 {
    padding: 5px; /* Adjust the padding as needed */
  }
  .thumbs .col-md-2 img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 991px) {
  #showcase {
    padding-top: 4rem; }
    #showcase h1 {
      font-size: 40px; }
  .hide-md-down {
    display: none; } }

@media (max-width: 768px) {
  #showcase {
    padding-top: 3rem; }
    #showcase h1 {
      font-size: 40px; }
    #showcase p {
      display: none; }
  #top-bar {
    text-align: center; }
    #top-bar .social {
      text-align: center !important; } }

@media (max-width: 576px) {
  #showcase h1 {
    font-size: 30px; }
  #showcase-inner h1 {
    font-size: 40px; } }
