/*
 Theme Name:     Optimal Living Daily 2018 Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    This is a Divi child theme made specifically for Optimal Living Daily
 Author:         Luis Tenorio & Taime Koe
 Author URI:     https://www.luisten.com
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* INDEX
1. Fonts
2. General Website Settings
3. Typography Settings 
4. Forms
5. Site Header
6. Site Footer 
7. Blog and Episode pages */


/* 1. FONTS */
/* 1.1 Import Questa fonts for headers */
@import url('fonts/questa_regular_macroman/stylesheet.css'); /* questa-regular */
@import url('fonts/questagrande_light_macroman/stylesheet.css'); /* questa-grande-light */
@import url('fonts/questagrande_regular_macroman/stylesheet.css'); /* questa-grande-regular */

/* 1.2 Import Google Fonts for body and signatures */
@import url('https://fonts.googleapis.com/css?family=Crimson+Text');
@import url('https://fonts.googleapis.com/css?family=Mr+Bedfort');

/* 1.3 Import Font Awesome */
@import url('fonts/css/fontawesome-all.min.css'); 


/* 2. General Website Settings */
body {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    line-height: 28px;
    color: #000;
}

body,
.et_pb_section,
#main-content {
    background-color: #FAFAF8 !important;
}

/* Make all pages full-width by default */
/*** Take out the divider line between content and sidebar ***/
#main-content .container:before {background: none;}
 
/*** Hide Sidebar ***/
#sidebar {display:none;}
 
/*** Expand the content area to fullwidth ***/
@media (min-width: 981px){
    #left-area {
        width: 100%;
        padding: 23px 0px 0px !important;
        float: none !important;
    }
}

/* 2.1 Page Title Sections */
.page-title-section {
    display: flex;
    border-bottom: 1px solid #000;
}
.title-container {
    padding: 120px 60px 60px 100px;
    min-width: 530px;
}
.title-container p {
    padding-left: 10px;
}
.featured-image-container {
    width: 100%;
    min-height: 500px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

/* Specific for Homepage */
.page-homepage .title-container {
    padding: 140px;
    max-width: 1000px;
    width: 100%;
}
.page-homepage h1,
.page-homepage p {
    padding-left: 0;
    max-width: 700px;
}
.home-posts-container p,
.home-posts-container a {
    color: #000 !important;
}
.home-posts-container > div {
    display: flex;
    justify-content: space-between;
}
.home-posts-container article {
    max-width: 500px;
}
.home-posts-container .read-more {
    display: block;
    margin-top: 20px;
    max-width: 120px;
}
.home-posts-container .post-content iframe {
    margin: 20px auto;   
}

/* Specific for About pages */
.about-tabs-container {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    margin-bottom: 50px;
}
a.about-tab {
    display: block;
    font-size: 22px;
    padding: 14px 30px 14px 0;
    font-weight: bold;
    margin-right: 30px;
}
a.about-tab.about-selected {
    border-bottom: 4px solid #000;
}

.sponsor-row {
    display: flex;
    align-items: center;
    text-align: center;
}
.sponsor-row .et_pb_image_wrap {
    max-width: 380px;
    max-height: 120px;
    padding: 20px;
}

#custom-form-container {
    border: 1px solid #000;
    padding: 2em;
    display: flex;
    justify-content: flex-start;
}
#custom-form-container ul {
    display: flex;
    flex-direction: column;
    background-color: #FAFAF8;
    min-width: 200px;
}
#custom-form-container ul:after {
    display: none !important;
}
#custom-form-container ul li {
    background-color: #FAFAF8;
    height: auto;
    border-right: 1px solid #000 !important;
    width: 100%;
}
#custom-form-container ul li.et_pb_tab_active a {
    text-decoration: underline;
    text-underline-position: under;
}
#custom-form-container ul li.et_pb_tab_active:before {
    content: '▸';
    margin-left: -15px;
    margin-right: 5px;
}
#custom-form-container ul li a {
    color: #000;
    padding: 0 20px 15px 0;
}
#custom-form-container .et_pb_all_tabs {
    background-color: #FAFAF8;
    background-size: 150px;
    width: 100%;
}
#custom-form-container .et_pb_all_tabs .et_pb_tab {
    padding-top: 0;
    padding-right: 130px;
}
.mobile-tab-selector {
    display: none;
}


