/*
Theme Name: Eye Care New York
Theme URI: https://eyecarenewyork.com
Author: Eye Care on 5th Avenue
Description: Custom WordPress theme for Eye Care New York - Bilingual (English/Russian) ophthalmology practice website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eyecare
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Niconne|Questrial');

/* Reset */
html, body, div, li, span, b, a, ul, ol, p, h1, h2, h3, h4, h5, h6, dl, dd, dt, form, fieldset, i, button, td, th, input, select, textarea {
    margin: 0px;
    padding: 0px;
}

a,
a:hover {
    color: #FFFFFF;
}

a:focus {
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
}

body.font-l {
    font-size: 16px;
}

body.font-xl {
    font-size: 18px;
}

body.font-xxl {
    font-size: 20px;
}

body.font-s {
    font-size: 12px;
}

body.font-xs {
    font-size: 10px;
}

body.font-xxs {
    font-size: 8px;
}

h2 {
    font-family: Niconne;
    font-size: 36px;
    text-transform: none;
}

@media (min-width: 768px) {
    h2 {
        font-size: 2.55em;
    }
}

.navbar {
    font-family: Questrial;
}

.top-body {
    background-repeat: no-repeat;
    background-position: center top;
    background-image: url(assets/images/home-bg-top-m.jpg);
    background-size: auto 100%;
}

.top-body.bg-1,
.top-body.internal {
    background-image: url(assets/images/bg-top-1-m.jpg);
}

.bottom-body {
    background-repeat: no-repeat;
    background-position: center bottom;
    background-image: url(assets/images/home-bg-bottom-m.jpg);
    background-size: auto 100%;
}

.bottom-body.bg-1,
.bottom-body.internal {
    background-image: url(assets/images/bg-bottom-1-m.jpg);
    background-size: auto;
}

.xs-text-left {
    text-align: left;
}

.xs-text-center {
    text-align: center;
}

@media (min-width: 768px) {
    .top-body {
        background-image: none;
    }

    .top-body.bg-1,
    .top-body.internal {
        background-image: url(assets/images/bg-top-1-t.jpg);
    }

    .bottom-body {
        background-image: none;
        position: relative;
    }

    .bottom-body:before {
        content: '';
        background-image: none;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.5);
        height: 120px;
        width: 100%;
        top: 0;
        left: 0;
    }

    .bottom-body.bg-1,
    .bottom-body.internal {
        background-image: url(assets/images/bg-bottom-1-t.jpg);
    }

    .bottom-body.internal {
        padding-top: 120px;
    }

    .entire-body {
        background-repeat: no-repeat;
        background-position: center top;
        background-image: url(assets/images/home-bg-t.jpg);
        background-size: 1700px auto;
    }

    .sm-text-left {
        text-align: left;
    }

    .sm-text-center {
        text-align: center;
    }
}

@media (min-width: 992px) {
    .top-body.bg-1,
    .top-body.internal {
        background-image: url(assets/images/bg-top-1.jpg);
    }

    .bottom-body.bg-1,
    .bottom-body.internal {
        background-image: url(assets/images/bg-bottom-1.jpg);
    }

    .entire-body {
        background-size: 2400px auto;
        background-image: url(assets/images/home-bg.jpg);
    }

    .md-text-left {
        text-align: left;
    }

    .md-text-center {
        text-align: center;
    }
}

@media (min-width: 768px) {
    .col-sm-2-5 {
        width: 20%;
        float: left;
    }
}

section.header {
    height: 130px;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 0;
}

section.header-menu {
    margin: 0;
    padding: 0;
}

.button {
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    background-color: transparent;
    padding: 7px 50px;
    font-family: Questrial;
    font-size: 26px;
    text-transform: uppercase;
    display: inline-block;
}

.button.selected {
    border-color: #FF4D45;
}

.button.dark {
    border-color: #FF4D45;
    color: #FF4D45;
}

.button:hover,
.button:focus {
    border-color: #FF4D45;
    color: #FF4D45;
    text-decoration: none;
}

.button.dark:hover,
.button.dark:focus {
    border-color: #000000;
    color: #000000;
}

@media (min-width: 768px) {
    .button {
        padding: 11px 25px;
        font-size: 1.1em;
    }

    .button.compact {
        padding: 5px 15px;
    }
}

.logo {
    margin: 0 auto;
    padding: 18px 0 23px 0;
    text-align: center;
}

.logo img {
    max-width: 100%;
}

.hidden-xs.override-hidden {
    display: block !important;
}

