body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.wrapper {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}
/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Ensures everything stays in one row */
    margin-bottom: 20px;
    padding: 10px;
    gap: 10px; /* Adds spacing between elements */
    width: 100%;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 6px;
    border-radius: 25px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    flex-grow: 1; /* Allows it to take available space */
    min-width: 180px; /* Prevents it from shrinking too much */
    max-width: 500px; /* Ensures it doesn’t get too big */
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    font-size: 16px;
    background: transparent;
    width: 100%;
}

.search-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
    color: #555;
}

/* Sort Dropdown */
#sortSelect {
    border: none;
    padding: 10px 12px;
    border-radius: 12px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    outline: none;
    min-width: 130px;
    max-width: 180px;
    flex-shrink: 0; /* Prevents it from shrinking too much */
}

/* Hover and Focus Effects */
#sortSelect:hover,
#sortSelect:focus {
    box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.2);
    transform: scale(1.03);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .top-bar {
        gap: 5px; /* Reduce spacing between elements */
        padding: 5px;
    }

    .search-bar {
        width: 55%; /* Adjust width instead of wrapping */
        min-width: 140px;
    }

    #sortSelect {
        width: 40%; /* Adjust dropdown size */
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .search-bar {
        width: 50%; /* Further reduce width */
    }

    #sortSelect {
        width: 45%;
    }
}

@media (max-width: 500px) {
    .search-bar {
        width: 60%;
        min-width: 120px;
    }

    #sortSelect {
        width: 35%;
        min-width: 100px;
    }
}




/* Profiles */
.profiles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .profiles-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .profiles-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.profile-card {
    display: flex;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.profile-card:hover {
    transform: scale(1.03);
}

.profile-image {
    width: 80px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
}

.profile-details {
    flex: 1;
}

.doctor-name {
    font-size: 18px;
    color: #333;
    margin: 0;
}

.specialty {
    font-size: 14px;
    color: #777;
    margin: 5px 0;
}

.rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #f4b400;
}

.price {
    font-size: 14px;
    font-weight: bold;
    color: #28a745;
    margin-top: 5px;
}

/* Buttons */
.button-container {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    justify-content: space-between;
}

.view-profile-btn,
.book-btn {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: 1px solid #4caf50;
    background: transparent;
    color: #4caf50;
    transition: all 0.3s ease-in-out;
}

.view-profile-btn:hover,
.book-btn:hover {
    background: #4caf50;
    color: #fff;
}

.book-btn:disabled {
    cursor: not-allowed;
    background: #ccc;
    color: #666;
    border: none;
}

/* No Results */
.no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.no-results img {
    width: 250px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.no-results p {
    font-size: 22px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
}
/* HEADER */
.header {
    width: 98%;
    margin: auto;
    border-radius: 5px;
    padding: 1px 0; /* Proper padding for header */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* NAVBAR */
.bsb-navbar {
    width: 100vw; /* Full width across viewport */
    max-width: 100%;
    padding: 15px 40px; /* Adjusted padding for spacing */
       border-radius: 10px;

}

.bsb-navbar .container {
    max-width: 95%; /* Responsive max-width for better alignment */
}

/* NAVBAR LINKS */
.navbar-nav {
    margin-left: auto; /* Align menu items to the right */
}

.navbar-nav .nav-item {
    margin: 0 10px; /* Proper spacing between menu items */
}

.navbar-nav .nav-link {
    padding: 10px 15px; /* Good clickable area */
    color: black !important; /* Ensures color consistency */
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* OFFCANVAS MENU (Mobile) */
.offcanvas {
    padding: 20px;
}

.offcanvas-header {
    padding: 15px;
}

.offcanvas-body {
    padding: 10px;
}

/* LOGO */
.bsb-tpl-logo {
    max-height: 60px; /* Adjust logo size */
    width: auto;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .bsb-navbar {
        padding: 10px 20px;
    }
    
    .navbar-nav {
        text-align: center; /* Center menu items on smaller screens */
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
}

/* FOOTER */
.footer {
    background-color: #15558d;
    padding: 20px 0 0;
    width: 98%;
    margin: auto;
    border-radius: 5px;
}

.footer .footer-top {
    padding: 0 0;
}

.footer-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: capitalize;
}

.footer .footer-widget {
    margin-bottom: 30px;
}

.footer .footer-widget.footer-about {
    padding-right: 30px;
}

.footer .footer-widget .footer-logo {
    margin-bottom: 20px;
}

.footer .footer-widget .footer-about-content p {
    color: #fff;
    margin-bottom: 10px;
}

.footer .social-icon ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer .social-icon ul li {
    margin-right: 15px;
}

.footer .social-icon ul li:last-child {
    margin-right: 0;
}

.footer .social-icon ul li a {
    color: #fff;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer .social-icon ul li a:hover {
    color: #09e5ab;
}

.footer .footer-widget.footer-contact {
    padding-left: 30px;
}

.footer-contact-info {
    color: #fff;
    font-size: 15px;
}

.footer-contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footer-contact-info p i {
    margin-right: 10px;
    font-size: 18px;
}

.footer .footer-bottom {
    border-top: 1px solid #1663a6;
    /* padding: 20px 0;
    margin-top: 20px; */
}

.footer .footer-bottom .copyright {
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.footer .footer-bottom .copyright-text p {
    margin: 0;
    color: #fff;
}

.footer .footer-bottom .copyright-text p a {
    color: #09e5ab;
    transition: all 0.3s ease;
}

.footer .footer-bottom .copyright-text p a:hover {
    color: #fff;
}

.policy-menu {
    font-size: 14px;
    text-align: right;
    margin: 10px 0 0;
}

.policy-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
}

.policy-menu li {
    display: inline-block;
    margin-right: 15px;
}

.policy-menu li:last-child {
    margin-right: 0;
}

.policy-menu li a {
    color: #fff;
    transition: all 0.3s ease;
}

.policy-menu li a:hover {
    color: #09e5ab;
}

.policy-menu li::after {
    content: "|";
    color: #fff;
    margin-left: 10px;
}

.policy-menu li:last-child::after {
    content: "";
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer .footer-widget.footer-about,
    .footer .footer-widget.footer-contact {
        padding: 0;
        text-align: center;
    }
    
    .footer .social-icon ul {
        justify-content: center;
        margin-top: 10px;
    }

    .policy-menu {
        text-align: center;
        margin-top: 10px;
    }
}


/* LOADER */
.load-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 50px;
  }
  
  .load-row span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 5px;
    background: #f76002;
    border-radius: 50%;
    animation: up-down 0.5s ease-in infinite alternate;
  }
  
  .load-row span:nth-child(2) {
    background: #e85b04c4;
    animation-delay: 0.16s;
  }
  
  .load-row span:nth-child(3) {
    background: #e85b0491;
    animation-delay: 0.32s;
  }
  
  .load-row span:nth-child(4) {
    background: #e85b0456;
    animation-delay: 0.48s;
  }
  
  @keyframes up-down {
    0% {
      transform: translateY(-10px);
    }
    100% {
      transform: translateY(10px);
    }
  }
  
  /* Initially hide no-results & loading */
  #loading, #noResults {
    display: none;
    text-align: center;
  }