/*
Theme Name:     tadl-4.1
Description:    TADL Child Theme for Education Hub Pro
Author:         William Rockwood
Template:       education-hub-pro

(optional values you can add: Theme URI, Author URI, Version, License, License URI, Tags, Text Domain)
*/

/* define global font size */
p,
body {
    font-size: 16px;
}

/* underline links on hover */
a:hover {
    text-decoration: underline;
}
#primary-menu li a:hover {
    text-decoration: none;
}

/* fix links in footer */
.nav-links a {
    color: #fff !important;
}
#footer-navigation,
#footer-navigation a,
#tophead,
#tophead p {
    font-size: 14px;
}

/* use widget titles in more than just the sidebar */
.entry-content .widget-title {
    background: #294a70 none repeat scroll 0 0;
    border-bottom: 0 solid #ffab1f;
    border-left: 5px solid #ffab1f;
    color: #ffffff;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    padding: 5px 15px;
    position: relative;
}
.entry-content .widget-title:after {
    border-left: 9px solid rgba(0,0,0,0);
    border-right: 9px solid rgba(0,0,0,0);
    border-top: 9px solid #294a70;
    bottom: -20px;
    content: "";
    display: block;
    height: 21px;
    left: 5%;
    margin: 0 auto;
    position: absolute;
    width: 13px;
    z-index: 9999;
}

/* fix up item carousels */
.owl-item {
    text-align: center;
}
.owl-carousel .item img {
    width: auto;
}
img.lazyOwl {
    max-height: 160px;
}

/* add margin below dates in posts */
.entry-meta {
    margin-bottom:15px;
}

/* hide page titles on anchor pages and fix padding */
.page-id-56 h1.entry-title,
.page-id-54 h1.entry-title,
.page-id-58 h1.entry-title,
.page-id-62 h1.entry-title,
.page-id-64 h1.entry-title,
.page-id-66 h1.entry-title,
.page-id-2276 h1.entry-title,
.page-id-2875 h1.entry-title,
.page-id-9907 h1.entry-title,
.page-id-91 h1.entry-title {
    display: none;
}
.site-content {
    padding: 20px 0;
}

/* hide site info */
div.site-info {
    display: none;
}

/* align search box */
.search-section {
    padding-top: 35px;
}

/* fix nav margins */
#main-nav {
    margin-bottom:10px;
}
body.home #main-nav {
    margin-bottom:0;
}

/* fix homepage body margins */
#featured-news-events {
    padding: 10px 0 0;
}

/* fix image sizes for resources */
.recent-news .news-post img {
    max-height:100px;
    height:100px;
    width: auto !important;
}
.recent-news .news-post .block-meta a {
    display: none;
}
.recent-news .news-post .news-content {
    padding:2px 0 0 4px;
    margin:2px 0 0 0;
}

/* fix images on events */
.tribe-events-list .tribe-events-event-image img {
    float: left;
    max-height: 100px;
    width: auto;
}
.tribe-events-list .tribe-events-list-event-description {
    float: left;
}
.tribe-events-event-image {
    float: right;
    max-width: 40%;
    margin-left: 15px;
}
.tribe-events-cal-links {
    clear: both;
}
.tribe-venue-widget-venue-name {
    display: none;
}
#sidebar-primary h4.tribe-event-title {
    margin: 0;
}

/* fix recurring event display on single event pages */
.single-tribe_events .tribe-events-schedule .recurringinfo {
    font-size: 1em !important;
}
.event-is-recurring {
    font-weight: 400 !important;
    color: inherit !important;
}

/* hide content views more link */
.pt-cv-content .more-link {
    display: none;
}

/* fix margin on entry content */
.entry-content {
    margin:0;
}

/* fix hover color of su buttons */
a.su-button-style-flat:hover,
a.su-button-style-flat span:hover,
.su-button-style-flat span:hover,
.su-button-style-flat a:hover {
    background-color: #294a70 !important;
    border-color: #294a70 !important;
}

