.member_main_conteinar{
    width: 100%;
    height: auto;
    /* padding-top: 110px; */
    background-image: url(../../image/Members.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
    
}
.member_main_conteinar_area{
    width: 95%;
    height: auto;
    height: 28vh;
    margin: auto;
    text-align: center
}
.member_main_conteinar_heading{
  position: absolute;
  right: 50px;
}
.member_main_conteinar_area h1{
   color: #fff;
    font-size: 35px;
    padding-top: 55px;
}
.member_main_conteinar_area p{
    color: #fff;
    font-size: 15px;
}
.member_main_conteinar_area p a{
    color: #fff;
    text-decoration: none;
}

/* rehab_mamber_main_conteiner */



  .rehab_member_container {
    width: 100%;
    margin: auto;
  }
  .rehab_member_area{
    width: 95%;
    height: auto;
    margin: auto;
    padding-bottom: 20px;

  }
  .rehab_member_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    border-bottom: 2px solid #3E3E86;
    padding: 20px 0px;
  }
  .header_title{
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .header_title h3 {
    font-size: 18px;
    color: #3E3E86;
  }
  .header_title h3 i{
    font-size: 25px;
  }
  .header_title p {
    padding: 0px 0px;
    margin-top: 5px;
    font-size: 14px;
    color: #444;
  }
  .header_tools {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .header_tools_main {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  .search_area input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }
  .view_toggle span {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #fff;
  }
  .view_toggle span.active {
    background-color: #007BFF;
    color: #fff;
  }
  .pagination_info p {
    margin: 0;
    font-size: 0.9rem;
  }
  .pagination_buttons button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
  }
  .search_area button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
  }
  .member_list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    transition: all 0.3s ease;
  }
  .member_card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
  }

  /* Grid View */
  .grid_view .member_card {
    width: 23.5%;
    flex-direction: column;
    text-align: left;
  }
  .grid_view .member_img img {
    width: 100%;
    border-radius: 10px;
  }
  .grid_view .member_info {
    margin-top: 10px;
  }
  .grid_view .member_action {
    margin-top: auto;
    text-align: left;
  }
  .member_action button{
    padding: 10px 20px;
    background-color: #3E3E86;
    color: #fff;
    border: none;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease-in-out;
  }
  .member_action button:hover{
    background-color: #ffff;
    border: 1px solid #3E3E86;
    color: #3E3E86;
  }

  /* List View */
  .list_view .member_card {
    width: 49%;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
  }
  .list_view .member_img img {
    width: 120px;
    height: auto;
    border-radius: 10px;
  }
  .list_view .member_info {
    flex: 1;
  }
  .member_info{
    color: #666666;
  }
  .member_info p{
    font-size: 14px !important;
    padding: 5px 0px;
  }
  .member_info h3{
    font-size: 18px;
    padding: 5px 0px;
    color: #3E3E86;
  }
  .list_view .member_action {
    align-self: center;
  }
  .list_view .member_card {
    transition: all 0.3s ease;
  }
  
  .list_view .member_card:hover {
    background-color: #f9f9f9; /* Light background on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    transform: scale(1.02); /* Slight zoom-in effect */
    cursor: pointer;
  }
  /* Add this CSS for the specific list view layout you requested */
.member_list.list_view .member_card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center; /* Align items vertically in the center */
}

.member_list.list_view .member_info {
    flex-grow: 1; /* Allow member info to take up available space */
    margin-right: 20px; /* Space between info and logo/action */
}
.member_list i{
    color: #3E3E86;
    margin-right: 5px;
}

.member_list.list_view .member_right_section {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center logo and button horizontally */
    margin-left: auto; /* Push to the right */
    gap: 50px 0px;
}

.member_list.list_view .member_img {
    margin-bottom: 10px; /* Space between logo and button */
}

/* Ensure existing styles for grid view are not affected */
.member_list.grid_view .member_card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member_list.grid_view .member_right_section {
      display: flex; /* Make it a flex container */
      flex-direction: column; /* Stack logo and button */
      align-items: center; /* Center horizontally */
      margin-top: 15px; /* Add some space above */
  }

  .bottom_pagination {
    display: flex;
    justify-content: right;
    margin-top: 25px;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .grid_view .member_card {
      width: 31.5%;
    }
    .list_view .member_card {
      width: 100%;
    }
    .view_toggle{
        display: none;
    }
    
  }
  @media (max-width: 1200px) {
    .grid_view .member_card {
      width: 48%;
    }
    .member_main_conteinar_area h1{
      padding-top: 80px;
  }
  }
  @media (max-width: 480px) {
    .grid_view .member_card,
    .list_view .member_card {
      width: 100%;
      flex-direction: column;
    }
    .list_view .member_img img {
      width: 100%;
    }
  }


