/*
Theme Name: Nightingale Child - NHS Scotland
Template: nightingale
Author: SHOW
Description: Theme for NHS SCOTLAND organisations based on the NHS Leadership Academy Nightingale WordPress Theme. Highly customisable for all types of NHS organisations, from campaign sites to primary care providers to arms length bodies to community practices. This can also be used for non NHS organisations.
Tags: education,right-sidebar,custom-menu,footer-widgets,threaded-comments,theme-options
Version: 1.0.0.17
Updated: 2022-07-25 14:05:03

*/

:root {
    --nhsscotland-darkblue: #003087;
    --nhsscotland-lightblue: #0492D9;
    --white: #ffffff;
    --highlight-yellow: #fadb00;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Frutiger W01,Arial,Sans-serif;
}
body{
    background: #f0f4f5;
}
/*Hides the reCAPTCHA badge on the contact us page. ID must match page id.*/
body:not(.page-id-2569) .grecaptcha-badge {
    opacity: 0;
    visibility: hidden;
}

/*Hides the Breadcrumbs trail on the Home Page.*/
body.home .nhsuk-breadcrumb {
	display: none;
}

/*Hides the Entry Title on the Home Page.*/
body.home .entry-title {
	display: none;
}
.post, .page {
    margin: 0 0 0;
}
a:hover{
    text-decoration: none;
}
/*Sets the logo width to 75px.*/
.custom-logo {
	width: 180px;
}

#primary h1 {
	color: var(--nhsscotland-darkblue);
}

.entry-content h2, h3, h4, h5, h6 {
	color: var(--nhsscotland-darkblue);
}

.page-colour--dark-blue .nhsuk-header, .page-colour--dark-blue .nhsuk-header--white .nhsuk-search__submit, .page-colour--dark-blue #secondary section h2.widget-title, .page-colour--dark-blue .nhsuk-panel-with-label__label, .page-colour--dark-blue #secondary section #wp-calendar caption, .page-colour--dark-blue #secondary section h2.widget-title, .page-colour--dark-blue .nhsuk-panel-with-label__label, .page-colour--dark-blue #secondary section #wp-calendar caption, .page-colour--dark-blue .nhsuk-do-dont-list__label, .page-colour--dark-blue .nhsuk-care-card.is-style-default .nhsuk-care-card__heading-container, .page-colour--dark-blue .nhsuk-hero--image-description .nhsuk-hero-content, .page-colour--dark-blue .nhsuk-panel-with-label__label, .page-colour--dark-blue .nhsuk-panel.is-style-panel-with-label h3, .page-colour--dark-blue .nhsuk-panel.is-style-panel-with-label h3 .rich-text, #content .page-style--dark-blue .nhsuk-header, #content .page-style--dark-blue .nhsuk-header--white .nhsuk-search__submit, #content .page-style--dark-blue #secondary section h2.widget-title, #content .page-style--dark-blue .nhsuk-panel-with-label__label, #content .page-style--dark-blue #secondary section #wp-calendar caption, #content .page-style--dark-blue #secondary section h2.widget-title, #content .page-style--dark-blue .nhsuk-panel-with-label__label, #content .page-style--dark-blue #secondary section #wp-calendar caption, #content .page-style--dark-blue .nhsuk-do-dont-list__label, #content .page-style--dark-blue .nhsuk-care-card.is-style-default .nhsuk-care-card__heading-container, #content .page-style--dark-blue .nhsuk-hero--image-description .nhsuk-hero-content, #content .page-style--dark-blue .nhsuk-panel-with-label__label, #content .page-style--dark-blue .nhsuk-panel.is-style-panel-with-label h3, #content .page-style--dark-blue .nhsuk-panel.is-style-panel-with-label h3 .rich-text {
    background-color: var(--darkblue);
    background: var(--nhsscotland-darkblue);
    color: var(--white);
}
.nhsuk-panel-with-label__label{
    color: #fff;
}
.nhsuk-header__navigation-link:active:visited, .nhsuk-header__navigation-link:focus:visited {
    color: var(--highlight-yellow);
}

.wp-block-nhsblocks-heroblock {
	margin: 0;
}
.nhsuk-hero--image-description .nhsuk-hero-content p{
    font-size: 1.5rem;
}
.partnerlogo {
	opacity: 0.5;
	filter: grayscale(1);
	transition: 0.5s ease-in-out;
}

