/*
Theme Name: Ask Dr Sears Custom Theme
Description: Ask Dr Sears 2013 Custom Theme
Author: Dr Sears Wellness Institute
Template: barelycorporate
*/

/*------------------------------------------------------------------------
>>> TABLE OF CONTENTS:
--------------------------------------------------------------------------
# Root Styles
## Color Palette
# Header
    ## Navigation
        ### Mega Menu
        ### Theme Menu
# Content
    ## Home Page
    ## Categories & Subcategories
    ## Posts
    ## Dr. Sears Wellness Institute Page
# Blog
# Sidebar
# Footer
# Other
    ## Helper Classes
------------------------------------------------------------------------*/

.fa-check:before {
    width: 40px;
    display: block;
}

.category-sears-family-connect .cat-block h2 {
    display: none;
}

.menu_center #access .mega-sub-menu .sub-menu > li a {
    font-family: Roboto, Arial, sans-serif;
}


h1, h2, h3, h5, h6, .slide-title {
    font-weight: 400;
}

.bmform_body347258 .email-confirmation {
    display: none;
}

body.tb-btn-gradient input[type="submit"], body input[type="submit"] {
    border-color: #0c6eb0;
    border-radius: 2px;
    color: #0c6eb0;
}

body.tb-btn-gradient .btn-default.active {
    color: #3d9946;
    border-color: #3d9946;
}

body.tb-btn-gradient .btn-default, body.tb-btn-gradient input[type="submit"], body.tb-btn-gradient input[type="reset"], body.tb-btn-gradient input[type="button"], button {
    border-color: #0c6eb0;
    border-radius: 2px;
    color: #0c6eb0;
}

body .post_grid .entry-title, body .post_grid .entry-title a {
    font-size: 18px;
}

body .post-col {
    float: left;
    margin: 0 10px 10px 0;
    width: 233px;
}

body .post-col img {
    height: 187px;
    width: 233px; 
}






@media only screen and (max-width: 500px) {
    .grid_4 img {
        width: 100%;
    }
    
    .mega-toggle-label {
        vertical-align: middle;
        position: relative;
        font-size: 21px;
    }
}

@media only screen and (max-width: 900px) {
    body, html {
        font-size: 18px !important;
        -webkit-text-size-adjust: 100%;
    }

    body .post_grid .entry-title, body .post_grid .entry-title a {
        font-size: 24px;
    }

    h3, .h3, h3 a, .h3 a {
        font-size: 21px;
    }

    .mega-toggle-label-closed {
        display: none;
    }
}



/*------------------------------------------------------------------------
# Root Styles
------------------------------------------------------------------------*/

/*-----------------------------------------------
## Color Palette
Blue: #0c6eb0
Green: #3d9946
Light Green: #dce9de
Light Blue: #d9effc
-----------------------------------------------*/




/* Remove border radius on most eleents throughout site*/
.boxed-layout .boxed-inner,
article,
.element-slider-standard .element-inner,
.element-slider-nivo .element-inner,
.element-content .element-inner,
.element-post_grid_slider .element-inner,
.element-post_list_slider .element-inner,
.element-slogan .element-inner,
.element-tweet .element-inner,
.element-columns .element-inner,
#comments .comment-body,
#respond {
    border: 1px solid #dce9de;
    border-radius: 0;
}

.fixed-sidebar .widget {
    border: 1px solid #dce9de;
    border-radius: 0;
}

/* Fix #main bg color, same as dashboard settings */
#main {
    background-color: #fbfbfb;
}

/* Increase container width on medium & large screens */

/* Medium */
@media (min-width: 992px) {
    .layout_stretch #top #branding .content,
    .layout_stretch #main .main-content,
    #featured_below .featured_below-content,
    #featured .featured-content,
    .layout_stretch #footer_content,
    #colophon #footer_sub_content,
    #colophon .footer-below {
        width: auto;
        max-width: 970px;
    }
}