/* fix color of orange su heading */
.su-heading-style-modern-1-orange .su-heading-inner {
    border-bottom: 2px solid #f7bd66 !important;
}
.su-heading-style-modern-1-orange {
    border-bottom: 1px solid #f7bd66 !important;
}

/* fix padding on footer widgets */
#footer-widgets {
    padding: 15px 0 30px 0;
}
h3.widget-title {
    font-size: 22px;
}

/* hide prev/next post navigation on posts */
nav.navigation.post-navigation {
    display: none;
}

/* used by su_hours shortcode */
div.hours-block {
    font-size: 16px;
    max-width: 100%;
}
div.dayofweek {
    font-weight: bold;
    text-align: left;
    float:left;
}
div.hoursofday {
    float: right;
    text-align: right;
}

/* used by su_hours_today shortcode */
span.hourstoday {
    font-size: 20px;
}
body.page-id-108 span.hourstoday {
    font-size: 16px;
}

/* style fixes for custom search box */
.search-section {
    padding-top:5px;
    width: 384px;
}
.search-section input.header-search {
    width: 70%;
    line-height: 25px;
}
.search-section .su-tabs-nav span {
    font-size: 15px !important;
    color: #000 !important;
}
.search-section .su-tabs-nav span.su-tabs-current {
    color: #fff !important;
}
.search-section .su-tabs-style-flat-blue {
    margin:0;
}
.search-section .su-tabs-style-flat-blue .su-tabs-nav,
.search-section .su-tabs-style-flat-blue .su-tabs-nav span {
    background: #fff;
}
.search-section .su-tabs-style-flat-blue .su-tabs-nav span.su-tabs-current,
.search-section .su-tabs-style-flat-blue .su-tabs-pane {
    background: #294a70;
}
.search-section button {
    padding: 6px 15px;
    margin-left: -2px;
    line-height: 25px;
    border-radius: 0;
}
@media only screen and (max-width:767px){
    #page #masthead {
        padding-top: 0px;
    }
    .search-section {
        clear: both;
        float: right;
        width: 100%;
    }
    .search-section button {
        padding: 6px 20px;
    }
    .search-section input.header-search {
        width: 60%;
    }
    .custom-logo-link {
        max-width: 100%;
    }
    .location-links {
        margin: auto !important;
        text-align: center !important;
        padding-top: 5px !important;
    }
}
header#masthead {
    padding: 5px 0 0 0;
}
@media only screen and (max-width: 479px) {
    #page #masthead {
        padding-top: 5px;
    }

}

/* venue tags on events for month view */
table.tribe-events-calendar div.tribe-events-venue-100 h3.tribe-events-month-event-title::after {
    content: " (Interlochen)";
}
table.tribe-events-calendar div.tribe-events-venue-97 h3.tribe-events-month-event-title::after {
    content: " (Traverse City)";
}
table.tribe-events-calendar div.tribe-events-venue-102 h3.tribe-events-month-event-title::after {
    content: " (Peninsula)";
}
table.tribe-events-calendar div.tribe-events-venue-98 h3.tribe-events-month-event-title::after {
    content: " (East Bay)";
}
table.tribe-events-calendar div.tribe-events-venue-101 h3.tribe-events-month-event-title::after {
    content: " (Kingsley)";
}
table.tribe-events-calendar div.tribe-events-venue-99 h3.tribe-events-month-event-title::after {
    content: " (Fife Lake)";
}

/* hide top next/prev links on single events */
#tribe-events-header {
    display: none;
}

/* fix up links in header */
.header-links {
    margin:0 0 10px 0;
    padding:2px 0 5px 0;
    background: #f4a024;
    border-top: 1px solid #f4a024;
    text-align:center;
    color:#f7bd66;
    font-size:16px;
}
.header-links a {
    color: #fff;
}

/* fix logo alignment */
.custom-logo-link {
    margin-top: 15px;
}

/* restrict width of main slider */
.site-layout-fluid #featured-slider .container {
    max-width: 1140px;
    margin: auto;
}