.partnerlogo:hover {
	opacity: 1;
	filter: grayscale(0);
}
.rows {
    display: flex;
    flex-wrap: wrap;
    margin: -15px; /* Adjust for column padding */
}



.page-colour--dark-blue .nhsuk-header, .page-colour--dark-blue .nhsuk-header--white .nhsuk-search__submit, .page-colour--dark-blue #secondary section h2.widget-title, .page-colour--dark-blue .nhsuk-panel-with-label__label, .page-colour--dark-blue #secondary section #wp-calendar caption, .page-colour--dark-blue #secondary section h2.widget-title, .page-colour--dark-blue .nhsuk-panel-with-label__label, .page-colour--dark-blue #secondary section #wp-calendar caption, .page-colour--dark-blue .nhsuk-do-dont-list__label, .page-colour--dark-blue .nhsuk-care-card.is-style-default .nhsuk-care-card__heading-container, .page-colour--dark-blue .nhsuk-hero--image-description .nhsuk-hero-content, .page-colour--dark-blue .nhsuk-panel-with-label__label, .page-colour--dark-blue .nhsuk-panel.is-style-panel-with-label h3, .page-colour--dark-blue .nhsuk-panel.is-style-panel-with-label h3 .rich-text, #content .page-style--dark-blue .nhsuk-header, #content .page-style--dark-blue .nhsuk-header--white .nhsuk-search__submit, #content .page-style--dark-blue #secondary section h2.widget-title, #content .page-style--dark-blue .nhsuk-panel-with-label__label, #content .page-style--dark-blue #secondary section #wp-calendar caption, #content .page-style--dark-blue #secondary section h2.widget-title, #content .page-style--dark-blue .nhsuk-panel-with-label__label, #content .page-style--dark-blue #secondary section #wp-calendar caption, #content .page-style--dark-blue .nhsuk-do-dont-list__label, #content .page-style--dark-blue .nhsuk-care-card.is-style-default .nhsuk-care-card__heading-container, #content .page-style--dark-blue .nhsuk-hero--image-description .nhsuk-hero-content, #content .page-style--dark-blue .nhsuk-panel-with-label__label, #content .page-style--dark-blue .nhsuk-panel.is-style-panel-with-label h3, #content .page-style--dark-blue .nhsuk-panel.is-style-panel-with-label h3 .rich-text {
    background-color: var(--darkblue);
    background: var(--nhsscotland-darkblue);
    color: var(--white);
}
#latest_news .nhsuk-card--feature{
	border-radius:20px;
    background: var(--nhsscotland-darkblue);
}
#latest_news .nhsuk-card--feature h2{
    background: #fff;
    color: var(--nhsscotland-darkblue);;
}
#latest_news .nhsuk-card--feature a,
#latest_news .nhsuk-card--feature a:visited,
#latest_news .nhsuk-card--feature p{
    color: #fff;
}
#latest_news .nhsuk-action-link__link .nhsuk-icon__arrow-right-circle{
    fill: #fff;
}
.nhsuk-hero--image-description .nhsuk-hero-content{
    border-radius: 20px;

}
.nhsuk-header__search-form {
    height: AUTO;
}

.nhs-home-boxes h3,
.nhs-home-boxes p{
    color: #fff;

}
.ui-datepicker-calendar {
    display: none;
    }
