/*
	Theme Name: Scottish Books International
	Theme URI: http://hillsideagency.com
	Description: Hillside blank theme Feb 2018
	Version: 1.0
	Author: Hillside Agency
	Author URI: http://hillsideagency.com
	Tags: Blank, HTML5, CSS3

*/

/*------------------------------------*\
	TYPOGRAPHY
\*------------------------------------*/

@font-face {
font-family: 'Druk Cond Web';
src: url('fonts/DrukCond-Super-Web.woff2') format('woff2'),
url('fonts/DrukCond-Super-Web.woff') format('woff');
font-weight: 900;
font-style: normal;
font-stretch: normal;
}

@font-face {
font-family: 'Druk Web';
src: url('fonts/Druk-Heavy-Web.woff2') format('woff2'),
url('fonts/Druk-Heavy-Web.woff') format('woff');
font-weight: 800;
font-style: normal;
font-stretch: normal;
}

@font-face {
font-family: 'Druk Web';
src: url('fonts/Druk-Bold-Web.woff2') format('woff2'),
url('fonts/Druk-Bold-Web.woff') format('woff');
font-weight: 700;
font-style: normal;
font-stretch: normal;
}

h1, h2, h3, h4, h5, h6 {
font-feature-settings: "liga", "kern";
font-family: 'Druk Web';
font-weight: 800;
line-height: 1em;	
font-style: normal;
font-stretch: normal;
text-transform: uppercase;
}

h2, h3, h4, h5, h6 {
font-feature-settings: "liga", "kern";
font-family: 'Druk Web';
font-weight: 700;
font-style: normal;
font-stretch: normal;
text-transform: uppercase;
}

.DrukCond-Super-Web {
font-family: 'Druk Cond Web';
font-weight: 900;
font-style: normal;
font-stretch: normal;
}

.Druk-Heavy-Web {
font-family: 'Druk Web';
font-weight: 800;
font-style: normal;
font-stretch: normal;
}

.Druk-Bold-Web {
font-family: 'Druk Web';
font-weight: 700;
font-style: normal;
font-stretch: normal;
}

h1 {
font-size: calc(30px + 5vw);
line-height: 1em;	
margin: 0;
text-transform: uppercase;
}

.single-post h1 {
font-size: calc(20px + 4vw);
margin-bottom: 10px;	
}

#section-post-content p a, .application-header p a {
	position: relative;
}

#section-post-content p a:after, .application-header p a:after {
    position: absolute;
    height: 1px;
    width: 100%;
    left: 0;
    bottom: 1px;
    background-color: #ffd100;
    content: '';
    -webkit-transition: background-color 0.2s ease-out;
    -moz-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}

.application-header p.large-text a:after {
	bottom: 4px !important;
}

#section-post-content p a:hover:after, .application-header p a:hover:after {
    background-color: #fb91a3;
}

h2 {
font-size: 42px;
margin: 0;
letter-spacing: 0.02em;
}

body {
font-family: baskerville-urw, serif;
font-size: 20px;
font-weight: 400;
line-height: 1.4;	
font-style: normal;
color: #142c55;
}

 .fixedPosition {
    position: fixed;
	overflow-y: scroll;
 }

.home.fixedPosition {
	position: relative;
}

@media only screen and (max-width: 1400px) {
	body {
		font-size: 18px;
	}
}
	
body strong {
font-family: baskerville-urw, serif;
font-weight: 600;
font-style: normal;
}

.large-text {
	font-size: 34px;
	line-height: 1.3;
	margin: 10px 0 32px;
}

.single-post .large-text {
	font-size: 24px;
	line-height: 1.3;
	font-weight: bold;
	margin-bottom: 20px;
}


@media only screen and (max-width:1400px) {
.large-text {
	font-size: 28px;
}
.single-post .large-text {	
	font-size: 22px;
}
}

@media only screen and (max-width:991px) {
.large-text {
	font-size: 20px;
}
}


@media only screen and (max-width:480px) {
	.mobile-no-display {display: none !important;}
}



/*------------------------------------*\
    MAIN
\*------------------------------------*/

/* global box-sizing */
*,
*:after,
*:before {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
	-webkit-font-smoothing:antialiased;
	font-smoothing:antialiased;
	text-rendering:optimizeLegibility;
}
/* html element 62.5% font-size for REM use */
html {
	font-size:62.5%;
}

body {overflow-x: hidden;}

/* clear */
.clear:before,
.clear:after {
    content:' ';
    display:table;
}

.clear:after {
    clear:both;
}
.clear {
    *zoom:1;
}
img {
	max-width:100%;
	vertical-align:bottom;
	height: auto;
}
a {
	color: #142c55;
	text-decoration:none;
}
a:hover {
	color: #142c55;
}
a:focus {
	outline:0;
}
a:hover,
a:active {
	outline:0;
}

input:focus {
	outline:0;
	border:1px solid #04A4CC;
}


/*------------------------------------*\
    Miscellaneous
\*------------------------------------*/

.se-pre-con {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #fff;
}

.scrollTop {
    margin: auto;
    position: fixed;
    opacity: 0;
    z-index: 100;
    height: 2.5rem;
    width: 2.5rem;
    left: 0;
    right: 0;
    bottom: 1.25rem;
    font-size: 2rem;
    line-height: 2.25rem;
    border-radius: 5rem;
    background-color: rgba(135, 125, 168,.5);
    color: #fff;
    text-align: center;
    transition: all .3s ease-in-out;
    -webkit-transition: all .5s ease-in-out;
    -moz-transition: all .5s ease-in-out;
    -ms-transition: all .5s ease-in-out;
    -o-transition: all .5s ease-in-out;
}

/*------------------------------------*\
    STRUCTURE
\*------------------------------------*/

/* wrapper */
.wrapper {
	position:relative;
	max-width:1600px;
	width:95%;
	margin:0 auto;
	padding: 0 20px;
}

