
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.main {
    background-color: #1f1f1f;
}

a {
    text-decoration: none;
}

.logoimg {
    height: 4vw;
}

.name {
    font-size: 1.5em;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-weight: 900;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25vw;
    padding: 1vw;
    background-color: #000000;
    color: #f4f4f9;
    height: 10vh;
    position: fixed;
    top: 0;
    width: 100vw;
    transition: transform 0.2s ease-out;
    z-index: 1000;
}

nav.hidden {
    transform: translateY(-100%);
}

.nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.1vw;
}

.home-link {
    color: white;
    background-color: #E95060;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    font-size: 1.1vw;
    padding: 0.4vw 0.75vw;
    border-radius: 5px;
}

.ph-link,
.docs-link,
.prof-link {
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    font-size: 1.1vw;
    transition: all ease-in-out 0.3s;
    display: inline-block;
    outline: 0 !important;
    border: 0 !important;
}

.ph-link:hover,
.docs-link:hover,
.prof-link:hover {
    color: #E95060;
    border-radius: 20px;
    transform: scale(1.05) translateY(-0.1vw);
}

.nav-left {
    display: flex;
    justify-content: center;
    gap: 2vw;
}

header h1 {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    margin: 0;
    font-size: 2rem;
}

.container {
    max-width: 1000px;
    margin: 15vh auto;
    padding: 2rem;
    background: rgb(0, 0, 0);
    border-radius: 1vw;
}

.page-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.doctor-card {
    background-color: rgb(49, 49, 49);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    width: 100%;
    height: 150px;
    object-fit: contain;
    
}

.doctor-card:hover .doctor-image {
    transform: scale(1.05);
}

.doctor-info {
    padding: 0.7em;
    text-align: center;
}

.doctor-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0rem;
}

.doctor-specialty {
    color: #012124;
    margin-bottom: 0rem;
}

.doctor-address {
    color: #34495e;
    font-size: 0.6rem;
    margin-bottom: 1.25rem;
}

.book-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.book-button:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

footer {
    background-color: black;
    color: whitesmoke;
    text-align: center;
    padding: 1em;
    width: 100%;
    margin-top: 15.5vh;
    height: 10vh;
    box-sizing: border-box;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }

    nav {
        gap: 10vw;
        padding: 2vw;
    }

    .nav-right {
        gap: 3vw;
    }

    .home-link,
    .ph-link,
    .docs-link,
    .prof-link {
        font-size: 3vw;
    }
}