/* Large */
@media (min-width: 1200px) {
    .layout_stretch #top #branding .content,
    .layout_stretch #main .main-content,
    #featured_below .featured_below-content,
    #featured .featured-content,
    .layout_stretch #footer_content,
    #footer_content,
    #colophon #footer_sub_content,
    #colophon .footer-below {
        width: auto;
        max-width: 1170px;
    }
}

/* Heading & classes adjustments */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 10px;
}

h1, .h1 {
    font-size: 26px;
}
h2, .h2, h2 a, .h2 a {
    color: #0c6eb0;
    /* color: #0A578A; */
    /* color: #37863D; */
    font-size: 22px;
}

h2 a:hover, .h2 a:hover {
    color: #37863D;
}

h3, .h3, h3 a, .h3 a {
    font-size: 18px;
    /* color: #0c6eb0; */
    color: #017f19;
}

h3 a:hover, .h3 a:hover {
    /* color: #37863D; */
    color: #0c6eb0;
}

h4, .h4, .entry-content h4, .entry-content .h4 {
    font-size: 16px;
    font-weight: bold;
}
h5, .h5 {
    font-size: 12px;
}
h6, .h6 {
    font-size: 10px;
}

/* Clean up .aligncenter */
.aligncenter {
    margin-top: 0;
    margin-bottom: 0;
}

/*-----------------------------------------------
## Sidebar
-----------------------------------------------*/

/* Decrease right sidebar padding */
.fixed-sidebar .widget .widget-inner {
    padding: .75em .75em .60em;
}

.widget ul li a {
    color: #0c6eb0;
    padding: 1px 0;
}

.fixed-sidebar .widget_nav_menu .menu > li {
    border-top: none;
}

.fixed-sidebar .widget_nav_menu .menu > li a {
    border-bottom: 1px dotted #e5e5e5;
}

.fixed-sidebar .widget_nav_menu .menu > li:last-of-type a {
    border-bottom: none;
}

.fixed-sidebar .widget_nav_menu .widget-title {
    margin-bottom: 1em;
    padding: 0;
}

.widget_nav_menu .menu {
    padding: 0;
}

.fixed-sidebar .widget_nav_menu .menu > li {
    margin: 0 0 4px 0;
}

.fixed-sidebar .widget_nav_menu .menu > li a {
    padding: 1px 0;
}

/*------------------------------------------------------------------------
# Header
------------------------------------------------------------------------*/

/* Remove thick border at bottom of header */
#top #branding {
    border-bottom: none;
}

/* Header Container adjustments at break points */
#branding #header_content {
    padding-top: 6px;
    padding-bottom: 0;
}

@media (max-width: 767px) {
    #branding #header_content {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 992px){
    #branding #header_content {
        padding-bottom: 10px;
    }
}

@media (min-width: 1200px){
    #branding #header_content {
        height: 135px;
        padding-bottom: 25px;
    }
}

/* Logo */
.header_logo {
    max-width: 405px;
}

@media (max-width: 767px) {
    .header_logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Hide rectangular logo and show stacked logo */
@media (max-width: 991px) {
    .header_logo {
        background-image: url('/wp-content/uploads/2017/09/ask-dr-sears-logo-stack.png');
        height: 87px;
        width: 244px;
    }

    #branding .header_logo a {
        display: block;
        height: 87px;
        width: 244px;
    }

    #branding .header_logo .tb-image-logo img {
        display: none;
    }

}

@media (min-width: 992px) {
    .header_logo {
        margin-top: 13px;
    }
}

@media (min-width: 1200px) {
    .header_logo {
        bottom: 18px;
        left: 20px;
        margin-top: 0;
        position: absolute;
    }
}

/* Remove padding on Image Widget */
.header-image .widget-area-collapsible .widget {
    padding-bottom: 0;
}

/* Image Widget adjustments at break points */
@media (min-width: 992px) {
    .header-image {
        position: absolute;
        right: 274px;
        top: 34px;
        width: 263px;
    }
}

@media (min-width: 1200px) {
    .header-image {
        bottom: 0;
        right: 340px;
        top: auto;
        width: 333px;
    }
}

.header-search .search-input {
    border-radius: 0;
}

/* Search Widget adjustments at break points */
@media (min-width: 768px) {
    .header-search {
        max-width: 238px;
        position: absolute;
        right: 27px;
        top: 43px;
    }
}

