/*!
Theme Name: Jordan Eye Center
Theme URI: https://underscores.me/
Author: Automattic
Author URI: https://automattic.com/
Description: Hi. I'm a starter theme called <code>Jordan Eye Center</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: Jordan Eye Center
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Jordan Eye Center is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
/* HEADER */

* {
    letter-spacing: 0px;
}

.actionbar__flag {
    margin-left: 5px;
    margin-right: 0;
}

.actionbar__cta {
    margin-right: 2rem;
}


/* HOME */

.direction {
    flex-direction: row-reverse;
}

.home__slide {
     
}

.home__content {
    text-align: right;
}



/* ######### */


/* ABOUT */

.about__img {
    margin-left: 2rem;
    margin-right: 0;
}

.numbers__value {
    text-align: center;
}


/* APPOINTMENT */

.appointment__input {
    padding: 1.2em 1.5em 1.2em 0;
    /* margin: 0 0 2rem 3%; */
    text-align: right;
}

.appointment__textarea {
    padding: 1rem 1.5rem 0 0;
    margin: 0 0 0 2%;
    text-align: right;
}

.appointment__form .wpcf7-form-control-wrap:nth-child(6) {
    margin: 0 0 0 -1.5%;
}

.appointment__cta {
    margin: 2rem 0 0 1rem;
}


/* DEPARTMENT */

.department__item {
    text-align: right;
}


/* DOCTORES */
.doctors__item {
    text-align: right;
}

.doctors__phone,
.doctors__Email {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.doctors__svgimage {
    margin-left: 1rem;
    margin-right: unset;
}


/* SERVICE */

.services__image {
    margin-left: 10rem;
    margin-right: unset;
}

.services__list {
    padding-left: var(--horizontalSpace);
    padding-right: unset;
}

.services__item {
    margin: 0 0 4rem 3%;
}

.news__title {
    margin-bottom: 1rem;
}

.contact__form {
    margin-right: unset;
    width: 90%;
}

.contact__input {
    /* margin: 0 0 3rem 2%; */
    padding: 1.3em 1.4em 1.3em 0;
    text-align: right;
}

.contact__textarea {
    margin: 0;
    padding: 1.3em 1.4em 1.3em 0;
    text-align: right;
}

.footer__input {
    padding: 1.2em 1.3em 1.2em 0;
    margin-left: 1%;
    margin-right: unset;
}

.appointment__submit,
.contact__button,
.news__button,
.footer__btn {
    font-family: 'Cairo';
}

.department__title {
    font-size: var(--subTitle);
    line-height: 2.5rem;
}

.services__number {
    margin-left: 1rem;
    margin-right: 0;
}

.contact__icon--rotate {
    margin-left: 0.3rem;
}

.contact__information {
    width: 65%;
    margin-left: unset;
    margin-right: 3rem;
}

.contact__button {
    margin-left: 1.5rem;
}

.wpcf7-not-valid-tip {
    text-align: right;
}


/* MEDIA QUERY  */

@media only screen and (max-width: 1600px) {
    .services__image {
        margin-left: 5rem;
    }
    .footer__btn {
        padding: 0.8em 2em;
    }
}

@media only screen and (max-width: 1024px) {
    .home__content {
        padding-right: 10rem;
    }
    .services__item {
        width: 45%;
    }
}

@media only screen and (max-width: 834px) {
	.doctors__list{
		flex-wrap:wrap;
	}

    .appointment__input {
        width: 100%;
        /* #### */
        margin: 0 0 2rem 0;
    }
    .appointment__input:nth-child(even) {
        width: 100%;
        margin-right: 0
    }
    /* #### */
    .appointment__textarea {
        margin: 0;
    }
    .appointment__cta {
        margin: 2rem 0 0;
    }
    /* ###### */
    .news__item:nth-child(even) {
        margin-left: 0;
        margin-right: 1rem;
    }
    .news__item {
        margin: 0 0 5rem 0;
    }
    .actionbar__lang {
        justify-content: center;
    }
    .services__list {
        padding-left: unset;
    }
    .services__item {
        margin-left: 5%;
    }
    /* ######## */
    .contact__button {
        margin-left: 0;
    }
    .contact__input {
        margin: 0 0 2rem 0;
    }
    .contact__textarea {
        margin: 0;
    }
}

@media only screen and (max-width:640px) {
    * {
        letter-spacing: -1px;
    }
    .home__title {
        max-width: 100%;
    }
    .actinbar__link {
        margin-right: 1rem;
    }
    .contact__button {
        display: block;
        margin-left: 0.8rem;
    }
    .contact__form {
        width: 100%;
        margin-left: unset;
    }
    /* ####### */
    .contact__information {
        width: 100%;
        margin-right: 0;
    }
}

@media only screen and (max-width:520px) {
 	.home__content {
	   padding-right: 0; 
	   transform: translateY(-30%) scale(0.8);
	}
    .services__item {
        width: 100%;
    }
    .news__item {
        width: 100%;
    }
    .actionbar {
        justify-content: center;
    }
    .actionbar__cta {
        margin-left: 1rem;
    }
}