/*
Theme Name:   Buddyboss Child
Description:  Developed for Aeiforia GmbH
Template:     buddyboss-theme
Version:      1.0.0
*/

:root {
    --content-space-bottom: 30px;
    --spacing-content: 25px;
    --spacing-page: 35px;
    --font-main: 'Open Sans';
    --font-sub: 'Georgia', 'Times New Roman', Times, serif;
    --color-white: #ffffff;
    --color-grey-a: #f5f6f4;
    --color-grey-b: #e4e7e2;
    --color-grey-c: #c4c6c3;
    --color-grey-d: #7a8077;
    --color-grey-e: #676d6e;
    --color-grey-f: #404040;
    --color-red: #cc1f2f;
    --tec-font-family-sans-serif: 'Open Sans';
}

/*** search results page ***/
/* use course icon from buddyboss sidebar nav */
.bp-search-results-wrapper .bp-navs .cpt-sfwd-courses a:before {
    content: '\eeac' !important;
    font-size: 22px;
}

/* newsfeed emojis for reaction > smaller */
.activity-list .activity-item .ac-emotions_list .ac-emotion_item i {
    font-size: 20px;
}
.activity-list .activity-item .ac-emotions_list .ac-emotion_item img {
    width: 20px;
    height: 20px;
}

/* do not show create account links and buttons when wp-registration is enabled */
#wpadminbar #wp-admin-bar-root-default li#wp-admin-bar-bp-register,
.button.small.signup {
    display: none;
}



/* BEGIN aeiforia CI basics */
h2, h3, h4, h5, h6 {
    font-weight: 200 !important;
}

.bb-courses-header .bb-title,
h1.tribe-events-single-event-title {
    font-family: var(--font-sub) !important;   
    font-weight: 400; 
}

body.buddypress article.page > .entry-header .entry-title,
.bb-courses-header .bb-title,
h1,
h3.wp-block-heading {
    color: var(--color-red) !important;
}
h2,
h2.list-title.groups-title a {
    color: var(--color-grey-e) !important;
}

/* course page title - temp - change color for accessibility */
.bb-course-banner-inner .entry-title {
    color: #ffffff !important;
}

.edd-submit, 
.has-edd-button-background-color,
#edd_purchase_submit input[type="submit"] {
    position: relative !important;
    padding: 6px 12px !important;
    background: var(--color-grey-d) !important;
    color: #ffffff !important;
    border-radius: 3px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 24px !important;
}


/* END aeiforia CI basics */



/* BEGIN gutenberg templates for aeiforia */
.content-box-grey,
.content-box-grey-dark {
    padding: 24px 30px;
    margin-bottom: var(--content-space-bottom);    
}
.content-box-grey {
    background-color: #f5f6f4;
}
.content-box-grey-dark {
    background-color: #e4e7e2;
}

.content-box-grey p,
.content-box-grey-dark p {
    margin-bottom:0;
}

.single-download.salespage-template #content {
    background: #ffffff;
}
.single-download.salespage-template .content-area {
    padding-top: 0;
}
.single-download.salespage-template .entry-header {
    display: none;
}
.single-download.salespage-template .entry-content {
    padding: 0 !important;
    border: none !important;
}

.salespage-group-wrap .salespage-header-element {
    min-height: 400px;
    margin-bottom: var(--content-space-bottom);
    overflow: visible !important; 
}
.salespage-group-wrap .salespage-header-element:after {
    content: '';
    background-image: url('https://academy.aeiforia.de/wp-content/uploads/2025/06/slideshow_shadow.png');
    background-size: 100%;
    background-repeat: no-repeat;
    height: 80px;
    width: 100%;
    left: 0;
    bottom: -79px;
    position: absolute;
}
.salespage-group-wrap .salespage-header-element .wp-block-cover__inner-container {
    box-sizing: border-box;
    max-width: 350px;
    position: absolute;
    right: 100px;
    bottom: 80px;
}
.salespage-group-wrap .salespage-header-element p {
    text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.75);
    color: #ffffff;
    text-align: right; 
    font-family: var(--font-sub);
    font-weight: 400;
    font-style: normal;
    font-size: 40px !important;
    line-height: 46px;
    margin-bottom: 0;
}
.salespage-group-wrap .wp-block-columns.salespage-content {
    margin-left: 0;
    margin-right: 0;
    position: relative;
}
.salespage-group-wrap .salespage-content-left {
    padding-right: 80px;
}
.salespage-group-wrap .salespage-content-left:after {
    display: inline-block;
    position: absolute;
    top: 0px;
    left: 65.1%;
    content: '';
    width: 1px;
    height: 100%;
    background-image: -o-linear-gradient(top, #c4c6c3 33.33333%, rgba(255, 255, 255, 0) 0%);
    background-image: linear-gradient(to bottom, #c4c6c3 33.33333%, rgba(255, 255, 255, 0) 0%);
    background-repeat: repeat-y;
    background-position: top;
    background-size: 1px 3px;
}
.salespage-group-wrap .salespage-content-right {
    padding-left: 20px;
}

.salespage-group-wrap .wp-block-columns.salespage-content p {
    padding-left: 0;
    padding-right: 0;
}

.group-sidebar-element {
    position:relative;
}
.group-sidebar-element-title {
    font-size: 24px;
    line-height: 30px;
    font-family: var(--font-sub);
    color: var(--color-red);
    margin-bottom: 25px;
}
.group-sidebar-element-title:after{
    display: inline-block;
    top: 100%;
    right: 0px;
    left: 0px;
    content: '';
    width: 100%;
    height: 1px;
    background-image: -o-linear-gradient(left, #c4c6c3 33.33333%, rgba(255, 255, 255, 0) 0%);
    background-image: linear-gradient(to right, #c4c6c3 33.33333%, rgba(255, 255, 255, 0) 0%);
    background-repeat: repeat-x;
    background-position: top;
    background-size: 3px 1px;
}
/* END gutenberg templates for aeiforia */



.learndash-wrapper:not(.ld-registration__outer-wrapper):not(.learndash-wrapper--modern) .ld-content-actions .ld-content-action {
    flex-basis: 230px !important;
}
.ld-icon-arrow-down:before {
    color: #ffffff;
}

/* Temp Fix BuddyBoss NewsFeed Text Transform */
.activity-head-bar .bb-subnav-filters-container.bb-subnav-filters-filtering .subnav-filters-opener span {
    text-transform: capitalize !important;
}

/* Temp Fix GravityForm select field in chrome */
body .gform_wrapper input[type="text"],
body .gform_wrapper input[type="email"],
body .gform_wrapper input[type="url"],
body .gform_wrapper input[type="tel"],
body .gform_wrapper input[type="number"],
body .gform_wrapper input[type="password"],
body .gform_wrapper textarea,
body .gform_wrapper select {
    height: 45px !important;
    line-height: 45px !important;
    padding: 0 10px !important;
    box-sizing: border-box;
}

body .gform_wrapper input[type="submit"] {
    background-color: var(--color-red) !important;
    color: var(--color-white) !important;
    font-weight: 700 !important;
}
body .gform_wrapper input[type="submit"]:hover {
    opacity: .8 !important;
}
.gfield_checkbox input[type="checkbox"] + label:before {
    background-color: var(--color-white) !important;
}
.gfield_checkbox input[type="checkbox"]:checked + label:after {
    color: var(--gf-ctrl-label-color-secondary) !important;
}