@media (min-width: 992px) {
    .header-search {
        right: 25px;
        top: 53px;
    }
}

@media (min-width: 1200px) {
    .header-search {
        bottom: 20px;
        top: auto;
    }
}

.header-btn .widget-area-collapsible .widget {
    padding: 3px;
}

.header-widgets .header-btn input[type="button"] {
    background-color: #0c6eb0;
    color: #ffffff;
}

/* Button Widget & adjustments at break points */
@media (max-width: 767px) {
    .header-btn {
        float: left;
        width: 50%;
    }
}

@media (min-width: 768px) {
    .header-btn {
        max-width: 238px;
        position: absolute;
        right: 156px;
        top: 0px;
    }
}

@media (min-width: 1200px) {
    .header-btn {
        top: 15px;
    }
}

/* Social Media Icons */
.social-media {
    margin-bottom: 8px;
}

#branding .social-media .themeblvd-contact-bar, #branding .social-media .themeblvd-contact-bar:before, #branding .social-media .themeblvd-contact-bar:after {
    background: none;
}

.themeblvd-contact-bar ul.social-media-grey li a {
    background-image: url('assets/images/social-media-custom_24x24.png');
}

.themeblvd-contact-bar ul.social-media-grey li a:hover {
    opacity: 0.8;
}

@media (max-width: 767px) {
    #branding .social-media {
        float: right;
        width: 48%;
    }
}

#branding .social-media .themeblvd-contact-bar {
    margin-top: 5px;
}

@media (min-width: 1200px) {
    #branding .social-media .themeblvd-contact-bar {
        margin-top: 20px;
    }
}

.themeblvd-contact-bar li {
    padding: 3px;
}

/* Search widget button */
.widget_search .btn-default[type="submit"] {
    background-color: #e1e1e1;
    border-color: #cccccc;
    color: #666666;
}

.widget_search .btn-default[type="submit"]:hover {
    background-color: #e1e1e1;
    border-color: #cccccc;
    color: #afafaf;
}

/*-----------------------------------------------
## Navigation
-----------------------------------------------*/

.menu-wrapper {
    border-top: 1px solid #d2d2d2;
}

.mobile_nav_graphic .menu-wrapper {
    margin-top: 0
}

/*
Fix top nav menu font-family, font-size & padding. May not be needed while
Mega Menu is enabled but keeping in case it is turned off.
*/
#access li a {
    background: none;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 14px;
    padding: 14px 8px;
}

/* Adjust menu padding on large screens */
@media (min-width: 1200px) {
    #access li a {
        padding: 14px 24px;
    }
}

/* Adjust padding on mobile have to use !important because theme uses it */
@media (max-width: 767px) {
    #access li li li a {
        padding-left: 0 !important;
    }

    #access li li a {
        padding-left: 0 !important;
    }
}

/* Reset theme styles for dropdown menus */
#access ul ul {
    width: auto;
    padding: 0;
}

.mega-sub-menu div[class^="menu-"] {
    margin-bottom: 0;
}

/*------------------------
### Mega Menu
------------------------*/

/* Postion arrows on drop downs */
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout.mega-menu-item-has-children > a.mega-menu-link::after,
#mega-menu-wrap-primary #mega-menu-primary li.mega-menu-flyout li.mega-menu-item-has-children > a.mega-menu-link::after,
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item-has-children > a.mega-menu-link::after {
    margin: 0
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item > a.mega-menu-link {
    text-transform: capitalize;
}

.menu_center #access .mega-sub-menu div .menu > li > a {
    text-shadow: none;
}

@media only screen and (max-width: 900px) {
    body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        font-size: 18px;
    }

    body #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-megamenu > ul.mega-sub-menu > li.mega-menu-item li.mega-menu-item > a.mega-menu-link {
        font-size: 16px;
    }

    body.menu_center #access .mega-sub-menu div .menu > li > a {
        font-size: 18px;
    }
}


/* Reduce font size & padding top nav bar screens 901px-1020px - keep nav single line */
@media (min-width: 901px) and (max-width: 1020px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        font-size: 12px;
        padding: 0 10px;
    }
}