/* Specific for Resources pages */
.resources-tabs-container {
    justify-content: flex-start;
}
.resources-tabs-container a.about-tab{
    width: 280px;
    padding-right: 0;
    margin-right: 50px;
}

/* Specific for blog posts */
.et_pb_post .entry-content {
    max-width: 800px;
    margin: auto;
}
.et_pb_post .entry-content p {
    font-size: 22px;
    line-height: 32px;
}
.et_pb_post .entry-content hr {
    margin-bottom: 44px;
}
.single-post-meta {
    border-top: 1px solid #000;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}
/*
 .single-post-meta-author {
    min-width: 300px;
}

.single-post-meta-author img {
    margin-right: 30px;
    float: left;
}
.single-post-meta-author p {
    font-size: 18px;
    line-height: 28px;
}
*/

.single-post-meta-share {
    text-align: right;
    min-width: 350px;
}
.single-post-meta-share h3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.single-post-meta-share h3 i {
    font-size: 22px;
}

#jp-relatedposts {
    width: 100vw;
    border-top: 1px solid #000;
    margin-left: calc(-50vw + 50%) !important;
    padding: 100px 0 !important;
}
#jp-relatedposts h3.jp-relatedposts-headline {
    font-size: 36px !important;
    line-height: 36px;
    font-family: 'questa-grande-regular', serif !important;
    font-weight: normal !important;
    max-width: 1240px;
    padding-left: calc(-50vw + 60%);
}
#jp-relatedposts h3.jp-relatedposts-headline em {
    font-weight: normal !important;
}
#jp-relatedposts h3.jp-relatedposts-headline em:before {
    display: none !important;
}
#jp-relatedposts h3.jp-relatedposts-headline:after {
    content: ' Articles';
}
#jp-relatedposts .jp-relatedposts-items {
    padding-left: calc(-50vw + 60%);
    padding-right: calc(-50vw + 60%);
}
#jp-relatedposts a.jp-relatedposts-post-a {
    font-family: 'questa-grande-regular', serif !important;
    font-size: 27px !important;
    line-height: 30px !important;
}
#jp-relatedposts a.jp-relatedposts-post-a:hover {
    text-decoration: none !important;
}
#jp-relatedposts span.jp-relatedposts-post-context {
    margin-top: 10px;
    opacity: 1 !important;
    font-size: 18px !important;
}

/* 3. Typography Settings */
h1, h2, h3, h4, h5, h6 {
    color: #000;
}
.entry-content h1 a,
.entry-content h2 a, 
.entry-content h3 a,
.entry-content h4 a,
.entry-content h5 a {
    text-decoration: none;
}

h1 {
    font-family: 'questa-grande-light', serif;
    font-size: 54px !important;
    line-height: 56px;
    padding-bottom: 20px;
    max-width: 1040px;
}

h2 {
    font-family: 'questa-grande-regular', serif;
    font-size: 36px !important;
    line-height: 36px;
    padding-bottom: 1em;
}

h3 {
    font-family: 'questa-grande-regular', serif;
    font-size: 27px !important;
    line-height: 30px;
    padding-bottom: 14px;
}

p {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    line-height: 28px;
    padding-bottom: 2em;
}

.excerpt, 
.blockquote,
.blog-list-container article .post-content p {
    font-size: 22px;
    line-height: 32px;
}

.blockquote {
    font-style: italic;
}

.pullquote {
    font-size: 27px;
    line-height: 37px;
    font-style: italic;
}

.caption {
    font-size: 14px;
    line-height: 18px;
}

.signature {
    font-family: 'Mr Bedfort', cursive;
    font-size: 28px;
    line-height: 47px;
}