.wrapper.programme-list {
	max-width: 1400px;
}

.slant-top:after {
position:absolute;
  content: " ";
  display:block;
  left: 0;
  top: calc(-5vw - -1px);
  width:100%;
  border-style: solid;
  border-width: 5vw 100vw 0 0;
}

.flex-align-outer {
	display: flex;
	align-items: center;
	height: 100%;
}

.flex-align-inner {
	width: 100%;
}

section {
	position: relative;
	padding: calc(2vw + 30px) 0 calc(8vw + 30px);
}

section {
	padding: calc(3vw + 30px) 0 calc(5vw + 30px);
}

@media only screen and (max-width:991px) {
section {
	padding: calc(4vw + 30px) 0 calc(7vw + 30px);
}
}

/*------------------------------------*\
Home
\*------------------------------------*/

/* about */

#section-about {
	background-color: #fff;
}

#section-about.slant-top:after {
 	 border-color: transparent #fff transparent transparent;
}

.about-image-1, .about-image-2 {
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	margin: 30px 0 0 auto;
	width: 100%;
	padding-top: 66%;
}

@media only screen and (min-width:1280px) {
	.about-image-2 {
		display: none;
}
}

@media only screen and (max-width:991px) {
	.about-image-1 {
		margin-top: 15px;
}
}

.home h2 {
	font-size: calc(20px + 3vw);
}

/* programmes */

.single-post {
background-position: top center;
background-repeat: no-repeat;
background-size: 100% auto;
background-image: url('https://scottishbooksinternational.org/wp-content/uploads/2019/03/post-bg.gif');
}

#section-programmes {
	background-color: #ffd100;
}

#section-programmes.slant-top:after {
 	 border-color: transparent #ffd100 transparent transparent;
}

.cta-button {
	position: relative;
	z-index: 10;
	font-family: 'Druk Web';
	font-size: 28px;
	line-height: 1em;
	font-weight: 800;
	font-style: normal;
	font-stretch: normal;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 1rem 1.8rem 0.9rem 2rem;
	color: #142c55;
	display: inline-block;
}

.cta-button:before {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
	opacity: 1;
    z-index: -1;
    top: 0;
    left: 0;
	background: #fb91a3;
    transform-origin: 50% 50%;
    -webkit-transform-origin: 50% 50%;
    -moz-transform-origin: 50% 50%;
    -ms-transform-origin: 50% 50%;
    -o-transform-origin: 50% 50%;
	transform: rotate(-2deg);
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
	-webkit-transition: all .2s ease-in-out;
	-moz-transition: all .2s ease-in-out;
	-o-transition: all .2s ease-in-out;
	transition: all .2s ease-in-out;
}

.home .cta-button, .cta-button.apply-button {
	color: #fff;
}

.home .cta-button:before, .cta-button.apply-button:before {
	background: #fa4d09;
}

.home .cta-button:hover:before, .cta-button.apply-button:hover:before {
	background: #f891a2;
}


/*------------------------------------*\
Programmes
\*------------------------------------*/

#section-title {
background-position: top center;
background-repeat: no-repeat;
background-size: cover;
background-image: url('https://scottishbooksinternational.org/wp-content/uploads/2019/03/header-bg-1.png');
padding: 4vw 0 8vw;	
}

#section-title.programmes-header {
background-image: url('https://scottishbooksinternational.org/wp-content/uploads/2019/03/header-bg-2.png');
}

#section-title h1, #section-title p {
	color: #142c55;
}

.post-categories {
	padding-left: 0;
	list-style: none;
	margin: 0 0 10px;
}

.post-categories li a {
	font-size: 28px;
	font-style: italic;
}

#section-index {
	background-color: #fff;
	padding: calc(1.5vw + 20px) 0 calc(3vw + 20px);
}
#section-index.slant-top:after {
 	 border-color: transparent #fff transparent transparent;
}

.programme-overview {
	margin-bottom: 50px;
	padding: 0 5%;
}

.sub-programmes {
	margin-bottom: 60px;
}

.sub-programmes:last-child {
	margin-bottom: 0;
}

.programme-details img {
	width: 85%;
}

@media only screen and (max-width: 991px) {
.programme-details img {
	width: 100%;
}	
}

@media only screen and (min-width: 768px) {
.programme-details, .sub-programmes:nth-child(4n-1), .sub-programmes:nth-child(4n-3) {
	padding-left: 10%;
}
}

.sub-programmes img {
	margin-bottom: 24px;
}

.sub-programmes h2 {
	font-size: calc(20px + 2vw);
}

.programme-overview .post {
border-top: solid 1px #142c55;
padding-top: 30px;	
}

.programme-overview:first-child .post, .programme-overview:nth-child(2) .post {
border-top: none;
}

.filler-div {
	height: 48px;
	width: 100%;
}

@media only screen and (max-width: 768px) {
.programme-overview:nth-child(2) .post {
border-top: solid 1px #142c55;
padding-top: 30px;	
}
.programme-details {
	padding-left: 1rem;
}	
}

@media only screen and (max-width: 480px) {
.programme-details {
	padding-left: 0;
}	
}


.programme-link {
	font-size: 23px;
	margin-top: 5px;
}

@media only screen and (max-width: 1400px) {
.programme-link {
	font-size: 20px;
}
.programme-link h2 {
	font-size: 32px;
	margin-bottom: 12px;
}	
	
}

.programme-link p {
	margin: 3px 0 10px;
}

.programme-target-groups {
	font-size: 28px;
	margin: 8px 0 4px;
}
@media only screen and (max-width: 1400px) {
.programme-target-groups {
	font-size: 24px;
}
}
a .italic-underline {
	font-size: 28px;
	font-style: italic;
	position: relative;
}
@media only screen and (max-width: 1400px) {
.programme-target-groups, a .italic-underline {
	font-size: 24px;
}
}