/* Increase font size slightly screens 992-1020px */
@media (min-width: 992px) and (max-width: 1020px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        font-size: 14px;
    }
}

/* Reduce padding top nav bar screens 1021px-1184px - keep nav single line */
@media (min-width: 1021px) and (max-width: 1184px) {
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        padding: 0 7px
    }
}

/* Add subtle border between custom menus and other columns in mega menu panel */
@media (min-width: 901px) {
    #mega-menu-wrap-primary #mega-menu-primary > .mega-menu-item > .mega-sub-menu > .mega-menu-item + .mega-menu-item {
        border-left: 1px solid #d0d0d0;
    }

    #mega-menu-wrap-primary #mega-menu-primary > .mega-menu-item > .mega-sub-menu #mega-menu-item-text-97 {
        border-left: none;
    }
}

/* Flexbox for equal height columns on mega menu columns */
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > ul.mega-sub-menu {
    display: flex;
    flex-wrap: wrap;
}

/* Fix weird sizing issue on following menu items when this element is floated */
.menu_center #access ul {
    float: none;
}

/* Postion of custom menus inside mega menu */
.menu_center #access ul ul.mega-sub-menu ul {
    left: 0;
    position: relative;
}

/* Indent 3rd level mega menu links */
.mega-sub-menu .mega-sub-menu {
    padding-left: 5px;
}

/* Div that wraps custom menus in mega menu panel */
.menu_center #access .mega-sub-menu div {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Custom menu lists in mega menu panel */
#access ul ul.mega-sub-menu ul {
    background-color: transparent;
    border: none;
    /*padding: 0 0 0 8px;*/
}

/* Custom menu links in mega menu panel */
.menu_center #access .mega-sub-menu div .menu > li > a {
    color: #0e6fb1;
    font-size: 16px;
    font-weight: 400;
    padding: 7px 0;
}

/* 3rd level custom menu links in mega menu panel */
.menu_center #access .mega-sub-menu .sub-menu > li a {
    color: #666666;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.7;
    padding: 0 0 0 5px !important; /* use !important because theme uses it */
}

/* Custom menu links hover in mega menu panel 3rd & 4th level links */
.menu_center #access .mega-sub-menu div .menu > li > a:hover,
.menu_center #access .mega-sub-menu div .menu > li > a:focus,
.menu_center #access .mega-sub-menu div .menu > li > a:active,
.menu_center #access .mega-sub-menu .sub-menu > li a:hover,
.menu_center #access .mega-sub-menu .sub-menu > li a:focus,
.menu_center #access .mega-sub-menu .sub-menu > li a:active {
    background-color: transparent;
    color: #3d9946;
}

/* Fix 4th level custom menu links in mega menu panel */
.menu_center #access .mega-sub-menu .sub-menu .sub-menu > li a {
    padding-left: 10px !important; /* use !important because theme uses it */
}

/*
* Fix View All Headings
* Only keep this if we keep the centered links above the mega menu columns
*/
#access .mega-text a {
    color: #0e6fb1;
    font-size: 21px;
    font-weight: normal;
}


/*------------------------------------------------------------------------
# Content
------------------------------------------------------------------------*/

.breadcrumb {
    font-size: 12px;
}

/* Fix padding and weird spacing on top banner - internal pages */
.top-banner-ad .widget {
    padding-top: 0;
    margin-top: -5px;
}

/* Give table th & td some breathing room like current Bootstrap does */
td, th {
    padding: 8px;
}

blockquote {
    border-left-color: #3d9946;
    margin: 20px 0;
}

.article-wrap .entry-content .micro-data {
    direction: ltr;
    height: 1px;
    overflow: hidden;
    text-align: left;
    text-indent: -9999px;
}

/* Refine Bootstrap Panels */
.panel {
    border-radius: 2px;
}

.panel-default > .panel-heading,
.panel-default {
    border-color: #dce9de;
}

