/*
Theme Name: Aphasia Theme
Theme URI: https://media-doc.com
Author: MediaDoc
Author URI: https://media-doc.com
Template: astra
Description: This is a child theme of the Astra Pro theme
Version: 0.1
Text Domain: aphasia
*/

html {
    font-size:16px;
}
:root {
    --menu-link-light: #ffffff;
    --menu-link-dark: #000000;
    --text-light: #ffffff;
    --text-dark: #000000;
    --bg-light: #ffffff;
    --above-header-bg: #4f6f88;
    --menu-button: #f8cd6c;
    --heading:#272727;
    --text:#272727;
    --link:#41576c;
    --link-hover: #8FCAF6;
    --testimonial: #43647D;
    --ul-bullet: #43647D;
    --code-bg: #eeeeee;
    --divider-background: #4A637B;
    --primary-menu-text: #41576c;
    --primary-menu-highlight-background: #f2f9fe;
    --dashed-border-yellow: #f8cd6c;
    --dashed-border-white: #ffffff;
    --dashed-border-black: #000000;
}

h1, h2, h3, h4, h5, h6 {
    font-family:"Source Sans Pro", helvetica, sans-serif;
    color:var(--heading);
}

h1 {font-size:2em;font-weight:700;line-height:3.75em;margin-bottom:.75em;}
h2 {font-size:2.25em;font-weight:500;line-height:2.5em;margin-bottom:.75em;}
h3 {font-size:2.0em;font-weight:500;line-height:2.5em;margin-bottom:.75em;}
h4 {font-size:1.8em;font-weight:500;line-height:2.3em;margin-bottom:.75em;}
h4 {font-size:1.2em;font-weight:500;line-height:1.43em;margin-bottom:.75em;}

a {
    text-decoration: none;
}
a:hover{
    text-decoration:underline;
}
p {
    font-size:1.14em;
    line-height: 1.5em;
    margin: 0 0 1em;
    color:var(--text);
}

em {font-style:italic;}
strong{font-weight:700;}
b{font-weight:700;}
i{font-style: italic;}

blockquote{
    color:var(--testimonial)
}
table {
    border-collapse: collapse;
    border-width: 1px;
    border-style: solid;
    color:var(--text);
}
table td, table th {
    border-width: 1px;
    border-style: solid;
    padding: 5px;
}
pre {
    font-size:1.14em;
    margin:0;
}
code {
    background-color: var(--code-bg);
    border-radius: 3px;
    font-family: courier, monospace;
    padding: 0 3px;
}

/* End of Typography */

