body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-image: url(images/p9.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
color: black;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-image: url(images/p4.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
}

header .logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: whitesmoke;
}

.search-bar {
    display: flex;
    text-align: center;
    margin-left: 20px;
}

.search-bar input {
    padding: 8px 12px;
    border-radius: 8px 0 0 8px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.search-bar button {
    padding: 8px 15px;
    border: none;
    border-radius: 0 8px 8px 0;
    background-color: black;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background-color: blue;
}

form {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

form input[type="search"] {
    padding: 6.5px;
    width: 200px;
    border: none;
    border-radius: 5px;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.auth-buttons a{
    padding: 8px 15px;
    border-radius: 8px;
    background-color: black;
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.auth-buttons a:hover {
    background-color: blue;
}

section {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 10px;
}

section h1 {
    color: black; 
    margin-bottom: 0.5rem;
    text-align: center;
}

section p {
    text-align: center;
    color: black;
}

footer {
    text-align: center;
    padding: 15px;
    background-image: url(images/p4.jpg);
    color: white;
    margin-top: 2rem;    
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-image: url(images/icu3.jpg);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
    transition: transform 0.5s ease;
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.card:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: black;
}

.gallery {
    margin-bottom: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery figure {
    margin: 0;
    text-align: center;
    background-color: transparent;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.gallery img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    transition: 0.4s ease;
    text-align: left;
}

.gallery figcaption .desc {
    opacity: 0;
    max-height: 0;
    transition: 0.4s ease;
    display: block;
    text-align: left;
}

.gallery figure:hover .desc {
    opacity: 1;
    max-height: 200px;
}

.gallery figure:hover figcaption b {
    opacity: 0;
    max-height: 0;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    background-color: black;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 8px
    rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#topBtn:hover {
    background-color: blue;
    transform: scale(1.1);
}