/* 
Theme Name:     Cremation Institute
Description:    A Child Theme for 'Schema by MyThemeShop' theme
Author:         WPoptima.com
Author URI:     http://wpoptima.com
Template:       mts_schema
Version:        1.1
*/

/* Sidebar */
#sidebar .widget:first-of-type {
    padding: 9px 0px 10px;
    background-color: transparent;
    box-shadow: 0 0 0;
}

#sidebar .widget:first-of-type.widget h3 {
    font-size: 21px;
    text-transform: none;
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
    color: #343434;
    text-shadow: 1px 1px 0px #fff;
}

#sidebar .widget:nth-of-type(2) {
    padding: 0px;
    line-height: 0;
}

#sidebar .widget:nth-of-type(3) p {
    line-height: 1.4;
    font-size: 95%;
}

/* Header */
#header {
    background: transparent;
}

#header .logo-wrap {
    padding: 3px 0 3px;
    width: 358px;
}

@media screen and (max-width: 865px) {
    #header .logo-wrap {
        max-width: 72%;
        margin: 6px auto -1px;
    }
}

#secondary-navigation a {
    color: #004977;
}

@media screen and (max-width: 865px) {
    #secondary-navigation {
        margin-top: -60px;
    }

    #secondary-navigation a {
        background-color: transparent !important;
        color: transparent !important;
    }

    #secondary-navigation a:after {
        color: #004977;
        font-size: 19px;
    }

    #secondary-navigation .toggle-menu a {
        color: #eee !important;
    }
}

/*** Additional style editing - WebOoptima.eu July 4&5th 2017 ***/
.latestPost .title a {
    font-weight: bold;
}

h2, h3, .post-single-content h2, .post-single-content h3 {
    text-transform: none;
    font-weight: bold;
}

h1.single-title {
    color: #0274be;
    font-weight: bold;
}

.latestPost .title a {
    font-weight: bold;
}

.entry-content ul li {
    list-style-type: none;
    margin-bottom: 1em;
}

.entry-content ul li:before {
    content: "";
    line-height: 1em;
    width: .38em;
    height: .38em;
    background-color: #0274be;
    float: left;
    margin-left: -1em;
    margin: 0.5em 0 -0.5em -1em;
}

iframe {
    display: block;
    margin: 5px auto;
}

/* Centered images on mobile */
@media screen and (max-width: 600px) {
    article img.right, article img.alignright, .wp-caption.alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/****** NEW HOMEPAGE EDITING 15-11-2017 by WebOoptima.eu ******/
#header {
    background: transparent;
}

body.home {
    background-color: #fff;
}

.home .copyrights {
    background-color: #e6ede6;
}

#page.homepage {
    max-width: 100%;
    margin: auto;
    padding-top: 0;
}

.header-img {
    display: table;
    height: 460px;
    width: 100%;
    background-image: url('/wp-content/uploads/2017/11/speaker-cropped.jpg');
    background-position: 50% 0;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.h-title {
    display: table-cell;
    vertical-align: middle;
}

.h-title h1 {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 14px;
    width: 72%;
    max-width: 542px;
    margin: auto;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
}

.above-article {
    width: 67.015%;
    float: none;
    padding: 3% 3.994% 0;
    padding-bottom: 0;
    background: #fff;
    margin: auto;
    box-sizing: border-box;
    max-width: 714px;
}


.homepage .article {
    max-width: 714px;
    margin: auto;
    float: none;
    box-shadow: none;
    padding-top: 10px;
}

.text {
    margin-bottom: 78px;
    text-align: center;
}

.text p {
    text-align: left;
    clear: both;
    margin-bottom: 37px;
}

.above-article h3 {
    text-align: center;
    font-size: 30px;
    color: #464646;
    margin-bottom: 22px;
}

.homepage .latestPost .title a {
    font-size: 25px;
}

.hp-button {
    border: 2px solid #464646;
    border-radius: 2px;
    box-shadow: 2px 2px 5px #464646;
    padding: 10px 19px;
    text-align: center;
    line-height: 1em;
    margin-top: 20px;
    clear: both;
}

.hp-button:hover {
    background-color: #eee;
}


@media screen and (max-width: 720px) {
    .above-article {
        width: 100%;
    }

    .header-img {
        height: 370px;
    }

    .h-title h1 {
        padding: 13px;
        font-size: 36px;
    }

    .above-article h3 {
        font-size: 28px;
    }
}

@media screen and (max-width: 480px) {
    .header-img {
        height: 320px;
        background-attachment: scroll;
    }

    .h-title h1 {
        width: 70%;
        padding: 12px;
        font-size: 32px;
    }
}

/* Logo edit 4/12/2017 */
#header .logo-wrap {
    padding: 14px 0 !important;
}

