
/* ------------------- Basic Layout Styles ---------------- */
html,
body,
#page  {
    width: 100%;
    height: 100%;
}
/** warning outputs **/
p.warning {
    position:relative;
    color: #8B0000;
    padding: 5px 20px;
    box-sizing: border-box;
    margin: 0;
}
.js p.js.warning {
    display: none;
}

/** sections **/
#header div.section {
    position: relative;
}
#crdc-layout .region-header, 
#crdc-layout .region-header .block ul {
    float:none;
    margin: 0;
} 

#main,
#footer-columns,
#footer, 
#crdc-footer-menu {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.region-content-left,
.region-content-right, 
.region-footer-firstcolumn,
.region-footer-secondcolumn {
    width: 100%;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#crdc-layout .col-one, 
#crdc-layout .col-two {
    display: inline-block;
    vertical-align: top;
    text-align: left;
    width: 50%;
    box-sizing: border-box;
}
/** content wrap **/
#header div.section,
#messages div.section {
    width: 100%;
    max-width: 1290px;
    box-sizing: border-box;
    margin: 0 auto;
}
.crdc-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 1290px;
    padding: 20px 30px;
    box-sizing: border-box;
    margin: 0 auto;
}
.region-footer {
    width:100%;
}
/** generic menu **/
nav ul,
ul.menu {
    width: 100%;
    text-align: left; /* LTR */
    list-style: none;
    padding: 0;
    margin: 0;
    float: none;
}
nav li, 
ul.menu li {
    display: inline-block;
    margin: 0;
}
nav ul li > a,
ul.menu li > a,  
.region-header a, 
.region-header li a.active,
#name-and-slogan, 
#name-and-slogan a, 
#secondary-menu-links li a {
    display: block;
    color: #000;
    box-sizing: border-box;
    margin: 0;
    transition: all 0.3s ease;
}
nav a,
ul.menu a:hover, 
ul.menu a:focus,
ul.menu a:active, 
ul.menu li.active-trail, 
#secondary-menu-links li a:hover, 
.region-header li a.active {
    color: #5d1869;
    background-color: transparent;
    text-decoration: none;
}
/* ------------------- Drupal Misc ------------------- */
  /* ------ User Profile ------ */
  .profile .user-picture {
    float: none;
  }
  /* ------ Password Meter ------ */
  .confirm-parent,
  .password-parent {
    width: 34em;
  }
  .password-parent,
  div.form-item div.password-suggestions {
    position: relative;
  }
  .password-strength-text,
  .password-strength-title,
  div.password-confirm {
    font-size: 0.82em;
  }
  .password-strength-text {
    margin-top: 0.2em;
  }
  div.password-confirm {
    margin-top: 2.2em;
    width: 20.73em;
  }

/* ------------------- CRDC outer Layout + Header regions ------------------- */
.crdc-site-body {
    position: relative;
    overflow: hidden;
}
.crdc-site-content-slide {
    position: relative;
    left: 0;
}
#crdc-layout {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}
#crdc-layout header#top.crdc-row { /* mobile header */
    position: relative;
    display: none;
    width: 100%;
    box-sizing:border-box;
}
#crdc-slide-menu {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -400px;
    display: block;
    padding-right: 120px; /* for sidebar */
    width: 520px;
    box-sizing: border-box;
    z-index: 100;
}
#crdc-layout .crdc-home-slider,
#crdc-layout #page-wrapper, 
#crdc-layout #content-bottom,
#crdc-layout #footer-columns, 
#crdc-layout #footer,
#crdc-footer-menu {
    padding-left: 120px; /* for sidebar */
}
.slide-menu-active #crdc-slide-menu {
    position: fixed;
    left: 0;
}
.toolbar-fixed.slide-menu-active #crdc-slide-menu {
    top:75px;
}

/*** ------ sidebar ------ ***/
#crdc-slide-menu header#sidebar.crdc-column { /* desktop header */
    position: absolute;
    top:0;
    right:0;
    display: block;
    width: 120px;
    height: 100%;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.2);
    background-image: none;
    border-right: 1px solid #5d196a;
    z-index: 100;
}
.crdc-header-wrap {
    display: flex;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    background-color: #FFF; 
}
/* logo */
.menu-logo-wrap {
    width: 100%;
    background-color: #5d1869;
    min-height: 150px;
    box-sizing: border-box;
}
a.home-link {
    display: block;
    width: 100%;
    padding: 20px;
    padding-top: 40px;
    box-sizing: border-box;
    margin-top: 0;
}
a.home-link img {
    width: 100%;
    height: auto;
}

#site-name p {
    font-family:"proxima nova", CenturyGothic, sans-serif !important;
    letter-spacing: 2rem !important;
    letter-spacing: 0.2rem !important;
}

