/*
	Theme Name: NHS-Gloucestershire-ICB
	Description: Custom theme for NHS Gloucestershire ICB public facing website
	Author: Rich Gwilt
	Author URI: http://www.activelabs.co.uk
	Version: 1.4

	The CSS, XHTML and Design are released under the GPL:
	http://www.opensource.org/licenses/gpl-license.php

    Incorporates the base style of Bootstrap 4: 
    https://getbootstrap.com/docs/4.6/getting-started/introduction/

    Styles an extension of NHS Style Guide: 
    https://service-manual.nhs.uk/
*/

html {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0)
}

body {
    background-color: #ffffff
}

.no-padding {
    padding: 0px;
}



/* Main content area
 *
 */

main {
    background: #ffffff;
    padding: 20px 0 0 0;
    margin-bottom: 100px;
}

main.homepage {
    margin-bottom: 0px;
}

@media only screen and (min-width:767px) {
    main {
        padding: 30px 0 0 0
    }
}


/* Header and navigation
 *
 * - Note that menu styles are in seperate sheet
 */

header {
    margin-top: 20px;
}

#header a img.one-glos-logo {
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
    margin-bottom: 30px;
}

#header a img.nhs-logo {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
    margin-bottom: 30px;
}

#header a img.nhs-brand {
    float: right;
    top: 60px;
}

#navbar {
    background: #005EB8;
}

/* Social icons */
.social-icons {
    line-height: 60px;
    margin: 0px;
    font-size: 1.25rem;
}
.social-icons li.list-inline-item {
    margin-right: 0px;
}
.social-icons li a {
    padding: 5px;
    border-radius: 2px;
}
.social-icons li a:hover {
    background: #003087;
}

/* Full width search bar */
#searchbar {
    background: #005EB8;
    padding: 0 0 10px;
}

#searchbar label {
    display: none;
}

#searchbar .large-search-box {
    height: 48px;
    width: 99%;
    letter-spacing: 1px;
    padding: 10px 10px 8px;
    border: 0px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 0;
    background: #FFFFFF;
    color: #231f20;
}
#searchbar .large-search-box::placeholder {
    color: #231f20;
}

#searchbar .large-search-button {
    position: absolute;
    right: 15px;
    top: 0;
    bottom: 0;
    height: 48px;
    font-size: 1.375rem;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #ffb81C;
    color: #231f20;
}

#searchbar .large-search-button:hover {
    background: #FFB81C;
}

/* Full width page header */
#headerbar {
    background: #005EB8;
    color: #fff;
    margin-bottom: 20px;
    padding: 50px 0 20px
}

#headerbar h1 {
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 15px
}


/* Footer
 *
 */

 footer {
    background-color: #005eb8;
    color: #FFFFFF;
    font-size: 1.1rem;
    padding-bottom: 50px;
}

footer a,
footer a:visited {
    color: #FFFFFF
}

footer a:hover {
    text-decoration: underline;
}

footer .footer-curve {
    width: 100%;
    height: 100px;
    border-radius: 0 0 50% 50% ;
    background-color: #FFFFFF;
}

footer .nhs-circles,
footer .nhs-circles-mobile {
    margin-top: -200px;
    width: 100%;
}

footer .footer-social {
    margin: 30px 0;
}

footer .footer-social li.list-inline-item:not(:last-child) {
    margin-right: 10px;
}

footer .footer-social i {
    font-size: 2.25rem;
}

footer .footer-links {}

footer .footer-copyright {
    margin: 20px 0 30px;
}

footer .footer-lower {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,.2);
}


/* Sidebar navigation and sidebar widgets
 *
 */
.sidebar {}

.sidebar .widget {
    margin-bottom: 40px;
}

.sidebar ul {
    padding: 0;
}

.sidebar ul li {
    list-style-type: none;
}

.sidebar h2, .sidebar h4 {
    border-bottom: 4px solid #dddddd;
    background: #005EB8;
    color: #ffffff;
    margin: 0 0 10px;
    padding: 10px;
}

.sidebar h2 a {
    color: #FFFFFF;
    text-decoration: none;
}
.sidebar h2 a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.sidebar h4 a {
    color: #425563;
    text-decoration: none;
}
.sidebar h4 a:hover {
    color: #000;
}

/* Sidebar navigation */
#sidebar-navigation {
    margin: 10px 0 0;
}

#sidebar-navigation h4 a {
    color: #FFF;
    text-decoration: none;
}

#sidebar-navigation h4 a:hover {
    color: #f0f4f5;
}

#sidebar-navigation ul li {
    border-left: 4px solid #ddd;
    background: #f0f4f5;
    margin-bottom: 5px;
}

#sidebar-navigation ul li.current_page_item {
    border-left: 4px solid #005EB8;
}

