* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial;
}

/* make images responsive */
img {
    max-width: 100%;
    height: auto;
}

/* NAVBAR */
header {
    background: #ffffff;
    color: white;
    padding: 5px 20px;
    /* ↓ reduce this */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero .overlay p {
    font-family: 'Cairo' , fantasy;
    font-size: 31px;
    font-weight: bold;
    color: white;
    text-align: center;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero .overlay p {
        font-size: 28px;
        padding: 0 20px;
    }
}

nav a {
    color: rgb(141, 164, 213);
    margin: 0 8px;
    text-decoration: none;
    font-size: 16px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 90px;
    height: 70px;
    margin-right: 10px;
}

.logo span {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

@media (max-width: 768px) {

    header {
        flex-direction: column;
        text-align: center;
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        display: inline-block;
        margin: 5px;
        font-size: 14px;
    }

    .overlay {
        padding: 200px 20px 0;
        font-size: 20px;
    }

    .doctor-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .doctor-container {
        grid-template-columns: 1fr;
    }

    .card {
        width: 100%;
    }
}

/* HERO WITH IMAGE */
.hero {
    height: auto;
    background-image: url("imgs/back2.jpeg");
    background-size: cover;
    background-position: center;
    width: 100%;
}

/* @media (max-width: 768px) {
    .hero {
        background-image: url("imgs/back2.jpeg");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        height: 110vh;
    }
} */

.about {
    background: #eff2f7;
    height: 310px;
    padding: 60px 20px;
    text-align: center;
}

.about h2 {
    color: #0077b6;
    font-size: 32px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #0077b6;
    margin: 8px auto 0;
    border-radius: 5px;
}

.about-container {
    max-width: 800px;
    margin: auto;
    font-size: 22px;
    line-height: 1.8;
    color:#0077b6;
}

.overlay {
    /* background: rgba(0, 0, 0, 0.5); */
    color: white;
    padding-top: 460px;
    padding-left: 120px;
    text-align: center;
    font-size: 30px;
}

/* SECTIONS */
section {
    padding: 40px;
    text-align: center;
}

/* SERVICES */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.card {
    background: #edf7fe;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: 0.3s;
}


.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.card p {
    color: #0077b6;
}

.services h2 {
    font-size: 32px;
    color: #0077b6;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.services h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #0077b6;
    margin: 8px auto 0;
    border-radius: 5px;
}

.card:hover {
    transform: scale(1.05);
}

/* DOCTORS SECTION */

.doctors h2 {
    font-size: 32px;
    color: #0077b6;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.doctors h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #0077b6;
    margin: 8px auto 0;
    border-radius: 5px;
}

.doctor-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
}

/* CARD */
.doctor-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;

}

.doctor-card:hover {
    transform: scale(1.05);
}

.doctor-card h3{
    color: #005f8a;
}

.doctor-card p{
    color: #0077b6;
}
/* IMAGE */
.doctor-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.doctor-card:hover img {
    transform: scale(1.1);
}

/* TEXT ALIGNMENT */
.doctor-card h3 {
    min-height: 50px;
    margin: 10px 0 5px;
}

.doctor-card p {
    min-height: 25px;
    margin: 5px 0;
}

.info {
    min-height: 80px;
    font-size: 14px;
    margin: 10px 0;
}

/* WHATSAPP BUTTON */
.doctor-card a  {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: #0077b6;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.doctor-card a:hover {
    transform: scale(1.05);
    background: #005f8a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .doctor-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .doctor-container {
        grid-template-columns: 1fr;
    }
}
/* CONTACT */
.contact {
    background: #e0f7fa;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 10px;
    font-size: 28px;
    color: #0077b6;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #005f8a;
}

/* FOOTER */
footer {
    background: #0077b6;
    color: white;
    padding: 10px;
}

.page_title{
    color: #004970;
    text-align: center;
}

form {
    background: rgb(226, 248, 250);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    color: #005f8a;
    text-align: center;
    align-items: center;
}



.booking-page label{
    color: #004f7a;
}


.doctorscards{
        height: auto;
        background-image: url("imgs/child.avif");
        background-size: cover;
        background-position: center;
        width: 100%;
        text-align: center;
}

.booking-card{
    text-align: center;
}
/* .doctorcard{
    background-color: rgb(128, 169, 218);
    width: auto;
    height: 500px;
    border-radius: 10% ;
    font-size: 25px;
    color: #ffffff;
    justify-content: center;
} */