#logo img {
    margin-top: 1px;
}

@media screen and (min-width: 866px) and (max-width: 1030px) {
    #header .logo-wrap {
        max-width: 27.7%;
        padding: 15px 0 0 !important;
    }

    #secondary-navigation a {
        padding: 24px 9px;
        font-size: 17px !important;
    }
}

/* New Category Layout */
@media screen and (min-width: 1000px) {
    .category #content_box #featured-thumbnail {
        float: left !important;
        max-width: 300px;
        margin-right: 20px !important;
        margin-bottom: 20px;
    }

    .category .front-view-content {
        width: auto !important;
        float: none !important;
    }
}

@media screen and (min-width: 681px) and (max-width: 720px) {
    .category #content_box #featured-thumbnail {
        float: left !important;
        max-width: 300px;
        margin-right: 20px !important;
        margin-bottom: 20px;
    }

    .category .front-view-content {
        width: auto !important;
        float: none !important;
    }
}

.category h1.postsby {
    display: none;
}

.ca-title, .ca-stitle {
    font-weight: 600;
    color: #454545;
    margin-bottom: 20px;
}

.ca-title {
    font-size: 35px;
}

.ca-stitle {
    font-size: 32px;
}

@media screen and (max-width: 720px) {
    .sidebar {
        display: none;
    }

    #logo img {
        max-width: 94%;
    }
}

/*Missed Styles*/
/* Sidebar */
#sidebar .widget:first-of-type {
    padding: 9px 0 10px;
    background-color: transparent;
    box-shadow: 0 0 0;
}

#sidebar .widget:first-of-type.widget h3 {
    font-size: 21px;
    text-transform: none;
    margin-bottom: 0;
    text-align: center;
    font-weight: 600;
    color: #343434;
    text-shadow: 1px 1px 0 #fff;
}

#sidebar .widget:nth-of-type(2) {
    padding: 0;
    line-height: 0;
}

#sidebar .widget:nth-of-type(3) p {
    line-height: 1.4;
    font-size: 95%;
}

/* Header */
#header {
    background: transparent;
}

#header .logo-wrap {
    padding: 3px 0 3px;
    width: 358px;
}

@media screen and (max-width: 865px) {
    #header .logo-wrap {
        max-width: 72%;
        margin: 6px auto -1px;
    }
}

#secondary-navigation a {
    color: #004977;
}

@media screen and (max-width: 865px) {
    #secondary-navigation {
        margin-top: -60px;
    }

    #secondary-navigation a {
        background-color: transparent !important;
        color: transparent !important;
    }

    #secondary-navigation a:after {
        color: #004977;
        font-size: 19px;
    }

    #secondary-navigation .toggle-menu a {
        color: #eee !important;
    }
}

/*** Additional style editing - WebOoptima.com July 4&5th 2017 ***/
.latestPost .title a {
    font-weight: bold;
}

h2, h3, .post-single-content h2, .post-single-content h3 {
    text-transform: none;
    font-weight: bold;
}

h1.single-title {
    color: #0274be;
    font-weight: bold;
}

.latestPost .title a {
    font-weight: bold;
}

.entry-content ul li {
    list-style-type: none;
    margin-bottom: 1em;
}

.entry-content ul li:before {
    content: "";
    line-height: 1em;
    width: .38em;
    height: .38em;
    background-color: #0274be;
    float: left;
    margin-left: -1em;
    margin: 0.5em 0 -0.5em -1em

}

iframe {
    display: block;
    margin: 5px auto;
}

/* Centered images on mobile */
@media screen and (max-width: 600px) {
    article img.right, article img.alignright, .wp-caption.alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.23, autoprefixer: v9.7.3) */

/*MD styles*/
.post-template-md-navigation-template article {
    padding-top: 2%;
}

.post-template-md-navigation-template .md-post-title {
    margin-bottom: 15px;
    text-transform: none;
}

.md-blu {
    color: #1e73be !important;
}

.md-underline {
    text-decoration: underline !important;
}

.md-post-title {
    float: none;
}

.md-banner-image {
    margin-bottom: 25px;
    line-height: 0;
    text-align: center;
}

.md-banner-image img {
    max-width: 100%;
}

.md-post-meta {
    margin-bottom: 15px;
}

.md-post-meta .md-post-meta__item {
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 15px;
    background-color: #f6f8f7;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.md-post-meta .md-post-meta__item img {
    margin-right: 10px;
}

.md-post-meta .md-post-meta__item a {
    color: #000000;
}

.md-navigation-links {
    margin-bottom: 15px;
    padding: 10px;
    border: 2px solid #EBEBEB;
    font-size: 0;
}