#sidebar-navigation ul li a {
    display: inline-block;
    line-height: 1.2;
    padding: 8px 10px;
    font-size: 0.875rem;
}

#sidebar-navigation ul li.current_page_item a {
    font-weight: bold;
}

#sidebar-navigation ul li.page_item_has_children>a::after {
    border-bottom: 4px solid transparent;
    border-left: 4px solid #0072c6;
    border-top: 4px solid transparent;
    content: '';
    display: inline-block;
    height: 0;
    margin-left: 10px;
    vertical-align: middle;
    width: 0;
}


/*
 News category page
 *
 */
.archive .postarea,
.search .postarea,
.category .postarea {
    margin-bottom: 100px;
}

.archive .postarea .post,
.search .postarea .post,
.category .postarea .post {
    background: #f0f4f5;
}

.archive .postarea .post h3,
.search .postarea .post h3,
.category .postarea .post h3 {
    margin-top: 0px;
}

.archive .postarea .post .post-thumbnail img,
.search .postarea .post .post-thumbnail img,
.category .postarea .post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.archive .postarea .post .post-thumbnail .video-overlay,
.search .postarea .post .post-thumbnail .video-overlay,
.category .postarea .post .post-thumbnail .video-overlay {
    position: absolute;
    top: 0px;
    left: 15px;
    padding: 15px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    opacity: 0.8;
}

.pagination {
    margin-top: 30px;
}

.pagination .page-item {
    list-style-type: none;
}

.pagination .page-item .page-link {
    border-radius: 0px;
    color: #002659;
    padding: 0.4rem 1.5rem;
    font-size: 1rem;
}

/*
 News article page
 *
 */
.single .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
}

.single .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single .image-wrapper {}

.single .image-wrapper img {
    width: 100%;
    height: auto;
}

/* Date style for category and article */
.post-meta>div {
    list-style-type: none;
    padding: 0px;
    margin: 20px 0;
}

.post-meta>div span {
    color: #fff;
    font-size: 0.875rem;
    text-decoration: none;
}

.post-meta>div span.icon {
    background: #005593;
    padding: 6px 10px;
}

.post-meta>div span.description {
    background: #0072C6;
    padding: 6px 10px;
}


/*
 Breadcrumbs
 *
 */
 .breadcrumb-container {
    background: none;
    color: #FFF;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 300;
    line-height: 1.4;
    margin: 0 0 5px 0;
    padding: 0
}
.breadcrumb-container ol {
    padding-left: 0px;
}

.breadcrumb-container li {
    margin-right: 5px !important;
}

.breadcrumb-container li a {
    color: #FFF;
    padding: 0px 5px 0 0 !important;
}

.breadcrumb-container li a:hover {
    color: #FFF;
    text-decoration: underline;
}


/*
 Cards
 *
 */
.card {
    border-radius: 0px;
    border: 0px;
    border-bottom: 5px solid #d8dde0;
}

.card:hover {
    border-bottom: 5px solid #aeb7bd;
}


/* Homepage styles
 *
 */
.home main {
    padding-top: 0px;
}