a .italic-underline:after {
	position: absolute;
	height: 3px;
	width: 100%;
	left: 0;
	bottom: 0;
	background-color: #ffd100;
	content: '';
	-webkit-transition: background-color 0.2s ease-out;
	-moz-transition: background-color 0.2s ease-out;
	-o-transition: background-color 0.2s ease-out;
	transition: background-color 0.2s ease-out;
}

.italic-underline:hover:after {
	position: absolute;
	height: 3px;
	width: 100%;
	left: 0;
	bottom: 0;
	background-color: #fb91a3;
	content: '';
}

.programme-images img {
	margin-top: 32px;
}

#section-post-nav {
	background-color: #f0f0f0;
	padding: 2.5vw 0 4vw;
	min-height: 10vw;
}

@media only screen and (max-width: 768px) {
#section-post-nav {
	padding: 5vw 0;
}
}

#section-post-nav.slant-top:after {
 	 border-color: transparent #f0f0f0 transparent transparent;
}

#section-post-nav .previous-post, #section-post-nav .next-post, #section-post-nav .back-to-list {
	display: block;
	margin: 0 0 20px 20px;
	transition: color 0.2s;
	color: #142c55;
	-webkit-transition: color 0.2s;
	-moz-transition: color 0.2s;
	-ms-transition: color 0.2s;
	-o-transition: color 0.2s;
}

@media only screen and (max-width: 768px) {
#section-post-nav .previous-post, #section-post-nav .next-post, #section-post-nav .back-to-list {
	display: inline-block;
}
}

#section-post-nav .previous-post:before, #section-post-nav .next-post:before, #section-post-nav .back-to-list:before  {
    content: "";
    position: absolute;
    left: -20px;
    display: block;
    background-size: 25px 25px !important;
    width: 25px;
    height: 25px;
}

#section-post-nav .previous-post::before {
	background: url("img/arrow-left-dark.png") no-repeat;
}

#section-post-nav .next-post::before {
	background: url("img/arrow-right-dark.png") no-repeat;
}

#section-post-nav .back-to-list:before {
	background: url("img/list-icon.png") no-repeat;
}

#section-post-nav .previous-post:hover, #section-post-nav .next-post:hover, #section-post-nav .back-to-list:hover {
	color: #ff4d00;
}


/*------------------------------------*\
Travel Fund
\*------------------------------------*/

.programme-text-main {
	margin-top: 50px;
}

.programme-text-main ul, .faq-accordion ul {
  list-style: none;
  padding: 0 0 5px 12px;
}
.programme-text-main li, .faq-accordion ul li {
  padding-left: 1.3em;
margin-bottom: 12px;
}
.programme-text-main li:before, .faq-accordion ul li:before {
  content: "\f111";
font-size: 12px;
color: #fb91a3;	
font-family: FontAwesome;
display: inline-block;
margin-left: -2em;
width: 1.3em;
padding-right: 2em;
}

.post-template-post-travel-fund .programme-target-groups {
	margin-top: 30px;
}

.post-template-post-travel-fund .programme-images img {
	margin: 25px 0;
}

/*----- accordion -----*/
.faq-accordion {
	border-top: solid 1px #142c55;
padding-top: 32px;
margin-top: 30px;
}

.accordion, .accordion * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.accordion {
    overflow: hidden;
}
/*----- accordion titles -----*/

.accordion h4 {
	font-family: baskerville-urw, serif;
	font-size: 20px;
	font-weight: bold;
	line-height: 1.4;	
	font-style: normal;
	margin: 0;
	text-transform: inherit;
}

.accordion-section-title {
    width: 100%;
    padding: 15px 15px 15px 0;
    display: inline-block;
    border-bottom: 1px solid #f2f2f2;
    transition: all linear 0.15s;
    color: #222;
    text-align: left;
}
.accordion-section-title.active, .accordion-section-title:hover {
    text-decoration: none;
}
.accordion-section:last-child .accordion-section-title {
    border-bottom: none;
}
/*----- accordion content -----*/
.accordion-section-content {
    padding: 0 0 0 30px;
    display: none;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.accordion-section-title:before {
    content: '\f067';
    font-family: FontAwesome;
    padding-right: 15px;
	color: #fb91a3;
	font-weight: 400;
}
.accordion-section-title.active:before {
    content: '\f068';
}
.faq-accordion .accordion:last-child {
    border-bottom: none;
}
.accordion-section-content p:last-child {
    margin-bottom: 45px;
}

.cta-button.apply-button {
	margin-top: 12px;
}

.cta-button.apply-button.hide-button {
	display: none !important;
}


/*------------------------------------*\
Contact
\*------------------------------------*/

#section-contact {
	background-color: #fff;
}

#section-contact.slant-top:after {
 	 border-color: transparent #fff transparent transparent;
}

div.wpcf7 {
	width: 100%;
}

.wpcf7-form-control.wpcf7-textarea {
	width: 100%;
}



/* Contact Form */

.wpcf7-form p {
	margin: 0 0 1.5em 0;
}
.wpcf7 input, .wpcf7 textarea {
	background-color: #f2f2f2;
	border-width: 1px;
	border-style: solid;
	border-color: transparent;
	border-radius: 0px;
	color: #000;
	font-size: 15px;
	line-height: 22px;
	text-transform: none;
	padding: 15px 18px;
	margin: 0px;
	width: 100%;
}

.wpcf7 input {
	width: 50%;
}

@media only screen and (max-width: 991px) {
.wpcf7 input {
	width: 100%;
}
.contact-form {
	margin-top: 40px;		
	}	
}

.wpcf7 .wpcf7-submit {
	width: auto;
	font-family: 'Druk Web';
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
	padding: 12px 24px;
	background-color: #ff4d00;
	transition: all .15s ease-in-out;
    transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -webkit-transition: all 0.15s ease-in-out;
}

