/*
Theme Name: TENET 2020 (ex Plone)
Theme URI: https://tenet.ac.za
Description: Custom WordPress theme for TENET, ex Juizi & migrated from Plone 5.2.
Version: 2.0.20
Author: TENET
Author URI: https://tenet.ac.za
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tenet2020-ex-plone
*/

@charset "utf-8";

:root {
    --tenet-red: #da241c;
    --tenet-complement: #1ca7da;
}

/*
 * Base typography & links
 */
body {
    font-family: 'Karla', Verdana, Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4 {
    font-weight: 300;
    font-family: 'Roboto Condensed', 'Arial Narrow', Tahoma, sans-serif;
}

a {
    color: var(--tenet-complement);
    text-decoration: none;
}

a:hover {
    color: #0d8ac6;
    text-decoration: underline;
}

/*
 * Utilities & shared UI
 */
.btn {
    border-radius: 0;
}

.btn-primary {
    background-color: var(--tenet-complement);
    border-color: var(--tenet-complement);
}

.case-preserve {
    text-transform: initial !important;
}

.discreet {
    font-size: 85%;
}

hr.white {
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.clr {
    clear: both;
}

.alert p:last-of-type {
    margin-bottom: 0;
}

/*
 * Header & navigation
 */
#headContainer {
    position: relative;
}

#aboveHead {
    color: #fff;
    background: #051d33;
    padding: 5px 0;
    /* Remove contact info (Tenet Technology calls) */
    display: none;
}

#aboveHead a,
#aboveHead a:hover,
#aboveHead a:active {
    color: #fff;
    text-decoration: none;
}

.navContainer {
    background: rgba(23, 25, 28, 0.7);
    transition: all 0.25s;
    font-family: 'Roboto Condensed', 'Arial Narrow', Tahoma, sans-serif;
    position: relative;
    z-index: 20;
}

.navContainer.expanded {
    background: rgba(23, 25, 28, 0.9);
    transition: all 0.25s;
}

.navbar {
    padding: 0;
}

.navbar-nav .nav-item>.nav-link {
    font-size: 18px;
    margin: 0 20px;
    padding: 15px 0;
    border-bottom: 6px transparent solid;
    text-transform: uppercase;
}

.dropdown-menu {
    margin-top: -7px;
}

/*
.navbar-nav .nav-item.current_page_item .nav-link {
    border-bottom: 6px #be001a solid;
}
*/

.navbar-toggler {
    margin-top: 10px;
    margin-bottom: 10px;
}

.navbar-brand img {
    width: 160px;
    margin: 15px 0;
}

body:not(.home) #headContainer {
    background-image: url(images/generic-header.jpg);
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.headerOverlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(5, 29, 51, 0.55);
    z-index: 1 !important;
}

.home .headerOverlay {
    z-index: 2;
}

#titleContainer {
    color: #fff;
    padding-top: 50px;
    padding-bottom: 30px;
    position: relative;
    z-index: 100 !important;
}

#titleContainer .container {
    position: relative;
    z-index: 100 !important;
}

/*
 * Layout & content structure
 */
#content {
    margin-top: 60px;
    margin-bottom: 80px;
}

.documentDescription {
    font-size: 20px;
    margin-bottom: 15px;
}

.bodyContent {
    position: relative;
}

.documentByLine {
    display: none;
}

.post .entry-header .entry-title {
    display: none;
}

/*
 * Home / front page
 */
.home .navContainer {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
}

.home .slideContainer {
    position: relative;
    z-index: 1;
}

/**
 * 20260204 unused??
.home .slideImage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background-size: cover;
    background-position: center;
}
*/

.tenet-slider-pager {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.tenet-slider-pager__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    padding: 0;
    cursor: pointer;
}

.tenet-slider-pager__dot.is-active,
.tenet-slider-pager__dot:hover,
.tenet-slider-pager__dot:focus {
    background: #fff;
    outline: none;
}