/* upcoming events heading fix */
.footer-widget-area h2.tribe-events-title a {
    font-size: 16px;
    font-weight: normal;
}
.footer-widget-area h2.tribe-events-title {
    margin-bottom: 5px;
}
.footer-widget-area div.tribe-events-duration {
    font-size: 14px;
    line-height: 18px;
}
.footer-widget-area div.list-info {
    margin: 5px 0;
    width: 100%;
}
.footer-widget-area div.list-date {
    display: none;
}

/* there's no clearfix? o_O */
div.clearfix {
    clear: both;
}

#pt-cv-view-762f946zmr {
    display: none;
}


#tribe_events_filter_item_eventcategory,
#tribe_events_filters_wrapper h3,
#tribe_events_filters_wrapper input,
#tribe_events_filters_wrapper label,
#tribe_events_filters_wrapper select,
#tribe_events_filters_wrapper ul {
    font-size: 16px !important;
}

#tribe_events_filter_item_eventcategory,
#tribe_events_filter_item_venues {
    padding-top: 5px;
}
#tribe_events_filters_wrapper input[type="submit"] {
    margin: 0 0 15px 15px !important;
}

/* hide venue widget address */
.tribe-venue-widget-address {
    display: none;
}

/* fixup spoiler titles */
.su-spoiler .su-spoiler-title {
    font-size: 16px;
    color: #000;
}

/* fixup buttons on new eresources page */
.page-id-16148 .su-button-wide,
.page-id-9907 .su-button-wide,
.page-id-16148 .pt-cv-ctf-value,
.page-id-9907 .pt-cv-ctf-value,
.page-id-16148 .su-button-center,
.page-id-9907 .su-button-center,
.page-id-16148 .su-button-center a,
.page-id-9907 .su-button-center a {
    width: 100% !important;
    margin-bottom: 0;
}
.page-id-16148 .pt-cv-ctf-column,
.page-id-9907 .pt-cv-ctf-column,
.page-id-16148 .pt-cv-ctf-resource_url,
.page-id-9907 .pt-cv-ctf-resource_url {
    margin: 0;
    padding: 0;
}
.page-id-16148 .su-button-center a,
.page-id-9907 .su-button-center a {
    padding: 10px 0px;
}
.page-id-16148 .su-button-center a span:hover,
.page-id-9907 .su-button-center a span:hover,
.page-id-16148 .su-button-center a:hover,
.page-id-9907 .su-button-center a:hover {
    background-color: #f4a024 !important;
}

/* make link library "Learn more" links more visible, maybe */
div.LinkLibraryCat li p a {
    color: #f4a024 !important;
}
div.LinkLibraryCat li p a:hover {
    color: #294a70 !important;
}
/* hide start time in footer events widget on calendar view */
.tribe-mini-calendar-event .start-time {
    display: none;
}

/* hide post meta */
.entry-meta {
    display: none;
}

/* fix up location links in header */
.location-links {
    float: left;
    max-width: 400px;
    margin-left: 70px;
    padding-top: 50px;
    text-align: center;
}
p.locations,
a.location-link {
    font-size: 18px;
}

/* fix venue widget */
.tribe-venue-widget-list .type-tribe_events {
    margin-bottom: 5px;
}
.tribe-venue-widget-list li + li {
    margin-top: 5px;
}
.widget-area ul li::before {
    display: none;
}
.tribe-events-venue-widget .tribe-event-title {
    padding-top: 0;
}

/* fix tadl at home images */
.pt-cv-pinterest .pt-cv-1-col .pt-cv-thumbnail:not(.img-circle) {
    width: 100%;
    margin-top: 5px;
}

/* make error message for meeting room for comditions red */
.must-accept h2 {
    color: #f00;
}

/* hide "log in before purchasing" link on ticket purchase form */
td.tpp-add {
    visibility: hidden;
}

/* hide stupid captcha thing */
.grecaptcha-badge {
    display: none;
}
