/**
 * Theme Name: NUS Medicine Safety
 * Author: Websparks
 * Author URI: http://www.websparks.sg/
 * Description: NUS Medicine Safety theme
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: nus-astra
 * Template: astra
 * */

/********* Custom Style *********/
.nomargin{margin:0px !important;}
.dark-blue-font,
.dark-blue-font *{
	color:#003061;
}

.whitetext{
	color:#fff;
}
.home-post .fl-post-grid-title{
	font-size:18px;
	padding:20px 22px 0px 22px;
}
.home-post .fl-post-grid-title a{
	color:#003061;
}
.home-post .fl-post-grid-content{
	padding:0px 22px;
	color:#000;
}
.home-post .fl-post-grid-more{
	color:#f27b0c;
	font-size:14px;
	text-transform:uppercase;
	padding-bottom:27px;
	position:relative;
	padding-right:20px;
}
.home-post .fl-post-grid-more:after{
	content:"\f054";
	font-family:"FontAwesome";
	font-size:7px;
	line-height:7px;
	position:absolute;
	top:8px;
	right:9px;
}

.floating-caption .vc_figure{
	position:relative;
}
.floating-caption .fl-photo-content,
.floating-caption .vc_single_image-wrapper{
	overflow:hidden;
}
.floating-caption .fl-photo-content img,
.floating-caption .vc_single_image-wrapper img{
	-webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}
.floating-caption .fl-photo-content:hover img,
.floating-caption .vc_single_image-wrapper:hover img{
	opacity:0.9;
    -webkit-transform: scale(1.12);
    transform: scale(1.12);
}
.floating-caption .fl-photo-caption-below,
.floating-caption .vc_figure-caption{
	position:absolute;
	right:-15px;
	top:30px;
	background-color:#f27b0c;
	color:#fff;
	padding:23px 56px;
	font-size:14px;
	font-weight:300;
	font-family:"Roboto", Arial;
	letter-spacing:1px;
	text-transform:uppercase;
	line-height:100%;
}

.page-template-template-clinical-trial .nus-bg-header{
	background-color:#00244c;
	background-position:center;
	background-repeat: no-repeat;
	background-size:cover;
}
.page-template-template-clinical-trial .nus-title{
	font-size:50px;
	line-height:100%;
	color:#fff;
	font-family:"Raleway", Arial;
	font-weight:700;
	width:520px;
	margin-bottom:24px;
}
.page-template-template-clinical-trial .nus-subtitle{
	font-size:19px;
	line-height:1.3em;
	color:#fff;
	font-family:"Roboto", Arial;
	width:520px;
	margin-bottom:36px;
}

#nus-ct-first,
#nus-ct-second{
	display:none;
}

.nus-ct-dct{
	position:relative;
	margin-bottom:32px;
}
.nus-ct-chosen{
	display:block;
	position:relative;
	font-size: 18px;
	font-weight:400;
	color:#fff;
	border-bottom:2px dotted #fff;
	padding-bottom:6px;
	width: 360px;
	text-decoration: none;
}

.nus-ct-chose:link,
.nus-ct-chosen:hover,
.nus-ct-chose:visited,
.nus-ct-chose:active{
	color:#fff !important;
	text-decoration: none;
}

.nus-ct-chosen:after{
	content:"";
	display:block;
	position:absolute;
	top:9px;
	right:10px;
	width: 0;
  	height: 0;
  	border-left: 5px solid transparent;
  	border-right: 5px solid transparent;
  	border-top: 8px solid #d67409;
}

.nus-ct-dropdown{
	display:none;
	padding:0px;
	margin:0px;
	list-style-type: none;
	width: 360px;
}

.nus-ct-dropdown li{
	font-size: 18px;
	font-weight:400;
	color:#fff;
	border-bottom:2px dotted #fff;
	padding-top:4px;
	padding-bottom:6px;
	width: 360px;
}
.nus-ct-dropdown li a{
	color:#fff;
	text-decoration: none;
}