/* Links in blog posts and pages */
.et_pb_post a,
.entry-content a {
    font-weight: bold;
    text-decoration: underline;
}

.et_pb_post .entry-content ul,
.et_pb_post .entry-content ol {
    padding-bottom: 2em !important;
}
.et_pb_post .entry-content ul li,
.et_pb_post .entry-content ol li {
    font-size: 22px;
    line-height: 32px;
}


/* 4. FORMS */
/* 4.1 Buttons */
.btn {
    display: block;
    height: 45px;
    max-width: 300px;
    text-align: center;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    line-height: 45px;
    font-weight: bold;
    border: 1px solid #000;
    text-decoration: none !important;
}
.btn:after,
.btn-link:after,
.read-more:after,
.more-link:after {
    content: '→';
}
.btn-no-arrow:after {
    content: '';
}
.btn-primary {
    background-color: #000;
}
a.btn-primary {
    color: #FAFAF8 !important;
}
.btn-primary:hover {
    background-color: #4A4A49;
}
.btn-secondary {
    background-color: #FAFAF8;
}
a.btn-secondary {
    color: #000 !important;
}
.btn-secondary:hover {
    background-color: #E0E0DE;
}
.btn-disabled {
    opacity: 0.4;
}
.btn-center {
    margin: auto;
}
a.btn-link,
a.read-more,
a.more-link {
    font-family: 'Crimson Text', serif;
    font-size: 18px;
    height: 28px;
    line-height: 28px;
    font-weight: bold;
    color: #000;
    background-color: #FAFAF8;
    border-bottom: 1px solid #000;
    text-decoration: none;
}
a.btn-link:hover,
a.read-more:hover,
a.more-link:hover {
    background-color: #4A4A49;
    color: #FAFAF8 !important;
}
.btn-link-list {
    border: none;
    top: 0;
    left: -5px;
}
.btn-link-list ul {
    padding-left: 0;
}
.btn-link-list ul li {
    list-style-type: none;
    height: 36px;
}

select {
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    width: auto !important;
    height: 40px !important;
    min-width: 170px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    line-height: 18px;
    background-color: transparent;
    color: #000;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    background-image:
        linear-gradient(45deg, transparent 50%, black 50%),
        linear-gradient(135deg, black 50%, transparent 50%);
    background-position:
        calc(100% - 10px) calc(1em + 2px),
        calc(100% - 5px) calc(1em + 2px);
    background-size:
        5px 5px,
        5px 5px;
    background-repeat: no-repeat;
    margin: 20px;
}
#episode-selector {
    padding-right: 30px;
}

.contact-form label.name,
.contact-form label.email,
.contact-form label.text,
.contact-form label.url,
.contact-form label span {
    display: none;
}
.contact-form > div {
    margin-bottom: 20px;
}
.newsletter-form input[type=email],
.contact-form input[type=email], 
.contact-form input[type=text], 
.contact-form input[type=url] {
    background-color: #FAFAF8;
    height: 32px;
    border: 0;
    border-bottom: 1px solid #000;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    line-height: 32px;
    padding-bottom: 15px;
    max-width: 500px !important;
    width: 100% !important;
}
.newsletter-form input[type=email]:focus,
.contact-form input[type=email]:focus, 
.contact-form input[type=text]:focus, 
.contact-form input[type=url]:focus {
    border-bottom: 3px solid #000;
}
.contact-form .contact-submit input[type=submit],
.newsletter-form input[type=submit] {
    display: block;
    height: 45px;
    max-width: 300px;
    width: 100%;
    text-align: center;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    line-height: 45px;
    font-weight: bold;
    border: 1px solid #000;
    background-color: #000;
    color: #FAFAF8 !important;
}
.contact-form .contact-submit input[type=submit]:hover,
.newsletter-form input[type=submit]:hover {
    background-color: #4A4A49;
}
.contact-form .contact-submit {
    margin-top: -20px;
}
.contact-form .contact-submit:before {
    content: '*Required fields';
    font-size: 14px;
}
#-speakpipe-widget-side-button {
    display: none !important;
}