/* Buttons */
.tb-btn-gradient .btn-default,
.tb-btn-gradient input[type="submit"],
.tb-btn-gradient input[type="reset"],
.tb-btn-gradient input[type="button"],
button {
    border-color: #0c6eb0;
    border-radius: 2px;
    color: #0c6eb0;
}

.tb-btn-gradient .btn-default:hover,
.tb-btn-gradient .btn-default:active,
.tb-btn-gradient .btn-default:focus,
.tb-btn-gradient input[type="submit"]:hover,
.tb-btn-gradient input[type="submit"]:active,
.tb-btn-gradient input[type="submit"]:focus,
.tb-btn-gradient input[type="reset"]:hover,
.tb-btn-gradient input[type="reset"]:active,
.tb-btn-gradient input[type="reset"]:focus,
.tb-btn-gradient input[type="button"]:hover,
.tb-btn-gradient input[type="button"]:active,
.tb-btn-gradient input[type="button"]:focus,
.tb-btn-gradient button:hover,
.tb-btn-gradient button:active,
.tb-btn-gradient button:focus {
    background-color: transparent;
    border-color: #3d9946;
    color: #3d9946;
}

/* Clean up page and post titles and images */
.entry-header {
    border-bottom-width: 2px;
    padding: 0;
}

/* article .entry-title a {
    color: #0c6eb0;
} */

.entry-title, h1, .h1, article .entry-title, article .entry-title a {
    line-height: 1.25em;
    color: #0c6eb0;
}

/* Clean upp thumbnails */
.post_list .thumbnail {
    border: none;
}

/* Hide post meta - theme setting not working */
.single-post .meta-wrapper {
    display: none;
}

/* Responsive video embed */
.embed-container {
    height: 0;
    margin: 8px 0;
    max-width: 100%;
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    border: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}
/* End responsive video embed */

/*-----------------------------------------------
## Home Page Styles
-----------------------------------------------*/

/* Give header breathing room */
.home #main {
    padding-top: 24px;
}

/* Hide top banner ad */
.home .top-banner-ad,
.page-id-11456 .top-banner-ad,
.page-id-11483 .top-banner-ad,
.page-id-11511 .top-banner-ad {
    display: none;
}

/*
Latest blog posts - Mockup 3
Remove if this mockup isn't used
*/
@media (min-width: 768px) {
    .latest-home-block h3 {
        margin-top: 0;
    }
}

.latest-home-block .row + .row {
    margin-top: 30px;
}
/* end latest blog posts - Mockup 3 */

/* Featured category cards */
.element-headline {
    background-color: #ffffff;
    border: 1px solid #dce9de;
}

.home-blocks .element-inner {
    background: none;
    border: none;
    padding: 0;
}

.home-blocks .column {
    background-color: #ffffff;
    border: 1px solid #dce9de;
    padding: 10px;
}

/* Make featured category cards equal height on md & lg screens */
@media (min-width: 768px) {
    .home-blocks .grid-protection {
        display: flex;
    }
}

/* Fix vertical spacing issues on xs small screens */
@media (max-width: 767px) {
    .element {
        padding: 0;
    }

    #content .element-columns .element-inner {
        padding: 0;
    }
}

/*-----------------------------------------------
## Categories & Subcategories
-----------------------------------------------*/

.article-list-heading {
    margin-top: 40px;
}

.category .topics-ul {
    columns: 2 220px;
    column-gap: 2.8em;
    line-height: 1.7;
    margin-left: 1.65em;
}

.category .topics-ul .fa-li {
    line-height: 1.5;
    color: #37863D;
}

.cat-block {
    background-color: #ffffff;
    border: 1px solid #dce9de;
    padding: 20px;
}

.subcat-wrap {
    background-color: #ffffff;
    border: 1px solid #dce9de;
    margin-top: 15px;
    padding: 20px;
}


/*-----books----------*/

.books-block {
    background:inherit;
    border:none;
}

.books-intro-wrap {
    background:#fff;
    border: 1px solid #dce9de;
    padding:15px;
    box-sizing:border-box;
}

.books-subcat-wrap {
       
    background-color: inherit;
    margin-top: 15px;
    padding: 20px;
    margin-top:0;
    padding-top:0;
}