.nhs-home-boxes .nhsuk-panel-with-label{
    border-radius: 20px;
    text-align: center;
    padding: 15px 25px !important;
    transition: all ease-in 0.3s;
    
}
.archives-list{
    display: none;
}
.archives-list-heading{
    cursor: pointer;
    position: relative;
}
.archives-list-heading:after{
    content: '';
    display: inline-block;
    height: 32px;
    width: 32px;
    position: relative;
    top: 6px;
    left: 10px;
    background: transparent url("data:image/svg+xml,%3Csvg class='nhsuk-icon nhsuk-icon__plus' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' aria-hidden='true'%3E%3Ccircle cx='12' cy='12' r='10' fill='003087'%3E%3C/circle%3E%3Cpath fill='003087' stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M12 8v8M8 12h8'%3E%3C/path%3E%3C/svg%3E%0A") left -2px center no-repeat;
}
.archives-list-heading.active:after{
    background: url("data:image/svg+xml,%3Csvg class='nhsuk-icon nhsuk-icon__minus' xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' aria-hidden='true'%3E%3Ccircle cx='12' cy='12' r='10' fill='003087'%3E%3C/circle%3E%3Cpath fill='003087' stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M8 12h8'%3E%3C/path%3E%3C/svg%3E%0A") left -2px center no-repeat;
}
.search-results .nhsuk-postslisting .nhsuk-card--clickable{
    display: flex;
}
.search-images{
    flex: 1 1 12em;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-images img {
    width: auto;
    margin: 0 auto;
}
.search-images + .nhsuk-card__content{
    flex: 1 1 80em;
}
.nhs-home-boxes .nhsuk-panel-with-label > div{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.nhs-home-boxes .nhsuk-panel-with-label h3{
    margin-bottom: 0;
}
.nhs-home-boxes a:hover .nhsuk-panel-with-label{
    transform: scale(1.03);
}
.nhs-home-boxes .wp-block-nhsblocks-dashpanel {
    max-height: none;
}
.nhs-home-boxes .nhsuk-dashboard .nhsuk-panel-group__item {
    overflow: visible;
}
.nhs-home-boxes .nhsuk-dashboard .nhsuk-panel-group__item p{
    margin-bottom: 0;
}
.logo_list {
    justify-content: space-between;
}
.logo_list .columns-block {
    width: 19%;
    margin-bottom: 2%;
    text-align: center;
    padding: 5px 0;
}

.logo_list::after {
    content: '';
    width: 19%;
}
.nhsuk-footer{
    background-color: var(--nhsscotland-darkblue);
}
.nhsuk-footer__list {
    float: none;
    padding-bottom: 0;
    width: 100%;
    text-align: center;
}
.nhsuk-footer__list li{
    float: none;
    display: inline-block;
    margin: 0 15px;
}
.nhsuk-footer__list li a{
    color: #fff;
    text-decoration: none;
}
.nhsuk-footer__list li a:hover{
    color: #f9f9f9;
}
.nhsuk-footer__list-item-link:visited{
     color: #fff;
}
.nhsuk-footer__copyright {
    float: none;
    text-align: center;
    width: 100%;
    color: #f6f6f6;
    font-size: 14px;
    margin: 10px 0 0;
}
#nhsuk-partners-alert .nhsuk-width-container{
    
}
.slick-slide img{
    height:70px;
    margin: 0 auto;
   
}
.slick-slide a{
    opacity: 0.5;
    filter: grayscale(1);
    transition: 0.5s ease-in-out;
}
.slick-slide a:hover{
    opacity: 1;
    filter: grayscale(0);
}
.nhs-ohi-coloronly {
    display: flex;
    min-height: 210px;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 30px;
    height: 100%;
    border-radius: 12px;
}
#menu-ohi .sub-menu{
    display: none;
    padding-left: 15px;
}
#menu-ohi .current-page-ancestor .sub-menu,
#menu-ohi .current_page_item .sub-menu {
    display: block;
}
.nhs-ohi-img{
    height: 190px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background-size: cover;
    background-repeat: no-repeat;
}
.nhs-ohi-boxes .nhsuk-panel-with-label{
        border-radius: 12px;
        padding-bottom: 0 !important;
        display: flex;
        flex-direction: column;
        
}
.nhs-ohi-boxes .nhsuk-promo__link-wrapper{
    transition: all ease-in 0.3s;
}
.nhs-ohi-boxes .nhsuk-promo__link-wrapper:hover{
    transform: scale(1.05);
}
.cky-consent-container .cky-consent-bar{
    padding: 2px 25px !important;
}
.wp-block-latest-posts__post-date {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 20px;
}
.nhs-ohi-boxes .nhs-ohi-img + div{
        padding: 10px 25%;
        display: flex;
        justify-content: center;
        flex-grow: 1;
        align-items: center;

}
.nhs-ohi-boxes .nhsuk-dashboard .nhsuk-grid-column-one-half{
    max-height: unset;
    overflow: visible;
}
.nhs-ohi-boxes .nhs-ohi-img + div h3,
.nhs-ohi-coloronly h3{
    color: #fff;
    text-align: center;
    margin-bottom: 0;
}
#sd_library_searchform fieldset{
    border: none;
    padding: 0;
}
#sd_library_searchform{
    padding: 0;
    margin-bottom: 12px;
    margin-top: 10px;
}
#sd_library_searchform .form-control{
    appearance: none;
    border: 2px solid #4c6272;
    border-radius: 6px;
    box-sizing: border-box;
    height: 35px;
    font-size: 15px;
    margin-bottom: 10px;
    margin-top: 0;
    padding: 8px;
    width: 90%;
}
.nhs-news-page .nhsuk-grid-column-one-third {
    float: none;
    width:100%;
    padding: 0;
}
.nhsuk-list--border li p{
    margin-bottom: 0;
}
.nhsuk-list--border li{
    padding: 0px 0 5px;
}
.nhsuk-list{
    margin-bottom: 15px;
}
.nhsuk-card__content{
    padding-bottom: 16px;
}
.sidebar-area-regions section {
    border-top: 2px solid var(--nhsscotland-darkblue);
    
}
.widget_subpages li ul{
    list-style-type: none;

}
.widget_subpages li ul li a{
    border-left: none !important;
}
input[type="month"]::-webkit-calendar-picker-indicator {
background: transparent;
bottom: 0;
color: transparent; cursor: pointer;
height: auto;
left: 0;
position: absolute;
right: 0; top: 0;
width: auto;
}
 .widget-area  h2 {
        font-size: 1.5rem;
        line-height: 1.2;
        margin-top: 25px;
    }
