html {
    scroll-behavior: smooth;
}

.doc-hero {
    background: #f4f9fc;
    padding: 100px 8% 140px;
    position: relative;
}

.doc-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}


.doc-text {
    max-width: 600px;
}

.doc-text h1 {
    font-size: 56px;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

.doc-text p {
    margin-top: 20px;
    font-size: 18px;
    color: #555;
}

.hero-points {
    margin-top: 25px;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    color: #2b6a73;
    font-weight: 500;
}

.doc-image img {
    width: 520px;
    height: auto;
}

.hero-wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: #2f6f73;
    border-top-left-radius: 70% 100%;
    border-top-right-radius: 70% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.hero-btn {
    margin-top: 15px;
    padding: 12px 28px;
    background: #2f6f73;
    color: white;
    text-decoration: none;
    display: inline-block;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #255b5e;
}

/*This is the css for the learn about doctor*/
.about-doctors {
    padding: 100px 8%;
    background: white;
}

.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 450px;
    border-radius: 12px;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-content h3 {
    color: #2f6f73;
    margin-bottom: 15px;
}

.about-content p {
    color: #666;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.about-stats h2 {
    font-size: 32px;
    color: #2f6f73;
}

/* This is the css for the search section*/

.doctor-search {
    background: white;
    margin: 80px auto 60px;
    padding: 40px;
    border-radius: 16px;
    width: 85%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.search-btn {
    width: 60px;
    height: 60px;
    background: #2f6f73;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-btn img {
    width: 22px;
    height: 22px;
}

.search-box {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.search-box button {
    padding: 16px 22px;
    background: #2f6f73;
    border: none;
    color: white;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
}

.search-title {
    margin-bottom: 15px;
    font-weight: 500;
    color: #666;
}

.search-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.search-tags span {
    padding: 10px 16px;
    background: #f1f5f6;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.doctors-intro {
    padding: 50px 8%;
    text-align: center;
    background: #f4f9fc;
}

.intro-container {
    max-width: 800px;
    margin: auto;
}

.doctors-intro h2 {
    font-size: 36px;
    color: #1f5f6b;
    margin-bottom: 15px;
}

.doctors-intro p {
    font-size: 16px;
    color: #6c7a92;
    line-height: 1.6;
}

/* This is the doctors cards section */
.doctors-section {
    padding: 80px 8%;
    background: #f4f9fc;
}

.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
}


.doctor-card {
    display: flex;
    align-items: center;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
}

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


.doctor-photo img {
    width: 160px;
    height: 190px;
    object-fit: cover;
    border-radius: 8px;
}


.doctor-main {
    flex: 2;
}

.doctor-name h2 {
    color: #1f5f6b;
    margin-bottom: 6px;
    font-size: 24px;
}

.doctor-country {
    display: inline-block;
    border: 1.5px solid #1f5f6b;
    color: #1f5f6b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 8px;
}

.doctor-title {
    color: #5f6f8f;
    font-weight: 500;
    margin-bottom: 5px;
}

.doctor-qualification {
    color: #7c828c;
    margin-bottom: 10px;
    font-size: 14px;
}

.doctor-information {
    color: #6b7a90;
    max-width: 520px;
    line-height: 1.5;
    font-size: 14px;
}

.rating {
    margin: 10px 0;
    color: #f4b400;
}

.doctor-side {
    flex: 1;
}

.doc-work {
    margin-bottom: 20px;
}

.doc-work h4 {
    color: #2c4e8a;
    font-size: 14px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.doc-work p {
    color: #6b7a90;
}


.doctor-btn {
    padding: 12px 28px;
    border: 2px solid #00B4D8;
    background: white;
    color: #00B4D8;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.doctor-btn:hover {
    background: #34b8dd;
    color: white;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #00B4D8;
}

.modal-specialty {
    color: #6b7a90;
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #888;
}

.close-btn:hover {
    color: red;
}

/* This is for the doctor cards*/

@media (max-width: 1024px) {

    .doctor-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .doctor-photo img {
        width: 140px;
        height: 170px;
    }

    .doctor-side {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .doctor-btn {
        margin-top: 10px;
    }

}

/* Hero responsvness*/

@media (max-width:768px) {

    .doc-hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .doc-image {
        z-index: 2;
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .doc-image img {
        width: 100%;
        max-width: 380px;
    }

    .hero-points {
        justify-content: center;
    }

}

/* Mobile hero reponsivnes */

@media (max-width:768px) {

    .doc-hero {
        padding: 80px 5% 120px;
        height: auto;
    }

    .hero-wave-svg {
        min-height: 70px;
        height: auto;
        font-size: 14px;
        text-align: center;
        padding: 15px 10px;
    }

}

/*About doctor*/
@media (max-width:768px) {

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 100%;
        max-width: 350px;
    }

    .about-stats {
        justify-content: center;
    }

}

/* Search button */
@media (max-width:768px) {

    .doctor-search {
        width: 92%;
        padding: 25px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input {
        width: 100%;
    }

    .search-btn {
        width: 100%;
        height: 50px;
    }

}

/* Small mobile */


@media (max-width:480px) {

    .doc-hero {
        height: auto;
        padding: 50px 20px 110px;
    }

    .doc-hero h1 {
        font-size: 26px;
    }

    .doc-hero p {
        font-size: 13px;
    }

}

/* this is for the mobile reponsivness  */

@media (max-width: 768px) {

    .doctors-section {
        padding: 60px 6%;
    }

    .doctor-card {
        padding: 25px;
        gap: 18px;
    }

    .doctor-photo img {
        width: 120px;
        height: 150px;
    }

    .doctor-name h2 {
        font-size: 20px;
    }

    .doctor-information {
        font-size: 13px;
    }

    .doc-work h4 {
        font-size: 12px;
    }

    .doc-work p {
        font-size: 13px;
    }

    .doctor-btn {
        width: 100%;
        text-align: center;
    }

}


/* This is for the small mobile reponsivness */

@media (max-width: 480px) {

    .doctor-photo img {
        width: 100px;
        height: 130px;
    }

    .doctor-name h2 {
        font-size: 18px;
    }

    .rating {
        font-size: 13px;
    }

    .doctor-country {
        font-size: 11px;
        padding: 3px 10px;
    }

}