.slide {
    color: #fff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide h2 {
    text-transform: uppercase;
    margin-bottom: 20px;
}

.slide .container {
    padding-top: 350px;
    padding-bottom: 100px;
    position: relative;
    z-index: 2;
}

.slideTags {
    margin-bottom: 10px;
}

.slideTags span {
    opacity: 0.5;
    font-size: 24px;
    font-family: 'Roboto Condensed', 'Arial Narrow', Tahoma, sans-serif;
    margin-right: 8px;
    text-transform: uppercase;
}

.slideTags span.active {
    opacity: 1;
}

.plug {
    width: 98%;
    border-radius: 5px;
    background: var(--tenet-red);
    height: 13px;
    margin: 0 0 15px;
    position: relative;
}

.plug img {
    height: 35px;
    position: absolute;
    right: -30px;
    top: -80%;
}

.home #mainContent {
    background: #e9e9e9;
    padding: 60px 0;
}

/*
 * News tiles on the front page
 */
#news {
    margin-top: 75px;
    margin-bottom: 35px;
}

#news .tileImage {
    position: relative;
    height: 250px;
}

#news .tileImage a {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-size: cover;
    background-position: center;
}

#news .first-news-item {
    margin-bottom: 30px;
    ;
}

#news .first-news-item .tileHeadline {
    margin-top: 20px;
}

#news .first-news-item .tileHeadline a {
    color: #fff;
    text-transform: uppercase;
    background: var(--tenet-red);
    display: block;
    padding: 15px 25px;
}

#news .first-news-item .tileFooter {
    margin-top: 10px;
    margin-bottom: 20px;
}

#news .first-news-item .largeTile .tileImage {
    height: 100%;
}

#news .news-items .tileHeadline a {
    color: #fff;
    text-transform: uppercase;
    background: #051d33;
    border-top: 5px solid var(--tenet-red);
    display: block;
    padding: 15px 25px;
    font-size: 24px;
}

#news .news-items>div {
    margin-bottom: 30px;
}

#news .tileHeadline {
    margin-bottom: 0;
}

#news .tileHeadline a:hover {
    text-decoration: none;
}

#news .tilePublication,
#news .tileBody,
#news .tileFooter {
    margin-left: 25px;
    margin-right: 25px;
}

#news .tilePublication {
    padding: 8px 0;
}

#news .news-item {
    border: 1px solid #b7b7b7;
}

/* ISPA code of conduct link on front page */
#ispa-coc a {
    color: inherit !important;
}

/*
 * Partner links on front page
 */
#partnersContainer {
    margin-top: 30px;
    margin-bottom: 20px;
}

#partnersContainer .partner-link {
    margin: 5px 0;
}

#partnersContainer .partner-link a img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    transition: 0.5s all;
    width: 100%;
    max-width: 100px;
}

#partnersContainer .partner-link a:hover img {
    -webkit-filter: grayscale(0%);
    filter: grayscale(0%);
    transition: 0.5s all;
}

/*
 * Breadcrumbs
 */
#portal-breadcrumbs {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

#portal-breadcrumbs a,
#portal-breadcrumbs a:hover {
    color: #fff;
}

#portal-breadcrumbs .container {
    padding: 0;
}

.breadcrumb,
#portal-breadcrumbs ol {
    display: inline-block;
    background-color: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb li,
#portal-breadcrumbs ol li {
    display: inline-block;
}

.breadcrumb>li+li::before,
#portal-breadcrumbs>li+li::before {
    padding: 0 5px;
    color: #ccc;
    content: "/\00a0";
}

/* don't display mos recent link */
#portal-breadcrumbs #breadcrumbs-current a {
    display: none;
}

/*
 * Listings, images, and content helpers
 */
.category article {
    padding-bottom: 15px;
    padding-top: 20px;
    border-bottom: 1px dashed #a7a7a7;
}

.category article:first-child {
    padding-top: 0;
}

