/*
Theme Name: 	BuddyBoss Child
Theme URI: 		https://www.buddyboss.com/
Description: 	A child theme of BuddyBoss Theme. To ensure easy updates, make your own edits in this theme.
Author: 		BuddyBoss.com
Author URI: 	https://www.buddyboss.com/
License: 		GNU General Public License v3 or later
License URI: 	http://www.gnu.org/licenses/gpl-3.0.html
Template: 		buddyboss-theme
Version: 		1.0.0
*/

/*

-- Stylesheet locations --

Add your own customizations into /css/custom.css in this child theme.

Parent styles are called from /buddyboss-theme/inc/theme/functions.php in the 
parent theme and are located in /buddyboss-theme/assets/css/ in the parent theme.


--- If you are editing CSS via the WordPress admin, do the following ---

1. Install the plugin WP Editor: http://wordpress.org/plugins/wp-editor/
2. Navigate to Appearance > Theme Editor in the WordPress admin.
3. Navigate into the /css/ folder of your child theme to edit custom.css.

*/

/* ----------------------------- General -----------------------------  */
:root {
    --idu-padding-inline: 10px;
}

header .container, 
.bb-footer .container {
    max-width: 1280px !important;
    margin-inline: auto;
    /* padding-inline: 0; */
}
#buddypress.buddypress-wrap,
.container {
    max-width: 1280px;
}
.site-content:not(.maintenance-content), 
.site-header {
    padding-inline: var(--idu-padding-inline);
}
/* .bb-grid, 
.bp-vertical-navs .bb-profile-grid {
    margin-inline: auto !important;
} */
.site-content {
    background: #F3EDE4;
}

/* Button text wave efect */
.custom-text-reveal-wave-cta .char,
.idu-arrow .char,
header .button.signup .char {
    display: inline-block;
    will-change: transform;
}
@keyframes waveChar {
    0%   { transform: translateY(0);     }
    40%  { transform: translateY(-12px); }
    100% { transform: translateY(0);     }
}
.custom-text-reveal-wave-cta:hover .char,
.idu-arrow:hover .char,
header .button.signup:hover .char,
/* A button (.idu-btn) whose .idu-arrow lives on a nested element (e.g. a
   responsive full/short text span) still needs hovering ANYWHERE on the
   button - not just the exact inner element - to trigger the wave. */
.idu-btn:hover .char {
    animation: waveChar 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.88) forwards;
    animation-delay: var(--char-delay, 0s);
}


/* ----------------------------- Header -----------------------------  */
.site-header-container .site-branding {
    padding-right: 0;
}

/* Logged-in my account butotn */
header a.user-link,
header a.user-link .user-name,
header .bb-header-buttons a.button.outline {
    font-size: 15px;
    font-weight: 500 !important;
    line-height: normal;
}
header a.user-link {
    flex-direction: row-reverse;
    gap: 15px;
}
header a.user-link .user-name {
    margin-right: 0;
}
header a.user-link:hover .user-name {
    color: var(--bb-primary-button-background-regular) !important; 
}
header .sub-menu a.user-link:hover .user-name {
    color: var(--bb-body-text-color) !important;
}
header a.user-link::before {
    content: "";
    position: absolute;
    left: -15px;
    right: -5px;
    top: 50%;
    /* background-color: var(--bb-primary-button-background-regular); */
    height: 46px;
    border-radius: 999px;
    z-index: -1;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: background-color 0.2s ease;
    /* border: 1px solid var(--bb-primary-button-background-regular); */
}
header a.user-link:hover::before, 
header .user-wrap.menu-item-has-children.selected>.user-link:before {
    background-color: transparent !important;
}
header .notification-wrap span.count {
    background-color: #EC5338;
}
header .user-wrap.user-wrap-container .sub-menu li a {
    transition: color 0.2s ease;
    font-weight: 500;
}
header .user-wrap.user-wrap-container .sub-menu li a:hover, 
header .user-wrap.user-wrap-container .sub-menu li a:focus, 
header .user-wrap.user-wrap-container .sub-menu li a:active {
    color: var(--bb-secondary-button-border-hover);
    font-weight: 500;
}

