* {
  box-sizing: border-box;
}

/* General styles */
body {
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
}

h1 {
  margin-bottom: 20px;
}

p {
  margin-bottom: 10px;
}

.noUi-connect {
  background: black;
}

.noUi-target{
  z-index: 0;
 }

button {
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: 'Josefin Sans'
}

button:hover {
  background-color: #555;
}

/* Header styles */
header {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background-color: black;
  overflow: hidden;
  position: sticky;
  top: 0; /* Add this line */
  z-index: 1; /* Add this line to ensure the header stays above other elements */
}

.search-container {
  display:flex;
  justify-content: center;
  margin: 0 auto 20px;
  
}

#search-input {
  flex-grow: 8;
  padding: 10px;
  margin-left: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

#search-button {
  flex-grow: 1;
  margin-left: 10px;
  padding: 10px 20px;
  border: none;
  background-color: black;
  color: white;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

#search-button:hover {
  background-color: grey;
}


.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 160px;
  margin-right: 160px;
}

/* Main content styles */
.title {
  text-align: center;
  font-size: 36px;
  margin: 50px 0;
}

.content {
  display: flex;
  justify-content: space-between;
  padding: 0 50px;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%; /* Add this line */
}

  .filter-container {
    margin-top: unset;
    width: 20%;
    position: relative;
    top: 72px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 30px;
}


.burger-menu {
  display: none;
  position: fixed;
  top: 10px;
  left: 10px;
  font-size: 30px;
  cursor: pointer;
  z-index: 2;
}
@media screen and (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  .header {
    position: sticky;
  }

  .filter-container {
    margin-top: 30px;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
  }

  .search-container {
    display: flex;
    justify-content: center;
    margin: 0 auto 20px;
  }
}

.filter {
  width: 100%;
  padding: 10px;
  font-size: 18px;
}

.mentor-container {
  width: 75%;
  display: flex;
  flex-wrap: wrap;
  margin-top: 80px; /* Add this line */
}

.mentor-card {
  width: calc(25% - 30px);
  background-color: white;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  margin-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
@media screen and (max-width: 768px) {
  .mentor-card {
    width: calc(50% - 15px);
  }
}

.mentor-card:nth-child(4n) {
  margin-right: 0;
}

.mentor-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;

}

.mentor-card:hover img {
  filter: grayscale(100%);
}

.mentor-name {
  font-size: 20px;
  font-weight: bold;
}

.mentor-role {
    font-size: 14px;
    color: white;
}

.mentor-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: rgba(0,0,0,0.2);
  transition: opacity 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  line-height: 1.2em;
}

.mentor-card:hover .mentor-info {
  opacity: 1;
}

.read-more {
  position: absolute;
  bottom: 10px;
  background-color: white;
  padding: 5px 10px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 5px;
  left: 0;
  right: 0;
  text-align: center;
  width: 90%;
  margin: 0 auto;

}

.mentor-card:hover .read-more {
  opacity: 1;
}
.mentor-card:hover {
  transform: scale(1.05); /* Add this line to make the card grow a bit on hover */
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* Add this line to increase the box-shadow on hover */
}


/* Modal styles */
.modal {
  display: none;
  visibility: hidden;
  position: fixed;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-description {
  white-space: pre-line;
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 15px;
  border: 1px solid #888;
  width: 50%;
  display: flex;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;

}

.modal-left {
  width: 40%;
  height: 100%;
}

.modal-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-right {
  width: 60%;
  padding-left: 20px;
  overflow-y: visible; /* Update this line */
}

.close {
  color: #aaa;
  position: absolute;
  font-weight: bold;
  cursor: pointer;
  font-size: 50px;
  right: 20px;
  top: -10px;

}

.close:hover {
  color: black;
}

/* Filter and Sort styles */
.filter-section {
  margin-bottom: 20px;
}

.filter-section label {
  font-size: 16px;
}

.filter-section h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
input[type="checkbox"] {
  margin-right: 5px;
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #f0f0f0;
}

details summary:hover {
  background-color: black;
  color: white;
  padding: 10px;
  border-radius: 5px;

}

details[open] summary {
  background-color: #f0f0f0;
  color: black;
}

details {
  cursor: pointer;
  font-size: 20px;
  color: black;
  padding: 10px 0;
}

#age-labels {
  margin-top: 10px;
  font-size: 14px;
}

@keyframes open {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add these styles for the hover effect on Filter and Sort options */
details summary:hover {
  background-color: black;
  color: white;
}

details[open] summary {
  background-color: #f0f0f0;
}

/* Media queries for mobile view */

@media screen and (max-width: 768px) {
  .mentor-card img {
    height: 300px;
  }

  .mentor-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 15px; /* Update this line */
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
  }

  .read-more {
    display: block;
    position: static;
    margin-top: 10px;
    opacity: 1;
    z-index: 0;
  }
}
select {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 18px;
  background-color: #f0f0f0;
  border: none;
  padding: 5px;
  border-radius: 5px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

select:focus {
  outline: none;
}
@media screen and (max-width: 768px) {
  .title {
    margin-top: 100px;
  }
}

/* Burger menu styles */
.burger-menu {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .burger-menu {
    display: block;
  }

  .filter-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
  }

  .filter-options,
  .sort-options {
    display:block;
  }
  
  .mentor-container {
    width: 100%;
    margin-top: 0;
    justify-content: center; /* Add this line */
  }
  

  .mentor-card {
    width: calc(50% - 15px);
  }

  .mentor-info {
    height: 40%; /* Add this line */
    opacity: 1; /* Update this line */
  }

  .read-more {
    display: none; /* Update this line */
  }
}