.ast-above-header-wrap .ast-above-header{
    background: var(--above-header-bg);
}
.ast-above-header-wrap .ast-above-header .menu-text{
    font-weight: 600;
    color: var(--menu-link-light);
}
.ast-above-header-wrap .ast-above-header .menu-item:not(:last-child)::after{
    content: '';
    border-right: 0.1em solid var(--menu-link-light);
}
/* Set menu padding for all elements around menu text */
.ast-desktop .main-header-bar-navigation #primary-menu .menu-item .menu-link .menu-text{
    border-radius: 2em;
    line-height: 1;
    padding: 1em 1.5em;
}
/* Menu & Block Underlines */
.main-header-bar-navigation #primary-menu .menu-item .menu-link:hover .menu-text,
.main-header-bar-navigation #primary-menu .menu-item.mega-active .menu-link .menu-text {
    background: var(--primary-menu-highlight-background);
    text-decoration: underline;
}
.ast-above-header-navigation .menu-link:hover .menu-text,
.ast-below-header-navigation .menu-link:hover .menu-text,
.uagb-post-grid .uagb-post__title a:hover
{
    text-decoration: underline;
}
.ast-desktop #primary-menu .menu-link {
    padding: 0 0.5em;
}
.ast-desktop .main-header-bar-navigation #primary-menu .menu-item.current-menu-item .menu-link .menu-text{
    background: var(--primary-menu-highlight-background);
    padding: 1em 1.5em;
}
.main-header-bar-wrap .ast-main-header-bar-alignment{
    padding-top: 1em;
}
#below_header-menu .menu-item .menu-link .menu-text{
    color: var(--menu-link-dark);
    font-weight: 600;
}
.main-header-container .ast-below-header-menu .sub-menu{
    background: transparent;
}
.ast-below-header .below-header-user-select a{
    color: var(--menu-link-dark);
}
.ast-below-header .below-header-user-select .slide-search.astra-search-icon::after{
    content: 'Search';
    font-style: normal;
    font-size: 0.8em;
    font-weight: 500;
    text-decoration: inherit;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.ast-search-menu-icon .search-form {
    padding: 0 6em 0 0;
}
.ast-header-break-point .ast-mobile-menu-buttons .screen-reader-text{
    display: inline-block;
    position: relative;
    width: auto;
    height: auto;
    overflow: inherit;
    font-size: 0.75em;
}
.ast-header-break-point .ast-mobile-menu-buttons{
    width: 100%;
    text-align: center;
    display: block;
}
.ast-header-break-point .ast-mobile-menu-buttons .menu-toggle .menu-toggle-icon {
    line-height: 1;
}
.ast-header-break-point .ast-mobile-menu-buttons .main-header-menu-toggle{
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: var(--menu-link-dark);
    background-color: var(--menu-button);
    border-radius: 2px;
    padding-top: 0.5em;
    padding-right: 5em;
    padding-bottom: 0.5em;
    padding-left: 5em;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1;
}
/* Specific homepage overrides */

.home.ast-plain-container.ast-no-sidebar #primary {
    margin-top: 0;
}
#testimonial .testimony {
    font-size:1.5em;
    margin-bottom:0.25em;
    max-width:34em;
}
/* Custom class is 'homepage-grid' */
.uagb-post-grid.homepage-grid .is-grid.uagb-post__equal-height .uagb-post__inner-wrap {
    border-bottom: 0.1em solid #dfdfdf;
}
.uagb-post-grid.homepage-grid .uagb-post__inner-wrap p:last-of-type {
    margin-bottom: 0.75em;
}
.uagb-post-grid.homepage-grid .uagb-post__date {
    text-transform: none;
    letter-spacing: 0;
}
.uagb-post-grid.homepage-grid .uagb-post__date span {
    display: none;
}
.uagb-post-grid.homepage-grid .uagb-post__items article {
    margin-bottom: 0;
    padding-top: 1em;
}
.call-out-btn{
    display: none;
}
.call-out-btn .menu-link{
    border-style: solid;
    border-top-width: 0;
    border-right-width: 0;
    border-left-width: 0;
    border-bottom-width: 0;
    color: var(--menu-link-dark);
    background-color: var(--menu-button);
    border-radius: 2px;
    font-family: inherit;
    font-weight: inherit;
    line-height: 1;
    display: block;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1em;
    padding: 1.5em;
    text-align: center;
    margin-bottom: 1em;
    margin-top: 15%;
    font-size: 1.25em;
}
.ast-header-break-point .hide-on-mobile{
    display: none;
}
.ast-header-break-point .call-out-btn{
    display: block;
}
.uagb-post-grid .uagb-post__cta{
    display: none;
}
.uagb-post-grid.column-content-post-section .uagb-post__text{
    margin-bottom: 0;
    padding-bottom: 0;
}
.uagb-post-grid.column-content-post-section .uagb-post__title{
    font-weight: 600;
    line-height: 1em;
    margin-bottom: 0;
}
.uagb-post-grid.column-content-post-section .uagb-post-grid-byline{
    line-height: 1em;
    padding-bottom: 3em;
    border-bottom: 0.1em solid #dfdfdf;
}
.uagb-post-grid.column-content-post-section article:last-child .uagb-post-grid-byline{
    border-bottom:none;
}
.uagb-post-grid.column-content-post-section .uagb-post__items article{
    margin-bottom: 0;
}
.column-header-icon-section{
    margin-bottom: 0;
}
.column-header-icon-section .wp-block-column{
    display: flex;
}
.column-header-icon-section img{
    width: 8em;
}
.column-header-icon-section .wp-block-column:not(:first-child){
    margin-left: 0.5em;
    align-self: flex-end;
}
.column-content-read-more{
    margin-bottom: 0;
    line-height: 1.25em;
    padding: 0 0.5em;
}
.column-content-read-more a{
    font-size: 1.25em;
}
.twitter-timeline{
    max-height: 35em!important;
}
.ast-advanced-headers-layout-2 {
    text-align: left;
}
.ast-advanced-headers-layout .ast-container {
    display: flex;
    flex-direction: column;
}
.ast-advanced-headers-layout .ast-advanced-headers-breadcrumb {
    order: 1;
    margin-top: 0;
    margin-bottom: 1.666em;
}
.ast-advanced-headers-layout .ast-advanced-headers-wrap {
    order: 2;
}
.ast-advanced-headers-layout {
  padding:1.333em 0;
}
.ast-plain-container.ast-no-sidebar #primary {
    margin: 4em 0;
}
/*.footer-adv .footer-adv-widget:nth-child(odd) .widget-title {*/
/*    text-transform: uppercase;*/
/*}*/
.main-header-bar-wrap .ast-below-header-wrap {
    flex-grow: 1;
    align-self: flex-end;
    padding-top: 1em;
}
.ast-desktop .menu-wrap {
    flex-grow: 1;
}
.ast-header-break-point .ast-mobile-header-stack .main-header-container {
    flex-direction: column;
}
.ast-header-break-point .menu-wrap {
    width: 100%;
}

