/*
*   Hub based CSS
*/

.above-hub-menu .widget {
    /*margin-top: 0;*/
}

ul.hub-tabbed-area {
    margin: 40px 0 0;
    border-bottom: ;
    overflow: hidden;
}

ul.hub-tabbed-area li.page_item {
    display: block;
    width: 100%;
    margin: 0 2.5% 0 0;
    text-align: left;
    background-color: #fff;
    max-height: 42px;
    overflow: hidden;
    display: none;
    position: relative;
    padding-left: 12px;
}

ul.hub-tabbed-area li.page_item:last-of-type {
    margin-right: 0 !Important;
}

ul.hub-tabbed-area li.page_item a {
    color: #000;
    text-overflow: ellipsis;
    padding-top: 10px;
    padding-bottom: 10px;
    display: block;
    width: 100%;
}

ul.hub-tabbed-area li.page_item.current_page_item {
    background-color: #E71E40;
    display: block;
    border-bottom-color: transparent;
}

ul.hub-tabbed-area li.page_item.current_page_item:after {
    content: "\e617";
    font-family: 'icomoon';
    position: absolute;
    right: 20px;
    color: #fff;
    font-weight: bold;
    top: 10px;
}

ul.hub-tabbed-area li.page_item.current_page_item a {
    color: #fff;
}

@media only screen and (min-width:500px) {

    ul.hub-tabbed-area {
        margin: 40px 12px 0;
        border-bottom: 0;
        overflow: hidden;
    }

    ul.hub-tabbed-area li.page_item {
        display: block;
        width: 100%;
        margin: 0 2.5% 0 0;
        background-color: #fff;
        max-height: 42px;
        overflow: hidden;
        display: none;
    }

    ul.hub-tabbed-area li.page_item:last-of-type {
        margin-right: 12px;
    }

    ul.hub-tabbed-area li.page_item.current_page_item {
        background-color: #E71E40;
        display: block;
    }

}

@media only screen and (min-width:900px) {

    ul.hub-tabbed-area {
        margin: 40px 12px 0;
        border-bottom: 2px solid #E71E40;
        overflow: hidden;
    }

    ul.hub-tabbed-area li.page_item {
        float: left;
        display: block !Important;
        width: 18%;
        margin: 0 2.5% 0 0;
        text-align: center;
        background-color: #fff;
        max-height: 42px;
        overflow: hidden;
        padding-left: 0;
    }

    ul.hub-tabbed-area li.page_item:last-of-type {
        margin-right: 0 !Important;
    }

    ul.hub-tabbed-area li.page_item.current_page_item:after {
        display: none;
    }

}

div.entry-content.image-gallery {
    border-top: 0;
    border-bottom: 1px solid #e5e5e5;
}

div.entry-content.image-gallery .wp-caption {
    margin-bottom: 0 !Important;
}

/*
* Twitter
*/
.hub-takeover .widget-twitter {
    box-shadow: -1001px 0 0 #fff, 1001px 0 0 #fff, -640px 0 0 #fff, 640px 0 0 #fff, -400px 0 0 #fff, 400px 0 0 #fff, -200px 0 0 #fff, 200px 0 0 #fff;
}

.hub-takeover .widget-twitter h3.widget-title {
    background-color: #00ACEE;
    color: #fff;
    box-shadow: -1001px 0 0 #00ACEE, 1001px 0 0 #00ACEE, -640px 0 0 #00ACEE, 640px 0 0 #00ACEE, -400px 0 0 #00ACEE, 400px 0 0 #00ACEE, -200px 0 0 #00ACEE, 200px 0 0 #00ACEE;
    border-bottom: 1px solid #00ACEE;
    font-size: 17px;
    font-weight: normal;
}

.hub-takeover .widget-twitter h3.widget-title:before {
    content: "\e61b";
    font-family: 'icomoon';
    font-size: 18px;
    vertical-align: middle;
    margin-right: 10px;
    font-size: 17px;
    font-weight: normal;
}

.hub-takeover .widget-twitter li.tweet {
    width: 98%;
    float: left;
    margin: 10px 1%;
    min-height: 175px;
    border-bottom: 1px solid #dadada;
    max-height: 175px;
    overflow: hidden;
}

.hub-takeover .widget-twitter li.tweet:nth-child(n+6) {
    border-bottom: 0;
}

.tweet-profile-link img {
    display: none;
}

.tweet-retweeted-by {
    display: none;
}

span.tweet-username {
    display: block;
    color: #9A9A9A;
}

.tweet-content {
    color: #9A9A9A;
}

.tweet-content a {
    color: #2C7AB8;
}

.tweet-date a {
    color: #9A9A9A;
}

.tweet-intents {
    display: none;
}

@media only screen and (min-width:500px) {

    .hub-takeover .widget-twitter li.tweet {
        width: 48%;
    }

    .hub-takeover .widget-twitter li.tweet:nth-child(n+5) {
        border-bottom: 0;
    }

}

@media only screen and (min-width:900px) {

    .hub-takeover .widget-twitter li.tweet {
        width: 30%;
    }

    .hub-takeover .widget-twitter li.tweet:nth-child(n+4) {
        border-bottom: 0;
    }

}

/* Lists */
.widget-twitter + .menu-walker-hub-post-list-with-background-colour-4-column > .hub-posts-widget-wrap {
    margin-top: -24px !Important;
}

.menu-walker-hub-post-list-with-background-colour-4-column {
    background: transparent;
}

.hub-posts-widget-wrap .widget-title {
    box-shadow: none !Important;
    background: transparent !Important;
    text-align: center;
    font-size: 17px;
    font-weight: normal;
    padding-bottom: 0px;
}

.hub-post-header .widget {
    margin: 0px !Important;
    border-bottom: 1px solid #e5e5e5;
}

.hub-post-footer .widget {
    margin: 0px !Important;
    background: transparent !Important;
}

.widget .ajaxnavigationarea {
	display: block;
	overflow: visible;
	height: auto;
	width: auto;
	text-align: center;
	padding-top: 1px; /* for reason beyond my comprehension removing this removes all margins for inner elements :/ */
	position: relative;
	clear: both;
}

.widget .ajaxnavigationarea .paging-nav {
	display: none;
	float: none;
	width: auto;
	clear: both;
	margin: 20px auto 0;
	cursor: pointer;
	padding: 10px;
	font-weight: 700;
	text-align: center;
    background-color: #fff;
    color: #8b8b8b;
    border: 1px solid #8b8b8b;
}

html.js .widget .ajaxnavigationarea .paging-nav {
	display: block;
}

.widget .ajaxnavigationarea .paging-nav.disabled {
	color: #8b8b8b;
}

@media only screen and (min-width:480px) {
	.widget .ajaxnavigationarea .paging-nav {
		max-width: 310px;
		margin: 40px auto 0;
	}
}

.single-hub-post .page-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}

.single-hub-post .sidebar .widget-adtech,
.single-hub-paper .sidebar .widget-adtech {
    background: transparent !Important;
}

/*
*   New sponsor text area in header
*/
.company_area {
    float: right;
    position: relative;
    margin-right: -20px;
    color: #555;
}

.company_area img.attachment-full {
    vertical-align: middle;
    height: 30px;
    width: auto;
    position: relative;
    margin-top: -7px;
    margin-left: 5px;
}
