@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
  }
  
  body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}


/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    padding: 0 80px;
    position: fixed;  
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    align-items: center;
    width: 100%;
    max-width: 10000px;
    z-index: 1000;
    margin-bottom: 20px;
    background-color: #3498db;
    transition: .5s ease-in;
  }
  
  /* Center nav links */
  .navbar .center ul {
    display: flex;
    list-style: none;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    width: fit-content;
    height: fit-content;
  }
  
  .navbar .center ul li a {
    color: white;
    text-decoration: none;
    margin: 15px;
    font-size: 1em;
    font-weight: 400;
    text-transform: capitalize;
    display: inline-block;
    position: relative;
  }
  
  .center ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #fdfdfd;
    transition: width 0.3s ease;
  }
  
  .center ul li a:hover::after {
    width: 100%;
  }
  
  /* Left logo */
  .left img {
    cursor: pointer;
    font-family: "Righteous";
    margin-top: 5px;
  }
  
  .left img:hover {
    text-shadow: 0 0 2px white;
    transition: 0.2s;
  }
  
  /* Right buttons */
  .right {
    display: flex;
    gap: 15px;
    align-items: center;
  }
  
  .right button {
    background-color: transparent;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1em;
    text-transform: capitalize;
    cursor: pointer;  
    white-space: nowrap;
  }
  
  .right button:hover {
    color: rgb(0, 255, 255);
  }
  
  .right button:nth-child(2) {
    font-weight: 500;
    font-size: 1em;
    padding: 5px;
    margin-left: 15px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 15px;
    width: 120px;
    height: fit-content;
    cursor: pointer;
    text-transform: capitalize;
  }
  
  .right button:nth-child(2):hover {
    background-color: rgb(0, 255, 255);
    color: rgb(0, 0, 0);
    transition: 0.5s;
  }
  
  /* Hamburger icon */
  .hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
  }
  
  /* Responsive styles */
  @media screen and (max-width: 768px) {
    nav {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px 30px;
      height: auto;
    }
  
    .hamburger {
      display: block;
      position: absolute;
      top: 35px;
      right: 40px;
      z-index: 1100;
    }
  
    .navbar .center,
    .navbar .right {
      display: none;
      width: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(10px);
      padding: 15px 0;
      border-radius: 10px;
      margin-top: 20px;
    }
  
    .navbar .center.active,
    .navbar .right.active {
      display: flex;
    }
  
    .navbar .center ul {
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
  
    .navbar .center ul li a {
      margin: 10px 0;
    }
  
    .navbar .right {
      flex-direction: row; /* Ensure buttons stay in row */
      justify-content: center;
      gap: 15px;
    }
  
    .navbar .right button {
      margin: 10px 0;
    }
  }
  
  


header {
    /* background-color: #2c3e50; */
    background-image: url(/assets/bgi2.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(-200px);
    animation: slideInRight 3.5s ease-out forwards;
}

@keyframes slideInRight {
    0% {
      transform: translateX(-200px);
      opacity: 0;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-container {
    margin: 20px 0;
    text-align: center;
}

#hospitalSearch {
    padding: 10px 15px;
    width: 60%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}
#hospitalSearch::placeholder {
    color: #aaa;
    font-style: italic;
    animation: placeholderSlide 3s linear infinite;    
}
#hospitalSearch:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}


@keyframes placeholderSlide {
    0% {
      transform: translateX(0);
      opacity: 1;
    }
    25% {
      transform: translateX(10px);
      opacity: 0.8;
    }
    50% {
      transform: translateX(-10px);
      opacity: 1;
    }
    75% {
      transform: translateX(10px);
      opacity: 0.8;
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
  }

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    margin: 0 14px;
    background: #3498db;
    color: white;
    border: none;
    border-radius:10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

.tab-btn.active {
    background: #2c3e50;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.hospital-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.hospital-card:hover {
    transform: scale(1.01);
    filter: drop-shadow(0px 1.5px 10px #3498db);
}

.hospital-image-container {
    flex: 0 0 250px;
}

.hospital-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.hospital-image:hover {
    transform: scale(1.1);
}
.hospital-info {
    flex: 1;
}

.hospital-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.hospital-card p {
    margin-bottom: 8px;
}

.hospital-card .specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.specialty-tag {
    background: #e0f7fa;
    color: #00838f;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.website-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.website-link:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
    color: #666;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        margin: 5px 0;
        width: 80%;
    }
    
    #searchInput {
        width: 80%;
    }
    
    .hospital-card {
        flex-direction: column;
    }
    
    .hospital-image-container {
        flex: 0 0 auto;
    }
    
    .hospital-image {
        height: 180px;
    }
}




  
/* footer  */

/* footer  */

.footer {
    background-color: #f0f0f5;
    padding: 40px 20px 20px;
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    border-top: 1px solid #ccc;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
  }
  
  .footer-about, .footer-links, .footer-contact {
    flex: 1 1 300px;
    margin: 10px;
  }
  
  .footer h3, .footer h4 {
    color: #2a2a72;
    margin-bottom: 15px;
  }
  
  .footer p, .footer li {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .footer-links ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-links ul li a {
    color: #333;
    text-decoration: none;
  }
  
  .footer-links ul li a:hover {
    color: #007BFF;
  }
  
  .footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: #777;
  }
  
  
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .footer-about, .footer-links, .footer-contact {
      width: 100%;
      margin-bottom: 20px;
    }
  
    .footer {
      text-align: left;
      padding: 30px 15px;
    }
  
    .footer-bottom {
      text-align: center;
    }
  }
  
  
  
  