/* Subscription hero section */
.subscription-container {
    background-color: #FAFAF8;
    border: 1px solid #000;
    color: #000;
    text-align: center;
    padding: 60px;
    max-width: 1240px;
    margin: auto;
}
.subscription-button-section {
    display: none;
    max-width: 840px;
    width: 100%;
    margin: auto;
}
.subscription-button-group a {
    display: inline-block;
    width: 100%;
    margin: 40px 25px 60px 25px;
    max-width: 240px;
}

/* Newsletter Popup */
.newsletter-form {
    max-width: 400px;
    margin: -40px auto 20px;
}
.newsletter-form .form-hidden {
    height: 1px !important;
}
.newsletter-form input {
    margin-top: 20px;
}
.newsletter-form ._field-wrapper {
    margin-top: 20px;
}
.newsletter-form #_form_39_submit {
    margin: 20px auto;
    cursor: pointer;
}

/* Start Here Container */
.start-here-container {
    display: flex;
    justify-content: space-between;
}
.start-here-column {
    width: 18%;
}
.start-here-column img,
.start-here-column p {
    margin-bottom: 30px;
}
.start-here-column .btn {
    max-width: 200px;
}

/* Set testimonial slider max height */
.et_pb_slider, .et_pb_slider .et_pb_container {
    max-height: 400px !important;
}
.et_pb_slide_description, .et_pb_slider_fullwidth_off .et_pb_slide_description {
    padding: 2% 8%;
}


/* 5. SITE HEADER */
/* Hide shopping cart icon */
#main-header {
    box-shadow: none;
    border-bottom: 1px solid #000;
}
#logo {
    max-height: 40px !important;
}
.logo_sitename {
    font-family: 'questa-grande-regular', serif;
    font-size: 27px;
    line-height: 30px;
    position: relative;
    top: 3px;
}
@media (max-width: 1300px){
    .logo_sitename {
        display: none;
    }
}

.et-cart-info {
    display: none;
}

#top-menu li {
    padding-right: 40px;
}

.sub-menu {
    border: 1px solid #000 !important;
    right: 0;
}

.sub-menu li a {
    font-size: 16px !important;
}


/* 6. SITE FOOTER */
.footer-widget,
.footer-widget .et_pb_widget,
.footer-widget .et_pb_widget .custom-html-widget {
    width: 100%;
}

.footer-last-section h2, 
.footer-last-section h3 {
    color: #FAFAF8;
}
.footer-last-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-links-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.footer-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.footer-links .link-column {
    min-width: 124px;
    width: 24%;
    margin-right: 1%;
}
.footer-links .link-column .excerpt {
    margin-bottom: 10px;
}
.footer-links .link-column ul li:before {
    display: none;
}
.footer-social a {
    margin-right: 15px;
}

.footer-newsletter {
    max-width: 500px;
    min-width: 460px;
    border: 1px solid #FAFAF8;
    padding: 30px;
}
#footer-widgets .footer-newsletter ul li:before,
.newsletter-box ul li:before {
    content: '✓';
    border: none;
    top: 0;
    left: -5px;
}
.newsletter-box ul {
    padding-left: 0;
}
.newsletter-box ul li {
    list-style-type: none;
}
.newsletter-box ul li:before {
    padding-right: 5px;
}

.footer-credits {
    margin-top: 30px;
}

/* Pagination */
.wp-pagenavi {
    text-align: center;
    border-top: none;
}
.wp-pagenavi .pages {
    display: none;
}
.wp-pagenavi span,
.wp-pagenavi span.current,
.wp-pagenavi a,
.wp-pagenavi a:hover {
    color: #000 !important;
    font-size: 18px !important;
    margin: 0 10px;
    padding: 30px 0;
}
.wp-pagenavi .current {
    text-decoration: underline;
    text-underline-position: under;
}
.wp-pagenavi .nextpostslink, 
.wp-pagenavi .previouspostslink {
    color: #000 !important;
}