.category article .url {
    font-size: 18px;
    margin-bottom: 5px;
}

.category article .wp-post-image {
    float: right;
    margin: 0 0 10px 10px;
}

.newsImageContainer {
    float: right;
    margin: 0 0 10px 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.17);
    overflow: hidden;
}

.newsImageContainer figcaption {
    caption-side: bottom;
    font-size: small;
    text-align: center;
    font-style: italic;
}

.newsImageContainer figcaption:empty {
    display: none;
}

.hide-from-indexing iframe {
    width: 100%;
    border: none;
    overflow: hidden;
    margin-bottom: 0.5em;
}

/* Date display on posts / news items */
.single-post .documentByLine {
    display: block;
    position: absolute;
    top: -40px;
    right: 15px;
    font-size: smaller;
    font-style: oblique;
}

/* registration numbers on contact page */
.page-id-27 code {
    color: inherit;
}

/* callout paragraphs within content */
p.callout {
    background: #eee;
    padding: 1em;
    border-left: 0.5em solid var(--tenet-red);
    clear: both;
}

/*
 * plone-style portlets using wordpress blocks (e.g. for the RSS feed on the about page)
 */
.portlet {
    margin-bottom: 0.5em;
}

.portlet .wp-block-heading,
.portlet .portletHeader {
    background: var(--tenet-red);
    padding: 0.5em;
    color: #fff;
    font-size: 1em;
    font-weight: normal;
    margin-bottom: 0;
}

.portlet .wp-block-heading a,
.portlet .portletHeader a {
    color: #fff;
}

.portlet div.wp-block-group,
.portlet .portletContent {
    background: #eee;
    padding: 0.5em;
    border: 1px solid #b7b7b7;
    border-top: hidden;
    font-size: 85%;
}

/* display only the last 5 items in RSS portlet */
.portlet ul.wp-block-rss .wp-block-rss__item { display: none; }
.portlet ul.wp-block-rss .wp-block-rss__item:nth-last-child(-n+5) { display: list-item; }

/*
 * Post navigation / pagination
 */
.post-navigation {
    margin-top: 1em;
    margin-bottom: 1em;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.post-navigation .nav-links .nav-previous::before,
.post-navigation .nav-links .prev::before {
    content: "« ";
}

.post-navigation .nav-links .nav-next::after,
.post-navigation .nav-links .next::after {
    content: " »";
}

.post-navigation .nav-links .nav-title {
    display: none;
}

.post-navigation .nav-links .nav-previous,
.post-navigation .nav-links .nav-next,
.post-navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid #d0d0d0;
    color: var(--tenet-complement);
    background: transparent;
    text-decoration: none;
}

.post-navigation .nav-links .nav-previous,
.post-navigation .nav-links .nav-next,
.post-navigation .nav-links .prev,
.post-navigation .nav-links .next {
    width: 6rem;
}

.post-navigation .page-numbers.current {
    font-weight: 600;
    color: #051d33;
    border-color: #051d33;
}

.post-navigation .page-numbers:hover,
.post-navigation .page-numbers:focus {
    text-decoration: none;
    border-color: var(--tenet-complement);
}

.post-navigation .page-numbers.dots {
    color: #d0d0d0 !important;
    border: 1px dotted #d0d0d0 !important;
}

.page-item.active .page-link { /* CHECK CONTENT */
    color: #fff;
    background-color: #2a4365;
    border-color: #2a4365;
}

/*
 * 20260204 unused??
.image-right {
    float: right;
    margin: 0 0 10px 10px;
}

.image-left {
    float: left;
    margin: 0 10px 10px 0;
}
*/

/* used on /services/* pages for the main service image/icon */
.service-icon {
    max-width: 220px;
    max-height: 150px;
    height: auto;
    float: right;
    margin: 0 0 15px 15px;
    overflow: hidden;
}

/* dynamic status image on /services page (from monitoring) */
.svs-status-img {
    width: 1.3em;
    float: right;
    margin: 0 0 10px 10px;
}