.wpcf7 input:focus, .wpcf7 input:active, .wpcf7 textarea:focus, .wpcf7 textarea:active {
	outline: none;
	border-color: #142c55;
	background-color: #f2f2f2;
}

.wpcf7 .wpcf7-submit:focus, .wpcf7 .wpcf7-submit:active, .wpcf7 .wpcf7-submit:hover {
	background-color: #fb91a3;
}

span.wpcf7-not-valid-tip {
	font-size: 13px;
	text-align: center;
	margin-top: 6px;
	margin-bottom: -14px;
}
div.wpcf7-response-output {
	margin: -24px 0px;
	padding: 0.6em 1em;
	font-size: 13px;
	line-height: 15px;
}
div.wpcf7-validation-errors {
	border: 2px solid #f00;
}
div.wpcf7 .ajax-loader {
	display: block;
	margin-top: 15px;
	margin-left: auto;
	margin-right: auto;
}

div.wpcf7-mail-sent-ok, div.wpcf7-validation-errors {
	border: none !important;
}

div.wpcf7-response-output {
	padding: 0 !important;
	font-size: 15px;
}

span.wpcf7-not-valid-tip {
	text-align: left;
}

/*------------------------------------*\
Footer
\*------------------------------------*/

.footer {
position: relative;
padding: 0 0 3rem;
color: #fff;
background-color: #0a0a0a;	
}

.footer.slant-top:after {
  border-color: transparent #0a0a0a transparent transparent;
}

.footer-outer {
margin-right: auto;
margin-left: auto;
padding: 50px 0 30px;	
}

.footer-outer .footer-col {
	padding-right: 60px;
}

.footer-outer .footer-col p, .footer-outer .footer-col a {
	text-align: left;
	color: #fff;
}

@media only screen and (max-width:991px) {
.footer-col:nth-child(3), .footer-col:last-child {
	margin-top: 70px;
}
}

@media only screen and (max-width:480px) {
.footer-outer .footer-col {
	margin-top: 40px;
	text-align: center;
	padding: 0 30px;
}
.footer-outer .footer-col .ctct-form-embed.form_0 .ctct-form-defaults {
		padding-right: 0 !important;
	}	
.footer-col:first-child {	
	margin-top: 0;
	}
	.footer-menu ul:first-child {
		display: none;
	}
	.footer-outer .footer-col.footer-menu {
		margin: 10px 0 15px;
	}
	
}

/* footer menu */

.footer ul {
list-style: none;
padding-left: 0;
margin: 0;
}

.footer ul li {
	margin-bottom: 8px;
}

.footer ul li a {
color: #fff;	
position: relative;
}

.footer ul li a, ul.contact-links li a {
font-family: 'Druk Web';
font-weight: 700;
font-size: 24px;
line-height: 1.1;
letter-spacing: 0.05em;
text-transform: uppercase;	
}

.footer-menu ul:first-child li a:after {
content: '';		
width: 100%;
position: absolute;
background-color: white;
height: 2px;
left: 0;
bottom: 0;
opacity: 0;
}


.footer-menu ul:first-child li a:hover:after, .footer-menu ul:first-child li.current_page_item a:after, .footer-menu ul:first-child li.current-menu-item a:after, .footer-menu ul:first-child li.current-page-parent a:after, .footer-menu ul:first-child li.current_page_parent a:after {
opacity: 1;
}

/* footer social */

ul.social-links, ul.contact-links {
list-style: none;
margin: 24px 0 0;
padding: 0;
font-size: 1.25rem;
line-height: 1em;
}

ul.social-links li, ul.contact-links li {
display: inline-block;
margin: 0 .5rem 0 0;
}

 ul.contact-links li {
display: block;
margin-bottom: 15px;
}

ul.social-links li:last-child, ul.contact-links li:last-child {
margin: 0;
}

ul.social-links li a, ul.contact-links li a {
font-size: 20px;	
display: inline;
text-decoration: none;
transition: color 0.5s;
-webkit-transition: color 0.5s;
-moz-transition: color 0.5s;
-ms-transition: color 0.5s;
-o-transition: color 0.5s;
}

ul.social-links li i, ul.contact-links li i {
padding-right: 6px;
}

ul.social-links li a:hover, ul.contact-links li a:hover {
color: #ffd100;
}


/* sign-up constant contact */

.ctct-form-embed.form_0 .ctct-form-defaults {
	background-color: transparent !important;
	padding: 0 10% 0 0 !important;
}

div.ctct-form-embed div.ctct-form-defaults h2.ctct-form-header, div.ctct-form-embed form.ctct-form-custom input.ctct-form-element {
	font-family: 'Druk Web' !important;
font-weight: 700 !important;
font-size: 20px !important;
line-height: 1.1 !important;
letter-spacing: 0.06em !important;
text-transform: uppercase !important;	
}

.ctct-form-embed.form_0 .ctct-form-defaults .ctct-form-text, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-label, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-listname, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-lists-legend, .ctct-form-embed.form_0 .ctct-form-custom .ctct-form-date-slash, .ctct-form-embed.form_0 .ctct-form-defaults .ctct-gdpr-text, .ctct-form-embed.form_0 .ctct-form-defaults .ctct-gdpr-text .ctct-form-footer-link, .ctct-form-embed.form_0 .ctct-form-defaults .ctct-gdpr-text .ctct-form-footer-privacy-link, footer div.ctct-form-embed form.ctct-form-custom .ctct-form-errorMessage {
	color: #fff !important;
	font-family: baskerville-urw, serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;	
	font-style: normal !important;
	margin-bottom: 15px;
}

#gdpr_text, div.ctct-form-embed div.ctct-form-defaults p.ctct-form-footer, div.ctct-form-embed form.ctct-form-custom .ctct-form-required::before, #email_address_label_0, .grecaptcha-badge {
	display: none !important;
}