.books-grid {
    display:grid;
    grid-template-columns: 45% 45%;
    grid-column-gap: 5%;
    grid-auto-rows: 1fr;
    grid-row-gap: 15px;
    width:100%;
}

.books-subtopic-div {
    background-color:#fff;
    border: 1px solid #dce9de;
    height:100%;
    box-sizing:border-box;
}

.books-subtopic-div h3 {
    padding-left:20px;
}

.books-h2 {
    margin-bottom: 20px;
}

.books-cat-ind-div {
  /*  margin-bottom:40px; */
}

.books-single-div {
    display:flex;
    justify-content:space-between;
    margin-bottom:40px;
    padding:20px;
}

.book-image-div {
    width:30%;
}

.book-text-div {
    width:67.5%;
}

.book-button {
    background:#37863D;
    color:#fff;
}

.book-button a {
    display:inline-block;
    padding:10px 20px;
    color:#fff;
}

.check-books {
    width:20px;
}

.category-sears-family-connect .subcat-wrap {
    margin-bottom:30px;
}

@media only screen and (max-width: 1000px) {
    .books-grid {
        grid-template-columns: 100%;
    }
}


/* Clear every odd subcategory grid block for columns of uneven height */
@media (min-width: 768px) {
    .subcat-grid .col-sm-6:nth-child(odd) {
        clear: left;
    }


}

/* Font adjustments to subcategory lists */
.subcat-grid ul {
    font-size: 15px;
    padding-left: 20px;
}

.subcat-grid li + li {
    margin-top: 6px;
}

/* Add border to subactegory images */
.subcat-grid img {
    border: 1px solid #dce9de;
}

/* Remove border for circular subcategory images in Pregnancy & Childbirth */
.category-8 .subcat-grid div:nth-child(n+5) img {
    border: none;
}

.more-link {
    margin-bottom: 15px;
    padding-right: 4px;
    text-align: right;
}

.more-link i {
    padding-right: 4px;
}

/*
 * Old Category post_list & link styles
 * May not need these after category template clean up is done
*/
.category .post_list .inner .boxed-layout {
    background-color: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 2px;
    margin: 10px 0;
    padding: 4px;
}

.category .sub-list li {
    margin: 5px 0 10px 0;
}

.more-links {
    padding-right: 4px;
    text-align: right;
}

.more-links i {
    padding-right: 4px;
}
/* end category post_list & link styles */

/*
 * Categories with more traditional layout
 * Latest News, News, News Archives,
 * Sears Family Blog, & Topics
*/

/*-----------------------------------------------
## Posts
-----------------------------------------------*/

/* Clear floats on featured images - most phone screens */
@media (max-width: 449px) {
    .featured-image-wrapper {
        float: none;
    }
}

/* Clean up featured images */
.thumbnail,
.pretty,
.wp-caption {
    margin-bottom: 10px;
}

.thumbnail {
    border-radius: 2px;
}


@media (max-width: 449px) {
    .wp-caption.alignnone,
    .wp-caption.alignleft,
    .wp-caption.alignright {
        float: none;
        margin-left: auto;
        margin-right: auto;
    }
}

/*----------
Float some featured images right for better layout
.postid-2574 = Cough Suppresant Dosage
.postid-3358 = The Omega-3 Effect
-----------*/
@media (min-width: 450px) {
    .postid-2574 .featured-image-wrapper,
    .postid-3358 .featured-image-wrapper {
        float: right;
    }
}

/*-----------------------------------------------
## Dr. Sears Wellness Institute Page
-----------------------------------------------*/

.icon-box {
    border: 1px solid #ebebeb;
    border-radius: 3px;
    padding: 32px 15px 15px;
}

.icon-box:before {
    background-color: #0c6eb0;
    border-radius: 50%;
    color: #ffffff;
    font-family: FontAwesome;
    font-size: 20px;
    height: 40px;
    left: 0;
    line-height: 40px;
    margin: 0 auto;
    position: absolute;
    right: 0;
    text-align: center;
    top: -20px;
    width: 40px;
}

.icon-leaf:before {
    content: "\f06c";
}