/* menu icon */
.crdc-burger-icon {
    position: relative;
    display: block;
    width: 50px;
    height: 50px;
    color: #5d196a;
    padding-top: 5px;
    box-sizing: border-box;
    margin: 20px auto;
    margin-bottom: 30px;
    font-size: 14px;
    cursor: pointer;
    z-index: 100;
}
p#close { /*mobile close*/
    display: none;
    color: #5d196a;
    text-align: right;
    font-size: 16px;
    margin: 0px 20px;
}
#close .text {
    display: inline-block;
    vertical-align: middle;
    padding-right: 10px;
}
.cross { /*mobile*/
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 30px;
    height: 30px;
    cursor: pointer;
    margin-left: auto;
    z-index: 100;
}
.crdc-burger-icon:after {
    content:"MENU";
    display: block;
    position: absolute;
    left:0;
    top:100%;
    width:100%;
    text-align:center;
    letter-spacing: 1px;
    margin:0;
    line-height: 0.8;
}
.crdc-burger-icon:hover {
    opacity: 0.5;
}
.crdc-burger-icon span, 
.cross span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: #5d196a;
    margin: 6px 0;
    transition: all 0.5s ease;
}
.cross span {
    position: absolute;
    top: 50%;
    margin: 0px;
}
.crdc-burger-icon span.two {
    margin: 12px 0;
}
.crdc-burger-icon .mobile-menu span.one {
    -webkit-transform: rotate(-45deg) translate(-8px, 8px);
    transform: rotate(-45deg) translate(-8px, 8px);
}
.cross span.one {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.crdc-burger-icon .mobile-menu span.three {
    -webkit-transform: rotate(45deg) translate(-5px, -7px) ;
    transform: rotate(45deg) translate(-5px, -7px) ;
}
.cross span.three {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.crdc-burger-icon .mobile-menu span.two {
    opacity: 0;
}
/** enquire button **/
.crdc-enquire-button {
    width: 100%;
    text-align: center;
    background-color: #dcdedc;
}
.crdc-enquire-button a:link, 
.crdc-enquire-button a:visited {
    display: block;
    color: #000;
    padding: 30px 20px;
    padding-bottom: 41px;
}
.crdc-enquire-button a:before {
    content:"";
    display: block;
    width: 100%;
    padding-top: 50px;
    background-image: url('../images/enquire.png');
    background-repeat: no-repeat;
    background-size: 50px 40px;
    background-position: top center;
}
.crdc-enquire-button a:hover, 
.crdc-enquire-button a:active, 
.crdc-enquire-button a:focus, 
.crdc-enquire-button a:visited {
    text-decoration: none;
}

/*** ------ menu ------ ***/
#crdc-slide-menu #slide-out.menu-wrapper {
    position: relative;
    top:0;
    left:0;
    padding: 40px;
    padding-top: 80px;
    width: 400px;
    height: 100%; /* min-height doesn't activate overflow */
    background-color: #f7f5f7;
    border-right: 1px solid #dcdedc;
    box-sizing: border-box;
    overflow-y: auto;
} 
#site-name {
    font-family:"proxima nova" sans-serif;
    font-size: 1.6em;
    color: #5d1869;
    line-height: 1;
}
h1#site-name {
    margin: 0;
}
#crdc-slide-menu #name-and-slogan {
    padding: 0px;
} 
#crdc-slide-menu #site-name,
#crdc-slide-menu #name-and-slogan a {
    color: #5d1869;
    font-weight:bold;
}
#site-slogan {
    font-size: 13px;
    letter-spacing: 1.2px;
    line-height: 1;
    margin-top: 0px;
}

#search-block-form {
    padding: 0px;
}
#crdc-slide-menu #main-menu h2 {
    display: none; /* hide the form title + menu titles */
}
#crdc-slide-menu #main-menu > ul.menu {
    font-size: 16px;
}
#crdc-slide-menu ul.menu > li {
    float: none;
    display: block;
    text-align: left;
    width: 100%;
    padding: 0;
    margin:0;
}
#crdc-slide-menu .menu--main ul.menu a {
    padding: 5px 0px;
}
#crdc-slide-menu #main-menu > ul.menu > li > a {
    position: relative;
    display: block;
    line-height: 1;
    border: 0;
    margin-bottom: 4px;
    float: none;
}
#crdc-slide-menu #main-menu {
    padding-top: 20px;
}
#crdc-slide-menu #main-menu .menu--main > ul.menu > li > a {
    padding: 10px 0px;
}
#crdc-slide-menu #main-menu .menu--main ul.menu {
    font-size: 20px; 
}
#crdc-slide-menu #main-menu .menu--main ul.menu ul.menu {
    font-size: 18px;
}
#crdc-slide-menu .menu--main > ul.menu ul.menu a {
    position: relative;
    padding-left: 30px;
}
#crdc-slide-menu .menu--main > ul.menu ul.menu > li.menu-item--active-trail > a:before {
    content:"-";
    position: absolute;
    top: 0;
    left: 5px;
}