.md-navigation-links h2 {
    margin-bottom: 5px;
    font-size: 18px;
    color: #000000;
}

.md-navigation-links a {
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #c2c4ca;
    font-size: 19px;
    color: #1e73be !important;
    text-decoration: underline;
}

.md-navigation-links a:first-child {
    padding-left: 0;
}

.md-navigation-links a:last-child {
    margin-left: 0;
    padding-right: 0;
    border: none;
}

.md-post-authors {
    margin-bottom: 15px;
}

.md-post-authors .md-post-authors__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.md-post-authors .md-post-authors__image {
    margin-right: 10px;
}

.md-post-authors .md-post-authors__image img {
    display: block;
    max-width: 100%;
    border-radius: 50%;
}

.md-post-authors .md-post-authors__written-by {
    color: #000000;
    font-size: 18px;
    margin-bottom: 0;
}

.md-post-authors .md-post-authors__reviewed-by {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 0;
    color: #000000;
    font-size: 16px;
    font-weight: normal
}

.md-post-authors .md-post-authors__reviewed-by img {
    margin-right: 5px;
}

@media all and (max-width: 865px) {
    .md-banner-image {
        display: none;
    }
}

@media all and (max-width: 720px) {
    .logo-wrap {
        position: relative;
        z-index: 10;
    }

    #logo img {
        float: left;
        width: auto !important;
        height: auto !important;
    }

    a#pull {
        font-size: 0;
    }

    .md-post-meta {
        margin-top: 15px;
    }

    .md-post-meta .md-post-meta__item {
        font-size: 13px;
    }

    .md-post-meta .md-post-meta__item img {
        margin-right: 5px;
    }

    .md-post-authors .md-post-authors__image {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        width: 15%;
    }

    .md-post-authors .md-post-authors__meta {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        width: 85%;
    }

    .md-post-authors .md-post-authors__written-by {
        font-size: 16px;
    }

    .md-post-authors .md-post-authors__reviewed-by {
        font-size: 14px;
    }
}

/*MD Carrot Table*/
.post-content {
    overflow: visible;
}

.md-carrot-tables {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.md-carrot-table {
    width: 49%;
    margin-bottom: 10px;
    font-size: 14px;
}

.md-carrot-table:last-child {
    margin-right: auto;
}

.md-carrot-table,
.md-carrot-table * {
    box-sizing: border-box;
}

.md-carrot-table .md-carrot-table__title-box {
    background-color: #f7e303;
    text-transform: uppercase;
    text-align: center;
    font-size: 26px;
    background-color: #a0d0ee;
    color: #ffffff;
}

.md-carrot-table .md-carrot-table__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.md-carrot-table .md-carrot-table__col {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 30%;
    padding: 25px 0 50px;
    background-color: #0d74bb;
}

.md-carrot-table .md-carrot-table__col-icon {
    margin-bottom: 15px;
}

.md-carrot-table .md-carrot-table__col-icon img {
    display: block;
    height: 40px !important;
    margin: 0 auto;
}

.md-carrot-table .md-carrot-table__col-icon--diamond img {
    height: 35px !important;
    margin-bottom: 5px;
}

.md-carrot-table .md-carrot-table__col-icon--coin img {
    height: 35px !important;
    margin-bottom: 5px;
}

.md-carrot-table .md-carrot-table__content {
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    text-align: center;
    color: #ffffff;
    white-space: nowrap;
}

.md-carrot-table .md-carrot-table__col-title {
    margin-bottom: 15px;
    margin-left: -5px;
    margin-right: -5px;
    padding: 10px;
    background-color: #9ed1f1;
    text-align: center;
    color: #ffffff;
    white-space: nowrap;
}

.md-carrot-table .md-carrot-table__col--with-logo {
    position: relative;
}

.md-carrot-table .md-carrot-table__col--with-logo .md-carrot-table__content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.md-carrot-table .md-carrot-table__logo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: #ffffff;
}

.md-carrot-table .md-carrot-table__logo img {
    display: block;
    max-width: 100%;
    max-height: 50px;
    margin: 0 auto;
}

.md-carrot-table .md-carrot-table__content-item--with-border {
    padding: 10px 5px;
    border-bottom: 1px solid #a3b9e0;
}

.md-carrot-table .md-carrot-table__content-item--with-border:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