/* Shape Divider */
.section-divider.footer {
    transform: rotate(180deg);
}

.section-divider svg {
    position: absolute;
    left: 0;
    width: calc(100% + 1px);
    height: 30px;
}
.section-divider .shape-fill {
    fill: var(--divider-background);
}
.child-pages-container{
    background-color: var(--bg-light);
    margin-bottom: 0;
}
.child-pages-container .wp-block-column{
    margin-top: 3em;
}
.child-pages-left{
    width: 100%;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
    text-align: left;
}
.child-pages-left img{
    max-width: 10em;
    margin-bottom: 1em;
}
.child-pages-right{
    width: 100;
    display: block;
    padding-left: 1em;
    padding-right: 1em;
    vertical-align: top;
}
.child-pages-right a{
    color: var(--text-dark);
}
.child-pages-right a:after {
    content: "\e900";
    font-family: Astra;
    font-weight: bold;
    font-size: 0.75em;
    display: inline-block;
    transform: rotate(270deg);
    padding-top: 0.75em;
    vertical-align: middle;
}
.child-pages-right p{
    margin-bottom: 0;
}
.ast-desktop .ast-below-header .submenu-with-border .astra-full-megamenu-wrapper.astra-megamenu-has-divider{
    border-top-width: 0;
}
.menu-item .sub-arrow{
    display: none
}
.ast-mm-custom-content{
    text-align: center;
    min-height: 80vh;
    position: relative;
}
.ast-desktop .mega-active .ast-mm-widget-content .ast-mm-widget-item{
    padding: 0;
}
.mega-container .mega-search-form{
    position: absolute;
    -webkit-transform: translate(-50%, -40%);
    -ms-transform: translate(-50%, -40%);
    transform: translate(-50%, -40%);
    top: 40%;
    left: 50%;
    min-width: 100%;
    display: flex;
    align-items: center;
    vertical-align: middle;
    text-align: center;
    margin: 0;
    justify-content: center;
}
.mega-container .mega-search-form .search-label{
    font-weight: 400;
    font-size: 1.5em;
}
.mega-container .mega-search-form .search-submit i{
    display: inline;
    position: absolute;
    left: -0.9em;
    top: 0.03em;
}
.mega-container .mega-search-form .search-submit{
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background: none;
    color: var(--link);
    display: inline-block;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
    position: relative;
}
.mega-container .mega-search-form input.search-field{
    color: var(--link);
    border-radius: 2em;
    min-width: 25em;
    margin-left: 1em;
    border-color: none;
}
.mega-container .mega-search-form input.search-field::placeholder {
 color: var(--link);
  opacity: 1;
}
.ast-desktop .ast-mega-menu-enabled .menu-item.astra-megamenu-li:hover .astra-full-megamenu-wrapper{
  height: 0;
  opacity: 0.7;
  display: none;
}
.ast-desktop .ast-mega-menu-enabled .menu-item.astra-megamenu-li.mega-active .astra-full-megamenu-wrapper{
    visibility: visible;
    opacity: 1;
    min-height: 80vh;
    display:block;
    border-top: none;
}
/* Set specific margin for menu items above main nav that are mega menus */
.ast-desktop .ast-below-header .ast-mega-menu-enabled .menu-item.astra-megamenu-li.mega-active .astra-full-megamenu-wrapper {
    margin-top:5em;
}