/*** ----sidebar active --- ***/
#crdc-menu-sidebar {
    position: fixed;
    top:0;
    left:0;
    width: 240px;
    height: 100%;
}
#crdc-site-content-slide, 
#crdc-slide-menu, 
.crdc-burger-icon {
    -webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}
.slide-menu-active .crdc-burger-icon span.two {
    opacity: 0;
}
.slide-menu-active .crdc-burger-icon span.one {
    -webkit-transform: rotate(-45deg) translate(-8px, 9px);
    transform: rotate(-45deg) translate(-8px, 9px);
}
.slide-menu-active .crdc-burger-icon span.three {
    -webkit-transform: rotate(45deg) translate(-11px, -10px);
    transform: rotate(45deg) translate(-11px, -10px);
}

/*** ------------------- CRDC Footer Regions ------------------- **/
#footer-wrapper {
    position: relative;
    font-size: 14px;
    padding: 0;
}   
#footer-wrapper h2, 
#footer-wrapper h2 a {
    color: #5d1869;
    font-size: 35px;
    font-weight: 500;
    line-height: 1;
    padding-bottom: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
#footer-wrapper a {
    color: inherit;
    transition: all 0.3s ease;
}
#footer-wrapper a:hover {
    text-decoration: none;
}
#footer-wrapper div.section {
    padding: 0;
    max-width: 100%;
    min-height: 140px; 
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
#footer-wrapper tr.odd {
    background-color: transparent;
}
#footer-wrapper tr.even {
    background-color: transparent;
}

/** footer views **/
#crdc-layout #footer-wrapper .view {
    position: relative;
}
#crdc-layout #footer-wrapper .view-content,
.block-twitter-feed .content {
  position: relative;
  font-size: 1em;
  padding-right: 6%;
  box-sizing: border-box;
}
#crdc-layout #footer-wrapper .view-content p {
    margin: 0;
}
#footer-wrapper .views-field-field-image {
    display: inline-block;
    float: left;
    margin-right: 5%;
}
#footer-wrapper .views-field-title {
    font-weight: bold;
}   
#footer-wrapper .views-field-body {
    margin-top: 15px;
}
#footer-wrapper .view-content:after, 
#footer-wrapper .view-content:after {
    content:"";
    display: block;
    width:100%;
    clear: both;
    height:0px;
}

/** circle pagers **/
#footer-wrapper .item-list {
    position: static;
    text-align: left;
    background-color: transparent;
    margin-top: 20px;
}
#footer-wrapper .pager ul, 
#footer-wrapper .item-list ul {
    text-align: left;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#footer-wrapper .pager li.pager__item--first,
#footer-wrapper .pager li.pager__item--previous,
#footer-wrapper .pager li.pager__item--last {
    display:none;
}
#footer-wrapper .pager ul {
    padding: 0px;
    padding-top: 5px;
}
#footer-wrapper .pager li {
    background: transparent;
    color:#121212;
    font-size: 0;
    display: inline-block;
    vertical-align: middle;
    padding: 0px;
    border: 0px;
    margin: 0px 5px;
}
#footer-wrapper .pager a, 
#footer-wrapper .pager li.is-active a{
  color:inherit;
  padding:0;
  display: block;
  width:10px;
  height:10px;
  border: 1px solid #121212;
  border-radius: 50%;
}
#footer-wrapper .pager li.is-active a {
    display: inline-block;
    background: #121212;
}
#footer-wrapper .pager li.pager__item--next {
    position: absolute;
    top:0;
    right:0;
    width: 20px;
    bottom: 40px;
    border: 0;
    border-radius: 0;
}
#footer-wrapper .pager li.pager__item--next a {
    width: 20px;
    height: 100%;
    background-image: url('../images/next-b.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    border: 0;
}
#footer-wrapper .pager li.pager__item--next a:hover {
    background-color: transparent;
}