/* Nav menu */
#primary-navbar {
    justify-content: center;
}
header .primary-menu > li > a:before {
    content: "";
    position: absolute;
    background-color: #fff;
    height: 46px;
    z-index: -1;
}
header .primary-menu > li > a, 
header .primary-menu > li > a span {
    font-size: 15px;
}
header .primary-menu > li:hover > a:before {
    background-color: transparent !important;
}
header .primary-menu > li > a span {
    position: relative;
}
header .primary-menu > li > a span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 25px;
    height: 1.5px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}
header .primary-menu > li:hover > a span::after {
    background-color: var(--bb-header-links-hover);
}
header .primary-menu > li.current-menu-item > a {
    border-bottom: none !important;
}
header .primary-menu > li.current-menu-item > a {
    color: var(--bb-primary-color) !important;
    font-weight: 500 !important;
}

/* Non-logged-in sign in/up buttons */
header .bb-header-buttons {
    display: flex;
}
header .button.signup {
    display: flex;
    padding: 14px 25px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    line-height: normal;
}
header .button.signup::after {
    content: "\27F6";
	font-size: 0.9em;
	line-height: 1;
}

/* Search */
header #header-aside .header-search-link i.bb-icon-search {
    color: var(--bb-primary-button-background-regular);
}


/* ----------------------------- Footer -----------------------------  */
/* Layout */
.footer-widget-area,
.bb-footer.footer-widget-area {
    padding-block: 0 60px !important;
    padding-inline: 0 !important;
}
.bb-footer.footer-widget-area > .container {
    max-width: unset !important;
    padding-left: 0;
    padding-right: 0;
}
.bb-footer.footer-widget-area .footer-widget.area-1 {
    padding-left: 0;
    padding-right: 0;
}
.bb-footer.footer-widget-area .footer-widget.area-1 aside.widget:first-child {
    padding-left: 0;
    padding-right: 0;
    padding-block: 0;
    margin-bottom: 0;
}
.bb-footer.footer-widget-area .footer-widget.area-1 aside:has(.main-footer) {
    padding: 60px var(--idu-padding-inline) 0;
    margin-bottom: 0;
    max-width: 1280px;
    margin-inline: auto;
}
.bb-footer .bb-grid {
    justify-content: space-between;
}
.bb-footer .bb-grid .main-footer {
    padding-left: var(--idu-padding-inline);
    padding-right: var(--idu-padding-inline);
    margin-left: 0;
    margin-right: 0;
}
.bb-footer .bb-grid .main-footer, 
.bb-footer .bb-grid .main-footer .wp-block-columns {
    margin-bottom: 0;
}
.bb-footer .bb-grid .main-footer .left-col {
    flex: 0 0 auto;
    width: auto;
}
.bb-footer .bb-grid .main-footer .right-col {
    flex: 0 0 60%;
    width: 60%;
}
.bb-footer .bb-grid .main-footer .right-col .wp-block-columns {
    margin-left: 0;
    margin-right: 0;
}

/* Prefooter (join cta) custom styles. NOTE: main styles in idu-blocks. */
.prefooter.idu-block--cta .idu-cta__inner h2 {
    font-size: var(--idu-h1);
}

/* Main footer */
/* Logo and socials */
.main-footer .left-col .widget {
    padding: 0;
}
.main-footer .left-col .wp-social-link,
.main-footer .left-col a.wp-block-social-link-anchor {
    border-radius: 20.12px;
    background: #F3EDE3;
}
.main-footer .left-col a.wp-block-social-link-anchor {
    display: flex;
    width: 40.24px;
    height: 40.24px;
    padding: 9.855px;
    align-items: flex-start;
    gap: 8.212px;
    aspect-ratio: 1/1;
}
.main-footer .left-col .wp-social-link a.wp-block-social-link-anchor  svg {
    width: 21px;
    height: 21px;
    aspect-ratio: 1/1;
    fill: #867C6B;
    color: #867C6B;
}
.main-footer .left-col figure.wp-block-image {
    margin-bottom: 0;
}