@media all and (max-width: 720px) {
    .md-carrot-table {
        width: 100%;
    }

    .md-carrot-table .md-carrot-table__title-box {
        padding: 10px;
    }

    .md-carrot-table .md-carrot-table__wrapper {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .md-carrot-table .md-carrot-table__col {
        padding: 10px 0;
    }

    .md-carrot-table .md-carrot-table__col:nth-child(1),
    .md-carrot-table .md-carrot-table__col:nth-child(2) {
        width: 50%;
    }

    .md-carrot-table .md-carrot-table__col:nth-child(3) {
        display: none;
    }
}

/*MD Mega Menu*/
@media all and (min-width: 866px) {
    .md-mega-menu,
    .md-mega-menu * {
        box-sizing: border-box;
    }

    .md-mega-menu ul {
        right: 0;
    }

    .md-mega-menu__size-1 ul {
        width: 295px!important;
    }

    .md-mega-menu__size-2 ul {
        width: 590px!important;
    }

    .md-mega-menu__size-3 ul {
        width: 885px!important;
    }

    .md-mega-menu ul li {
        float: none;
        width: auto;
    }

    .md-mega-menu .sub-menu {
        flex-wrap: wrap;
        padding: 25px 15px 0;
        background-color: #ffffff;
    }

    .md-mega-menu .md-mega-menu__col {
		float: left;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        margin-bottom: 25px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .md-mega-menu .md-mega-menu__col-1-2 {
        width: 50%;
    }

    .md-mega-menu .md-mega-menu__col-1-3 {
        width: 33.3333%;
    }

    .md-mega-menu .md-menu-item-img-left {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }

    .md-mega-menu .md-menu-item-img-left .md-mega-menu__img-wrapper {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        margin-right: 15px!important;
    }

    .md-mega-menu .md-menu-item-img-left img {
        width: 35px;
    }

    .md-mega-menu .md-menu-item-img-left .md-mega-menu__item-content-wrapper {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }

    .md-mega-menu .md-mega-menu__col a {
        width: auto!important;
        padding: 0!important;
        line-height: 1.2em;
    }

    .md-mega-menu .md-mega-menu__item-content-wrapper > a {
        color: rgb(2, 116, 190)!important;
    }

    .md-mega-menu .md-mega-menu__item-content-wrapper > a:hover {
        opacity: .8;
        color: rgb(2, 116, 190)!important;
    }

    .md-mega-menu .md-mega-menu__item-content-wrapper .md-mega-menu__item-subtitle {
        line-height: 1.2em;
        opacity: .5;
        font-size: 14px;
    }
}

@media screen and (max-width: 1024px) {
    body .navigation.mobile-only {
        display: none;
    }

    .page-id-8643 .md-mega-menu ul {
        right: -100%;
    }
}

@media all and (max-width: 865px) {
    body .navigation.mobile-only {
        display: block;
    }

    .md-mega-menu .md-mega-menu__img-wrapper,
    .md-mega-menu .md-mega-menu__item-subtitle {
        display: none!important;
    }
}

/* Megamenu Css */

#primary-navigation {
    display: none;
}
/*
.funeral-costs ul a{
	width: 350px !important;
}
.planning-resource ul a{
	width: 1080px !important;
}

.planning-resource .ubermenu-submenu {
    position: absolute !important;
    left: -200px !important;
}
.planning-resource .ubermenu-target-description{
	width: 320px;
}
.memorials .ubermenu-submenu {
    position: absolute !important;
    left: -300px !important;
}
.ubermenu-skin-vanilla .ubermenu-submenu.ubermenu-submenu-drop{
	background: #fff !important;
}

.ubermenu .ubermenu-item-layout-image_above>.ubermenu-image {
    margin-bottom: 0 !important;
}

@media only screen and (min-width: 1000px) {
	.memorials ul{
	padding: 10px !important;
	background-color: #fff;
}
.memorials ul li a{
	padding: 0 !important;
	width: 100% !important;
}
.memorials .ubermenu-image{
	height: 200px !important;
	padding: 10px !important;
}
 .memorials .ubermenu-target-text {
	padding-left: 10px;
}
.pets ul{
	padding: 10px !important;
	background-color: #fff;
}
.pets ul li a{
	padding: 0 !important;
	width: 100% !important;
}
.pets .ubermenu-image{
	height: 200px !important;
	padding: 10px !important;
}

.pets .ubermenu-target-text {
	padding-left: 10px;
}
}
*/

/****** Mobile menu editing, 05/2020, WebOoptima.eu ******/
@media screen and (max-width: 865px) {
    .navigation.mobile-menu-wrapper {
        background-color: #e5e9e5!important;
    }

    body #secondary-navigation .toggle-menu a,
    .toggle-menu .toggle-caret .fa {
        color: #222 !important;
        border-color: rgba(0, 0, 0, 0) !important;
        padding-top: 12px !important;

    }

    .navigation .toggle-caret {
        border-color: rgba(0, 0, 0, 0) !important;
    }
}