.ast-desktop .ast-mega-menu-enabled .menu-item.astra-megamenu-li.mega-active .astra-megamenu{
    visibility: visible!important;
    opacity: 1;
}
.ast-desktop .ast-mega-menu-enabled .menu-item.astra-megamenu-li.mega-active .astra-megamenu.sub-menu>.menu-item{
    display: block;
}
.ast-desktop .ast-mega-menu-enabled .menu-item.astra-megamenu-li.mega-active .astra-full-megamenu-wrapper .astra-megamenu.sub-menu{
    display: block;
}
.ast-desktop .ast-mega-menu-enabled .menu-item.astra-megamenu-li.mega-active .astra-megamenu-li .astra-megamenu.sub-menu>.menu-item{
    display: flex;
}
.ast-desktop .astra-full-megamenu-wrapper .mega-close{
    position: absolute;
    right: 0;
    z-index: 200;
}
.ast-desktop .astra-full-megamenu-wrapper a.mega-close-btn{
    display: flex;
    align-items: center;
    font-size: 1.5em;
    text-decoration: none;
    float: right;
    font-weight: 600;
}
.ast-desktop .ast-mm-widget-content a {
    color: var(--primary-menu-text);
}
.mega-close-btn .astra-icon-close{
    font-size: 2em;
}
.mega-close-btn:hover{
    text-decoration: none;
}
.mega-page-section .ast-mm-custom-content{
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-left: 0;
    max-width: 60em;
    margin-left: auto;
    margin-right: auto;
    padding-top: 4em;
}
.mega-page-section .ast-mm-custom-content .ast-mm-widget-item{
    display: inline-block;
    margin-top: 0;
    flex: 0 0 33.333333%;
    height: 15em;
}
.mega-page-block{
    margin-top: 0;
}
.mega-page-top{
    min-height: 10em;
}
.mega-page-bottom{
    margin-top: 1em;
}
.menu-item-has-children{
    cursor: pointer;
}
.mega-page-detail-container{
    max-width: 60em;
    margin: 0 auto;
}
.mega-page-detail-container{
    padding-top: 4em;
}
.mega-page-left{
    width: 40%;
    max-width: 5em;
    display: inline-block;
    padding-left: 1em;
    padding-right: 1em;
}
.mega-page-right{
    width: 100%;
    display: inline-block;
    text-align: left;
    padding-left: 1em;
    padding-right: 1em;
}
.mega-page-detail-block {
    display: flex;
}
.mega-page-detail-container .mega-container{
    margin-bottom: 2em;
}
.mega-container h4{
    font-size: 1.1em;
    font-weight: 600;
}
.mega-page-detail-container .mega-page-detail-list{
    margin-left: 1em;
}
.mega-page-detail-container ul:not(.ast-nav-menu) li:not(.menu-item)::before{
    content: '-'
}
.mega-page-detail-content{
    margin-bottom: 1em;
}
.mega-page-detail-content-text{
    font-size: 1em;
    line-height: 1.2em;
    color: var(--link);
    margin-bottom: 0;
}
.woocommerce .taxonomy-description {
    display: none;
}
.footer-adv .footer-adv-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Fix WooCommerce button transitions */
.woocommerce a.button,
.woocommerce button.button.alt,
.woocommerce-page table.cart td.actions .button,
.woocommerce-page #content table.cart td.actions .button,
.woocommerce a.button.alt, .woocommerce .woocommerce-message a.button,
.ast-site-header-cart .widget_shopping_cart .buttons .button.checkout,
.woocommerce button.button.alt.disabled,
.wc-block-grid__products .wc-block-grid__product .wp-block-button__link,
.woocommerce .woocommerce-product-search button,
input.wpcf7-submit {
    transition: all .2s linear;
}

