/*
	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: var(--icb-page-bg)
}

.no-padding {
    padding: 0px;
}



/* Main content area
 *
 */

main {
    background: var(--icb-page-bg);
    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.nhs-logo {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-top: 10px;
    margin-bottom: 30px;
}

#navbar {
    background: var(--icb-nav-bg);
}

/* 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: var(--icb-social-hover-bg);
}

/* Full width search bar */
#searchbar {
    background: var(--icb-header-bg);
    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: var(--icb-search-input-bg);
    color: var(--icb-search-input-text);
}
#searchbar .large-search-box::placeholder {
    color: var(--icb-search-input-text);
}

#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: var(--icb-search-button-bg);
    color: var(--icb-search-button-text);
}

#searchbar .large-search-button:hover {
    background: var(--icb-search-button-hover-bg);
    color: var(--icb-search-button-hover-text);
}

/* Full width page header */
#headerbar {
    background: var(--icb-headerbar-bg);
    color: var(--icb-headerbar-text);
    margin-bottom: 20px;
    padding: 50px 0 20px
}

#headerbar h1 {
    font-weight: normal;
    letter-spacing: 1px;
    margin-top: 15px
}


/* Footer
 *
 */

/* Line art */
.footer-line-art {
    margin: 40px 0 20px 0;
    line-height: 0;
}

.footer-line-art img {
    display: block;
    width: 100%;
    height: auto;
}

footer {
    background-color: var(--icb-footer-bg);
    border-top: 4px solid var(--icb-footer-border);
    color: var(--icb-footer-text);
    font-size: 1.1rem;
    padding: 30px 0 50px;
}

footer a,
footer a:visited {
    color: var(--icb-footer-link);
}

footer a:hover {
    color: var(--icb-footer-link-hover);
    text-decoration: underline;
}

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 var(--icb-footer-divider);
}


/* 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 var(--icb-sidebar-heading-border);
    background: var(--icb-sidebar-heading-bg);
    color: var(--icb-sidebar-heading-text);
    margin: 0 0 10px;
    padding: 10px;
}

.sidebar h2 a {
    color: var(--icb-sidebar-heading-text);
    text-decoration: none;
}
.sidebar h2 a:hover {
    color: var(--icb-sidebar-heading-text);
    text-decoration: underline;
}

.sidebar h4 a {
    color: var(--icb-sidebar-heading-link);
    text-decoration: none;
}
.sidebar h4 a:hover {
    color: var(--icb-sidebar-heading-link-hover);
}

/* Sidebar navigation */
#sidebar-navigation {
    margin: 10px 0 0;
}

#sidebar-navigation h4 a {
    color: var(--icb-sidebar-heading-text);
    text-decoration: none;
}

#sidebar-navigation h4 a:hover {
    color: var(--icb-sidebar-heading-widget-link-hover);
}

#sidebar-navigation ul li {
    border-left: 4px solid var(--icb-sidebar-item-border);
    background: var(--icb-sidebar-item-bg);
    margin-bottom: 5px;
}

#sidebar-navigation ul li.current_page_item {
    border-left: 4px solid var(--icb-sidebar-item-active-border);
}

#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 var(--icb-sidebar-item-arrow);
    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: var(--icb-post-card-bg);
}

.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: var(--icb-overlay-bg);
    color: var(--icb-overlay-text);
    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: var(--icb-pagination-link);
    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: var(--icb-post-meta-text);
    font-size: 0.875rem;
    text-decoration: none;
}

.post-meta>div span.icon {
    background: var(--icb-post-meta-icon-bg);
    padding: 6px 10px;
}

.post-meta>div span.description {
    background: var(--icb-post-meta-date-bg);
    color: var(--icb-post-meta-date-text);
    padding: 6px 10px;
}


/*
 Breadcrumbs
 *
 */
 .breadcrumb-container {
    background: none;
    color: var(--icb-breadcrumb-text);
    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: var(--icb-breadcrumb-link);
    padding: 0px 5px 0 0 !important;
}

.breadcrumb-container li a:hover {
    color: var(--icb-breadcrumb-link-hover);
    text-decoration: underline;
}


/*
 Cards
 *
 */
.card {
    border-radius: 0px;
    border: 0px;
    border-bottom: 5px solid var(--icb-card-border);
}

.card:hover {
    border-bottom: 5px solid var(--icb-card-border-hover);
}


/* 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: var(--icb-carousel-bg);
}
.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: var(--icb-carousel-control-text);
    background: var(--icb-carousel-control-bg);
    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: var(--icb-carousel-control-text);
    font-size: 0.8em;
    background: var(--icb-carousel-control-bg);
    opacity: .95;
    border-radius: 5px;
    padding: 3px 6px;
}
.carousel-item .carousel-control-pause i {
    color: var(--icb-carousel-control-text);
    font-size: 1.6em;
}


/* Homepage Content areas */
.homepage-top {}

.homepage-middle {
    background: var(--icb-homepage-section-bg);
}


/* Homepage Video Section */
.homepage-videos {
    padding: 20px 0;
}

.homepage-videos .video-item {
    background: var(--icb-card-bg);
    padding: 10px;
}

.homepage-videos img.video-image {
    width: 100%;
}

.homepage-videos .video-overlay {
    position: absolute;
    padding: 18px;
    background: var(--icb-overlay-bg);
    color: var(--icb-overlay-text);
    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: var(--icb-link-card-bg);
    min-height: 130px;
    color: var(--icb-link-card-text);
}

.homepage-cards .card:hover {
    background: var(--icb-link-card-hover-bg);
}

.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: var(--icb-overlay-bg);
    color: var(--icb-overlay-text);
    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: var(--icb-homepage-section-bg);
    margin-bottom: 10px;
}


/*
 * Homepage-pre-footer
 *
 */

.homepage-pre-footer {

    /* Hidden by RG - 12/05 */
    display:none;

    background: var(--icb-pre-footer-bg);
    color: var(--icb-pre-footer-text);
    text-align: center;
}

.homepage-pre-footer h2 {
    margin-bottom: 30px;
}

.homepage-pre-footer a.btn.btn-lg {
    padding: 10px 30px !important;
    color: var(--icb-pre-footer-text);
    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: var(--icb-button-bg);
    color: var(--icb-button-text);
    display: block;
    padding: 14px 26px;
    position: relative;
    text-decoration: none;
    width: 100%;
    letter-spacing: 1px;
}

.on-this-page ul li a:hover {
    background: var(--icb-button-hover-bg);
}

.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: var(--icb-back-to-top-text);
    background-color: var(--icb-back-to-top-bg);
    font-size: 1.125rem;
    padding: 15px 18px 15px 20px;
    display: none;
}

.back-to-top:hover,
.back-to-top:focus {
    text-decoration: none;
    color: var(--icb-back-to-top-text);
    background-color: var(--icb-back-to-top-hover-bg);
}