/*** ---- Footer Columns Regions (2) --- ***/
#footer-columns {
    position: relative;
    width: 100%;
    padding-top: 40px;
    padding-bottom: 20px;
}
#crdc-layout #footer-columns:before {
    content: ''; 
    display: block;
    width: 20%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background-image: url(../images/footer-feed-bg.jpg);
    background-position: top right;
    background-size: cover;
    opacity: 0.6;
    z-index: 0;
}
#footer-columns .col-one, 
#footer-columns .col-two {
    position: relative;
    padding: 4% 5%;
}
#footer-columns .col-one {
    padding-left:0px;
}
#footer-columns .col-two {
    padding-right: 0px;
}
#footer-columns .col-one:before {
    content: "";
    position: absolute;
    top: 15%;
    bottom: 15%;
    right: 0;
    display: block;
    width: 1px;
    background-color: #c4c6c5;
}
#footer-columns .view-content {
    margin-top: 0;
}
#footer-columns h4.feed-title {
    color: #333;
    margin: 0px;
}

/*** ---- Footer Region (full width)  --- ***/
#crdc-layout #footer {
    color: #FFF;
    background:#5d1869;
}
#crdc-layout #footer h2 {
    color: #FFF;
}

/*
#crdc-layout #footer .item-list .pager li.pager__item {
    background:none;
    border:none;
}

*/
#crdc-layout #footer .item-list .pager li.pager__item a, 
#crdc-layout #footer .item-list .pager li.pager__item.is-active a {
    border: 1px solid #FFF;
}
#crdc-layout #footer .item-list .pager li.pager__item.is-active a {
    background: #FFF;
}
#crdc-layout #footer .item-list .pager li.pager__item--next a {
    background-image: url('../images/next-w.png');
}

/*** ---- Footer Menu Region --- ***/
#crdc-footer-menu {
    color: #000;
    background-color: #c4c6c5;
}
#crdc-footer-menu a:hover {
    text-decoration: none;
}
#crdc-footer-menu .crdc-wrap > span, 
#crdc-footer-menu #secondary-menu {
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}
#crdc-footer-menu span.social-media {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    width: 200px;
    max-width: 100%;
    border: 0px;
    box-sizing:border-box;
}
#crdc-footer-menu nav a {
    display: inline-block;
}
#crdc-footer-menu .ext {
    padding-right:0;
}

/* generated svgs - not applying properly? */
#crdc-footer-menu .social-media svg.mailto,
#crdc-footer-menu .social-media svg.ext {
    display: none;
}
#crdc-footer-menu .social-media svg.ext,
#crdc-footer-menu .social-media svg.mailto {
    fill: #000;
}
#crdc-footer-menu .social-media svg.ext path,
#crdc-footer-menu .social-media svg.mailto path {
    stroke: #000;
    stroke-width: 3;
}

/** menu **/
#crdc-footer-menu .region-footer-menu {
    text-align: right;
    font-size: 13px;
    margin: 0;
}
#crdc-footer-menu ul.menu a {
    display: block;
    color: #000;
    min-height: 30px;
    padding: 0px 12px;
}
#crdc-footer-menu ul.menu a:hover {
    color: #1079a2;
}

/*** ------------------- CRDC page-wrapper Regions ------------------- **/
#main-wrapper {
    min-height: 300px; 
    border: 0px;
}

#main {
    background:#fff;
    width: 100%;
    border-radius: 0px;
    margin-bottom: 0px;
}
.content, 
.region-content-bottom {
    width: 100%;
    box-sizing: border-box;
}

/*** ---- Featured Region --- ***/
#featured {
    font-size: 1.2em;
    font-weight: normal;
    padding: 0;
    margin: 0;
    border-bottom: none;
    text-shadow: none;
}
#featured a:link, 
#featured a:visited,
#featured a:hover, 
#featured a:focus {
    color: #5d1869;
    text-decoration: none;
}
#featured h2 {
    font-size: 1.2em;
    line-height: 1;
}
#featured p {
    margin: 0;
    padding: 0;
}

/*** ---- Messages Region --- ***/
  #messages {
    padding: 20px 0 5px;
    margin: 0 auto;
  }
  .featured #messages {
    background: #f0f0f0;
    background: rgba(30, 50, 10, 0.08);
  }
  div.messages {
    margin: 8px 15px;
  }



/* ------- Highlighted ------- */
/* NOTE: on the old site this block only displayed when populated. On Drupal 9 it appears to always be present.
In order to prevent a grey line always displaying this style has been removed. There may be a situation in which the 
grey line should appear, but so far it has not been identified.

#highlighted {
    
    border-bottom: 1px solid #c6c8c7;
    / *font-size: 120%;* /
}
*/

