
.filter-bar {
  justify-content: space-between;
  align-items: center;
  
}

.dropdowns select,
.search-bar input {
  padding: 10px;
  margin-right: 10px;
  background-color: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 5px;
  width: 100%;
}

#sortBtn {
  padding: 10px 20px;
  background-color: #444;
  border: none;
  color: white;
  cursor: pointer;
}

.alphabet-filter ul {
  display: flex;
  list-style: none;
  padding: 0;
}

.alphabet-filter li {
  margin-right: 10px;
  cursor: pointer;
  font-size: 16px;
}

.alphabet-filter li:hover {
  text-decoration: underline;
}

.alphabet-filter .clear {
  margin-left: 20px;
  color: #888;
  cursor: pointer;
}

.card-container {
  display: grid;
  grid-template-columns: 4fr 4fr 4fr 4fr;
  gap: 20px;
  padding: 30px 0px 30px;
}

.card {
  background-color: #2e2e2e;
  border: 1px solid #444;
  border-radius: 8px;
  min-height: 275px;
  overflow: hidden;
    transition: .1s all;
    box-shadow: 0px 4px 4px 0px #00000040;
    background: linear-gradient(0deg, #11475B, #11475B), linear-gradient(0deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.card-image {
  height: 150px;
  background-color: #444;
}

.card-content {
  padding: 15px;
  z-index: 99
}

.card h3 {
  margin: 0 0 10px 0;
}
.card:hover {
    background: #000 !important;!i;!;
}

.card:hover .card-image {
    //display: none;
}
.card-desc {
    display: none;
    transition: .1s all;
}

.card:hover .card-desc {
    display: block;
}
select#topic-dropdown {
    margin-right: 0;
}
.dropdowns {
  display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-bar {
  margin-top: 20px;
  display: flex;
}
.card-content p {
    color: #ffffff;
}

.card-content a {
    color: #70f3ff;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    padding-right: 10px;
}

div#load-more a {
    color: #70f3ff;
    letter-spacing: .2em;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
}
div#load-more a img {
    padding-left: 10px;
}
.expand {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
a.expand-emp {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
.card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
}
.card-image img {
    -webkit-transition-duration: 550ms;
    transition-duration: 550ms;
    -webkit-transition-property: opacity, width, -webkit-filter;
    transition-property: opacity, width, -webkit-filter;
    transition-property: filter, opacity, width;
    transition-property: filter, opacity, width, -webkit-filter;
    -webkit-transition-timing-function: cubic-bezier(0.85,0,0,1);
    transition-timing-function: cubic-bezier(0.85,0,0,1);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.card:hover .card-image img {
    -webkit-filter: blur(75px);
    filter: blur(75px);
    opacity: .5;
    width: 800px;
}
#load-more {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

#load-more a {
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 16px !important;
  line-height: 18px !important;
  letter-spacing: 2.5px;
}

.filter-letters {
  flex-wrap: wrap;
  display: flex;
  
  align-items: center;
  gap: 3px;
  padding: 10px;
}

.filter-letters button {
  background-color: transparent;
  color: #ffffff;
  border: none;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  transition: color 0.3s ease;
}

.clear-button {
  margin-left: 16px;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.card-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px;
}

.card {
  position: relative;
  border-radius: 5px;
  /* padding: 30px; */
}

.card-content h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #ffffff;
}


.filter-bar input#search-input {
  flex: 0 60%;
}

.filter-bar button#sortBtn {
  flex: 0 40%;
}

.dropdown {
  display: flex; 
    flex: 0 0 33.3%;
}
.search-bar #sortAZBtn, #sortZABtn {
  padding: 10px;
  margin-right: 10px;
  background-color: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 5px;
  /* width: 20%; */
}
::placeholder {
    color: #ffff !important;!i;!;
}