/* Navs */
.footer-widget .widget .widgettitle {
    color: #032B1B;
    font-size: 20px;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.2px;
    margin-bottom: 18px;
}
.footer-widget .widget ul.menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-widget .widget ul.menu li, 
.footer-widget .widget li, 
.footer-widget .widget ul.menu li, 
.footer-widget .widget li a {
    color: #394B41;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.16px;
    margin: 0;
}
.footer-widget .widget ul.menu li a {
    padding: 0;
    position: relative;
    display: inline-block;
    width: auto;
}
.footer-widget .widget ul.menu li.current-menu-item a  {
    color: var(--bb-primary-color) !important;
    background-color: transparent !important;
}
.footer-widget .widget ul.menu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}
.footer-widget .widget ul.menu li:hover a, 
.footer-widget .widget ul.menu li a:hover {
    background-color: transparent !important;
}
.footer-widget .widget ul.menu li:hover > a::after, 
.footer-widget .widget ul.menu li > a:hover::after, 
.footer-bottom-terms a:hover::after {
    background-color: var(--bb-header-links-hover);
}
.main-footer .right-col .widget {
    padding: 0 !important;
}
.main-footer .right-col .wp-block-column {
    display: flex;
    /* justify-content: center; */
}
.main-footer .right-col .wp-block-column:has(.idu-block--communities-nav) {
    flex-direction: column;
    /* justify-content: flex-start;
    align-items: center; */
}
.main-footer .right-col .wp-block-column .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    border-radius: 50px;
    gap: 10px;
    padding: 6px 14px;
    background: #F3EEE3;
    color: #394B41;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.16px;
}
.main-footer .right-col .wp-block-column a.wp-block-button__link::after {
    content: "\27F6";
    font-size: 0.9em;
    line-height: 1;
}
.main-footer .right-col .widget ul li a:hover {
    color: var(--bb-footer-menu-link-color-regular);
}