/* 7. EPISODES AND BLOG PAGES */
.blog-list-container article,
.episodes-posts-container article, 
.search article {
    border-bottom: 1px solid #000;
    padding-bottom: 60px;
}
.blog-list-container article a.entry-featured-image-url,
.search article a.entry-featured-image-url {
    float: left;
    max-width: 380px;
    margin-right: 60px;
}
.blog-list-container article p.post-meta {
    font-size: 18px;
    color: #000;
}
.blog-list-container article .post-content .more-link {
    display: inline-block;
    text-transform: capitalize;
    margin-top: 20px;
}
.search article {
    overflow: hidden;
}
.search article a.entry-featured-image-url {
    margin-bottom: 0;
}

.episodes-posts-container p,
.episodes-posts-container a {
    color: #000 !important;
}
.episodes-posts-container h3 {
    max-width: 900px;
}
.episodes-posts-container .read-more {
    display: block;
    margin-top: 20px;
    max-width: 120px;
}
.episodes-posts-container .post-content iframe {
    margin: 20px auto;   
}

.search article h2.entry-title {
    font-size: 27px !important;
    line-height: 30px;
    padding-bottom: 14px;
}
.search article p.post-meta {
    font-size: 18px !important;
    color: #000;
}
.search article p.post-meta a {
    color: #000 !important;
}



/* MOBILE STYLE */
@media only screen and (max-width : 1380px) {
    .footer-last-section {
        flex-direction: column-reverse;
    }
    .footer-links-container {
        margin-top: 30px;
    }
}
@media only screen and (max-width : 979px) {
    /* Navigation Menu */
    .sub-menu {
        border: 0 !important;
    }
    .sub-menu li a {
        font-size: 14px !important;
    }
    .current-menu-item {
        border: 1px solid #000;
    }
    .current-menu-ancestor {
        border: 0;
    }

    .footer-widget:nth-child(n) {
        width: 100% !important;
    }

    .mobile-reverse-columns {
        display: flex;
        flex-direction: column-reverse;
    }

    .sponsor-separator-row {
        display: none;
    }
}
@media only screen and (max-width : 767px) {
    /* Subscription hero section */
    .subscription-container .excerpt {
        display: flex;
        flex-direction: column;
        text-align: left;
    }
    .subscription-container .excerpt select {
        margin-left: 0;
    }
    .subscription-container .subscription-button-group a {
        margin: 15px auto;
    }
    .subscription-container .subscription-button-group a.btn-link {
        display: block;
        max-width: 160px;
        margin: 10px auto;
    }

    /* Page Title Sections */
    .page-title-section {
        flex-direction: column;
    }
    .page-title-section .featured-image-container {
        width: 100% !important;
    }
    .title-container {
        padding: 60px 40px !important;
        min-width: auto;
    }
    
    /* Footer section */
    .footer-newsletter {
        min-width: auto;
    }
    .footer-last-section {
        flex-direction: column-reverse;
    }
    .footer-links-container {
        margin-top: 30px;
    }
    .footer-links {
        flex-direction: column;
    }
    .footer-links .link-column {
        width: auto;
    }

    /* Start Here Blog Section */
    .start-here-container {
        flex-direction: column;
    }
    .start-here-column {
        width: auto;
        max-width: 400px;
        margin-bottom: 40px;
    }
    .start-here-column .btn {
        width: auto;
        max-width: 100%;
    }

    /* Home Posts Container */
    .home-posts-container > div {
        flex-direction: column;
    }
    .home-posts-container > div article {
        border-bottom: 1px solid #000;
        padding-bottom: 40px;
    }

    /* Set testimonial slider max height */
    .et_pb_slider, .et_pb_slider .et_pb_container {
        max-height: 100% !important;
    }

    /* Blog listing */
    .blog-list-container article a.entry-featured-image-url {
        float: none;
        max-width: 768px;
    }
    .single-post-meta {
        flex-direction: column;
    }
    .single-post-meta-share {
        text-align: left;
        margin-top: 40px;
        min-width: 0;
    }
    .single-post-meta-share h3 {
        flex-wrap: wrap;
    }
    .single-post-meta-share h3 a {
        width: 40px;
    }
    #jp-relatedposts .jp-relatedposts-items {
        display: flex;
        flex-direction: column;
    }
    #jp-relatedposts .jp-relatedposts-items .jp-relatedposts-post {
        width: 100% !important;
    }

    /* Sponsors */
    .sponsor-row {
        flex-direction: column;
    }
    .sponsor-row .et_pb_image_wrap {
        max-height: 500px;
        padding: 40px 0 60px;
        border-bottom: 1px solid;
    }

    /* About Pages */
    .about-tabs-container {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    a.about-tab.about-selected {
        border: 4px solid #000;
        padding-left: 30px;
    }

    #custom-form-container {
        display: block;
        padding: 1em;
    }
    #custom-form-container ul {
        border-bottom: 1px solid #000;
        margin-bottom: 20px;
    }
    #custom-form-container ul li {
        border-right: 0 !important;
    }
    #custom-form-container ul li.et_pb_tab_active {
        font-weight: bold;
    }
    #custom-form-container ul li.et_pb_tab_active:before {
        display: none;
    }
    #custom-form-container .et_pb_all_tabs .et_pb_tab {
        padding-top: 80px;
        padding-right: 30px;
    }
    #custom-form-container ul.et_pb_tabs_controls {
        display: none;
    }
    .mobile-tab-selector {
        display: block;
    }

    /* Search Pages */
    .search article a.entry-featured-image-url {
        margin-bottom: 30px;
    }

}