.nus-ct-dropdown li a:hover,
.nus-ct-dropdown li a.selected{
	color:#d67409;
	text-decoration: none;
}

#nus-ct-submit{
	background-color:#d67409;
	color:#fff;
	border-radius:0px;
	-moz-border-radius:0px;
	-webkit-border-radius:0px;
	border:0px;
	font-size:14px;
	line-height:1em;
	padding:15px 44px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.nus-ct:nth-child(3n+1){
	clear:both;
}

.nus-ct-block{
	background-color:#fff;
	padding:0px 0px 20px;
}

.nus-ct-block .fl-post-thumb{
	margin-bottom:0px;
}

.nus-ct-block .fl-post-header{
	padding:25px 20px 0;
	margin-bottom:10px;
}

.nus-ct-block .fl-post-title{
	font-size:18px;
	line-height:1.3em;
}
.nus-ct-block .fl-post-title a,
.nus-ct-block .fl-post-title a:visited{
	color:#003061;
}

.nus-ct-block .fl-post-content{
	padding:0px 20px;
	color:#000;
	font-size:14px;
	line-height:1.3em;
}

.nus-ct-block .fl-post-more-link{
	padding-top:10px;
	color:#f27b0c;
	text-transform: uppercase;
	position:relative;
	padding-right:20px;
}
.nus-ct-block .fl-post-more-link:after{
	content:"\f054";
	font-family:"FontAwesome";
	font-size:7px;
	line-height:7px;
	position:absolute;
	bottom:4px;
	right:9px;
}
.page-numbers{
	clear:both;
	list-style-type:none;
	margin:0px;
	padding:0px;
	text-align:center;
}
.page-numbers li{
	list-style-type:none;
	display:inline-block;
}
.page-numbers li span,
.page-numbers li a{
	display:inline-block;
	padding:6px 3px;
	line-height:1em;
	width:30px;
	font-size:12px;
	font-weight:bold;
	border:1px solid #e0e0e0;
	background-color:#fff;
	color:#717171;
	text-align:center;
	border-radius:2px;
	-moz-border-radius:2px;
	-webkit-border-radius:2px;
}
.page-numbers li span,
.page-numbers li a:hover{
	background-color:#f27b0c;
	color:#fff;
	text-decoration:none;
}

.gfield_radio input[type=text]{
	display:inline-block;
}

.fl-content.remove_title{
	margin-top:0px !important;
}

.vc_icon_element.vc_icon_element-outer.icon-no-w-h .vc_icon_element-inner{
	width:auto;
	height:auto;
}
.vc_icon_element.vc_icon_element-outer.icon-no-w-h .vc_icon_element-inner .vc_icon_element-icon{
	position:static;
	left:auto;
	top:auto;
	transform:none;
	-webkit-transform:none;
}
.home-post-grid .vc_gitem-post-data-source-post_title *{
	font-size:18px;
	font-weight:400;
	font-family:"Roboto", Arial;
	color:#003067;
}
.home-post-grid .vc_gitem-post-data-source-post_excerpt *{
	font-family:"Roboto", Arial;
	color:#000;
}
.home-post-grid .vc_gitem-zone{
	background-color:#fff !important;
}
.home-post-grid .vc_gitem_row .vc_gitem-col{
	padding:10px 20px;
}
.home-post-grid .vc_gitem-link{
	background-color:transparent !important;
	color:#f27b0c !important;
	text-transform:uppercase;
	border:0px;
	padding:0px 20px 0 0;
	margin:0px;
	position:relative;
}
.home-post-grid .vc_gitem-link:hover{
	border:0px;
}
.home-post-grid .vc_gitem-link:after{
	content:"\f054";
	font-family:"FontAwesome";
	font-size:7px;
	line-height:7px;
	position:absolute;
	bottom:4px;
	right:9px;
}


/*------- Custom NUS STYLES ----------*/
.orange-underline h3 > span::after {
    content: "";
    display: block;
    height: 3px;
    width: 35px;
    background: #ef7c00;
    position: relative;
    margin: 15px 0px;
}