/*
HELPER CLASSES

These classes are added to elements via Wordpress "Additional Classes" to apply specific styling.
Above each rule there should be a description about their purpose.

dashed-border-yellow - yellow border around images
dashed-border-white - white border around images
dashed-border-black - black border around images
svg-clipper - applied to SVG to position wavy effect
clip-with-svg - applied to images/elements to create wavy transition
*/

/* Image Borders */
.dashed-border-yellow img {
    border: 2px dashed;
    border-color: var(--dashed-border-yellow);
}
.dashed-border-white img {
    border: 2px dashed;
    border-color: var(--dashed-border-white);
}
/* Image Borders */
.dashed-border-black img {
    border: 2px dashed;
    border-color: var(--dashed-border-black);
}
/* Used on the SVG itself */
.svg-clipper {
    position: absolute;
    width: 0;
    height: 0;
}
/* Add class to use with images/divs to provide wavy transition between elements */
.clip-with-svg {
    width: 100%;
    height: 38px;
    -webkit-clip-path: url(#wavy-clip-path);
    clip-path: url(#wavy-clip-path);
    z-index: 10;
}

/* END HELPER CLASS */

@media (min-width: 48rem) {
    /*.footer-adv .footer-adv-widget-3 {*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    align-items: flex-end;*/
    /*}*/

    /*.footer-adv-widget-3 .astra-widget-social-profiles-inner {*/
    /*    float:right;*/
    /*}*/
    /* In order for the below header menu to align properly !important is used to override Astra */
    .ast-below-header-1 .ast-below-header-section-wrap .ast-justify-content-flex-end:first-child {
        margin-left: 0 !important;
    }
    .main-header-bar-wrap .ast-flex {
        flex-direction: column;
        align-items: center;
    }
}

@media (min-width: 57rem){
    .child-pages-left{
        width: 33%;
        display: inline-block;
        text-align: right;
    }
    .child-pages-right{
        width: 66%;
        display: inline-block;
    }
}

@media (min-width: 85em) {
    .ast-below-header-1 .ast-below-header-section-wrap .ast-justify-content-flex-end:first-child {
        margin-left: auto;
    }
    .main-header-bar-wrap .ast-flex {
        flex-direction: row;
        align-items: unset;
    }
}

@media (max-width: 48rem){
    .ast-header-break-point .ast-mobile-menu-buttons .main-header-menu-toggle{
        padding-right: 3em;
        padding-left: 3em;
    }
    .mega-page-top{
        min-height: none;
    }
    .mega-page-section .ast-mm-custom-content .ast-mm-widget-item{
        display: inline-block;
        margin-top: 0;
        flex: 0 0 100%;
        height: auto;
    }
    .mega-page-bottom{
        margin-bottom: 1em;
    }
}
