/*font to verdana*/
a, .campl-branding-title, .campl-topic, .campl-global-navigation-tertiary, .campl-local-navigation, .campl-vertical-breadcrumb-navigation
    {font-family: verdana, sans-serif;}
.campl-primary-cta
    {font-family: verdana, sans-serif;}
    
/*Remove 'Quicklinks' and Cambridge University search box from header*/
.campl-quicklinks{
    display: none;
}

.campl-site-search{
    display: none;
}

/*Prevent long links overflowing*/
a {
    overflow-wrap: break-word;
}

/*Images floated right then full width on mobile*/
.img-float-r {
    float: right;
    width: 42%;
    margin-left: 3%;
    margin-bottom: 0.5em;
}

@media (max-width: 425px) {
    .img-float-r {
        width: 100%;
    }
}

/*CSCP homepage widgets*/

#block-block-254 {
    float: right;
    clear: right;
    margin: 0 12px 9px 0;
    z-index: 1;
}

#block-block-254>div>div {
    line-height:1;
}

iframe#dateshort {
    max-height: 38px;
    border: 0;
}

a#datelink {
    font-size: 12px;
    text-decoration: underline;
    font-style: italic;
    text-underline-offset: 2px;
}

a#datelink:hover,
a#datelink:focus-visible {
    text-decoration-thickness: 2px;
}

iframe#proverbs {
    max-width: 100%;
    height: 400px;
    border: 0;
}

/*CSCP homepage 'focus on' buttons tidy up and hover effect*/
.campl-focus-teaser {
    transition: all 0.25s ease;
    }
.campl-focus-teaser:hover {    
    transform: translate(-2px, -2px);
    background: #21787f;
}
.campl-focus-teaser h3.campl-teaser-title {
    font-size: 14px;
    line-height: 20px;
}

@media only screen and (min-width: 767px){
.campl-focus-teaser {
    max-height: 75px;
}
}

/*Generic green/teal button*/
.green-button {
    background: #1e7680;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.3);
    padding: 5px 10px 5px 10px;
    margin: 6px 0;
    display: inline-block;
    transition: background-color .25s ease-in-out, box-shadow .25s ease-in-out;
}
.green-button:visited, .green-button:focus{
    color: #ffffff;
}
.green-button:hover{
    color: #ffffff;
    text-decoration:none;
    background:#21828D;
}
.green-button:active{
     color: #ffffff;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.3);
}
/* the colour of this button matches Book 1 */
.red-button{
    background: #a51137;
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    line-height: 40px;
    box-shadow: 2px 2px 2px 0px rgba(0,0,0,0.3);
    padding: 5px 10px 5px 10px;
    transition: background-color .25s ease-in-out, box-shadow .25s ease-in-out;
}
.red-button:visited, .redB1-button:focus{
    color: #ffffff;
}
.red-button:hover{
    color: #ffffff;
    text-decoration:none;
    background:#6c112a;
}
.red-button:active{
     color: #ffffff;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.3);
}

/*Top navigation bar - fix glitch where hovering over a 1st line button makes a 2nd line one jump over to the right */
@media only screen and (min-width: 768px){
    .js .campl-local-navigation li {
	    height: 40px;
    }
}

/*Drop-down menus with secondary links on mobile e.g. 'Menu > Latin > WJEC certificates'*/
@media only screen and (max-width: 767px){
/*.js .campl-local-navigation .menu-mlid-472872*/
.js .campl-local-navigation .campl-sub{
	display: block;
	background-color: #106470;
	padding-left: 7px;
	margin-bottom: 0px;
  }
.campl-fwd-btn{
    right: 5px;
  }
}

/*FAQ accordion*/
.faq-tab {
  position: relative;
  margin-bottom: 1px;
  width: 100%;
  color: #fff;
  overflow: hidden;
}
.faq-tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.faq-tab label {
  position: relative;
  display: block;
  background: #1e7680;
  font-size: 10pt;
  font-family: verdana, sans-serif;
  padding: 15px 40px 15px 15px;
  margin: 0px;
  cursor: pointer;
}
.faq-tab-content {
  max-height: 0;
  overflow: hidden;
  color: #000000;
  font-family: verdana, sans-serif;
  font-size: 12px;
  background: #ffffff;
  line-height: 18px;
  -webkit-transition: max-height 0.35s;
  -o-transition: max-height 0.35s;
  transition: max-height 0.35s;
}
.faq-tab-content p {
  margin: 1em;
}
.faq-tab-content li {
    margin-left: 30px;
}
/* :checked */
.faq-tab input:checked ~ .faq-tab-content {
  max-height: 100vh;
}
/* Icon */
.faq-tab label::after {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  width: 3em;
  height: 3em;
  line-height: 3;
  text-align: center;
  -webkit-transition: all 0.35s;
  -o-transition: all 0.35s;
  transition: all 0.35s;
}
.faq-tab input[type="checkbox"] + label::after {
  content: "\2BC8";
    font-family: sans-serif;
  margin-top: 6px;
}

