.main-page-header {
    box-sizing: border-box;
    background-image: url("/assets/images/resource/page-header-bg.png");
    margin: 0 auto;
    margin-top: 160px;
    border-radius: 13px;
    width: 98%;
    margin-inline: auto;
    padding-inline: 24px;
    padding-block: 100px;
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.main-page-header h1 {
    margin: 0;
    color: #FFF;
    font-weight: 500;
    text-align: center;
    /* line-height: 1.1; */
    text-transform: uppercase;
    font-size: 32px;
    margin-bottom: 16px;
}

.main-page-header p {
    margin: 0;
    text-align: center;
    color: #FFF;
    font-size: 16px;
    text-transform: uppercase;
}

@media only screen and (max-width:1200px) {
    .main-page-header {
        margin-top: 150px !important;
    }
}

@media only screen and (max-width:990px) {
    .main-page-header {
        margin-top: 80px !important;
    }

    .main-page-header h1 {
        font-size: 38px;
    }
}

@media only screen and (max-width:676px) {
    .main-page-header h1 {
        font-size: 32px;
    }

    .main-page-header p {
        font-size: 14px;
    }
}

@media only screen and (max-width:420px) {
    .main-page-header h1 {
        font-size: 28px;
    }

    .main-page-header p {
        font-size: 13px;
    }
}

.hospital-guide-wrapper {
    padding: 24px 16px;
    /* background-color: #fff; */
    background-color: #ecf5ff;

    margin: 16px;
    border-radius: 17px;
}

.divider-header {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ed3438;
    padding-block: 16px;
    padding-block-end: 30px;
}

.divider-header h2,
.divider-header p {
    width: 50%;
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: #000;
}

.divider-header h2 {
    color: #3E4095;
}

@media only screen and (max-width:767px) {
    .divider-header {
        flex-direction: column;
    }

    .divider-header h2,
    .divider-header p {
        width: 100%;
    }

    .divider-header h2 {
        margin-bottom: 10px;
        text-align: center;
    }
}

/* Doctos Section */


.form-group {
    position: relative;
}

.form-group>label {
    bottom: 12px;
    left: 30px;
    position: absolute;
    background-color: #e9f1fe;
    padding: 0px 5px 0px 5px;
    font-size: 1.1em;
    transition: 0.2s;
    pointer-events: none;
    color: #989494;
    font-size: 16px;
    line-height: 1;
}

.form-control:focus~label {
    bottom: 30px;
    font-size: 11px;
}

.form-control:valid~label {
    font-size: 11px;
    bottom: 30px;
}

.form-group input {
    padding-inline: 30px;
    border-radius: 30px;
}

.form-group select {
    padding-inline: 30px;
    border-radius: 30px;
}

.form-group input,
.form-group input:focus {
    background: #e9f1fe;
    box-shadow: none;
    border: 1px solid #3E4095 !important;
}

.form-group select,
.form-group select:focus {
    background: #e9f1fe;
    box-shadow: none;
    border: 1px solid #3E4095 !important;
}

.doctor-filter_form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Form Actions */

.doctor-filter_form .form_actions {
    margin-block-start: 30px;
    display: flex;
    justify-content: center;
    gap: 24px;
    grid-column: span 3;
}

.doctor-filter_form .form_actions a,
.doctor-filter_form .form_actions button {
    background-color: #cd463d;
    color: #FFF;
    font-family: "DM Sans", sans-serif;
    border: 0;
    outline: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 150px;
    width: 100%;
    max-width: 200px;
    padding: 8px 30px;
    border-radius: 50px;
    font-weight: 300;
    border: 1px solid #cd463d;
    transition: all 0.3s ease-in-out;
}

.doctor-filter_form .form_actions a:hover,
.doctor-filter_form .form_actions button:hover {
    color: #cd463d;
    background-color: #FFF;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

@media only screen and (max-width:991px) {
    .doctor-filter_form {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .doctor-filter_form .form_actions {
        grid-column: span 1;
        margin-top: 0;
    }
}

@media only screen and (max-width:476px) {
    .doctor-filter_form .form_actions {
        flex-direction: column;
    }

    .doctor-filter_form .form_actions a,
    .doctor-filter_form .form_actions button {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }

}

/* Doctors List */
.doctors-list_wrapper {
    display: flex;
    justify-content: center;
    margin-top: 100px;
    margin-bottom: 60px;
}

.doctors-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 40px;
    row-gap: 60px;
}

.doctor-list_item {}

.doctor-card {
    border: 2px solid #FFF;
    position: relative;
    text-align: center;
    background: #f5f8fe;
    border-radius: 24px;
    overflow: hidden;
    /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s;
}

.doctor-card:hover {
    transform: scale(1.05);
}

.doctor-image {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 2px solid #FFF;
}

.doctor-image img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(#ED3438, #FFFFFF00);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: flex-start;
    justify-content: flex-start;
}

.doctor-card:hover .overlay {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-block-start: 16px;
    margin-inline-start: 16px;
    flex-direction: column;
}

.social-icons a {
    color: #ED3438;
    background-color: #FFF;
    border-radius: 50px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.doctor-name {
    font-size: 18px;
    font-weight: bold;
    padding-top: 24px;
    padding-inline: 16px;
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: #3E4095;
}

.doctor-specialty {
    font-family: "DM Sans", sans-serif;
    padding-block-end: 16px;
    margin: 0;
    font-size: 13px;
    color: #3E4095;
}

@media only screen and (max-width:1200px) {
    .doctors-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media only screen and (max-width:990px) {
    .doctors-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media only screen and (max-width:476px) {
    .doctors-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}