.home main .section {
    padding-top: 30px;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.home h2 {
    margin-top: 0px;
    margin-bottom: 30px;
}



/* Homepage Carousel
 *
 */
 .carousel-item {
    background: #005EB8;
}
.carousel-item-left {
    padding: 50px 30px 10px 80px;
}
.carousel-item.carousel-item-left {
    padding: 0px;
}
.carousel-item-right {
    overflow: hidden;
}
.carousel-inner {
    width: 100%;
}
.carousel-inner img {
    width: 100%;
    height: 100%;
}
.carousel-item .carousel-control-next,
.carousel-item .carousel-control-prev {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #000000;
    background: #FFFFFF;
    text-decoration: none;
    opacity: .75;
}
.carousel-item .carousel-control-next i,
.carousel-item .carousel-control-prev i {
    color: black;
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: -5px;
}
.carousel-item .carousel-control-next i {
    margin-left: 5px;
}
.carousel-item .carousel-control-prev i {
    margin-left: -5px;
}
.carousel-item .carousel-control-next {
    right: 10px;
    left: auto;
    top: 45% !important;
    bottom: auto;
}
.carousel-item .carousel-control-prev {
    left: 10px;
    right: 30px;
    top: 45% !important;
    bottom: auto;
}

.carousel-item .carousel-image img {
    max-height: 360px;
}

.carousel-item .carousel-title {
    font-size: 2.4em;
}

.carousel-item .carousel-control-pause {
    text-decoration: none;
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: auto;
    z-index: 1;
    display: flex;
    color: #000000;
    font-size: 0.8em;
    background: #FFFFFF;
    opacity: .95;
    border-radius: 5px;
    padding: 3px 6px;
}
.carousel-item .carousel-control-pause i {
    color: #000000;
    font-size: 1.6em;
}


/* Homepage Content areas */
.homepage-top {}

.homepage-middle {
    background: #f0f4f5;
}


/* Homepage Video Section */
.homepage-videos {
    padding: 20px 0;
}

.homepage-videos .video-item {
    background: #fff;
    padding: 10px;
}

.homepage-videos img.video-image {
    width: 100%;
}

.homepage-videos .video-overlay {
    position: absolute;
    padding: 18px;
    background: #000;
    color: #fff;
    font-size: 1.375rem;
    opacity: 0.8;
}

.homepage-videos .video-meta {
    font-size: 0.9rem;
}


/* Homepage cards */
.homepage-cards .row {
    margin-bottom: 25px;
}

.homepage-cards a:hover {
    text-decoration: none;
}

.homepage-cards .card {
    background: #005EB8;
    min-height: 130px;
    color: #fff;
}

.homepage-cards .card:hover {
    background: #4c6272;
}

.homepage-cards .card .card-body {
    padding: 20px;
}

.homepage-cards .card .card-body h4 {
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 1.125rem;
    margin-top: 0;
}

.homepage-cards .card .card-link {
    font-size: 1.5rem;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

/* Homepage Recent Posts */
.homepage .homepage-news .post {
    margin: 10px 0 20px;
}

.homepage .homepage-news .post img {
    width: 100%;
    height: auto;
}

.homepage .homepage-news .post h5 {
    font-weight: normal;
    letter-spacing: 1px;
}

.homepage .homepage-news .post .post-meta>div {
    margin: 4px 0 15px;
}

.homepage .homepage-news .post .post-meta>div span.icon,
.homepage .homepage-news .post .post-meta>div span.description {
    padding: 4px 10px;
}

.homepage .homepage-news .post .video-overlay {
    position: absolute;
    top: 0px;
    left: 15px;
    padding: 15px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Homepage Quick Links */
.homepage ul.quick-links {
    padding: 0;
    margin: 30px 0 0;
}

.homepage ul.quick-links li {
    list-style-type: none;
    padding: 20px;
    background: #f0f4f5;
    margin-bottom: 10px;
}


/* Homepage Social Media box */
.homepage .ctf-tweets .ctf-item {
    background: #f0f4f5;
    margin: 0px 0px 20px;
    border: 0px !important;
}

.homepage .ctf-tweets .ctf-item .ctf-context {
    margin-left: 5px !important;
    margin-bottom: 10px !important;
}

.homepage .ctf-tweets .ctf-item .ctf-author-box {
    margin-left: 60px !important;
}

.homepage .ctf-tweets .ctf-item .ctf-author-avatar {
    border-radius: 0px !important;
    width: 75px !important;
    height: 75px !important;
}

.homepage .ctf-tweets .ctf-item .ctf-author-avatar img {
    width: 75px !important;
    height: 75px !important;
}

.homepage .ctf-tweets .ctf-item .ctf-tweet-content {
    margin-left: 90px !important;
}


/*
 * Homepage-pre-footer
 *
 */

.home footer .footer-curve {
    /* Hidden by RG - 12/05 */
    /*background-color: #425563;*/
}
.homepage-pre-footer {

    /* Hidden by RG - 12/05 */
    display:none;

    background: #425563;
    color: #fff;
    text-align: center;
}

.homepage-pre-footer h2 {
    margin-bottom: 30px;
}

.homepage-pre-footer a.btn.btn-lg {
    padding: 10px 30px !important;
    color: #fff;
    text-decoration: none;
}


/*
 * On this page icon
 *
 */

.on-this-page h3 {
    margin-top: 0px !important;
}

.on-this-page hr {
    margin: 60px 0;
}

.on-this-page ul {
    width: 75%;
    padding-left: 0px !important;
    margin-top: 30px;
}

.on-this-page ul li {
    list-style-type: none;
}

.on-this-page ul li a {
    background: #005EB8;
    color: #fff;
    display: block;
    padding: 14px 26px;
    position: relative;
    text-decoration: none;
    width: 100%;
    letter-spacing: 1px;
}

.on-this-page ul li a:hover {
    background: #003D78;
}

.on-this-page ul li a i {
    line-height: 28px;
    float: right;
}


/*
 * Modals
 *
 */

.modal-content {
    border: 0px;
    border-radius: 0px;
}

.modal-content iframe {
    border: 0px;
}


/*
 * To the top button
 *
 */

.back-to-top {
    position: fixed;
    z-index: 9999;
    bottom: 20px;
    right: 20px;
    text-decoration: none;
    color: #FFF;
    background-color: #719AC0;
    font-size: 1.125rem;
    padding: 15px 18px 15px 20px;
    display: none;
}

.back-to-top:hover,
.back-to-top:focus {
    text-decoration: none;
    color: #FFF;
    background-color: #0068C5;
}