div.ctct-form-embed form.ctct-form-custom input.ctct-form-element, div.ctct-form-embed form.ctct-form-custom button.ctct-form-button {
	border-radius: 0 !important;
	height: 40px !important;
	border: none !important;
}

div.ctct-form-embed form.ctct-form-custom input.ctct-form-element:focus {
	outline: none !important;
}

div.ctct-form-embed form.ctct-form-custom div.ctct-form-field {
	width: calc(100% + -40px) !important;
	margin-bottom: 0 !important;
}

div.ctct-form-embed form.ctct-form-custom button.ctct-form-button {
	width: 40px !important;
	position: relative;
	border: none !important;
}

.ctct-form-embed.form_0 .ctct-form-custom .ctct-form-button:hover {
	background-color: #fb91a3 !important;
}

div.ctct-form-embed form.ctct-form-custom button.ctct-form-button:after {
content: "";
position: absolute;	
display: block;
background-size: 24px 24px !important;
width: 24px;
height: 24px;
background: url("img/arrow-right.png") no-repeat;
top: 50%;
transform: translateY(-50%);
left: 8px;	
}

#email_address_0 {
	float: left;
}

/* sign-up mailchimp */

#mc_embed_signup {
	background: transparent !important;
}

#mc_embed_signup form {
	padding: 0 !important; 
	text-align: left !important;
}

#mc_embed_signup label, #mc_embed_signup input.email {
font-family: 'Druk Web' !important;
font-weight: 700 !important;
font-size: 20px !important;
line-height: 1.1 !important;
letter-spacing: 0.06em !important;
text-transform: uppercase !important;	
}

#mc_embed_signup input.email {
	width: 80% !important;
	border-radius: 0 !important;
	margin-right: -5px !important;
	border: 2px solid #fff;
	background-color: transparent !important;
	color: #fff !important;
}

#mc_embed_signup .button {
	font-size: 0 !important;
	border-radius: 0 !important;
	background-color: #99e6d8 !important;
}

#mc_embed_signup .clear {
position: relative;
	
}


#mc_embed_signup .clear:after {
	content: "";
display: block;
background-size: 24px 24px !important;
width: 24px;
height: 24px;
background: url("img/arrow-right.png") no-repeat;
top: 0;
position: absolute;
top: 50%;
transform: translateY(-50%);	
margin-left: 5px;
}


/* partners */


.partner-logos a {
    display: inline-block;
}

.partner-logos img {
    margin: 0 30px 30px 0;
	width: 120px;
	max-width: 100%;
	height: 50px;
	background-repeat: no-repeat;
	object-fit: contain;
	object-position: 0 0;
}

.footer .small-type {font-size: 14px;}

.small-type.charity-number {
	margin-top: 0;
}


@media only screen and (max-width:479px) {
.footer .footer-col p, .footer .footer-col:last-child p, ul.social-links {
	text-align: center;
}
.partner-logos img {
    margin: 0 15px 20px 15px;
}	

}


/*------------------------------------*\
    PAGES
\*------------------------------------*/



/*------------------------------------*\
    IMAGES
\*------------------------------------*/






/*------------------------------------*\
    RESPONSIVE
\*------------------------------------*/

@media only screen and (min-width:320px) {

}
@media only screen and (min-width:480px) {

}
@media only screen and (min-width:768px) {

}
@media only screen and (min-width:1024px) {

}
@media only screen and (min-width:1140px) {

}
@media only screen and (min-width:1280px) {

}
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
	   only screen and (min-resolution:144dpi) {

}

/*------------------------------------*\
    MISC
\*------------------------------------*/

::selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-webkit-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}
::-moz-selection {
	background:#04A4CC;
	color:#FFF;
	text-shadow:none;
}

/*------------------------------------*\
    WORDPRESS CORE
\*------------------------------------*/

.alignnone {
	margin:5px 20px 20px 0;
}
.aligncenter,
div.aligncenter {
	display:block;
	margin:5px auto 5px auto;
}
.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.alignright {
	float:right;
	margin:5px 0 20px 20px;
}
a img.alignnone {
	margin:5px 20px 20px 0;
}
a img.alignleft {
	float:left;
	margin:5px 20px 20px 0;
}
a img.aligncenter {
	display:block;
	margin-left:auto;
	margin-right:auto;
}
.wp-caption {
	background:#FFF;
	border:1px solid #F0F0F0;
	max-width:96%;
	padding:5px 3px 10px;
	text-align:center;
}
.wp-caption.alignnone {
	margin:5px 20px 20px 0;
}
.wp-caption.alignleft {
	margin:5px 20px 20px 0;
}
.wp-caption.alignright {
	margin:5px 0 20px 20px;
}
.wp-caption img {
	border:0 none;
	height:auto;
	margin:0;
	max-width:98.5%;
	padding:0;
	width:auto;
}
.wp-caption .wp-caption-text,
.gallery-caption {
	font-size:11px;
	line-height:17px;
	margin:0;
	padding:0 4px 5px;
}
.sticky {

}
.bypostauthor {

}

/*------------------------------------*\
    PRINT
\*------------------------------------*/

@media print {
	* {
		background:transparent !important;
		color:#142c55 !important;
		box-shadow:none !important;
		text-shadow:none !important;
	}
	a,
	a:visited {
		text-decoration:underline;
	}
	a[href]:after {
		content:" (" attr(href) ")";
	}
	abbr[title]:after {
		content:" (" attr(title) ")";
	}
	.ir a:after,
	a[href^="javascript:"]:after,
	a[href^="#"]:after {
		content:"";
	}
	pre,blockquote {
		border:1px solid #999;
		page-break-inside:avoid;
	}
	thead {
		display:table-header-group;
	}
	tr,img {
		page-break-inside:avoid;
	}
	img {
		max-width:100% !important;
	}
	@page {
		margin:0.5cm;
	}
	p,
	h2,
	h3 {
		orphans:3;
		widows:3;
	}
	h2,
	h3 {
		page-break-after:avoid;
	}
}



