/*!
Theme Name: Standish
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Standish
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

.AppArmor-active-padding header.website-header {
    top: var(--apparmor-alert-height) !important;
}

#masthead {
    z-index: 21 !important;
}
#main {
/*    margin-top: inherit !important;*/
}
.content-area {
    margin-bottom: 4rem!important;
}
.has-lighter-gray-background-color {
    background-color: var(--global-palette8);
}
.pws__sidebar {
    padding-right: 0 !important;
    opacity: 1 !important;
}
@media (max-width:991px){
    .pws__btn-menu.opened .pws__btn-menu--close span:nth-child(2),
    .pws__btn-menu.opened .pws__btn-menu--close span{
        width: 1.6em !important;
    }
    .pws__btn-menu{
        margin-left: -1.5rem;
        margin-bottom: 1rem;
        margin-top: -1rem;
        display: none !important;
    }
    body.has-left-sidebar .pws__btn-menu {
        display: block !important;
    }
    button.pws__btn-menu--open:focus, button.pws__btn-menu--open:hover,button.pws__btn-menu--close:focus, button.pws__btn-menu--close:hover {
        background: transparent;
    }
    #accordion-main-menu>.js-accordion__panel[aria-hidden=false] .js-accordion__header {
        background: transparent !important;
    }
}

/****
UBISHOPS BLOCKS
****/

/* Video Loop */
.video-loop-container .vimeo-wrapper {
    z-index: inherit !important;
}

/* Degree programs */
.degrees-programs h3 {
    color: #fff;
}

/* Block Title */
@media (max-width:768px){
    .bu-title-image-bg-container {
        display: block !important;
        background-color: rgba(255, 255, 255, .7);
        max-width: 85%;
        display: flex;
        padding: 15px 20px;
        flex: 1;
    }
}

/* Animated links */
.animated-links-title h2 {
    color: white;
}

/* Latest News */
.latest-news-container ul.nav-filter {
    margin: 0;
}

/* Social Share */
.social-share h2 {
    color:white;
}

/* Contenu en colonnes */
.cc_content_container h3.cc_title {
    margin-top: 0px !important;
}

/* CTA Banner */
.cta-banner h2 {
    color:white;
}
.cta-banner.color-gray h2{
    color:var(--global-palette3);
}

/* BU Directory */

#cn-slim-plus .cn-entry,
#cn-slim-plus .cn-right {
    font-size: 15px !important;
}

/* Accordion */
.content-accordion button:focus,
.content-accordion button:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}
.content-accordion button span.ca-title {
    color: var(--global-palette3) !important;
}

/****
GUTENBERT HACK
****/

.wp-block-columns.wp-block-columns-is-layout-flex {
    align-items: start;
}
.wp-block-table tbody tr:nth-child(odd) {
    background: #f9f9f9 !important;
}
.wp-block-table thead {
    border-bottom: 0px solid var(--global-palette6) !important;
    background: var(--global-palette1);
    color: white;
}
@media (max-width:768px){
    .wp-block-columns.is-layout-flex.wp-container-core-columns-is-layout-2.wp-block-columns-is-layout-flex{
        flex-wrap: wrap;
    }
}

/****
KADENCE HACK
****/

h1,.h1 {
    font-size: clamp(42px, calc(42px + (54 - 42) * (100vw - 375px) / (1440 - 375)),54px) !important;
    margin-bottom: .5em !important;
    font-weight:700;
}
body.single-post h1,.h1 {
    font-size: 32px !important;
}

h2,.h2 {
    font-size: clamp(28px, calc(28px + (38 - 28) * (100vw - 375px) / (1440 - 375)),38px) !important;
    margin-bottom: .4em !important;
}
body.single-post h2,.h2 {
    font-size: 28px !important;
}
.loop-entry.type-post h2.entry-title,
.loop-entry.type-post h3.entry-title{
    font-size: 24px !important;
}