.ohi-sidebar .widget-area  h2{
    margin-top: 5px;
}
.nhsuk-pagination-item--next .nhsuk-icon,
.nhsuk-pagination-item--previous .nhsuk-icon{
    position: absolute;
    top: 0;
}
.widget-area  ul, .widget-area  ol,.widget-area {
        list-style: none;
        margin-bottom: 16px;
        padding-left: 0;
        margin-left: 0;
}
    .widget-area  ul>li {
        border-bottom: 1px solid #aeb7bd;
    }
    .widget-area  ul li, .widget-area  ul h4, .widget-area  ol li, .widget-area  ol h4 {
        font-size: 1rem;
        line-height: 1.5;
    }

.nhsuk-card__heading--feature, .nhsuk-card.is-style-panel-with-label .nhsuk-card__content h2{
    background: var(--nhsscotland-darkblue);
}
.nhsuk-promo__link-wrapper p img{
    width:100px;
}
.page-colour--dark-blue #secondary section ul>li>ul>li>a, #content .page-style--dark-blue #secondary section ul>li>ul>li>a{
    border-left:none;
    margin-bottom:5px !important;
}

#secondary section ul>li>ul>li, #secondary section ul>li>ul>li>ul>li{
    margin: 5px 0 !important;
}

.widget-area ul li, #secondary section ul>li  {
    border-bottom: none;
}

.widget-area ul li, .widget-area ul h4, .widget-area ol li{
    margin: 5px 0 !important;
}

#subpages-widget-2 ul li > ul li a {
    border-left: none;
    margin-bottom: 5px !important;
    padding: 0 0 0 8px;
    margin: 8px 0 0 8px;
}

#subpages-widget-2 ul li a {
color: #005eb8 !important;
}

#subpages-widget-2 ul li a:hover, ul li a:active  {
color: #7c2855 !important;}


a img, div .nhsuk-card{
    border-radius: 8px;
}


@media (min-width: 40.0625em){
    h1, .nhsuk-heading-xl {
        font-size: 2.5rem;
        line-height: 1.16667;
    }
    .nhsuk-footer {
        padding-bottom: 22px;
         padding-top: 22px;
    }
   }
@media (min-width: 23.4375em){
.nhsuk-hero--image-description .nhsuk-hero-content {
    width: 40%;
    max-width: 100%;
}
}
@media (max-width: 1030px){
.logo_list::after {
    width: 49%;
}
}
@media (max-width: 900px){
.logo_list .columns-block, .logo_list::after {
    width: 32.5%;
}
}
@media (max-width: 768px){
    .search-results .nhsuk-postslisting .nhsuk-card--clickable{
        display: block;
    }
.nhsuk-hero--image-description .nhsuk-hero-content {
    width: 85%;
}
.nhs-home-boxes .nhsuk-panel-with-label{
    padding: 30px;
}
.nhsuk-grid-row{
    margin: 0;
}

.logo_list .columns-block, .logo_list::after {
    width: 48.5%;
}
.logo_list{
    margin: 0;
    padding: 0 15px;
}
.nhsuk-grid-column-two-thirds.contentright{
    padding: 0;
}
body:not(.home) .nhsuk-hero--image .nhsuk-hero__overlay,
body:not(.home)  .nhsuk-hero--image{
    min-height: 150px;
}
.library-list .nhsuk-grid-row{
    display: flex;
    flex-direction: column-reverse;
}
}