/* Copyright and terms  */
.footer-bottom {
    border-top: 1px solid #e0e0e0 !important;
}
.footer-bottom  .footer-bottom-right {
    max-width: unset;
}
.footer-bottom-terms {
    display: flex;
    gap: 20px;
}
.footer-bottom-terms a {
    color: var(--bb-footer-menu-link-color-regular);
    position: relative;
}
.footer-bottom-terms a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background-color: transparent;
    transition: background-color 0.2s ease;
}
.footer-bottom .copyright, 
.footer-bottom .footer-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.16px;
}
@media (max-width: 900px) {
    :root {
        --idu-padding-inline: 16px;
    }

    .page-template-default #content > .container {
        padding-inline: 0;
    };

    .bb-footer, 
    .site-content:not(.maintenance-content), 
    .site-header {
        padding-inline: var(--idu-padding-inline)
    }
    .bb-footer .footer-widget {
        -webkit-box-flex: 0 !important;
        -ms-flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex: unset;
    }
    .bb-footer > .container {
        padding-inline: 0;
    }
    .footer-widget-area, 
    .bb-footer.footer-widget-area {
        padding-top: 0 !important;
        padding-bottom: 30px !important;
    }
    .bb-footer .bb-grid {
        -ms-flex-flow: column wrap;
        flex-flow: column wrap;
        align-items: center;
        gap: 30px;
        margin-inline: 0;
    }
    .bb-footer .bb-grid .main-footer {
        flex-direction: column;
        row-gap: 30px;
    }
    .main-footer .left-col .widget {
        margin-bottom: 0;
    }
    .main-footer .left-col .wp-block-image {
        text-align: center;
    }
    .main-footer .left-col .wp-block-social-links {
        justify-content: center;
        margin: 20px 0 0;
    }
    .main-footer .right-col .widget {
        margin-bottom: 0;
    }
    .main-footer .right-col .wp-block-columns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        row-gap: 30px;
        column-gap: 0;
        margin-bottom: 0;
    }
    .main-footer .right-col .wp-block-column {
        justify-content: flex-start;
    }
    .bb-footer .bb-grid .main-footer .right-col {
        width: 100%;
        flex-basis: 100%;
    }
    /* swap columns 2 and 3 (Communities / Company) on mobile only */
    .main-footer .right-col .wp-block-column:nth-child(2) {
        order: 3;
    }
    .main-footer .right-col .wp-block-column:nth-child(3) {
        order: 2;
    }
    /* Communities column has a button that needs more than half the row */
    .main-footer .right-col .wp-block-column:has(.idu-block--communities-nav) {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        padding-block: 40px 45px !important;
    }
    .footer-bottom-right {
        padding-left: 0;
    }
    .footer-bottom-terms {
        justify-content: center;
    }

    header .bb-icon-l {
        font-size: 30px;
    }

    .main-footer .right-col .wp-block-columns {
        padding-top: 40px;
        border-top: 1px solid rgba(0, 0, 0, 0.10);
    }
    .main-footer .right-col  .wp-block-accordion-heading {
        margin-bottom: 0;
        color: #032B1B;
        font-size: 18px;
        font-weight: 500;
        line-height: normal;
        letter-spacing: -0.18px;
    }
    .main-footer .right-col  .wp-block-accordion-heading button {
        padding-block: 0;
        background: transparent;
        -webkit-tap-highlight-color: transparent;
    }
    .main-footer .right-col  .wp-block-accordion-heading button:hover,
    .main-footer .right-col  .wp-block-accordion-heading button:focus,
    .main-footer .right-col  .wp-block-accordion-heading button:active {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        text-decoration: none;
    }
    .main-footer .right-col .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title,
    .main-footer .right-col .wp-block-accordion-heading__toggle:focus .wp-block-accordion-heading__toggle-title,
    .main-footer .right-col .wp-block-accordion-heading__toggle:active .wp-block-accordion-heading__toggle-title {
        text-decoration: none;
    }
    .main-footer .right-col .wp-block-accordion-heading__toggle-icon {
        position: relative;
        display: inline-block;
        width: 8px;
        height: 8px;
        font-size: 0;
    }
    .main-footer .right-col .wp-block-accordion-heading__toggle-icon::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 50%;
        width: 8px;
        height: 8px;
        border-right: 2px solid #032B1B;
        border-bottom: 2px solid #032B1B;
        transform: translateY(-70%) rotate(45deg);
        transition: transform 0.25s ease;
    }
    .main-footer .right-col [aria-expanded="true"] .wp-block-accordion-heading__toggle-icon::after {
        transform: translateY(-30%) rotate(180deg);
    }
    .main-footer .right-col .wp-block-accordion-panel {
        margin-bottom: 20px;
    }
    .main-footer .right-col .wp-block-accordion-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .main-footer .right-col .wp-block-accordion-panel:not([inert]):not([aria-hidden="true"]) {
        max-height: 300px;
    }
}

@media (max-width: 767px) {
    .bb-footer aside.widget {
        padding: 0;
        margin-bottom: 0;
    }
}

@media (max-width: 600px) {
    .bb-footer .bb-grid .main-footer {
        margin-bottom: 0;
    }
    .footer-widget-area, 
    .bb-footer.footer-widget-area {
        padding-top: 0 !important;
        padding-bottom: 10px !important;
    }
    .bb-footer.footer-widget-area .footer-widget.area-1 aside:has(.main-footer) {
        padding-top: 30px !important;
    }
    .bb-footer .bb-grid .main-footer {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .main-footer .right-col .wp-block-accordion-item.is-open .wp-block-accordion-panel {
        margin-top: 20px;
    }
    .main-footer .right-col .wp-block-columns {
        row-gap: 0;
    }
    #page .footer-bottom {
        padding-left: 0;
        padding-right: 0;
        margin-inline: var(--idu-padding-inline);
    }
}