h1, h2, h3, h4, h5, h6 {
    clear: inherit;
}

/*------Custom NUS-Junji Style--------*/
.nus-astra .site-logo-img img {
	padding-left: 10px;
}

.nus-astra .nus-footer .nus-social-box {
	border-left: 0px;
    padding-left: 0px;
    text-align: center;
}

.nus-astra .nus-footer .nus-social-box .module-ct {
	text-align: left;
    display: inline-block;
}


.nus-astra .ast-small-footer-section-2 .nav li {
	display:block;
    margin: 0;
    text-align: center;
}

.nus-astra .ast-small-footer-section-2 .nav li:before{
	display:none;
}


/* homepage custom css */
.homepage.custom-fl-post-feed-text .read-more {
	background-color:#ef7c00;
	padding:10px 15px 10px 15px;
	width:120px;
}

.homepage.custom-fl-post-feed-text .read-more a {
	color:#ffffff;
}

/* postypes custom css */
.custom-fl-post-feed-text .fl-post-feed-header {
	display:none;
}

.custom-fl-post-feed-text .fl-post-feed-content {
	text-align: justify;
}

#tribe-events {
	padding-top: 40px;
}

#tribe-events .event-is-recurring .tribe-events-divider {
    padding-left: 5px;
    padding-right: 5px;
}

.custom-event-feed .custom-tribe-mini-calendar-event.tribe-mini-calendar-event{
	border-bottom: 0px;

}

.custom-event-feed .custom-tribe-mini-calendar-event .list-info {
	width: 78% !important;
	padding-left: 10px;
	margin: 0px !important;
}

.custom-event-feed .custom-tribe-mini-calendar-event .list-info p{
	line-height:1.2;
	font-weight: 300;
	font-size: 14px;
	margin: 0px 0px 10px !important;
}

.custom-event-feed .custom-tribe-mini-calendar-event .list-date {
	background: #143E78 !important;
	margin: 0px 0px 0px 0px !important;
	width: 22% !important;

}

.custom-event-feed .custom-tribe-mini-calendar-event .list-dayname {
	background: #143E78 !important;
	color: #ffffff !important;
	font-size: 25px !important;
}

.custom-event-feed .custom-tribe-mini-calendar-event .list-daynumber {
	font-size: 20px !important;
    line-height: 1.2 !important;
}

.custom-event-feed .type-tribe_events{
	display: block;
	width: 100%;
	font-family: "Helvetica",Verdana, Arial, sans-serif;
	vertical-align: top;
}

.custom-event-feed .tribe-events-widget-link {
	text-align: center;
    margin-top: 30px;
}

body.single-tribe_events .tribe-events-cal-links a.tribe-events-gcal {
    display: none !important;
}

body.single-tribe_events .tribe-events-cal-links a.tribe-events-ical {
    display: none !important;
}

/** 
 * Got from https://scotch.io/tutorials/default-sizes-for-twitter-bootstraps-media-queries
 * */

/* iPhone 6/7/8 */
@media only screen and (min-width : 375px) {
	.nus-astra .ast-small-footer-section-2 .nav li{
	    display: inline-block;
	    margin: 0 0 5px 15px;
	    text-align: center;
	}

	.nus-astra .ast-small-footer-section-2 .nav li:before {
		content: "\f111";
		display: inline-block;
		font-family: FontAwesome;
		font-size: 4px;
		margin-right: 15px;
		vertical-align: middle
	}

	.nus-astra .ast-small-footer-section-2 .nav li:first-child {
		margin-left:0
	}

	.nus-astra .ast-small-footer-section-2 .nav li:first-child:before {
		display:none;
	}
}

/* ipad */
@media only screen and (min-width : 1024px) {
	.custom-event-feed .type-tribe_events{
		display: inline-block;
		width: 33%;
	}
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
	.custom-fl-post-feed-text .fl-post-feed-header {
		display:inline;
	}
}