/*------------------------------------*\
    Slick Slider
\*------------------------------------*/

#home-slider {
	width: 100%;
	height: 100vh;
	padding: 0;
}

.home-slider {
	background-color: transparent;
    display: none;
	height: 100%;
	width: 100%;
}

.home-slider .slick-track, .home-slider .slick-list {
	height: 100%;
}

.home-slider .slide {
	max-width: 100%;
	height: 100%;
	-webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
	background-position: center center;
}

@media only screen and (max-width: 767px) {
.home-slider .slide:first-child {
	background-position: top right; 
}
}

.wrapper.slide-wrapper {
	padding: 0 15px;
}

@media only screen and (max-width: 1920px) {
.wrapper.slide-wrapper {
	padding: 0 120px;
}
}

.slick-initialized {
    display: block;
}

.home-slider .flex-align-outer {
	justify-content: center;
}

.home-slider .flex-align-inner {
	color: #142c55;
}

.home-slider .link-slide .flex-align-inner {
	color: #fff;
}

/* quote slide */

.home-slider .flex-align-inner h3 {
	position: relative;
	font-family: baskerville-urw, serif;
	font-size: calc(18px + 2.4vw);
	font-weight: 400;
	font-style: italic;
	text-transform: inherit;
	line-height: 1.15;
	letter-spacing: 0em;
	margin: 0;
}

.home-slider .flex-align-inner h3:before {
	content: '“';
	position: absolute;
	left: calc(-10px + -1vw);
	top: 0;
}

.home-slider .flex-align-inner h3:after {
	content: '”';
}

.home-slider p {
	font-size: calc(10px + 2vw);
	margin: 20px 0 0;
}

.home-slider p.quote-author {
	font-size: calc(10px + 1.6vw);
	margin: 30px 0 0;
	font-weight: bold;
}

@media only screen and (max-width: 1400px) {
.home-slider p.quote-author {
	margin: 15px 0 0;
}
}

/* /quote slide */

/* title slide */

.home-slider .link-slide .flex-align-outer {
	align-items: flex-end;
	padding-bottom: calc(5vw + 65px);
}

@media only screen and (max-width: 767px) {
.home-slider .link-slide .flex-align-outer {
	padding-bottom: calc(5vw + 85px);
}
}

@media only screen and (max-width: 480px) {
.home-slider .link-slide .flex-align-outer {
	padding-bottom: calc(5vw + 110px);
}
}

.home-slider .flex-align-inner h2 {
	color: #fff;
	font-size: calc(20px + 6vw);
	width: 66.66%;
	line-height: 0.9em;
	margin-bottom: 10px;
}

.home-slider .flex-align-inner a span {
	font-size: 28px;
	font-style: italic;
	color: #fff;
	position: relative;
}

@media only screen and (max-width: 1400px) {
.home-slider .flex-align-inner a span {
	font-size: calc(12px + 1.5vw);
	}
}
	
.home-slider .flex-align-inner a span:after {
	position: absolute;
	height: 3px;
	width: 100%;
	left: 0;
	bottom: 0;
	background-color: #fff;
	content: '';
	-webkit-transition: background-color 0.4s ease-out;
	-moz-transition: background-color 0.4s ease-out;
	-o-transition: background-color 0.4s ease-out;
	transition: background-color 0.4s ease-out;
}

.home-slider .flex-align-inner a:hover span:after {
	background-color: #fb91a3;
}

/* /title slide */


/* nav */

.slick-prev, .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 45%;
    display: block;
    width: 50px;
    height: 50px;
    margin-top: -10px;
    padding: 0;
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    transition: all .15s ease-in-out;
    transition: all 0.15s ease-in-out;
    -o-transition: all 0.15s ease-in-out;
    -moz-transition: all 0.15s ease-in-out;
    -webkit-transition: all 0.15s ease-in-out;
	z-index: 9999;
}

.slick-prev {left: calc(10px + 2vw);}

.slick-next {right: calc(10px + 2vw);}

.slick-prev.slick-arrow:hover {
    left: calc(2px + 2vw);
	width: 58px;
}

.slick-next.slick-arrow:hover {
    padding-left: 8px;
}

.slick-prev:hover {padding-right: 10px;}

.slick-prev::before, .slick-next::before {
    content: "";
    display: block;
	background-size: 50px 50px !important;
    width: 50px;
    height: 50px;
}

@media only screen and (max-width: 1400px) {
.slick-prev::before, .slick-next::before {
	background-size: 40px 40px !important;
    width: 40px;
    height: 40px;
}
}


.slick-prev::before {
	background: url("img/arrow-left.png") no-repeat;
}

.slick-next::before {
	background: url("img/arrow-right.png") no-repeat;
}

@media only screen and (max-width: 991px) {
.slick-prev, .slick-next  {
	display: none !important;
}
.wrapper.slide-wrapper {
	padding: 0 20px;
}	
}

/* slider dots */

.slick-dots {
    position: absolute;
    bottom: 5vw;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    padding-bottom: 30px;
}
.slick-dots li {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    padding: 4px;
}
.slick-dots li button {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 20px;
    height: 20px;
	box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    padding: 5px;
    background: transparent;
	opacity: 0.5;
	border: 3px solid #fff;
		-webkit-box-shadow: 4px 5px 5px -3px rgba(0,0,0,0.40);
-moz-box-shadow: 4px 5px 5px -3px rgba(0,0,0,0.4);
box-shadow: 4px 5px 5px -3px rgba(0,0,0,0.4);
}