h3,.h3 {
    font-size: clamp(19px,calc(19px + (24 - 19) * (100vw - 375px) / (1440 - 375)),24px) !important;
    margin-bottom: .3em !important;
}

h4,.h4 {
    font-size: clamp(16px,calc(16px + (17 - 16) * (100vw - 375px) / (1440 - 375)),17px) !important;
    margin-bottom: .2em !important;
}

h5,.h5 {
    font-size: clamp(15px,calc(15px + (16 - 15) * (100vw - 375px) / (1440 - 375)),16px) !important;
    margin-bottom: .2em !important;
}

h6,.h6 {
    font-size: clamp(14px,calc(14px + (15 - 14) * (100vw - 375px) / (1440 - 375)),15px) !important;
    margin-bottom: .2em !important;
}

h1,.h1,h2,.h2,h4,.h4,h5,.h5,h6,.h6 {
    font-weight: 600 !important;
    line-height:1.3 !important;
}
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: inherit;
    text-decoration: underline;
}

.kt-blocks-post-grid-item-inner {
height: 100%;
display: flex;
flex-direction: column;
}
.kt-blocks-post-grid-item-inner-wrap {
height: 100%;
display: flex;
flex-direction: column;
}
.kt-blocks-post-grid-item-inner .entry-content {
    flex-grow: 1;display: flex;flex-direction: column;justify-content: space-between;
    }

.kt-blocks-post-readmore-wrap {
    flex-grow:1;
    display: flex;
    align-items: flex-end;
    justify-content: start;
}
ul, ol {
    margin: 0;
    padding: 0;
}
figcaption {
    text-align: left !important;
    color: #555;
    font-size: 13px;
    line-height: 22px;
    margin-top: 8px;
    margin-bottom: 23px;
    background: no-repeat left center;
    padding-left: 30px;
    background-image: url("data:image/svg+xml,%3Csvg width='19' height='1' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='%23713CA5' d='M0 .5h19'/%3E%3C/svg%3E");
}

/****
HEADER
****/

header.website-header {
    min-height: 103px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

.hero-container.site-container header {
    display: flex;
    flex-direction: column;
    justify-content: end;
}
.entry-hero .kadence-breadcrumbs {
    order: 2;
}
.kadence-breadcrumbs.yoast-bc-wrap {
    background: #fff;
    border: 1px solid #f3f3f3;
    display: inline-block;
    font-size: 12px;
    bottom: -18px;
    position: relative;
    padding: 6px 10px 7px 20px;
    margin: 0;
    width: fit-content !important;
    border-radius: 4px;
}
.hero-container.site-container h1 {
    font-size: clamp(28px,    calc(28px + (38 - 28) * (100vw - 375px) / (1440 - 375)),38px) !important;
    margin-bottom:10px;
}
    .nav-menu-top .nav-icon-item {
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

@media (max-width:1024px){
    header.website-header {
        min-height: 103px !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
    }
}
@media (max-width:991px){
    header.website-header {
        min-height: 62px !important;
    }
    .website-header .animated-accordion__panel button{
        color:#29143d;
    }
}
@media (max-width:768px){
    .entry-hero-container-inner {
        padding-top: 75px;
    }

}

/****
NAV
****/

.nav-item-top .search-box {
    padding-left: 70px;
    display: none;
    background: #fff;
    border-radius: 60px;
    height: 60px;
    color: #582c83;
}
.admin-bar header.website-header {
/*     top: 0px !important; */
}

/****
SIDEBAR
****/
@media(min-width:1025px){
.sidebar-inner-wrap {
    background: #f9f9f9;
    padding:1.75rem 1.25rem;
}
}
.sidebar-inner-wrap h3 {
    font-weight: 900 !important;
    color: var(--global-palette2);
    font-size:17px !important;
}
.sidebar-inner-wrap ul.wp-block-categories-list li.cat-item a {
    color: var(--global-palette2) !important;
    text-decoration: none !important;
    font-size:13px !important;
}
.sidebar-inner-wrap .widget select{
    font-size:13px !important;
    color: var(--global-palette2) !important;
}

@media(min-width:1024px){

    body.post-template-default .has-left-sidebar #secondary {
        margin-top: 60px !important;
    }
    .has-left-sidebar #secondary {
        margin-top: 100px;
    }
}