/* ------- System Tabs ------- */
.tabs {
    font-family: "proxima nova", Helvetica, Arial, sans-serif;
    /*margin-bottom: 20px;*/
}
.tabs ul.primary {
    overflow: hidden;
    background: transparent url(../images/tabs-border.png) repeat-x left bottom;
    border: none;
    box-sizing: border-box;
    margin: 0;
  }
  .tabs ul.primary li {
    display: block;
    float: left; /* LTR */
    vertical-align: bottom;
    margin: 0 5px 0 0; /* LTR */
  }
  .tabs ul.primary li.active a {
    border-bottom: 1px solid #ffffff;
  }
  .tabs ul.primary li a {
    color: #000;
    background-color: #dfe0de;
    height: 1.8em;
    line-height: 1.9;
    display: block;
    font-size: 0.929em;
    float: left; /* not LTR */
    padding: 0 10px 3px;
    margin: 0;
    text-shadow: 0 1px 0 #fff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }
  .tabs ul.primary li.active a {
    background-color: #ffffff;
  }
  .tabs ul.secondary {
    border-bottom: none;
    padding: 0.5em 0;
  }
  .tabs ul.secondary li {
    display: block;
    float: left; /* LTR */
  }
  .tabs ul.secondary li:last-child {
    border-right: none; /* LTR */
  }
  .tabs ul.secondary li:first-child {
    padding-left: 0; /* LTR */
  }
  .tabs ul.secondary li a {
    padding: 0.25em 0.5em;
  }
  .tabs ul.secondary li a.active {
    background: #f2f2f2;
    border-bottom: none;
    border-radius: 5px;
  }
  ul.action-links {
    list-style: none;
    margin: 5px;
    padding: 0.5em 1em;
  }
  ul.action-links li {
    display: inline-block;
    margin-left: 10px;
  }
  ul.action-links li a {
    padding-left: 15px;
    background: url(../images/add.png) no-repeat left center;
    margin: 0 10px 0 0;
  }
/* ------- Help ------- */
.region-help {
    border: 1px solid #c6c8c7;
    padding: 0 1.5em;
    margin-bottom: 30px;
}


/*** ---- CRDC Page Content wrap --- ***/
#main-wrapper {
    position: relative;
}
#skip-nav a:link, 
#skip-nav a:visited {
    color: #000;
}

/**** no sidebar ****/
.crdc-main.no-sidebar .crdc-wrap {
    padding: 20px 30px;
    width: 100%;
    box-sizing: border-box;
}
.crdc-main.no-sidebar .crdc-content {
    width: 100%;
    box-sizing: border-box;
}

/**** with sidebar ****/
.crdc-main {
    position: relative;
}

/* news + publications */
.crdc-main.has-sidebar .crdc-content, 
.crdc-main .crdc-sidebar {
    display: inline-block;
    width: 50%;
    box-sizing: border-box;
}
.crdc-main.has-sidebar .crdc-content {
    padding-right: 5%;
}
.crdc-main .crdc-sidebar img {
    height: auto !important;
    max-width: 100%;
    margin: 0 auto;
}

/* sidebar subnav */
.crdc-main .crdc-sidebar {
    order: 2; /* after content */
}

.crdc-sidebar h2, 
.crdc-sidebar h2 a {
    font-weight: normal;
    color: #5d1869;
    line-height:1;
    margin-top: 0px;
}
.crdc-sidebar h2 a:hover {
    text-decoration: none;
}
.crdc-sidebar ul.menu {
    font-size: 20px;
    padding-top: 5%;
}
.crdc-sidebar ul.menu li {
    display: block;
    padding: 0px;
    box-sizing: border-box;
}
.crdc-sidebar ul.menu li a {
    position: relative;
    padding: 8px 0px;
    line-height: 1;
    padding-left: 30px;
    box-sizing: border-box;
}
.crdc-sidebar ul.menu li a.is-active {
    color: #000;
    font-weight: bold;
}
.crdc-sidebar ul.menu .menu-item--active-trail > a:before {
    content:"";
    display: inline-block;
    position: absolute;
    left:0;
    top: 50%;
    width: 15px;
    height: 1px;
    background-color: #f89623;
}
.crdc-sidebar ul.menu .menu {
    padding-left:5%;
    font-size: 0.9em;
    padding-top:0;
    padding-bottom:5%;
}

/** page width sidebar **/
.page-node-type-page .crdc-main.has-sidebar .crdc-wrap {
    max-width: 100%;
    padding: 0px;
}
.page-node-type-page .crdc-sidebar { /*subnav*/
    padding: 5% 30px;
    padding-left: 4%;
    width: 350px;
    background-color: #f7f5f7;
}
.page-node-type-page .crdc-main.has-sidebar .crdc-content {
    width:100%;
    padding: 0px 30px;
    padding-right: 8%;
    max-width: 940px; /* 1290-350px */
    margin: 0px auto;
}