/* Adjust title and content spacing for mobile view */
@media screen and (max-width: 768px) {
  .title {
    margin-top: 80px;
    margin-bottom: 30px;
  }

  .content {
    margin-top: 0;
    padding: 0;
  }
}

/* Adjust burger menu position for mobileview */
.burger-menu {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 2;
}

@media screen and (max-width: 768px) {
  .mentor-card {
    width: calc(50% - 15px);
    box-sizing: border-box; /* Add this line */
  }

  .mentor-card:nth-child(2n) {
    margin-right: 0; /* Add this line */
  }

  .mentor-card:nth-child(2n + 1) {
    margin-right: 3px; /* Add this line */
  }
}

@media screen and (max-width: 768px) {
  .filter-container,
  .sort-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
  }
}


/* Adjust the age slider size for mobile view */
@media screen and (max-width: 768px) {
  #age-range {
    width: 90%; /* Add this line */
  }
}

    .sort-options {
      top: 90px;
    }
  
    .modal-name{
      line-height: 1.2em;
      font-size: 18px;
      }

  /* Add this media query to center the mentor cards in mobile view */


@media screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
    max-height: 80%;
    overflow-y: auto; 
  }
}

@media screen and (max-width: 768px) {
  .filter-container,
  .sort-container {
    display: none;
    padding-top: 50px;
  }
  .filter-container,
  .sort-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    padding: 20px;
    overflow-y: auto;
    z-index: 1;
  }
  .filter-container {
    top: 50px;
  }
  .sort-container {
    top: 90px;
  }
  .filter-container,
  .sort-container {
    display: none;
  }
}
@media screen and (max-width: 768px) {
  .filter-options {
    display: block;
  }
}

/* Add this media query to move the Sort options and Sort dropdown under the Apply filter and Reset Filter buttons when the burger menu is expanded on mobile view */
@media screen and (max-width: 768px) {
  .sort-container {
    display: block;
    position: static;
    width: 100%;
    height: auto;
    background-color: transparent;
    padding: 0;
    overflow-y: visible;
    z-index: 1;
  }
  .sort-options {
    display: block;
    margin-top: 10px;
  }
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  margin-top: 10px;
  margin-bottom: 20px;
}

.pagination-container button {
  /* max-width: 30px; */
  /* width: 30px; */
  border-radius: 99px;
  max-width: 100px;
  margin: 5px;
  font-size: 12px;
  padding: 5px 11px;
  width: unset;
}

.pagination {
  display: flex; /* Add this line to display the buttons horizontally */
  justify-content: center; /* Add this line to center the buttons */
  align-items: center;
  padding: 10px 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.pagination button {
  margin: 0 10px;
}

@media screen and (max-width: 768px) {
  .pagination button {
    font-size: 14px; /* Decrease the font size */
    padding: 5px 10px; /* Adjust the padding */
  }
}
.email_{
    background-color: black;
padding: 10px;
color: white;
text-decoration: unset;
border-radius: 30px;
line-height: 0;
cursor: pointer;
}
.no-mentors-message {
  text-align: center;
  margin-left: 14%;
  margin-top: 50px;
  font-size: 30px;
}
.bold{
   text-decoration: underline;
   font-weight: 800;
}
@media screen and (max-width: 768px) {
  .no-mentors-message {
    text-align: center;
    margin-left: 0%;
    margin-top: 50px;
    font-size: 20px;
  }
}
.nav-container{
    
    margin: 0 auto !important;
}
.logo img {
    height: 160px;
    margin-right: 0 !important;
}
@media (max-width: 750px){
  .mentor-info{
   justify-content: flex-start;
   height: 45%;
  }
  .mentor-role {
      font-size: 11px;
      color: white;
      margin-top: 0;
      line-height: 1.2em;
      color: black;
  }
  .mentor-name {
      font-size: 14px;
      color: black;
      font-weight: 800;
  }
  .modal-content{
    display: flex !important;
    flex-direction: column !important;    
  }
  .modal-photo {
    width: 40% !important;
    /* height: 100%; */
    object-fit: contain;
    margin: 0 auto !important;
    height: 100%;
    object-position: top;
    margin: 0 auto !important;
    display: block;
}
.modal-right{
    
width: 100% !important;
}
.modal-left{
    width: 100% !important;
    padding-left: 0 !important;
}
.wrap_{
        display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

  }