/* Mobile persistent search bar, below the header */
.idu-mobile-search-bar {
    display: none;
}
@media (max-width: 799px) {
    /* Since there's a search bar underneath the header, the site content etc. doesn't need the extra top padding. */
    .sticky-header .site-content, 
    body.buddypress.sticky-header .site-content, 
    .bb-buddypanel.sticky-header .site-content, 
    .single-sfwd-quiz.bb-buddypanel.sticky-header .site-content, 
    .single-sfwd-lessons.bb-buddypanel.sticky-header .site-content, 
    .single-sfwd-topic.bb-buddypanel.sticky-header .site-content {
        padding-top: 0 !important;
    }
    /* Mobile header height is set to 76px by theme (/themes/buddyboss-theme/assets/css/theme.css), between screen size 767px and 7909px. */
    .idu-mobile-search-bar {
        display: block;
        margin-top: 76px;
        padding: 0;
        background: #fff;
    }
    .idu-mobile-search-form {
        display: flex;
        align-items: center;
        gap: 8px;
        height: 46px;
        padding: 14px var(--idu-padding-inline);
        border: 1px solid #e5e7eb;
        background: #fff;
        border-top: 1px solid rgba(60, 55, 48, 0.20);
        border-bottom: 1px solid rgba(60, 55, 48, 0.20);
        background: #FFF;
        margin-bottom: 0;
        transition: box-shadow 0.2s ease, border-color 0.2s ease, border-width 0.2s ease;
    }
    .idu-mobile-search-form input[type="search"] {
        flex: 1 1 auto;
        min-width: 0;
        border: none;
        outline: none;
        background: transparent;
        font-size: 15px;
        font-weight: 400;
        line-height: normal;
        color: #022b1b;
        padding-inline: 0;
    }
    .idu-mobile-search-form input[type="search"]:focus {
        box-shadow: none;
    }
    .idu-mobile-search-form:has(input[type="search"]:focus) {
        box-shadow: 0 0 0 2px #0c3b2e;
        border-top: 1px solid #022B1B;;
        border-bottom: 1px solid #022B1B;;
    }
    .idu-mobile-search-form input[type="search"]::placeholder {
        color: #6b7280;
    }
    .idu-mobile-search-form button {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: transparent;
        color: #022b1b;
        cursor: pointer;
        padding: 0;
    }
    .idu-mobile-search-form button i {
        font-size: 20px;
    }

    /* Suggestions dropdown (ajax) */
    body.bp-search ul.ui-autocomplete.bp-search-ac, 
    ul.ui-autocomplete.body.bp-search .bp-search-ac-header {
        left: 50% !important;
        width: 90% !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 767px) {
    .idu-mobile-search-bar {
        margin-top: var(--bb-header-height);
    }
}

/* Mobile bottom toolbar - Search / Homepage / My Account */
.idu-bottom-toolbar {
    display: none;
}
@media (max-width: 799px) {
    .idu-bottom-toolbar {
        display: flex;
        align-items: stretch;
        justify-content: space-around;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        padding-bottom: env(safe-area-inset-bottom, 0);
        padding-inline: var(--idu-padding-inline);
        border-top: 1px solid #E5E5E5;
        background: #FFF;
        box-shadow: 10px 0 15px 0 rgba(0, 0, 0, 0.15);
    }
    .idu-bottom-toolbar__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 15px 0;
        color: #032B1B;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        line-height: normal;
        letter-spacing: -0.16px;
    }
    .idu-bottom-toolbar__item i {
        font-size: 25px;
    }
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }
}



/* Job application */
#job-manager-job-applications .job-applications ul.job-applications .job-application footer ul.actions li a {
    padding: 1em !important;
}