/***** node content ***/
/** breadcrumbs (hidden)**/
.breadcrumb {
    display: none;
    padding: 10px;
    font: 9px/1.3em 'proxima nova', Arial, sans-serif;
}
.breadcrumb a {
    font: 9px/1.3em 'proxima nova', Arial,sans-serif;
    color: #C6C8C7;
    padding: 12px 0;
}

/*** heading styles ***/
h1, h2, h3, h4 {
    color: #5d1869;
    font-weight: 700;
}
h1 a, h1 a:active, h1 a:hover,
h2 a, h2 a:active, h2 a:hover,
h3 a, h3 a:active, h3 a:hover,
h4 a, h4 a:active, h4 a:hover,
h5 a, h5 a:active, h5 a:hover,
h6 a, h6 a:active, h6 a:hover {
    color: #5d1869;
    text-decoration: none;
}
#crdc-layout h2 {
    font-size: 35px;
    font-weight: 300;
}
#crdc-layout .crdc-content .content h2:first-of-type {
    font-size: 3em;
    line-height: 1;
    font-weight: bold;
    color: #8b8c8c;
    box-sizing: border-box;
}
#crdc-layout .crdc-content h1.page-title {
    font-size: 35px;
    color: #5d1869;
    font-weight: 400;
    line-height: 1;
    box-sizing: border-box;
}

/*** ---- Content Left + Content Right Regions --- ***/
/* used for "content" square blocks */
#content-columns {
    background-color: #f7f5f7;
    overflow: hidden;
}
#content-columns .region-content-left > div, 
#content-columns .region-content-right > div {
    max-width: 645px;
    padding: 6% 10%;
    box-sizing: border-box;
}
#content-columns .region-content-left > div {
    padding-left: 20px;
    margin-left: auto;
}
#content-columns .region-content-right > div {
    padding-right: 20px;
    margin-right: auto;
}
#content-columns .region-content-left > div:first-of-type, 
#content-columns .region-content-right > div:first-of-type {
    padding-top: 10%;
}
#content-columns .region-content-left > div:last-of-type, 
#content-columns .region-content-right > div:last-of-type {
    padding-bottom: 15%;
}
#content-columns .region-content-left > div:nth-of-type(even){
    position: relative;
    color: #FFF;
    background-color: #f89623;
}
#content-columns .region-content-left > div:nth-of-type(even):before {
    content:"";
    position: absolute;
    top:0px;
    right:100%;
    display: block;
    width: 1000px;
    height: 100%;
    background-color: #f89623;
}
#content-columns .region-content-left > div:nth-of-type(even) a, 
#content-columns .region-content-left > div:nth-of-type(even) a:visited {
    color: #5d196a !important;
}

/* ------------------- Media Queries ---------------- */
@media only screen and (min-width: 2250px){
/** page sidebar content **/
    .crdc-main.has-sidebar .crdc-content .region-content {
        padding-right: 30px;
    }
}

@media only screen and (min-width: 1900px){
/** footer cols background **/
    #crdc-layout #footer-columns:before {
        width: 10%;
    }
/** page sidebar **/
    .page-node-type-page .crdc-sidebar {
        width: 450px;
        padding-right: 30px;
    }
    .page-node-type-page .crdc-main.has-sidebar .crdc-content {
        max-width: 840px;
        padding-right: 30px;
    }
}

@media only screen and (max-width: 1200px) {
/** page sidebar **/
    .page-node-type-page .crdc-sidebar {
        width: 300px;
        padding-right: 10px;
    }
    .page-node-type-page .crdc-main.has-sidebar .crdc-content {
        max-width: 990px;
    }
/** footer **/
    #footer-wrapper h2{
        margin-top: 0px;
    }
    #footer-wrapper .item-list {
        text-align: center;
        margin-top: 0;
    }
    #footer-wrapper .item-list ul.pager {
        text-align: center;
    }
    #footer-columns {
        padding-top:0px;
        padding-bottom: 0px;
    }
    #footer-columns .col-one, 
    #footer-columns .col-two {
        padding: 20px;
    }
    #footer-columns .col-one {
        padding-left: 0px;
    }
    #footer-columns .col-two {
        padding-right: 0px;
    }
}

