:root {
    --color-primary: #002F4D;
    --color-primary-light: #12527a;
    --color-secondary: #5BD6F8;
    --color-secondary-dark: #1c9bbf;
    --color-black: #171123;
    --color-white: #f8feff;
    --color-grey-dark: #777;
    --color-grey-light: #f7f7f7;
    --red-color: #C20000FF;
    --green-color: #009138;
    --body-background-color: #f1f1f1;
}

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

html {
    /* 10px */
    font-size: 62.5%; 
}

html, body, main {
    width: 100%;
}

body {
    font-size: 1rem;
    font-family: 'Lato', 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-grey-dark);
    background-color: var(--body-background-color);
    overflow-x: hidden;
}

header, main, footer {
    width: 100%;
}

.primary-color {
    color: var(--color-primary) !important;
}

.secondary-color {
    color: var(--color-secondary) !important;
}

.bg-grey-light {
    background-color: var(--color-grey-light);
}

.container {
    width: 92.5vw;
    max-width: 120rem;
    position: relative;
    margin: 0 auto;
}

.header {
    font-size: 1rem;
    padding: 3em 1em;
    background-image: linear-gradient(180deg, rgba(18, 82, 122, 0.95), rgb(28, 155, 191, .5)), 
    url("assets/img/headerMobile.jpg");
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    height: 60vh;
    min-height: 40rem;
}

.header .header-logo {
    width: 12em;
}

.header .header-links .header-item:not(:last-child) {
    margin-right: 5em;
}

.header .header-link {
    font-size: 1.5em;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    transition: all .25s ease;
}

.header .header-link:hover {
    color: var(--color-secondary);
}

.header .header-text-box {
    flex: 1 1 auto;
}

.header .heading-primary {
    text-transform: uppercase;
    backface-visibility: hidden;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 1.5em;
    max-width: 40em;
}

.header .heading-primary-main {
    font-size: 2.7em;
    line-height: 1.5;
    font-weight: 900;

    animation: moveInLeft 1s ease-out forwards;
}

.header .heading-primary-main span {
    background-color: rgba(59, 194, 231, 0.9);
    padding: .5rem 1.25rem;
    border-radius: 2px;
}

.main {
    font-size: 1rem;
}

.main section {
    padding-top: 6em;
    padding-bottom: 6em;
}

.section-heading {
    font-size: 2.7em;
    font-weight: 900;
    color: var(--color-black);
    margin-bottom: 2rem;
}

.section-paragraph {
    font-size: 1.8em;
    color: var(--color-grey-dark);
}

.section-paragraph-1 {
    max-width: 60rem;
}

.section-paragraph-2 {
    line-height: 1.7;
    color: rgba(255, 255, 255, .9) !important;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    max-width: 70rem;
}

.doctor-img-1 {
    margin-bottom: -6rem;
    max-width: 35rem;
}

.card,
.card-header,
.card-body,
.card-footer {
    border: unset;
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.our-services-content {
    margin: 4em 0;
}

.our-service-card .circle-border {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 11em;
    height: 11em;
    border: 3px solid #5bd6f8af;
    border-radius: 50%;
}

.our-service-card .circle-border .icon {
    width: 65%;
}

.our-service-card h4 {
    font-size: 2em;
    color: var(--color-primary-light);
    font-weight: 600;
}

.our-service-card p {
    font-size: 1.6em;
}

.work-with-us-section {
    min-height: 250px;
    background-image: linear-gradient(to bottom, rgba(18, 82, 122, 0.9), rgba(0, 109, 139, 0.5)), 
    url("assets/img/doctor2Mobile.png");
    background-position: top center;
    background-size: contain;
    background-repeat: no-repeat;
}

.footer {
    padding: 2rem 0;
    min-height: 6rem;
    background-color: #fff;
}

.btn {
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.5rem 7rem;
    border-radius: 10rem !important;
    transition: all 0.2s;
    display: inline-block;
    position: relative;
    font-size: 1.6em;
    font-weight: 700;
    border: unset;
    transform: scale(1);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.btn:hover {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.btn:hover::after {
    transform: scaleX(1.4) scaleY(1.6);
    opacity: 0;
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-grey-dark)
}

.btn-white::after {
    background-color: var(--color-white);
}

.btn-primary {
    background-color: var(--color-primary-light) !important;
    color: var(--color-white);
}

.btn-primary::after {
    background-color: var(--color-primary-light);
}

.btn-secondary {
    background-color: var(--color-secondary) !important;
    color: var(--color-white);
}

.btn-secondary::after {
    background-color: var(--color-secondary) !important;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10rem;
    transition: all 0.4s;
    z-index: -1;
}

.btn-animated {
    animation: moveInBottom 0.5s ease-out 0.75s both;
}

@keyframes moveInBottom {
    0% {
      opacity: 0;
      transform: translateY(3rem);
    }
    80% {
      transform: translateY(-1rem);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes moveInLeft {
    0% {
      opacity: 0;
      transform: translateX(-100px);
    }
    80% {
      transform: translateX(10px);
    }
    100% {
      transform: translateX(0);
      opacity: 1;
    }
}

@media (min-width: 991px) {
    .work-with-us-section {
        background-image: linear-gradient(to right, rgba(18, 82, 122, 0.95), rgb(28, 155, 191, .5)), 
        url("assets/img/doctor2Desktop.png");
        background-position: center 200%;
    }
}

@media (min-width: 1200px) {
    .header,
    .main {
        font-size: 1.25rem;
    }

    .header {
        background-image: linear-gradient(180deg, rgba(18, 82, 122, 0.95), rgb(28, 155, 191, .5)), 
        url("assets/img/doctor2Desktop.png");
        background-attachment: fixed;
        height: 70vh;
    }


    .work-with-us-section {
        background-position: center 235%;
     }

    .header .heading-primary {
        max-width: 50em;
    }

    .header .heading-primary-main {
        font-size: 3.5em;
    }

    .main section {
        padding-top: 9em;
        padding-bottom: 9em;
    }

    .doctor-img-1 {
        position: absolute;
        bottom: 0;
        margin-bottom: 0;
        max-width: 50rem;
    }

    .our-service-card p {
        font-size: 1.55em;
    }
}

@media (min-width: 1366px) {
    .work-with-us-section {
        background-attachment: fixed;
        min-height: 450px;
     }
}

@media (min-width: 1366px) and (max-width: 1600px) {
    .work-with-us-section {
        background-position: center 140%;
    }
}
