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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    color: #222;
}


/* Navbar */

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 23px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 500;
}

.nav-links a:hover {
    color: #007bff;
}

.menu-btn {
    display: none;
    border: none;
    background: none;
    font-size: 25px;
    cursor: pointer;
}


/* Hero */

.hero {
    min-height: 600px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            rgba(0, 123, 255, 0.75),
            rgba(0, 123, 255, 0.75)
        ),
        url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3")
        center/cover;
}

.hero-content {
    max-width: 700px;
    margin-left: 10%;
    color: white;
}

.hero h1 {
    font-size: 55px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* Buttons */

.btn {
    display: inline-block;

    background: white;
    color: #007bff;

    border: none;
    padding: 13px 25px;

    border-radius: 6px;

    text-decoration: none;
    font-weight: bold;

    cursor: pointer;
    transition: 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}


/* Sections */

.section {
    padding: 80px 8%;
    text-align: center;
}

.section h2 {
    font-size: 35px;
    margin-bottom: 20px;
}

.light {
    background: #f5f9ff;
}

.section-text {
    max-width: 800px;
    margin: auto;
    line-height: 1.7;
}


/* Features */

.features {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 45px;
}

.feature-card {
    max-width: 300px;
    padding: 30px;
    background: white;
    border-radius: 10px;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    margin-bottom: 12px;
}


/* Departments */

.cards {
    max-width: 1100px;
    margin: 40px auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.card {
    background: white;
    padding: 35px 20px;
    border-radius: 10px;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

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

.icon {
    font-size: 45px;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
}


/* Doctors */

.doctor-container {
    max-width: 1000px;
    margin: 40px auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.doctor-card {
    padding: 30px;

    border-radius: 10px;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);

    background: white;
}

.doctor-image {
    font-size: 70px;
    margin-bottom: 15px;
}

.doctor-card h3 {
    margin-bottom: 8px;
}

.doctor-card p {
    color: #007bff;
    margin-bottom: 8px;
}


/* Appointment */

form {
    max-width: 650px;
    margin: 35px auto 0;

    display: flex;
    flex-direction: column;
    gap: 15px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;

    border: 1px solid #ccc;
    border-radius: 6px;

    font-size: 16px;
    font-family: Arial, sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #007bff;
}

textarea {
    resize: vertical;
}

form .btn {
    background: #007bff;
    color: white;
}


/* Confirmation */

.confirmation {
    display: none;

    max-width: 650px;
    margin: 30px auto 0;

    padding: 25px;

    background: #e9f8ee;
    border: 1px solid #8bd19c;

    border-radius: 10px;
}

.confirmation h3 {
    color: #198754;
    margin-bottom: 15px;
}

.confirmation p {
    line-height: 1.8;
}

.close-btn {
    margin-top: 15px;

    padding: 10px 20px;

    border: none;
    border-radius: 6px;

    background: #198754;
    color: white;

    cursor: pointer;
}


/* Contact */

.contact {
    background: #007bff;
    color: white;
}

.contact-container {
    max-width: 1000px;
    margin: 40px auto 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-container h3 {
    margin-bottom: 10px;
}


/* Footer */

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 20px;
}


/* Mobile */

@media (max-width: 768px) {

    .nav-links {
        display: none;

        position: absolute;
        top: 65px;
        left: 0;

        width: 100%;

        background: white;

        flex-direction: column;

        padding: 20px;

        text-align: center;
    }

    .nav-links.show {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        min-height: 500px;
    }

    .hero-content {
        margin: 0 25px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .doctor-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 20px;
    }
}