@media only screen and (max-width: 1000px){
/** stack right sidebar **/
    .crdc-main.has-sidebar .crdc-wrap,
    .page-node-type-page .crdc-main.has-sidebar .crdc-wrap {
        display: block;
        padding: 0px;
    }
    #main-wrapper {
        min-height: 0px;
    }
    /* all news, publications + pages */
    .crdc-main .crdc-sidebar, 
    .has-sidebar .crdc-content {
        position: static;
        display: block;
        width: 100%;
        margin: 0 auto;
    }
    .crdc-main .crdc-sidebar {
        padding: 0px 30px;
    }    
    .page-node-type-page .crdc-main.has-sidebar .crdc-content,
    .crdc-main.has-sidebar .crdc-content {
        padding: 30px;
        width: 100%;
        max-width: 100%;
    }
    /* page subnav */
    .page-node-type-page .crdc-sidebar { /*subnav */
        text-align: center;
        padding: 20px 30px;
        width: 100%;
    }
    .crdc-main .crdc-sidebar h2 {
        margin: 0px;
    }
    .crdc-sidebar ul.menu {
        text-align: center;
        padding-top: 10px;
    }
    .crdc-sidebar ul.menu li {
        display: inline-block;
    }
    .crdc-sidebar ul.menu li a {
        padding: 8px;
    }
    .crdc-sidebar ul.menu li.active > a {
        font-weight: bold;
    }
    .crdc-sidebar ul.menu .menu-item--active-trail a:before {
        display: none;
    }
/** footer **/
    #crdc-footer-menu .crdc-wrap {
        text-align: center;
    }
    #crdc-footer-menu span.social-media {
        width: auto;
        padding: 0px 1%;
    }
    #crdc-footer-menu #secondary-menu, 
    #crdc-footer-menu ul.menu {
        display: block;
        width:100%;
        text-align: center;
    }
}

@media only screen and (max-width: 960px){
/** generic columns **/
    #crdc-layout .crdc-wrap {
        display: block;
    }
    #crdc-layout .col-one, 
    #crdc-layout .col-two {
        width: 100%; 
    }
    #footer-columns .col-one, 
    #footer-columns .col-two {
        padding: 20px 0px;
    }
    #crdc-layout #footer-columns:before,
    #crdc-layout #footer-columns .col-one:before {
        display: none;
    }
    #crdc-layout #footer-columns .col-one {
        border-top: 1px solid #c4c6c5;
        border-bottom: 1px solid #c4c6c5;
    }
/** CRDC menu sidebar **/
    #crdc-slide-menu {
        padding-right: 100px;
        width: 500px;
    }
    #crdc-slide-menu header#sidebar.crdc-column {
        width: 100px;
    }
    #crdc-layout .crdc-home-slider,
    #crdc-layout #page-wrapper, 
    #crdc-layout #content-bottom,
    #crdc-layout #footer-columns, 
    #crdc-layout #footer,
    #crdc-footer-menu {
        padding-left: 100px;
    }
   a.home-link {
        padding: 20px 10px;
        padding-top: 40px;
    }
    .crdc-enquire-button a:link, 
    .crdc-enquire-button a:visited {
        padding: 30px 10px;
    }
    #name-and-slogan {
        padding: 0;
    }
/** content columns **/
    #content-columns .region-content-left > div, 
    #content-columns .region-content-right > div, 
    #content-columns .region-content-left > div:first-of-type, 
    #content-columns .region-content-right > div:first-of-type,
    #content-columns .region-content-left > div:last-of-type, 
    #content-columns .region-content-right > div:last-of-type {
        max-width: 100%;
        padding: 40px 30px;
        margin: 0 auto;
    }
/** footer **/
    footer .crdc-wrap {
        text-align: center;
    }
}

@media only screen and (max-width: 760px) {
/*** reduce text size ***/
    h1#page-title, 
    #crdc-layout h2,
    #footer-wrapper h2, 
    #footer-wrapper h2 a {
        font-size: 1.5em;
    }
    #crdc-layout .crdc-content .content h2 {
        font-size: 2em;
        line-height:1;
    }
/** CRDC mobile layout **/
    #crdc-slide-menu {
        left: auto;
        right: -241px;
        width: 240px;
        padding: 0;
        padding-top: 0px;
        border-left: 1px solid #5d196a;
    }
    #crdc-layout .crdc-home-slider,
    #crdc-layout #page-wrapper, 
    #crdc-layout #content-bottom,
    #crdc-layout #footer-columns, 
    #crdc-layout #footer,
    #crdc-footer-menu {
        padding-left: 0;
    }
    #crdc-slide-menu .menu-wrapper {
        padding: 20px;
        padding-top: 40px;
        width: 100%;
        box-sizing: border-box;
    }
    #crdc-slide-menu li > a,
    #crdc-slide-menu #main-menu  > ul > li > a {
        padding-right: 10px;
    }
    .slide-menu-active .crdc-site-content-slide {
        left: auto;
        right: 241px;
    }
    .slide-menu-active #crdc-slide-menu {
        left: auto;
        right: 0;
    }