.slick-dots li.slick-active button {
    border: 5px solid #fff;
}



/*------------------------------------*\
    Header
\*------------------------------------*/

header {
	position: relative;
}

.branding {
    margin: auto;
    position: absolute;
    height: 100%;
    max-width: 80%;
}

.branding a {
    border: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
}

.branding a img {
    text-indent: -9999px;
}

.header-container {
    box-sizing: border-box;
    margin: auto;
    width: 100%;
    position: relative;
    height: 150px;
    margin-bottom: 10px;
    background-color: transparent;
    display: flex;
    align-items: center;
	position: absolute;
	z-index: 999;
}

.home .header-container {
position: absolute;
top: 0;
z-index: 10;
}


.sbi-logo {
	height: 85px;
	width: auto;
}

@media only screen and (max-width: 1400px) {
.sbi-logo {
	height: 75px;
	width: auto;
}
}

@media only screen and (max-width: 768px) {
.sbi-logo {
	height: 65px;
	width: auto;
}
}

@media only screen and (max-width: 480px) {
.sbi-logo {
	height: 55px;
	width: auto;
}
}


/*------------------------------------*\
    Navigation
\*------------------------------------*/

nav {
margin: 0;
float: right;
width: 100%;
}

nav a:hover {
text-decoration:none;
}

#main-menu {
list-style: none;
padding: 0;
margin: 0;
text-align: right;
font-size: 0;
display: none;
}

#main-menu li {
position: relative;
display: inline-block;
vertical-align:middle;
margin-left: 2rem;
}

#main-menu li:first-child {
margin-left: 0;
}

#main-menu li:last-child {
margin-right: 0;
}

#main-menu li a, #section-post-nav a {
font-family: 'Druk Web';
font-size: 26px;
line-height: 1em;
font-weight: 700;	
font-style: normal;
font-stretch: normal;	
letter-spacing: 0.03em;
text-transform: uppercase;
position: relative;
padding: 0.5rem 1.8rem 0.6rem 2rem;
color: #142c55;
display: inline-block;	
}

@media only screen and (max-width:1400px) {
	#main-menu li a, #section-post-nav a {
		font-size: 20px;
}
}

.home #main-menu li a {
	color: #fff;
}

#main-menu li:first-child a:before, .slicknav_nav li:first-child a:before {	
	background: #ffd100;
	transform: rotate(5deg);
	-webkit-transform: rotate(5deg);
	-moz-transform: rotate(5deg);
	-ms-transform: rotate(5deg);
	-o-transform: rotate(5deg);
}

#main-menu li:nth-child(2) a:before, .slicknav_nav li:nth-child(2) a:before {	
	background: #fb91a3;
	transform: rotate(-2deg);
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
}

#main-menu li:nth-child(3) a:before, .slicknav_nav li:nth-child(3) a:before {	
	background: #99e6d8;
	transform: rotate(2deg);
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	-o-transform: rotate(2deg);
}

#main-menu li:nth-child(4) a:before, .slicknav_nav li:nth-child(4) a:before {	
	background: #ffd100;
	transform: rotate(-2deg);
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
}

#main-menu li:nth-child(5) a:before, .slicknav_nav li:nth-child(5) a:before {	
	background: #fb91a3;
	transform: rotate(2deg);
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	-o-transform: rotate(2deg);
}

#main-menu li:nth-child(6) a:before, .slicknav_nav li:nth-child(6) a:before {	
	background: #99e6d8;
	transform: rotate(-2deg);
	-webkit-transform: rotate(-2deg);
	-moz-transform: rotate(-2deg);
	-ms-transform: rotate(-2deg);
	-o-transform: rotate(-2deg);
}


#main-menu li:nth-child(7) a:before, .slicknav_nav li:nth-child(5) a:before {	
	background: #ffd100;
	transform: rotate(2deg);
	-webkit-transform: rotate(2deg);
	-moz-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	-o-transform: rotate(2deg);
}


#main-menu li a:before, .slicknav_nav li a:before {
	content: ' ';
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	transform-origin: 50% 50%;
	-webkit-transform-origin: 50% 50%;
	-moz-transform-origin: 50% 50%;
	-ms-transform-origin: 50% 50%;
	-o-transform-origin: 50% 50%;	
	 opacity: 0;
   transition: opacity .2s ease-in-out;
   -moz-transition: opacity .2s ease-in-out;
   -webkit-transition: opacity .2s ease-in-out;
}

#main-menu li a:hover:before, #main-menu li.current_page_item a:before, #main-menu li.current-menu-item a:before, #main-menu li.current-page-parent a:before, #main-menu li.current_page_parent a:before {
	opacity: 1;
}



/* submenus */

#main-menu ul.sub-menu {
visibility: hidden;
opacity: 0;
position: absolute;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
left: 0;
top: 100%;
z-index: 999;
text-align: left;
margin: 0;
list-style-type: none;
padding: .5rem 0;
background-color: #fff;
transition: opacity .5s ease;
-webkit-transition: opacity .5s ease;
-moz-transition: opacity .5s ease;
-ms-transition: opacity .5s ease;
-o-transition: opacity .5s ease;
}

#main-menu li.menu-item-has-children:hover ul.sub-menu {
visibility: visible;
opacity: 1;
-webkit-box-shadow: 0px 4px 20px 0px rgba(150,150,150,.3);
-moz-box-shadow: 0px 4px 20px 0px rgba(150,150,150,.3);
box-shadow: 0px 4px 20px 0px rgba(150,150,150,.3);
}

#main-menu ul.sub-menu li {
margin:0;
display: block;
padding: 0;
min-width: 150px;
}

#main-menu ul.sub-menu li a {
padding: .5rem 1rem;
font-size: 3rem;
display:block;
border:0;
white-space: nowrap;
}

/*Slicknav*/