.faq-tab input[type="checkbox"]:checked + label::after {
  transform: rotate(90deg);
}

/*FAQ accordion*/
.accordion-tab {
  position: relative;
  margin-bottom: 1px;
  width: 100%;
  color: #fff;
  overflow: hidden;
}
.accordion-tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.accordion-tab label {
  position: relative;
  display: block;
  background: #1e7680;
  font-size: 10pt;
  font-family: verdana, sans-serif;
  padding: 15px 40px 15px 15px;
  margin: 0px;
  cursor: pointer;
}
.accordion-tab-content {
  max-height: 0;
  overflow: hidden;
  color: #000000;
  font-family: verdana, sans-serif;
  font-size: 12px;
  background: #ffffff;
  line-height: 18px;
  -webkit-transition: max-height 0.4s ease-in-out;
  -o-transition: max-height 0.4s ease-in-out;
  transition: max-height 0.4s ease-in-out;
  border-width: 0 2px 2px 2px;
  border-style: solid;
  border-color: #1e7680;
}
.accordion-tab-content p {
  margin: 1em;
}
.accordion-tab-content li {
    margin-left: 30px;
}
/* :checked */
.accordion-tab input:checked ~ .accordion-tab-content {
  max-height: 100vh;
}
/* Icon */
.accordion-tab label::after {
  position: absolute;
  right: 0;
  top: 0;
  display: block;
  width: 3em;
  height: 3em;
  line-height: 3;
  text-align: center;
  -webkit-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}
.accordion-tab input[type="checkbox"] + label::after {
  content: "\2BC8";
  margin-top: 5px;
}

.accordion-tab input[type="checkbox"]:checked + label::after {
  transform: rotate(90deg);
}

.teacherguidebutton {
    width: 105px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: 4px;
}

/*'About CSCP' page*/
.page-node-592 #Aims, .page-node-592 #Current-Situation, .page-node-592 #Background {
    color: #106470;
}

.page-node-592 #Aims:hover, .page-node-592 #Current-Situation:hover, .page-node-592 #Background:hover {
    color: #106470;
    text-decoration: none;
}
}

/* COVID-19 menu link border
.campl-local-navigation-container .campl-unstyled-list .menu-mlid-487545 > a:nth-child(1) {
    border: 3px solid #28828a;
    padding: 8px 14px 7px;
    margin-top: 1px;
}*/

/* COVID-19 (NA) menu link border
.campl-local-navigation-container .campl-unstyled-list .menu-mlid-487547 > a:nth-child(1) {
    border: 3px solid #28828a;
    padding: 8px 14px 7px;
    margin-top: 1px;
}*/

/* Lining up right hand sidebar on homepage with carousel */
.campl-recessed-secondary-content{
    margin-top: -36.7%;
}

/*BLM Statement page*/

.page-node-209192 .campl-content-container {
    padding: 20px 30px;
    font-size: 11pt;
    line-height: 1.6em;
}

.page-node-209192 .campl-content-container li {
    line-height: 17.5pt;
    display: list-item;
    padding-bottom: 10px;
}

/*Responsive button grid*/
.resp-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    justify-items: center;
    row-gap: 1rem;
    margin-top: 30px;
}

.resp-buttons-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    justify-items: center;
    row-gap: 1rem;
    margin-top: 30px;
}

/*Amarantus*/
/*Wrap links on Amazon shop links page (avoids overflow on moble)*/
.page-node-210196 #block-system-main p a {
    word-break: break-all;
}

/*Padding below sidebar image on mobile*/
.page-node-210196 .region-sidebar .campl-content-container {
    padding-bottom: 20px;
}

/*Date widgets page*/
iframe#datecalc, iframe#datetoday {
    width: 100%;
    height: 500px;
}

iframe#datetoday {
    border-top: 1px solid #106470;
}

#philus {
    position: relative;
}

#philus::after {
    width: 100%;
    height: 12px;
    display: block;
    content: '';
    position: absolute;
    bottom: -1px;
    background: rgb(243, 243, 243);
    background: linear-gradient(0deg, rgba(243, 243, 243, 1) 10%, rgba(0, 212, 255, 0) 100%);
}