.container {
    text-align: center;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 450px;
    position: relative;
}

@media (min-width: 768px) {
    .container {
        width: 710px;
        max-width: 710px;
    }
}

@media (min-width: 992px) {
    .container {
        width: 990px;
        max-width: 990px;
    }
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 8px;
    right: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-menu .language-selector {
    right: 25px;
}

.language-selector .button {
    font-size: 10px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    line-height: 1;
}

.language-selector .button + .button {
    margin-left: 0;
}

.language-selector .button.active {
    border-color: #FF4D45;
    color: #FF4D45;
}

.header-menu .language-selector .button {
    padding: 8px 15px;
}

.header-menu .navbar {
    background-color: rgba(0, 0, 0, 0.87);
    margin: 0;
    border: none;
}

.header-menu .show-menu {
    font-size: 18px;
    color: #FFFFFF;
    float: left;
    margin: 10px 0 0 25px;
    text-decoration: none;
}

.header-menu .navbar li {
    font-size: 16px;
    margin: 0;
    border-bottom: 1px solid #868483;
    position: static;
}

.header-menu .navbar li:last-child {
    border: none;
}

.header-menu .navbar li>a {
    color: #FFFFFF;
    padding: 15px 14px;
}

@media (min-width: 768px) {
    .header-menu .navbar li {
        position: relative;
        margin: 0 4px;
    }
}

@media (min-width: 992px) {
    .header-menu .navbar li>a {
        padding: 15px 14px;
    }
}

.header-menu .navbar li>a:focus {
    background-color: transparent;
}

.header-menu .navbar li>a:hover,
.header-menu .navbar li.active>a,
.header-menu .navbar li.current-menu-item>a,
.header-menu .navbar li.current-menu-parent>a {
    color: #FF4C45;
    background-color: transparent;
}

.header-menu .nav {
    position: absolute;
    z-index: 20;
    top: 40px;
    left: 15px;
    width: 100%;
    max-width: 450px;
    background-color: rgba(0, 0, 0, 0.87);
}

@media (min-width: 768px) {
    .header-menu .nav {
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        max-width: inherit;
        display: inline-block!important;
        background-color: transparent;
    }

    .header-menu .navbar li {
        border: none;
    }
}

.header-menu .submenu-container,
.header-menu .sub-menu {
    left: 0;
    top: 0;
    width: 100%;
    z-index: 20;
    text-align: center;
}

.header-menu .submenu,
.header-menu .sub-menu {
    line-height: normal;
    list-style: none;
    min-width: 100%;
    padding: 0px 10px;
    background-color: rgba(0, 0, 0, 0.87);
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-transform: none;
    text-align: center;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    visibility: hidden;
    display: block;
    opacity: 0;
}

.header-menu .submenu li,
.header-menu .sub-menu li {
    margin: 0;
    padding: 12px 0;
    border: none;
}

.header-menu .submenu li>a,
.header-menu .sub-menu li>a {
    padding: 0;
}

.header-menu .submenu li>a:hover,
.header-menu .submenu li>a:focus,
.header-menu .sub-menu li>a:hover,
.header-menu .sub-menu li>a:focus {
    text-decoration: none;
}

.header-menu li.not-clicked {
    display: none;
}

.header-menu li.clicked>a {
    border-bottom: 1px solid #868483;
}

.header-menu li.clicked .submenu-container,
.header-menu li.clicked .sub-menu {
    display: block;
    position: relative;
    height: auto;
    max-height: 500px;
}

.header-menu li.clicked .submenu-container .submenu,
.header-menu li.clicked .sub-menu {
    visibility: visible;
    opacity: 1;
    display: block;
    position: relative;
    height: auto;
}

@media (max-width: 767px) {
    .header-menu .submenu-container,
    .header-menu > ul > li > .sub-menu {
        position: relative;
        display: none;
        height: 0;
        overflow: hidden;
    }

    .header-menu li.clicked .submenu-container,
    .header-menu li.clicked > .sub-menu {
        display: block;
        height: auto;
        overflow: visible;
    }

    .header-menu .submenu,
    .header-menu .sub-menu {
        position: relative;
        background-color: rgba(0, 0, 0, 0.95);
    }

    .header-menu .sub-menu li {
        border-bottom: 1px solid #555;
    }

    .header-menu .sub-menu li:last-child {
        border-bottom: none;
    }
}

@media (min-width: 768px) {
    .header-menu .submenu-container {
        position: absolute;
        top: 49px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 240px;
    }

    .header-menu .sub-menu {
        position: absolute;
        top: 49px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        min-width: 240px;
    }

    .header-menu .submenu-container .submenu,
    .header-menu .submenu-container .sub-menu,
    .header-menu .sub-menu {
        min-width: 240px;
        display: block;
        padding: 20px 10px 13px 10px;
        background-image: url(assets/images/submenu-ornament.png);
        position: relative;
        left: auto;
        top: auto;
        transform: none;

        -webkit-transition: visibility 0s linear .25s, opacity .25s;
        -moz-transition: visibility 0s linear .25s, opacity .25s;
        -o-transition: visibility 0s linear .25s, opacity .25s;
        transition: visibility 0s linear .25s, opacity .25s;
    }

    .header-menu .submenu li,
    .header-menu .sub-menu li {
        margin: 9px 0;
        padding: 0;
    }

    .header-menu li.over .submenu-container .submenu,
    .header-menu li.over .sub-menu,
    .header-menu li:hover .submenu-container .submenu,
    .header-menu li:hover .sub-menu {
        visibility: visible;
        opacity: 1;

        -webkit-transition: visibility 0s linear 0s, opacity .25s;
        -moz-transition: visibility 0s linear 0s, opacity .25s;
        -o-transition: visibility 0s linear 0s, opacity .25s;
        transition: visibility 0s linear 0s, opacity .25s;
    }

    .header-menu li.clicked,
    .header-menu li.not-clicked {
        display: block;
    }

    .header-menu li.clicked>a {
        border-bottom: none;
    }
}

.footer-menu .navbar {
    background-color: rgba(0, 0, 0, 0.7);
    margin: 1px 0 0 0;
    min-height: 35px;
    font-size: 12px;
}

@media (min-width: 768px) {
    .footer-menu .navbar {
        font-size: 0.75em;
    }
}

.footer-menu .navbar a {
    color: #FFFFFF;
    padding: 8px 27px;
}

.footer-menu .navbar a:hover,
.footer-menu .navbar a:focus {
    background-color: transparent;
    color: #FF4C45;
}

.navbar .nav {
    display: inline-block;
    float: none;
}

.navbar {
    text-transform: uppercase;
    border-radius: 0;
    margin-bottom: 0;
}

.top-body > section.container {
    padding: 0;
}

.page-header {
    border: none;
    margin: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
}

.home-banner {
    min-height: 260px;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 24px 20px 0 20px;
    color: #FFFFFF;
}

.internal .home-banner {
    background: none;
}

@media (min-width: 768px) {
    .home-banner {
        min-height: 380px;
        padding: 40px 0 0 0;
    }
}

@media (min-width: 992px) {
    .home-banner {
        padding: 40px 0 0 0;
    }
}

.home-banner h1 {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 50px;
    font-family: Questrial;
    font-weight: normal;
    text-transform: uppercase;
}

.home-banner h1 em {
    font-family: Niconne;
    font-size: 64px;
    font-style: normal;
    line-height: 0.4;
    text-transform: none;
}

@media (min-width: 380px) {
    .home-banner h1 {
        font-size: 32px;
        line-height: 50px;
    }

    .home-banner h1 em {
        font-size: 74px;
    }
}

@media (min-width: 768px) {
    .home-banner h1 {
        font-size: 2.25em;
    }

    .home-banner h1 em {
        font-size: 2.35em;
    }

    .home-banner .soft-row {
        display: block;
        height: 1.55em;
    }

    .home-banner .soft-row:before,
    .home-banner .soft-row:after {
        content: '\00a0';
        font-family: Niconne;
        font-size: 64px;
    }
}

.page-header .navbar {
    border: none;
    margin: 0;
    padding: 0;
    background-color: rgba(255, 51, 0, 0.43);
    min-height: 40px;
    position: relative;
    color: #FFFFFF;
}

.internal .page-header .navbar {
    background-color: #D94239;
    min-height: 101px;
}

.internal .page-header .navbar .vcenter {
    display: table;
    width: 100%;
    height: 101px;
}

.internal .page-header .navbar .vcenter>h2 {
    display: table-cell;
    vertical-align: middle;
}

.internal .page-header .navbar ul li {
    display: table;
    max-height: 101px;
}

.internal .page-header .navbar ul a {
    display: table-cell;
    vertical-align: middle;
}

.internal .page-header .navbar h2 {
    font-family: Niconne;
    line-height: 1em;
    font-size: 40px;
    vertical-align: middle;
    padding: 0px 35px;
}

.page-header .navbar ul.nav-items {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 40px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.page-header .navbar ul.nav-items::-webkit-scrollbar {
    display: none;
}

.page-header .navbar li {
    margin: 0;
    flex: 0 0 auto;
    font-size: 14px;
    text-align: center;
}

.page-header .navbar li>a {
    color: #FFFFFF;
    display: block;
    padding: 0 15px;
    line-height: 40px;
    white-space: nowrap;
    text-decoration: none;
}

.page-header .navbar li>a:hover,
.page-header .navbar li>a:focus,
.page-header .navbar li.active>a,
.page-header .navbar li.active>a:hover,
.page-header .navbar li.active>a:focus {
    color: #FFFFFF;
    text-decoration: none;
    background-color: #EF4034;
}

@media (min-width: 380px) {
    .internal .page-header .navbar h2 {
        font-size: 48px;
    }
}

@media (min-width: 768px) {
    .internal .page-header .navbar {
        min-height: 52px;
    }

    .internal .page-header .navbar .vcenter {
        height: 52px;
    }

    .internal .page-header .navbar h2 {
        font-size: 2.55em;
        height: 52px;
        line-height: 52px;
    }

    .internal .page-header .navbar li {
        font-size: 1em;
    }
}

.page-header .prev,
.page-header .next {
    position: absolute;
    top: 0px;
    height: 100%;
    width: 40px;
    display: block;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(0,0,0, 0.6);
    z-index: 10;
    cursor: pointer;

    -webkit-transition: opacity .25s ease-in;
    -moz-transition: opacity .25s ease-in;
    -o-transition: opacity .25s ease-in;
    transition: opacity .25s ease-in;
}

.page-header .prev {
    left: 0;
    background-image: url(assets/images/prev.png);
    background-size: 12px auto;
}

.page-header .next {
    right: 0;
    background-image: url(assets/images/next.png);
    background-size: 12px auto;
}

.page-header .prev.disabled,
.page-header .next.disabled {
    opacity: 0.3;
    cursor: default;
}

@media (min-width: 768px) {
    .page-header .prev {
        left: 0;
        width: 30px;
        background-color: rgba(0,0,0, 0.6);
        background-image: url(assets/images/prev.png);
        background-size: 10px auto;
    }

    .page-header .next {
        right: 0;
        width: 30px;
        background-color: rgba(0,0,0, 0.6);
        background-image: url(assets/images/next.png);
        background-size: 10px auto;
    }

    .page-header .prev.disabled,
    .page-header .next.disabled {
        opacity: 0.2;
    }
}


.page-header .zoom {
    display: none;
    border: none;
    width: 28px;
    height: 28px;
    position: absolute;
    left: 28px;
    background-image: url(assets/images/plus-minus.png);
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-color: transparent;
}

.page-header .zoom.plus {
    bottom: 93px;
    background-position: -28px 0px;
}

.page-header .zoom.minus {
    bottom: 57px;
}

.page-header .zoom.plus:hover,
.page-header .zoom.plus:focus {
    background-position: -28px -28px;
}

.page-header .zoom.minus:hover,
.page-header .zoom.minus:focus {
    background-position: 0px -28px;
}

@media (min-width: 768px) {
    .page-header .zoom {
        display: block;
    }
}

.footer-procedures {
    margin: 1px 0 1px 0;
    padding: 15px 0;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.7);
}

.footer-procedures a {
    color: #FFFFFF;
    display: block;
    line-height: 30px;
}

@media (min-width: 768px) {
    .footer-procedures {
        font-size: 12px;
    }

    .footer-procedures a {
        line-height: 26px;
    }
}

@media (min-width: 992px) {
    .footer-procedures {
        margin: 0px 0 0 0px;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .footer-procedures a {
        line-height: 18px;
    }
}

section.contact-us {
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 18px;
    padding: 30px 0;
}

@media (min-width: 768px) {
    section.contact-us {
        font-size: 1.15em;
        padding: 20px 0;
    }
}

@media (min-width: 992px) {
    section.contact-us {
        font-size: 1em;
        padding: 0;
    }
}

section.contact-us .container:before,
section.contact-us .container:after {
    content: '';
    display: block;
    width: 100%;
    height: 38px;
    background-repeat: no-repeat;
}

section.contact-us .container:before {
    background-image: url(assets/images/divider-ornament-up.png);
    background-position: center top;
}

section.contact-us .container:after {
    background-image: url(assets/images/divider-ornament-down.png);
    background-position: center bottom;
}

section.contact-us .container div+div {
    margin-top: 15px;
}

section.contact-us .container span {
    display: block;
}

@media (min-width: 768px) {
    section.contact-us .container span {
        display: inline-block;
    }

    section.contact-us .container span+span {
        margin-left: 5px;
    }

    section.contact-us .container span+span:before {
        content: '\2022';
        padding-right: 8px;
    }
}

section.copyright {
    color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    padding: 30px 0;
}

section.copyright span {
    display: block;
}

@media (min-width: 768px) {
    section.copyright {
        font-size: 1em;
        padding: 10px 0 20px 0;
    }

    section.copyright span {
        display: inline-block;
    }
}

@media (min-width: 992px) {
    section.copyright {
        font-size: 0.85em;
        padding: 30px 0 25px 0;
    }
}

section.copyright .design,
section.copyright .design a {
    color: #EE3F33;
}

section.main-content-container {
    background-color: #E3E1D6;
}

/* Front page specific - main content appears directly below tabs */
.home section.main-content-container {
    background-color: transparent;
    text-align: center;
    margin: 0;
    padding: 0;
}

.home section.main-content {
    background-color: rgba(227, 225, 214, 0.95);
    padding: 25px 15px;
    margin: 0 auto;
    text-align: center;
}

.home section.main-content .content-page {
    padding: 20px 15px;
    text-align: center;
}

.home section.main-content .col-sm-6 {
    padding: 0 15px;
    text-align: left;
}

/* Internal pages - main content area */
.page:not(.home) section.main-content-container,
.single section.main-content-container {
    background-color: transparent;
}

section.main-content-top {
    background-color: #36312D;
    padding: 20px 0 25px 0;
    position: relative;
    color: #FFFFFF;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

section.main-content-top .container {
    text-align: left;
}

section.main-content-top .exam-part {
    padding: 15px 0;
}

@media (min-width: 768px) {
    section.main-content-top {
        padding: 30px 0 35px 0;
        font-size: 16px;
    }

    section.main-content-top .container {
        width: 710px;
        max-width: 710px;
    }
}

@media (min-width: 992px) {
    section.main-content-top {
        padding: 40px 0 45px 0;
    }

    section.main-content-top .container {
        width: 990px;
        max-width: 990px;
    }
}

section.main-content-top .map-container {
    width: 90%;
    display: inline-block;
}

section.main-content-top .image-container {
    border: 1px solid #868483;
    padding: 7px;
}

section.main-content-top .map-container iframe {
    width: 100%;
    height: 530px;
}

section.main-content-top .image-container img {
    width: 100%;
    height: auto;
}

section.main-content-top h3 {
    font-weight: normal;
    font-family: "Questrial";
    font-size: 36px;
}

section.main-content-top p,
section.main-content-top ul {
    font-size: 18px;
}

section.main-content-top h3+p,
section.main-content-top h3+ul {
    margin-top: 10px;
}

section.main-content-top ul {
    margin-left: 20px;
    color: #D94239;
}

section.main-content-top ul span {
    color: #FFFFFF;
}

section.main-content-top .contact-part {
    text-align: left;
    padding: 20px 0;
    margin: 0 5%;
}

section.main-content-top .contact-part+.contact-part {
    border-top: 1px solid #868483;
}

section.main-content-top .contact-part div {
    padding: 10px 0 0 0;
}

section.main-content-top .contact-part div+div {
    margin-top: 10px;
}

.download-pdf {
    display: inline-block;
    padding: 15px 2px 15px 40px;
    border-top: 1px solid #868483;
    text-align: left;
    background-image: url(assets/images/pdf.png);
    background-repeat: no-repeat;
    background-position: 1px center;
}

.download-pdf:last-child {
    border-bottom: 1px solid #868483;
}

@media (min-width: 768px) {
    section.main-content-top h3 {
        font-size: 1.7em;
    }

    section.main-content-top p,
    section.main-content-top ul {
        font-size: 1.1em;
    }

    section.main-content-top .contact-part {
        border: none;
        width: 40%;
        float: left;
    }

    section.main-content-top .contact-part+.contact-part {
        border-top: none;
    }
}

@media (min-width: 992px) {
    /* Only apply absolute positioning when contact-part exists alongside map */
    section.main-content-top .contact + .map-container,
    section.main-content-top .contact-part + .map-container {
        width: 45%;
        position: absolute;
        top: 0;
        right: 20px;
    }

    section.main-content-top .contact-part {
        width: 45%;
        float: none;
        margin: 0 20px;
        border-bottom: 1px solid #868483;
    }

    section.main-content-top .contact-part:last-child {
        border: none;
    }
}

/* Regular map container - not absolute positioned */
section.main-content-top .exam-part .map-container,
section.main-content-top > .container > .map-container {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

section.main-content-top .exam-part .map-container iframe {
    width: 100%;
    height: 350px;
}

@media (min-width: 768px) {
    section.main-content-top .exam-part .map-container iframe {
        height: 400px;
    }
}

@media (min-width: 992px) {
    section.main-content-top .exam-part .map-container iframe {
        height: 450px;
    }
}

section.main-content-top:after {
    content: ' ';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    background-image: url(assets/images/main-content-divider.png);
    background-size: 100% 2px;
    background-position: center top;
}

section.main-content-top .contact {
    min-height: 550px;
}

section.main-content-bottom {
    background-color: #1E1A18;
    color: #FFFFFF;
    padding: 20px 0;
}

section.main-content-bottom h3 {
    font-style: normal;
    font-family: "Questrial";
    color: #FF4D45;
    margin: 0 0 10px 0;
    font-size: 36px;
}

section.main-content-bottom h3 a {
    font-size: 30px;
}

section.main-content-top h5,
section.main-content-bottom h5 {
    font-style: normal;
    font-family: "Questrial";
    color: #FFFFFF;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    padding: 0 10px;
    line-height: 1.4;
}

section.main-content-top p,
section.main-content-bottom p {
    font-size: 18px;
    text-align: left;
}

section.main-content-top p.text-center,
section.main-content-bottom p.text-center {
    text-align: center;
}

section.main-content-top a,
section.main-content-bottom a {
    font-size: 18px;
}

section.main-content-top li,
section.main-content-bottom li {
    font-size: 18px;
    text-align: left;
}

section.main-content-top h5 a {
    color: #FF4D45;
}

section.main-content-bottom form {
    margin: 15px 0 0 0;
}

form .row {
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
}

section.main-content-bottom form label {
    text-align: right;
    position: absolute;
    top: 0;
    left: 0;
    text-align: left;
    font-weight: normal;
    line-height: 34px;
    font-size: 18px;
}

form label.required:before {
    content: '*';
    color: #FF4D45;
    padding-right: 2px;
}

form input[type=text] {
    height: 34px;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 18px;
}

form textarea {
    height: 280px;
    resize: none;
    background-color: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    padding-top: 4px;
    font-size: 18px;
}

form .row+.row {
    margin-top: 7px;
}

form .row.full label {
    display: none;
}

.site-map-part p a {
    color: #FF4D45;
}

.site-map-part {
    padding-top: 12px;
    margin-bottom: 12px;
}

.site-map-part+.site-map-part {
    border-top: 1px solid #868483;
}

.exam-part {
    margin-bottom: 15px;
}

.exam-part li {
    color: #FF4D45;
    margin-bottom: 15px;
}

.exam-part li span {
    color: #FFFFFF;
}

.exam-part h5 {
    margin-bottom: 15px;
}

.exam-part .divided {
    border-top: 1px solid #868483;
    margin-top: 5px;
    padding-top: 20px;
}

.exam-part ul {
    margin-top: 20px;
}

section.main-content-bottom .exam-part+.exam-part {
    padding-top: 50px;
    background: url(assets/images/divider-ornament-up.png) no-repeat center top;
}

.exam-part p+p {
    margin-top: 10px;
}

@media (min-width: 768px) {
    section.main-content-bottom form label {
        position: relative;
        text-align: right;
    }

    form .row.full label {
        display: inline-block;
    }

    section.main-content-bottom h3 {
        font-size: 1.7em;
    }

    section.main-content-top h5,
    section.main-content-bottom h5 {
        font-size: 1.15em;
    }

    form .row {
        margin-left: 1px;
        margin-right: 1px;
    }

    section.main-content-bottom form label,
    section.main-content-bottom form input[type=text],
    section.main-content-bottom form textarea {
        font-size: 1em;
    }

    section.main-content-top a,
    section.main-content-bottom a,
    section.main-content-bottom h3 a,
    section.main-content-top p,
    section.main-content-bottom p,
    section.main-content-top li,
    section.main-content-bottom li {
        font-size: 1em;
    }
}

section.main-content {
    padding: 18px 5px;
    color: #000000;
}

section.main-content h2 {
    margin: 0 15px 20px 15px;
    text-align: left;
    color: #ED3F33;
    font-family: Niconne;
    font-size: 48px;
}

@media (min-width: 768px) {
    section.main-content h2 {
        font-size: 3.4em;
    }
}

section.main-content p {
    text-align: left;
    font-size: 22px;
}

section.main-content p+p {
    margin-top: 40px;
}

section.main-content .signature {
    clear: both;
    padding: 10px 0 10px 0;
    font-size: 16px;
    font-style: italic;
    font-weight: bold;
}

section.main-content .signature:before,
section.main-content .signature:after {
    content: ' ~ ';
}

@media (min-width: 768px) {
    section.main-content-container {
        background: none;
    }

    section.main-content {
        background-color: rgba(227, 225, 214, 0.95);
    }

    section.main-content h2 {
        text-align: center;
    }

    section.main-content p {
        font-size: 1.2em;
    }

    section.main-content p+p {
        margin-top: 25px;
    }

    section.main-content .signature {
        font-size: 1.15em;
    }
}

@media (min-width: 992px) {
    section.main-content p {
        font-size: 1em;
    }
}

/* Custom */
.exam-part a {
    color: #FF4C45;
}

a.button {
    color: #FFF;
}

/* Extra Bg */
.fifth-avenue-new-york {
    background-image: url(assets/images/header-banners/25-fifth-avenue-new-york.jpg);
}

.comprehensive-eye-exam-ny {
    background-image: url(assets/images/header-banners/comprehensive-eye-exam-ny.jpg);
}

.eye-care-new-york {
    background-image: url(assets/images/header-banners/eye-care-new-york.jpg);
}

.eye-care-ny-welcome-desk {
    background-image: url(assets/images/header-banners/eye-care-ny-welcome-desk.jpg);
}

.eye-doctor-office-new-york {
    background-image: url(assets/images/header-banners/eye-doctor-office-new-york.jpg);
}

.eye-procedures-new-york {
    background-image: url(assets/images/header-banners/eye-procedures-new-york.jpg);
}

.front-desk-opthalmology {
    background-image: url(assets/images/header-banners/front-desk-opthalmology.jpg);
}

.laser-eye-surgery-new-york {
    background-image: url(assets/images/header-banners/laser-eye-surgery-new-york.jpg);
}

/* Extra styles */
img.border {
    border: 1px solid #868483;
    padding: 7px;
    width: 100%;
    height: auto;
}

/* Blog Styles */
.blog-list article {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #868483;
}

.blog-list article:last-child {
    border-bottom: none;
}

.blog-list .entry-title {
    color: #ED3F33;
    font-family: Niconne;
    font-size: 2em;
    margin-bottom: 10px;
}

.blog-list .entry-title a {
    color: #ED3F33;
    text-decoration: none;
}

.blog-list .entry-title a:hover {
    color: #FF4C45;
}

.blog-list .entry-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

.blog-list .entry-content {
    font-size: 1em;
    line-height: 1.6;
}

.single-post .entry-content {
    font-size: 1.1em;
    line-height: 1.8;
}

.single-post .entry-content p {
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #868483;
    color: #333;
    text-decoration: none;
}

.pagination a:hover,
.pagination .current {
    background-color: #ED3F33;
    color: #fff;
    border-color: #ED3F33;
}

/* Page Content Styles */
.exam-part h3 {
    font-weight: normal;
    font-family: "Questrial";
    font-size: 1.7em;
    margin-bottom: 15px;
}

.exam-part h4 {
    font-weight: normal;
    font-family: "Questrial";
    font-size: 1.3em;
    margin: 20px 0 10px 0;
    color: #FF4D45;
}

.exam-part p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.exam-part ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.exam-part ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.exam-part li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.exam-part img {
    max-width: 100%;
    height: auto;
    border: 1px solid #868483;
    padding: 5px;
    background-color: #fff;
    margin-bottom: 15px;
}

.exam-part .img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

/* Image floats for content layout */
.exam-part img.alignleft,
.exam-part .wp-caption.alignleft {
    float: left;
    margin: 0 20px 15px 0;
}

.exam-part img.alignright,
.exam-part .wp-caption.alignright {
    float: right;
    margin: 0 0 15px 20px;
}

.exam-part img.aligncenter,
.exam-part .wp-caption.aligncenter {
    display: block;
    margin: 0 auto 15px auto;
}

.exam-part .wp-caption {
    max-width: 100%;
    padding: 5px;
    border: 1px solid #868483;
    background-color: #fff;
}

.exam-part .wp-caption img {
    border: none;
    padding: 0;
    margin-bottom: 5px;
}

.exam-part .wp-caption-text {
    font-size: 12px;
    color: #868483;
    text-align: center;
    font-style: italic;
}

.exam-part .row {
    margin-bottom: 20px;
}

.exam-part strong {
    color: #FF4D45;
}

.exam-part em {
    font-style: italic;
}

/* Internal page h2 headings */
.exam-part h2,
section.main-content-top h2 {
    font-family: Niconne;
    font-size: 36px;
    text-transform: none;
    margin-bottom: 20px;
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .exam-part h2,
    section.main-content-top h2 {
        font-size: 2.55em;
    }
}

/* Internal page text color */
section.main-content-top .exam-part,
section.main-content-top .exam-part p,
section.main-content-top .exam-part li {
    color: #FFFFFF;
}

section.main-content-top .exam-part h3,
section.main-content-top .exam-part h4,
section.main-content-top .exam-part h5 {
    color: #FF4D45;
}

/* Content area link colors */
section.main-content-top a {
    color: #FF4D45;
}

section.main-content-top a:hover {
    color: #fff;
    text-decoration: underline;
}

section.main-content-top a.button {
    color: #fff;
}

section.main-content-top a.button:hover {
    color: #FF4D45;
    text-decoration: none;
}

/* WordPress nav menu classes */
.menu-item-has-children > .submenu-container,
.menu-item-has-children > .sub-menu {
    display: block;
}

/* Contact form styling */
.wpcf7-form label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 1em;
    margin-bottom: 15px;
}

.wpcf7-form input[type="submit"] {
    background-color: transparent;
    border: 1px solid #FF4D45;
    color: #FF4D45;
    padding: 10px 30px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #FF4D45;
    color: #fff;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wpcf7-form .wpcf7-response-output {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #FF4D45;
    color: #fff;
}

.wpcf7-form .wpcf7-not-valid-tip {
    color: #FF4D45;
    font-size: 0.9em;
}

/* Contact page specific styles */
.contact-page .map-container {
    margin-bottom: 20px;
}

.contact-page .map-container iframe {
    width: 100%;
    height: 300px;
    border: 1px solid #868483;
}

@media (min-width: 768px) {
    .contact-page .map-container iframe {
        height: 400px;
    }
}

.contact-page .contact-info {
    margin-bottom: 20px;
}

.contact-page .contact-info h3 {
    color: #FF4D45;
    margin-bottom: 15px;
}

.contact-page .contact-info p {
    margin-bottom: 10px;
}

.contact-page .contact-info a {
    color: #FF4D45;
}

.contact-page .contact-info a:hover {
    color: #fff;
}

/* Custom contact form shortcode */
.eyecare-contact-form {
    margin-top: 20px;
}

.eyecare-contact-form .form-group {
    margin-bottom: 15px;
}

.eyecare-contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 1em;
}

.eyecare-contact-form label.required:before {
    content: '* ';
    color: #FF4D45;
}

.eyecare-contact-form input[type="text"],
.eyecare-contact-form input[type="email"],
.eyecare-contact-form input[type="tel"],
.eyecare-contact-form textarea {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-size: 1em;
    font-family: inherit;
}

.eyecare-contact-form input::placeholder,
.eyecare-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.eyecare-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.eyecare-contact-form .button {
    background-color: transparent;
    border: 1px solid #FF4D45;
    color: #FF4D45;
    padding: 10px 30px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.eyecare-contact-form .button:hover {
    background-color: #FF4D45;
    color: #fff;
}

.eyecare-contact-form .required-note {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.eyecare-contact-form .contact-form-success {
    background-color: rgba(0, 128, 0, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    margin-bottom: 20px;
}

.eyecare-contact-form .contact-form-error {
    background-color: rgba(255, 0, 0, 0.2);
    border: 1px solid #FF4D45;
    color: #FF4D45;
    padding: 15px;
    margin-bottom: 20px;
}

/* Text alignment helpers */
.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Homepage content pages (tabs) */
.main-content .content-page {
    display: none;
    text-align: center;
}

.main-content .content-page.active {
    display: block;
}

.main-content .content-page h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.main-content .content-page .col-sm-6 {
    text-align: left;
}

@media (min-width: 768px) {
    .main-content .content-page .col-sm-6 {
        display: inline-block;
        float: none;
        vertical-align: top;
        width: 48%;
        margin: 0 0.5%;
    }
}

.main-content .content-page .button {
    margin-top: 20px;
    display: inline-block;
}