/* ABOUT PAGE MENU */
.about-navigation {
    text-align: center;
}
.about-navigation ul.menu,
.about-navigation ul.nav-menu,
.about-navigation div.nav-menu > ul {
    display: none;
    list-style-type: none;
    width: 100%;
}
.about-navigation li {
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
}
.about-navigation a {
    font-size: 22px;
    line-height: 28px;
    text-decoration: none;
}
.menu-toggle {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 100%;
    margin: 0;
    padding: 0 30px;
    height: 60px;
    font-size: 22px;
    font-family: 'Crimson Text', serif;
    text-align: justify;
    background-color: #202020;
    color: #fff;
    border: 0;
}
.menu-toggle:before {
    content: '≡';
    font-size: 30px;
    padding-right: 10px;
}
.menu-toggle:after {
    content: '▼';
    font-size: 12px;
    text-align: right;
    float: right;
    padding-top: 15px;
}
.menu-toggle.toggled-on:after {
    content: '▲';
}
.about-navigation ul.nav-menu.toggled-on,
.menu-toggle {
    display: inline-block;
}
.about-navigation .current-menu-item > a,
.about-navigation .current-menu-ancestor > a,
.about-navigation .current_page_item > a,
.about-navigation .current_page_ancestor > a {
    font-weight: bold;
}
 
@media screen and (min-width: 768px) {
    .about-navigation ul.menu {
        display: block;
    }
 
    .about-navigation ul.menu,
    .about-navigation ul.nav-menu,
    .about-navigation div.nav-menu > ul {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid #000;
        max-width: 1240px;
        width: 80%;
        padding-bottom: 0;
        margin: auto;
    }
    .about-navigation li {
        padding: 0;
        border-bottom: 0;
    }
    .about-navigation li a,
    .about-navigation li {
        display: inline-block;
    }
    .about-navigation li a {
        font-weight: bold;
        white-space: nowrap;
        padding: 45px 0 30px;
    }
    .about-navigation .current-menu-item > a,
    .about-navigation .current-menu-ancestor > a,
    .about-navigation .current_page_item > a,
    .about-navigation .current_page_ancestor > a {
        border-bottom: 4px solid #000;
    }
    .menu-toggle {
        display: none;
    }
    #resources-menu {
        justify-content: flex-start;
    }
    #resources-menu li {
        margin-right: 50px;
    }
}