.slicknav_menu {
    display: block;
    margin: 0;
    padding: 0!important;
    background-color: transparent;
}
.slicknav_nav {
	position: fixed;
	width: 100vw;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
	left: 0;
    font-size: 16px;
    text-align: center;
    background-color: #fff;
    margin-left: auto;
    margin-right: auto;
	background-color: rgba(255, 255, 255, 0.95) !important;
	
}
.slicknav_nav ul, .slicknav_nav a {
    margin: 0!important;
}
.slicknav_nav li {
    margin: 0 0 10px;
	padding: 10px 0;
}
TT.slicknav_nav li:first-child {
    background: #ffd100;
}
TT.slicknav_nav li:nth-child(2){
    background: #fb91a3;
	
}

TT.slicknav_nav li:nth-child(3){
    background: #ffd100;
	
}


TT.slicknav_nav li:last-child {
   background: #99e6d8;
}
.slicknav_nav li:before {
    display: none;
}
.slicknav_nav li a {
	position: relative;
	display: inline-block;
	font-family: 'Druk Web';
	font-size: calc(18px + 4vw);
	font-weight: 700;
	line-height: 1em;
    color: #142c55;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
	padding: 12px 16px 11px;
	-webkit-transition: color 500ms ease-out 0.1s;
    -moz-transition: color 500ms ease-out 0.1s;
    -o-transition: color 500ms ease-out 0.1s;
    transition: color 500ms ease-out 0.1s;

}

.slicknav_menu li a:hover, .slicknav_menu li.current_page_item a, .slicknav_menu li.current-menu-item a, .slicknav_menu li.current-page-parent a, .slicknav_menu li.current_page_parent a {
	color: #142c55;
	background-color: transparent;
}

.slicknav_nav li a:before {
	 opacity: 1;
}

.slicknav_nav .slicknav_row {
    padding: .875em 1em;
    position: relative;
    -ms-flex-align: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    align-items: center;
}
.slicknav_nav .slicknav_arrow {
    display: none;
}
.slicknav_nav .slicknav_row:after {
    content: '\f105';
    font-family: fontAwesome;
    display: block;
    position: absolute;
    right: 1rem;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
}
.slicknav_nav a:hover, .slicknav_nav .slicknav_row:hover, .slicknav_nav a.slicknav_row:hover a {
    background-color: #e3e7ef;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    color: #fff;
}
.slicknav_btn {
    margin: 0 0 2rem 0;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
	z-index: 99;
}
.slicknav_menu .slicknav_icon-bar {
    background-color: #142c55;
    width: 1.5em;
    height: 0.25em;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
	-webkit-transition: background-color 0.2s ease-out;
    -moz-transition: background-color 0.2s ease-out;
    -o-transition: background-color 0.2s ease-out;
    transition: background-color 0.2s ease-out;
}

.home.fixedPosition .slicknav_menu .slicknav_icon-bar {
	background-color: #142c55;
}




/* Menu on homepage */

.page-template-page-home #main-menu li a {
	color: #fff;
}


.slicknav_nav {
    background-color: transparent;
}

.slicknav_nav li a {
	color: #fff;
}

.page-template-page-home .slicknav_menu .slicknav_icon-bar {
	background-color: #fff;
}



/* 992px and above */
@media only screen and (min-width: 992px) {
#main-menu {
    display: block;
}
.js .slicknav_menu {
    display: none;
}
}

/* 991px and below */
@media only screen and (max-width: 991px) {
nav {
    margin-top: 0px;
}
.nav, .nav .slicknav_menu, .nav .slicknav_menu .slicknav_btn {
    height: 100%;
}
.slicknav_btn {
    margin-bottom: 0px;
}
.slicknav_btn {
    display: flex;
    align-items: center;
}
}



/*------------------------------------*\
    Application Page
\*------------------------------------*/

#section-application {
	background-color: #fcfefc;
}

#section-application {
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-image: url('https://scottishbooksinternational.org/wp-content/uploads/2019/03/post-bg.gif');
}

#section-application.slant-top:after {
 	 border-color: transparent #fcfefc transparent transparent;
}

#section-application .wrapper { 
	max-width: 780px;
}

.page-id-283 iframe {
	width: 100%;
	min-height: 4850px;
	margin-bottom: 50px;
}

#section-title.application-header {
background-image: url('https://scottishbooksinternational.org/wp-content/themes/sbi-v1/img/header-bg-application.png');
}

.file-upload-container {
	max-width: 645px;
	margin: 0 auto;
}

.file-upload-container .small-type {
	font-size: 14px; 
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
}

#UseyourDrive, .UseyourDrive, .UseyourDrive p, #UseyourDrive a, .UseyourDrive a, #UseyourDrive .button, .UseyourDrive .button {
font-family: 'Druk Web' !important;
line-height: 1em !important;
font-weight: 700 !important;
font-style: normal !important;
font-stretch: normal !important;
letter-spacing: 0.03em !important;
text-transform: uppercase !important;
color: #142c55 !important;	
}

#UseyourDrive .button, .UseyourDrive .button {
	font-size: 1.1em !important; 
	background-color: #fb91a3 !important;
	color: #fff !important;
}

#UseyourDrive .button:hover, .UseyourDrive .button:hover, #UseyourDrive .button:focus, .UseyourDrive .button:focus {
	box-shadow: none !important;
	background-color: #fa4d09 !important;
	font-weight: normal !important;
}

.fileupload-info-container, .fileupload-buttonbar-text {
	font-family: baskerville-urw, serif !important;
	font-size: 16px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	font-style: normal !important;
	color: #142c55 !important;
	text-transform: initial !important;
	letter-spacing: 0 !important;
}

.fileupload-buttonbar-text {
    font-size: 1em !important;
    padding-bottom: 4px !important;
}

.freebirdFormviewerViewItemsItemItemTitle {
	font-size: 8px !important;
}