div#no-more-cards {
  text-align: center;
  font-size: 20px;
}
#sort-dropdown{
  padding: 10px;
  //margin-right: 10px;
  background-color: #333;
  border: 1px solid #555;
  color: white;
  border-radius: 5px;
  width: 100%;
}
.search-bar .dropdown {
    flex: 0 0 40%;
}
.dropdown select {
    appearance: none;  /* remove default browser styles */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
    position: relative;
    background-image: url('https://www.citiustech.com/hubfs/citiustech-2024/Healthcare%20360/plus-icon.png');  /* base64 encoded SVG for custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;  /* position of arrow */
    background-size: 12px;
}

.dropdown select:hover, select:focus {
    border-color: #777777;  /* lighter border on focus */
    outline: none;  /* remove default focus outline */
    cursor: pointer;
}

/* General styles for Sort by dropdown */
#sort-dropdown {
/*     background-color: #1a1a1a;  /* dark background */ */
    color: #ffffff;  /* white text */
    padding: 10px;  /* padding for spacing */
    border: 1px solid #555555;  /* subtle border */
    border-radius: 4px;  /* slightly rounded corners */
    font-size: 16px;  /* appropriate font size */
    width: 100%;  /* auto width for specific dropdown */
    appearance: none;  /* remove default browser styles */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
    position: relative;
    padding-right: 30px;  /* space for the sort icon */
    background-image: url('https://www.citiustech.com/hubfs/citiustech-2024/Healthcare%20360/sort.png');  /* base64 encoded SVG for a dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;  /* position of the icon */
    background-size: 15px;
}

/* When the sort dropdown is open, change the icon */
#sort-dropdown.open {
    background-image: url('https://www.citiustech.com/hubfs/citiustech-2024/Healthcare%20360/sort.png');  /* base64 encoded SVG for an up arrow */
}

/* Focus and hover states */
#sort-dropdown:hover, #sort-dropdown:focus, #search-input:hover {
    border-color: #777777;  /* lighter border on hover/focus */
    cursor: pointer;
}
input#search-input {
    background-image: url(https://www.citiustech.com/hubfs/citiustech-2024/healthcare-consulting/chc/Search.svg);
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 15px;
}
.filter-bar option {
    position: absolute;
    top: 100%;          /* Position the dropdown directly below */
    left: 0;            /* Align to the left of the dropdown trigger */
    z-index: 9999;
}
.card:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #000000a3;
    z-index: 9;
}
button#all {
    border: 1px solid #555555;
    background-color: #333;
}

  

@media (max-width: 768px) {
    .dropdowns select, .search-bar input {
    margin-right: 0;
}
  .search-bar {
    margin-top: 0;
}
  .card-container {
    display: block !important;
  }

  .card {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }

  .dropdowns {
    display: block;
  }

  .search-bar {
    display: block;
  }

  .dropdown {
    margin-bottom: 10px;
    min-width: auto;
  }

  .filter-bar input#search-input {
    margin-bottom: 10px;
    margin-right: 0;
  }
  .filter-letters {
    gap: 4px;
    padding: 6px;
    justify-content: flex-start;
    /* overflow-x: auto; */
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .filter-letters {
    gap: 6px;
    padding: 8px;
  }

  .filter-letters button {
    font-size: 14px;
    padding: 6px 10px;
  }
  .card-container {
    grid-template-columns: 3fr 3fr 3fr 0fr;
  }
  .dropdown {
    min-width: 300px;
  }
}

@media (max-width: 820px) {
  .filter-letters {
    gap: 6px;
    padding: 8px;
    /* justify-content: flex-start; */
    /* Align buttons to the left */
    width: 100%;
  }

  .filter-letters button {
    font-size: 14px; /* Reduced font size for better fit */
    padding: 6px 10px; /* Smaller padding */
  }

  .clear-button {
    font-size: 13px; /* Adjusted for smaller screen */
    margin-left: 10px;
  }

  /* Adjust dropdowns and search bar */
  .dropdown {
    margin-bottom: 10px;
    min-width: 255px;
  }

  /* input#search-input {
      margin-bottom: 10px;
      margin-right: 0;
    }
   */
  .card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
}
