/*Browse-css*/
.body-search{
  padding: auto;
  
}
       .hero-section2 {
            background-color: #2a272a; 
            color: white;
            padding: 60px 20px;
            text-align: center;
        }

        .hero-section2 h1 {
            font-size: 2.5em; /* Approximate size from image */
            margin-top: 0;
            margin-bottom: 20px;
            font-weight: bold;
            letter-spacing: 1px; /* Slight letter spacing */
        }

        .hero-section2 p {
            font-size: 1em; /* Approximate size from image */
            margin-bottom: 30px;
            line-height: 1.6;
        }
/*-----------------------------------------------------------------------------------------*/
       
         /* Responsive adjustments */
        @media (max-width: 768px) {
            .hero-section2 h1 {
                font-size: 2em;
            }
            .hero-section2 p {
                font-size: 0.9em;
            }
        }

        @media (max-width: 480px) {
            .hero-section2 {
             margin-left: -8px;
             padding-left: 2px;
             padding-right: 2px;
             margin-right: -8px;
             padding-top: 35px;
             padding-bottom: 35px;
            }
            .hero-section2 h1 {
                font-size: 1.8em;
            }
            .hero-section2 p {
                font-size: 0.85em;
            }
            .buttons-container2 {
                flex-direction: column; /* Stack buttons on smaller screens */
                align-items: center;
            }
            
        }
/*-------------------------------Searchbar----------------------------------------------------------------*/
        .search{
         width: 480px;
         height: 25px; 
         font-style: 16px;
         padding-top: 25px;
         padding-bottom: 25px;
         padding-left: 10px;
         border-left-width: 3px;
         margin-right: 0px;
         margin-left: 0px;
         margin-bottom: 20px;
         border-radius: 20px;
         color: #31b9a8;
         border: solid;
         border-color: #31b9a8;
         font-size: 18px;
         letter-spacing: 0.062em;
         background-image: url("");
         outline: none;
         }

         .location-search{
        width: 155px;
        height: 25px;
        font-style: 16px;
        padding-top: 25px;
        padding-bottom: 25px;
        padding-left: 10px;
        border-left-width: 3px;
        margin-right: 0px;
        margin-left: 8px;
        margin-bottom: 20px;
        border-radius: 20px;
        color: #31b9a8;
        border: solid;
        font-size: 18px;
        background-image: url("");
        outline: none;
        padding-right: 0px;
       }

       @media (max-width: 600px) {
        .search{
            width: 200px;
            margin-right: 3px; 
          
          }
            
       }
/*-------------------------------------------------------------------------------------------------*/        
/*-------------------------------------------------------------------------------------------------*/
  .Md2 {
   padding: 10px;
   overflow-x: auto;
   margin-top: 0px;
   background-color: #2a272a;
   padding-bottom: 0px;
   padding-top: 8px;
}
  

    ul.menu2 {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-wrap: nowrap;
      gap: 10px;
      overflow-x: auto;
      scroll-behavior: smooth;
      padding-bottom: 10px;
    }

    ul.menu2::-webkit-scrollbar {
      display: none;
    }

    ul.menu2 li {
      position: relative;
      flex: 0 0 auto;
      text-decoration: none;
    }

    .btn2 {
      background-color: #31b9a8;
      color: rgb(255, 255, 255);
      margin-top: 2px;
      margin-bottom: 2px;
      padding: 10px 16px;
      font-weight: bold;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      align-items: center;
      font-size: 15px;
    
    }

    .btn2::after {
      content: "";
      margin-left: 8px;
      font-size: 12px;
    }



    .h-list-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, padding 0.3s ease;
      position: absolute;
      background-color: #fff;
      min-width: 160px;
      border-radius: 8px;
      box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
      z-index: 1;
      top: 100%;
      left: 0;
      padding: 0 0;
    }

    .h-list-content a {
      color: black;
      padding: 10px 14px;
      text-decoration: none;
      display: block;
      font-size: 14px;
    }

    .h-list-content a:hover {
      background-color: #f1f1f1;
    }

    .h-list.open .dropdown-content {
      max-height: 500px;
      padding: 10px 0;
    }

    .h-list :hover{
      transform: scale(1.02);
    }

    @media (max-width: 600px) {
      ul.menu2 {
        flex-wrap: nowrap;
        overflow-x: auto;
      }

      .h-list-content {
        position: relative;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
      }

      .btn2 {
        width: auto;
        justify-content: space-between;
      }
    }