/* add a download icon before file links */
.wp-block-file a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: " "; /* fa-solid fa-file-arrow-down */
    margin-right: 6px;
}

/*
 * style a worpdress accordion like the jquery UI one
 */
.wp-block-accordion-item .wp-block-accordion-heading {
    background: #e2e8f0;
    color: #1a202c;
    display: block;
    cursor: pointer;
    position: relative;
    margin: 2px 0 0 0;
    padding: .5em .5em .5em .7em;
    font-size: 100%;
    font-weight: normal;
    border: 1px solid #c5c5c5;
    line-height: 1.2;
    border-radius: 3px;
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading {
    background: #1a202c;
    color: #fff;
    border: 1px solid #003eff;
}

.wp-block-accordion-item .wp-block-accordion-panel {
    padding: 1em 2.2em;
    border-top: 0;
    overflow: auto;
    background: #f7fafc;
    margin-bottom: 8px;
    border: 1px solid #ddd;
}

/*
 * Footer
 */
#footerContainer {
    color: #fff;
    background: #2b2b2b;
    padding: 10px 0;
}

#footerContainer a,
#footerContainer a:hover {
    color: #fff;
}

/* Footer menu */
#portal-footernav {
    margin: 0;
    padding: 0;
}

#portal-footernav>li {
    padding: 0;
    list-style: none;
    display: inline-block;
    margin: 0;
    vertical-align: top;
    float: none;
}

#portal-footernav>li::after {
    content: "|";
    margin: 0 10px;
    color: #ffffff;
}

#portal-footernav>li:last-child::after {
    content: "";
    margin: 0;
}

#portal-footernav li a {
    text-transform: none !important;
    display: inline-block;
    color: #fff;
    font-size: 16px;
    padding: 0;
}

#portal-footernav li a:hover {
    background: transparent;
}

#portal-footernav .dropdown-menu {
    display: block;
    padding: 0 0 0 4px;
    border-left: 2px solid #fff;
    position: relative;
    background: transparent;
    box-shadow: none;
    float: none;
    min-width: auto;
    margin: 4px 0 0 3px;
    border-radius: 0;
}

#portal-footernav .dropdown-menu li {
    display: block;
    line-height: 12px;
    max-width: 110px;
}

#portal-footernav .dropdown-menu li a {
    font-size: 12px;
    background: none;
    color: #a6a6a6;
    padding: 0 0 0 2px;
    margin-bottom: 4px;
    white-space: inherit;
}

#portal-footernav .dropdown-menu li a:hover {
    text-decoration: underline;
    color: #c6c6c6;
}

#portal-footernav .dropdown-menu img {
    display: none;
}

#portal-footernav .dropdown-toggle {
    pointer-events: none;
}

/**
 * 20260204 unused??
#portal-footernav span.caret {
    display: none;
}

#portal-footernav .dropdown-submenu>a::after {
    display: none;
}
*/

@media (min-width: 992px) {

    .home .navContainer.fixed,
    .navContainer.fixed {
        display: block;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
        background: rgba(23, 25, 28, 0.85);
    }

    .navContainer.fixed .navbar-brand img {
        width: 100px;
    }

}

@media (max-width: 992px) {

    #footerContainer {
        text-align: center;
    }

    .plug {
        width: 97%;
    }

    .plug img {
        right: -14px;
    }

    #news .first-news-item .tileHeadline {
        margin-top: 0;
    }

    #news .first-news-item .tileHeadline a {
        color: #fff;
        text-transform: uppercase;
        background: #051d33;
        border-top: 5px solid var(--tenet-red);
        display: block;
        padding: 15px 25px;
        font-size: 24px;
    }

    .navbar-nav .nav-item>.nav-link {
        margin: 0 10px;
        padding: 3px 0;
    }

    /* simplify display for mobile */
    #partnersContainer {
        display: none;
    }
}