/* swap header#sidebar for header#top */
    #crdc-layout header#top.crdc-row {
        position: relative;
        display: block;
        top:0;
        left:0;
        z-index: 100;
    }
    .crdc-header-wrap {
        height: auto;
        min-height: 0;
        flex-direction: row;
    }
    #crdc-layout .crdc-header-wrap {
        background-color: transparent;
        padding-right: 80px; /* burger icon */
        box-sizing: border-box;
    }
    .crdc-burger-icon {
        position: absolute;
        right: 0px;
        top: 0px;
        width: 80px;
        height: 100%;
        background-color: #FFF;
        padding: 19px 15px;
        margin:0;
    }
    .crdc-burger-icon:hover {
        opacity: 1;
    }
    .crdc-burger-icon:after {
        position: static;
    }
    #crdc-slide-menu header#sidebar.crdc-column {
        display: none;
        border-right:0;
    }
    #crdc-layout .menu-logo-wrap, 
    #crdc-layout .crdc-enquire-button {
        display: inline-block;
        vertical-align: top;
    }
    .menu-logo-wrap {
        width: 100px;
        min-height: 100px;;
        box-sizing: border-box;
    }
    a.home-link {
        padding: 10px;
        line-height: 1;
    }
    #name-and-slogan {
        display: none;
    }
    .crdc-enquire-button {
        width: 100px;
        line-height: 1;
        max-width: 100%;
    }
    .crdc-enquire-button a:link, 
    .crdc-enquire-button a:visited {
        padding: 19px 10px;
        line-height: 1;
    }
    #crdc-slide-menu #slide-out.menu-wrapper {
        padding: 0px;
        padding-top: 20px;
        width: 100%;
    }
    #crdc-slide-menu .region-header {
        padding: 5px 20px;
    }
    #crdc-slide-menu #main-menu {
        padding-top:0;
    }
    #crdc-slide-menu #main-menu .menu--main ul.menu, 
    .crdc-sidebar ul.menu {
        font-size: 18px;
    }
    #crdc-slide-menu .menu--main > ul.menu > li > a {
        margin-bottom: 0px;
        min-height: 30px;
    }
    #crdc-slide-menu #main-menu .menu--main > ul.menu > li > a {
        padding: 10px 20px;
    }
    #crdc-slide-menu #main-menu ul.menu li.menu-item--active-trail > ul {
        display: none;
    }
/** page has-sidebar **/
    .page-node-type-page .crdc-main.has-sidebar .crdc-content, 
    .page-node-type-page .crdc-main .crdc-sidebar {
        width: 100%;
        padding: 20px 30px;
    }
/*** footer **/
    #crdc-bottom {
        padding-top: 20px;
    }
    #crdc-bottom > span, 
    #crdc-bottom #secondary-menu {
        display: block;
        width: 100%;
        text-align: center;
    }
    #crdc-bottom span.copyright {
        margin-bottom: 10px;
    }
/* featured */
    #featured {
        text-align: left;
    }
}

@media only screen and (max-width: 500px) {
/*** header **/
    #crdc-layout .crdc-enquire-button {
        display: none;
    }
/* cols generic */
    #crdc-layout .col-one, 
    #crdc-layout .col-two {
        text-align: center;
    }
/** footer **/
    #crdc-layout #footer-wrapper .view-content {
        padding-right: 0;
    }
    /* feed items */
    #crdc-layout #footer-wrapper .view-content, 
    #footer-wrapper .item-list ul,
    #footer-wrapper .pager ul {
        text-align: center;
    }
    #footer-wrapper .views-field-field-image {
        float: none;
        display: block;
        margin: 0 auto;
    }
    #footer-wrapper .item-list .pager li.pager__item--next {
        display: none;
    }
    /* pagers **/
    #footer-wrapper .item-list ul.pager, 
    #footer-wrapper .item-list ul {
        text-align: center;
    }
    #footer-wrapper .item-list ul.pager {
        margin: 10px 0px;
    }
    #footer-wrapper .pager a, 
    #footer-wrapper .pager li.pager__item.is-active a {
        width: 20px;
        height: 20px;
    }
    /** footer bottom **/
    #crdc-footer-menu .crdc-wrap > span {
        display: block;
        width: 100%;
        text-align: center;
    }
}

@media only screen and (max-width: 400px) {
/** contentwrap **/
    .crdc-wrap, 
    .page-node-type-page .crdc-main.has-sidebar .crdc-content, 
    .page-node-type-page .crdc-main .crdc-sidebar {
        padding: 20px;
    }
    .page-node-type-page .crdc-main.has-sidebar .crdc-wrap {
        padding: 0px;
    }
}

@media only screen and (max-width: 300px){
    /** show additional mob close */
    #crdc-slide-menu {
        width: 100%;
        right: -100%;
    }
    p#close {
        display: block;
    }
}