/*--------------------------------------------------------------------------------------*/

   @import url("https://use.fontawesome.com/releases/v5.13.0/css/all.css");
        
  .directory {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 8px;
    flex-direction: column;
    padding: 1rem;
    font-family: sans-serif;
    text-decoration: none;
    
  }

  .directory a {
    text-decoration: none;
    color: #3498db;
  }

  .card {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    flex-direction: row;
    transition: transform 0.2s;
  }

  .card:hover {
    transform: translateY(-4px);
  }

  .card img {
    margin-top: auto;
    margin-bottom: auto;
    width: 180px;
    height: 200px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .card-content {
    padding: 1rem;
    /*display: flex;*/
    flex-direction: column;
    justify-content: center;
  }

  .card-content h3 {
    margin: 0;
    font-size: 1.25rem;
  }

  .card-content p {
    margin: 8px 0;
    color: #000000;
    font-size: 0.95rem;
  }

  .card-content a {
    color: #31b9a8;
    margin-top: 6px;
  }

  .con1 ,.con2{
    display: flex;
    justify-content: start;
    margin-bottom: 5px;
    background-color: #2a272a;
    border-radius: 20px;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 2px;
    padding-left: 5px;
    text-align: center;
  }

  
.fa-location-dot::before, .fa-map-marker-alt::before,
.fa-phone::before,
.fa-globe::before{
  display: block;
  margin-top: 8px;
  margin-bottom: 8px;
  margin-left: 8px;
  color: rgb(255, 255, 255);
}



  .fas fa-phone{
    text-align: start;
  }


  .con1:before{
    content: "" "";
  }

  .fas{
    color: #fbfefd;
    padding-right: 5px;
  }
  
  .time{
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
    font-family: 'Times New Roman', Times, serif;
    padding-left: 0.4rem;
  }

  .tag {
    background: #2a272a;
    display: initial;
    padding: 5px 8px;
   
    font-size: 0.8rem;
    text-align: center;
    border-radius: 60px / 60px;
    width: 80px;
    color: #ffff;
  }

 @media (max-width: 768px) {
  .directory {
    display: flex;
    flex-direction: column;
    gap: 20px;
   
    margin-top: 1rem;
    font-family: sans-serif;
    width: 100%; /* ✅ Allow natural responsiveness */
    max-width: 100%;
  }

  .card {
    display: grid;
  }

  .card img {
    margin: auto;
    width: 180px;
    height: auto;
    object-fit: cover;
  }

  .card-content {
    display: block; /* or flex if needed */
    padding: 0.8rem;
  }

  .tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    
   
    
  }

  .tag {
    display: inline-table;
    background-color: #333;      
    color: white;                
    padding: 6px 12px;
    border-radius: 20px;         
    font-size: 14px;
    white-space: nowrap;        
    overflow: hidden;
    text-overflow: ellipsis; 
    
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .directory {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    gap: 16px;
    padding: 1rem;
  }

  .card {
    flex-direction: row; /* Keep as row on tablets if content fits well */
  }

  .card img {
    width: 150px; /* Slightly smaller image on tablets */
    height: 180px;
  }

  .card-content {
    padding: 0.8rem;
  }

  .card-content h3 {
    font-size: 1.15rem;
  }

  .card-content p {
    font-size: 0.9rem;
  }
}
  /*---------------------------------end-----------------------------------------------------*/