/****
BLOG
****/
@media (min-width:769px){
    body.single-post #main.site-main{
        margin-top:61px;
    }
}
.entry-related {
    background: #ededed !important;
}
:lang(en) h2.entry-related-title{
    display:none;
}
:lang(en) .entry-related-inner-content:before{
    content:'You might also enjoy';
    color:var(--global-palette1);
    font-weight: 600 !important;
    line-height: 1.3 !important;
    font-size: 38px;
    position: relative;
    top: -1rem;
}

/****
ELEMENTS
****/

button{
    box-shadow:none !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
    cursor: pointer !important;
    background: rgba(0,0,0,0) !important;
    border: 1px solid #29143d !important;
    padding: 15px 32px 15px 32px !important;
}
.cta-buttons a.btn.btn-primary.has-arrow:hover {
    color: white;
}

/****
FOOTER
****/

.site-middle-footer-inner-wrap{
    align-items: start;
}
.site-bottom-footer-inner-wrap {
    align-items: center;
}
.site-footer-row-container-inner .site-container {
    padding: 0px;
}
.standish-logo{
  margin-top: -7px;
}
.standish-logo img{
  width: 100px;
}
#site-footer li a {
    text-align: left;
    text-decoration: underline;
}
@media only screen and (min-width: 769px){
    #site-footer {
        padding: 30px !important;
    }
}
@media only screen and (max-width: 768px){
    .site-bottom-footer-inner-wrap .footer-widget-area-inner{
        justify-content: center;
    }
}



.wp-block-kadence-advancedbtn.contact a.adresse {
    align-items: start;
}
.wp-block-kadence-advancedbtn.contact a.adresse > .kb-svg-icon-wrap{
    margin-top: 3px;
}

/****
  TABLES
****/

.wp-block-table thead {
    border-bottom: 0px !important;
    background: var(--global-palette1);
    color: white;
}

.wp-block-table th {
    padding: 1.5em !important;
    border: 0px !important;
    border-bottom: 1px solid var(--global-palette1) !important;
    text-align: left;
    font-weight: 600;
}

.wp-block-table td {
    padding: 1.5em !important;
    border: 0px !important;
    border-bottom: 1px solid var(--global-palette1) !important;
}

@media only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px) {

    .wp-block-table table {
        width: 100%;
        border-collapse: collapse;
    }

    .wp-block-table table th {
        background: #333;
        color: white;
        font-weight: bold;
    }

    .wp-block-table table td,
    .wp-block-table table th {
        padding: 1em !important;
        text-align: left;
        min-height: 40px;
    }

    /* Force table to not be like tables anymore */
    .wp-block-table table,
    .wp-block-table table thead,
    .wp-block-table table tbody,
    .wp-block-table table th,
    .wp-block-table table td,
    .wp-block-table table tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .wp-block-table table thead {
        display: none;
    }

    .wp-block-table table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .wp-block-table table tr {
        border: 1px solid var(--global-palette2);
        border-bottom: 0px;
    }

    .wp-block-table table td {
        /* Behave  like a "row" */
        border: none;
        border-bottom: 1px solid var(--global-palette2) !important;
        display: block;
        align-items: center;
    }

    .wp-block-table table td:before {
        top: 0.5em;
        left: 10px;
        padding-right: 10px;
        color: var(--global-palette2);
        font-weight: bold;
        display: block;
        font-size: 1.15rem;

    }

    /* .wp-block-table table td:first-child {
        background: var(--global-palette2);
        color: white;
    } */

    .wp-block-table table tbody tr {
        position: relative;
        margin-bottom: 20px;
    }

    .wp-block-table table tbody tr td {
        padding: 0;
        margin: 0;
    }

}