.icon-certificate:before {
    content: "\f0a3";
}

.icon-user:before {
    content: "\f007";
}


/*------------------------------------------------------------------------
# Footer
------------------------------------------------------------------------*/

/* Clean up Super Post padding */
ul.super-post {
    padding-left: 0;
}

/* Hide Super Post date & comment */
.sp-date,
.sp-comment {
    display: none;
}

/* Resources List */
.foot-links {
    list-style: none;
    padding: 0;
}

/* Fix overflow of text for link class in footer */
.tb-contact_widget ul.simple-contact li.link {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*------------------------------------------------------------------------
# Other Styles
------------------------------------------------------------------------*/

.sticky-menu {
    z-index: 9999;
    top: 0;
    height: 40px;
    border-bottom: 1px solid #d2d2d2;
}

.sticky-menu.sticky-menu-open {
    overflow: auto;
    height: 100%;
}

.sticky-menu, .sticky-menu #mega-menu-wrap-primary .mega-menu-toggle {
    position: fixed;
    left: 0;
    width: 100%;
    background: #fff;
}

.sticky-menu #mega-menu-wrap-primary .mega-menu-toggle.mega-menu-open + #mega-menu-primary {
    padding-top: 50px;
}

#mega-menu-wrap-primary .mega-menu-toggle .mega-toggle-block-1:after {
    display: none;
}


.breadcrumb > li + li:before {
    content: "/";
    padding: 0 0 0 2px;
}

/* Customize Ad Inserter plugin */
@media (max-width: 500px) {
    .code-block {
        float: none !important;
    }
}

/* Customize popup and newsletter form*/
.pum-content h1 {
    font-family: Roboto, Arial, sans-serif;
}

html.pum-open.pum-open-overlay.pum-open-scrollable body > [aria-hidden] {
    padding-right: 0;
}

.news-form {
    background-color: #eaebeb;
}

.pum-content #tdLogo347258,
.pum-content #tdHeader347258,
.pum-content #tdIntro347258 {
    display: none;
}

.pum-content #tblFormData347258 {
    width: 80% !important; /* To override inline width */
}

.pum-content .bmform_inner347258 {
    border: none;
}

.pum-content .bmform_body347258 {
    background-color: transparent;
}

.pum-content .bmform_body347258,
.pum-content .bmform_frmtext347258,
.pum-content .bmform_frmtext347258,
.pum-content #tblRequiredField347258 {
    color: #0e6fb1
}

.pum-content #btnSubmit {
    background-color: #0c6eb0;
    color: #ffffff;
}

/* Customize Related Posts plugin */
.rp4wp-related-posts {
    border: 1px solid #0c6eb0;
    border-left: none;
    border-right: none;
    margin: 10px 5px;
    padding: 10px 8px;
    text-align: center;
}

.rp4wp-related-posts h3 {
    color: rgb(102, 102, 102);
}

.rp4wp-related-posts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp4wp-related-posts ul li {

}

.rp4wp-related-posts ul {
    padding-left: 17px;
}

.rp4wp-related-posts li {
    line-height: 1.65;
}

/*-----------------------------------------------
## Helper Classes
-----------------------------------------------*/

.ads-green {
    color: #3d9946;
}

.mt-32px {
    margin-top: 32px;
}

.mb-16 {
    margin-bottom: 16px;
}

.two-col {
    columns: 2 200px;
    column-gap: 1em;
    line-height: 1.5;
}


@media only screen and (max-width: 768px) {
    .featured-image .thumbnail {
        border: none;
    }

    .subcat-grid img {
        min-width: 100px;
    }

    .subcat-grid .col-xs-3 {
        width: 30%;
        padding: 0;
        margin-left: -10px;
    }

    .subcat-grid .col-xs-9 {
        width: 70%;
    }

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

    .books-cat-ind-div .col-xs-3 {
        width:100%;
        float:none;
    }

    .books-cat-ind-div .col-xs-3 img {
        display:block;
        margin: 0 auto 20px;
    }

    .books-cat-ind-div .col-xs-9 {
        width:100%;
        float:none;
    }
}
