#socket {
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

/* ODDZIELENIE STRUKTURY GRUP OD PROFILU BBP */
body.groups:not(.bp-user) #main-container {
    z-index: 2;
    position: relative;
    background: #ffffff;
    border-radius: 15px;
    margin: 0 auto 5em auto !important;
    padding: 20px 60px !important;
    max-width: 1300px !important;
    box-shadow: 0 0 22px -5px rgb(171 171 171 / 30%);
}

body.groups:not(.bp-user) #buddypress > .container-wrap {
    max-width: 1300px;
    z-index: 1;
    margin: 0 auto;
    -webkit-box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    -moz-box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    position: relative;
}

body.groups:not(.bp-user) .bp-full-width-profile {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
    max-width: 1300px;
    margin: 0 auto;
    -webkit-box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    -moz-box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    position: relative;
}

.groups #footer {
    z-index: 2;
}

#buddypress div#group-create-tabs ul li.current a {
    border-color: #4b92f7 !important;
    color: #4b92f7 !important;
    font-weight: 500;
}

#buddypress div#group-create-tabs ul li a {
    padding: 0 10px!important;
    min-height: auto!important;
    font-size: 15px!important;
}

#buddypress .standard-form div.submit {
    padding: 8px !important;
}

#buddypress .standard-form #previous-next input {
    border: none;
    color: #FFFFFF !important;
    background: none;
    margin-right: 0 !important;
}

#buddypress .standard-form #previous-next:hover {
    background: #52a8e8;
}

#buddypress .standard-form #previous-next input:hover {
    background: #3b9de5;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.groups .main-color .template-page {
    z-index: 2;
    border: none;
}

#group-create-body h4 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

#buddypress .standard-form #previous-next #group-creation-create:hover {
    background: #52a8e8;
}

#group-create-body #group-name, #group-create-body #group-desc {
    border-radius: 6px;
    border: 1px solid #a3a3a3;
    box-shadow: 0 2px 3px 0 rgb(0 0 0 / 20%);
}

#buddypress .standard-form input[type=text]:focus {
    background-color: #FFFFFF !important;
}

.groups .textwidget hr {
    display: none;
}

.groups .sidebar-right {
    display: flex;
    border: none !important;
}

.groups .sidebar-right .textwidget {
    border: none;
    margin-top: 75px;
    box-shadow: 0 0 22px -5px rgb(171 171 171 / 30%);
    padding: 25px;
    border-radius: 15px;
}

#buddypress .standard-form div.radio label {
    color: #3d3d3d !important;
}

.groups .wg-bloglist-sidebar {
    display: flex;
    align-items: start;
}

#buddypress div#group-create-tabs ul {
    padding-top: 0 !important;
}

.course .submit {
    margin-top: 20px;
    border-radius: 8px;
    border: 1px solid #4b92f7 !important;
}

.checkbox #bbp-create-group-forum {
    appearance: auto;
    width: 35px;
    height: 18px;
    margin-top: 0;
}

#group-create-body .left-menu {
    margin-right: 25px;
}

#group-create-body .bp-avatar-nav {
    padding-top: 20px;
}

#group-create-body #bp-browse-button {
    width: auto;
}

.course .submit input:last-child {
    color: #4b92f7 !important;
}

.groups .item-body .checkbox {
    width: 100%;
    border: none;
    padding-left: 10px;
}

.groups .item-body .checkbox label::before {
    content: none !important;
}

#group-create-body .radio ul li {
    display: flex;
    list-style: none;
}

#group-create-body .radio ul li:before {
    content: "•";
    margin-right: 15px;
    color: rgb(1, 91, 250);
    font-size: 24px;
    line-height: 56px;
    display: inline-flex;
    height: 18px;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

body.groups:not(.bp-user) #main-container {
    margin-top: -30px !important;
    padding-top: 35px;
}

/* forum : START */
#main #bbpress-forums #favorite-toggle{
    font-family: 'Poppins', sans-serif !important;
    float: right;
    margin-right: 10px;
    padding: 0;
    border: 0;
}

/**** Rectangle on top ****/
.rectangle-bg {
    clip-path: polygon(100% 0, 28% 0, 100% 100%);
    background: linear-gradient(90deg, rgb(75, 146, 247) 45%, #f7f7f7 100%);
    position: absolute;
    height: 1450px;
    width: 85%;
    top: -135px;
    right: 0;
    z-index: 0;
}

body.home-page.home .rectangle-bg {
    z-index: 1;
}

@media (min-width: 1024px) and (max-width: 1440px) {
    .rectangle-bg {
        width: 91%;
        height: 1050px;
    }
}

.bluebghalf {
    background: #F7FAFF;
    position: absolute;
    top: 0;
    z-index: 0;
    width: 100%;
}

/**** Header ****/
.header-color .kleo-main-header {
    border-color: transparent !important;
    background: transparent !important;
}

#header .navbar {
    background: transparent !important;
}

.groups #header-cover-image {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

/* Header menu static */
.header-color .icon-bell,
.header-color .notify-items,
.header-color .cart-items i,
.header-color .search-trigger i,
#nav-menu-item-side a i,
.header-color .kleo-bp-user-avatar .caret:after {
    color: #333 !important;
}

/* Header menu sticky */
.kleo-navbar-fixed .kleo-main-header.header-scrolled a,
.kleo-navbar-fixed .kleo-main-header.header-scrolled .icon-bell,
.kleo-navbar-fixed .kleo-main-header.header-scrolled .notify-items,
.kleo-navbar-fixed .kleo-main-header.header-scrolled .cart-items i,
.kleo-navbar-fixed .kleo-main-header.header-scrolled .search-trigger i,
.kleo-navbar-fixed .kleo-main-header.header-scrolled .kleo-bp-user-avatar .caret:after,
.header-color .bimv-custom-blog-link {
    color: #333 !important;
}

#undefined-sticky-wrapper > div > div > div.navbar-header > div.bimv-courses-menu-container > div > a {
    color: #fff !important;
}

.kleo-navbar-fixed .kleo-main-header.header-scrolled #nav-menu-item-side a i {
    color: #4b92f7 !important;
}

/* Breadcrumbs */
.groups .breadcrumbs-container {
    z-index: 9;
    background: transparent !important;
    position: relative;
    border: 0 !important;
}

/* title */
.wg-group-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    font-weight: 600;
    color: #fff !important;
    letter-spacing: 0.2px;
    margin-bottom: 0;
}

.wg-group-type {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff !important;
}

/* Tabs */
.groups #buddypress div#item-nav ul li a:before {
    display: inline-block !important;
    font-size: 20px !important;
    margin-right: 10px !important;
    color: #8c8c8c !important;
}

.groups #buddypress div#item-nav {
    padding-left: 0 !important;
}

.groups #item-nav > .item-list-tabs {
    margin: 0 auto !important;
}

.groups #buddypress div#item-nav .responsive-tabs {
    height: 55px;
    background: #fff;
    border-radius: 25px;
    display: inline-block !important;
    position: relative;
    border: 1px solid #8c8c8c;
}

.groups #buddypress div#item-nav ul li a {
    color: #1c1c1c !important;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.bp-overlay-menu #buddypress div#item-nav ul li.current a {
    background: transparent !important;
}

.bp-overlay-menu #buddypress div#item-nav ul li:last-child.current a:after {
    width: 72%;
}

.groups #buddypress div#item-nav {
    height: 55px;
    margin-bottom: -5px;
}

.groups .status.completed {
    position: absolute !important;
    top: 10px;
    right: 35px;
}

.groups .course .module header {
    max-width: 75% !important;
}

/* Courses */
.groups .module {
    padding: 15px 0;
    border-radius: 10px;
    box-shadow: 0px 0px 22px -5px rgb(171 171 171 / 30%);
}

.groups .module header {
    background-color: transparent !important;
}

.groups .module header h2 {
    font-weight: 600;
}

.groups .module header h2 a {
    color: #06a5e6 !important;
}

.groups .module .module-lessons header {
    background-color: transparent !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.groups .meter.red > span {
    background: #06a5e6;
}

.groups .module .module-lessons ul li a {
    border-top: 0 !important;
    border-bottom: 0 !important;
    background: transparent !important;
    font-family: 'Poppins', sans-serif;
}

.groups .module .status.in-progress {
    background-color: #06a5e6;
    border-radius: 25px;
    position: absolute;
    top: 15px;
    right: 5%;
    padding: 5px 15px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
}

.groups .course .module {
    position: relative;
}

.groups .module .module-lessons ul li a:after {
    content: '';
    height: 20px;
    width: 2px;
    background-color: #06a5e6 !important;
    display: block;
    position: absolute;
    z-index: 9;
    left: 29px;
    top: 32px;
}

.groups .module .module-lessons ul li:last-child a:after {
    display: none !important;
}

.groups .module .module-lessons ul li.completed a:before,
.course .module .module-lessons ul li a:before{
    color: #06a5e6 !important;
}

.groups .course-completion-rate {
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.groups .meter {
    background: #b9b9b9 !important;
}

/**** Sidebar ****/
.groups .main-color .sidebar-right,
.groups .main-color .sidebar-main,
.groups .main-color .sidebar,
.groups .main-color .template-page {
    border-color: transparent !important;
}

.groups .widget-title {
    font-size: 17px;
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 15px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.groups .group-admins {
    border: 1px solid #06a5e6;
    border-radius: 20px;
    padding: 10px 25px;
	margin-top: 150px;
    margin-right: 40px;
}

.groups #group-admins li {
    display: inline-block;
    margin-left: -10px;
}

.groups #group-admins li:first-child {
    margin-left: 0;
}

.groups #group-admins li a img {
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Info block */
.info-block-group {
    margin-top: 2em;
    -webkit-box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    -moz-box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    box-shadow: 0px 0px 22px -5px rgba(171, 171, 171, 0.3);
    padding: 25px;
    border-radius: 15px;
	margin-right: 40px;
}

.info-block-group h3 {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.info-block-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.info-block-row .ib-content {
    width: 80%;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;;
    font-size: 15px;
    color: #555;
}

.info-block-row img {
    background-color: #dbeaff;
    padding: 10px;
    border-radius: 50%;
    vertical-align: middle;
    max-width: 25px;
    height: auto;
}

/* Files */
.course-files {
    margin-top: 2em;
}

.course-files h3 {
    font-size: 17px;
    color: #333;
    font-weight: 600;
    margin-bottom: 25px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.course-files .file-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 15px;
    background: #ededed;
    padding: 15px;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
}

.course-files .file-row:hover {
    background: #e4e4e4
}

.course-files .file-row:last-child {
    margin-bottom: 0;
}

.course-files .file-row img {
    width: 25px;
    margin-right: 5px;
    filter: brightness(0.2) sepia(1) hue-rotate(330deg) saturate(1);
    opacity: 0.55;
}

.course-files .file-row span {
    color: #5e5e5e;
    font-size: 16px;
    font-weight: 500;
}

.course .status.completed {
    height: 40px;
    font-weight: 400;
    display: inline-flex;
    line-height: 1.9;
    border-radius: 50px;
    text-align: center;
    display: inline-block;
    position: relative;
    margin-left: 20px;
    font-family: 'Poppins', sans-serif;
}

.course .status:before {
    line-height: 1.9
}

.groups .coursesprogress .status.completed {
    position: relative !important;
    margin-left: 35px !important;
    top: 30px !important;
    padding: 7px 20px !important;
}

/*** Footer ***/
#footer p, #socket p {
    font-weight: 400 !important;
}

/**************** Mobiles devices ****************/
@media (min-width: 769px) and (max-width: 1024px) {
    html #buddypress form#whats-new-form p.activity-greeting {
        line-height: 1.5 !important;
    }
    .groups #header-cover-image {
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
    }
}

@media (max-width: 768px) {
    html .groups .status.completed {
        position: relative !important;
        top: 0px;
        right: 0px;
    }
    .groups .module .status.in-progress {
        position: relative;
        top: 0;
        right: 0;
        left: 5%;
    }
    .groups .coursesprogress .status.completed {
        position: relative !important;
        margin: 25px 0 !important;
        top: 0 !important;
    }
    .groups .article-content {
        padding-left: 0 !important;
    }
    .groups #buddypress div#item-nav {
        height: 80px;
    }
    .groups .coursesprogress {
        display: flex;
        align-items: center;
        flex-direction: column;
    }
}

.groups .module header h2 {
    font-weight: 700;
}

.course .module header h2 {
    display: inline-block;
    font-size: 1.6em;
    margin-right: 20px;
}

#subscription-toggle {
    float: right;
}

#subscription-toggle > span {
    border: 0;
    background-color: #fff !important;
    border-width: unset !important;
    border-style: unset !important;
}

span.bbp-admin-links a.bbp-topic-reply-link,
span.bbp-admin-links a.bbp-reply-to-link {
    background-color: unset;
    border-color: unset;
    border-style: unset;
    padding: 0;
    border-radius: 0;
    color: #bbb
}

#bbpress-forums div.reply {
    border: 1px solid #e5e5e5;
    padding: 20px;
}

/* BIMV - NOWOCZESNY WIDOK MODUŁÓW I LEKCJI (OSI CZASU) */
.groups .course.coursesprogress {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 30px !important;
    display: block;
}

.groups .course.coursesprogress .progress.statement {
    display: none !important;
}

.groups .course.coursesprogress .meter {
    background: #e2e8f0 !important;
    height: 24px !important;
    border-radius: 12px !important;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.06) !important;
}

.groups .course.coursesprogress .meter > span {
    background: #0ea5e9 !important;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700;
    line-height: 24px !important;
    border-radius: 12px !important;
    box-sizing: border-box;
}

.groups .status {
    border-radius: 6px !important; 
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.4 !important;
    box-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Poppins', sans-serif;
}

.groups .status.in-progress,
.groups .course.coursesprogress .status.in-progress {
    background-color: #ffffff !important; 
    color: #64748b !important;
    border: 1px solid #cbd5e1 !important;
}

.groups .status.completed,
.groups .course.coursesprogress .status.completed {
    background-color: #ffffff !important; 
    color: #10b981 !important;
    border: 1px solid #10b981 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin: 15px 0 0 0 !important; 
}

.groups .module {
    background: #ffffff !important;
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
    border: 1px solid #e0f0fa !important;
    margin-bottom: 25px !important;
    position: relative;
    overflow: hidden;
}

.groups .module header {
    background: #f4fafd !important;
    padding: 15px 25px !important;
    border-bottom: 1px solid #e0f0fa !important;
}

.groups .module header h2 {
    font-weight: 600 !important;
    font-size: 18px !important;
    color: #333333 !important;
    margin: 0 !important;
    max-width: 70%; 
}

.groups .module .status {
    position: absolute !important;
    top: 13px !important;
    right: 25px !important;
    margin: 0 !important;
    left: auto !important;
    z-index: 5;
}

.groups .module section.entry {
    padding: 20px 25px 10px 25px !important;
    background: #ffffff !important;
}

.groups .module .module-lessons header {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.groups .module .module-lessons header h3 {
    font-size: 13px !important;
    text-transform: uppercase;
    color: #64748b !important;
    letter-spacing: 0.5px;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
}

.groups .module .module-lessons ul li::before,
.groups .module .module-lessons ul li:before,
.groups .module .module-lessons ul li::after,
.groups .module .module-lessons ul li:after,
.groups .module .module-lessons ul li a::before,
.groups .module .module-lessons ul li a:before,
.groups .module .module-lessons ul li a::after,
.groups .module .module-lessons ul li a:after {
    content: none !important;
    display: none !important;
    background: none !important;
    border: none !important;
    width: 0 !important;
    height: 0 !important;
}

.groups .module .module-lessons ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0;
    position: relative;
}

.groups .module .module-lessons ul::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 25px;
    left: 12px;
    width: 2px;
    background-color: #0ea5e9;
    z-index: 1;
    display: block !important;
}

.groups .module .module-lessons ul li.timeline-item {
    position: relative;
    padding-left: 45px !important;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    min-height: 28px;
    background: transparent !important;
}

.groups .module .module-lessons ul li.timeline-item .timeline-node {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 26px; 
    height: 26px;
    background-color: #ffffff;
    border: 2px solid #0ea5e9;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.groups .module .module-lessons ul li.timeline-item.completed .timeline-node {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.groups .module .module-lessons ul li.timeline-item a {
    color: #475569 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    transition: color 0.2s ease;
}

.groups .module .module-lessons ul li.timeline-item a:hover {
    color: #1e293b !important;
}

.groups .module .module-lessons ul li.timeline-item.completed a {
    color: #0ea5e9 !important;
}

.groups .module .module-lessons ul li.timeline-item.completed a:hover {
    color: #0284c7 !important;
}

@media (max-width: 768px) {
    .groups .module header {
        flex-direction: column;
        align-items: flex-start;
    }
    .groups .module .status {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        margin-top: 10px !important;
        display: inline-block !important;
    }
    .groups .module header h2 {
        max-width: 100%;
    }
}

.groups section.course-lessons > header {
    display: none !important;
}

.groups section.course-lessons {
    margin: 0 !important;
    padding: 0 !important;
}

/* BIMV - CZAS TRWANIA LEKCJI I MODUŁÓW */
.groups .module header h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100% !important;
}

.groups .module header h2 .module-total-time {
    font-size: 14px !important;
    color: #0ea5e9 !important;
    font-weight: 600;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid #e0f0fa;
    white-space: nowrap;
}

.groups .module .module-lessons ul li.timeline-item .lesson-meta-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.groups .module .module-lessons ul li.timeline-item a {
    flex-grow: 1;
    padding-right: 15px !important;
}

.groups .module .module-lessons ul li.timeline-item .lesson-length {
    font-size: 13px !important;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
    background-color: #f8fafc;
    padding: 2px 8px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .groups .module header h2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .groups .module .module-lessons ul li.timeline-item .lesson-meta-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

.groups .module header h2.module-header-title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    width: 100% !important;
    max-width: calc(100% - 150px) !important;
    margin: 0 !important;
    flex-wrap: wrap;
}

.groups .module header h2 .module-name {
    color: #333333;
}

.groups .module header h2 .module-total-time {
    font-size: 13px !important;
    color: #0ea5e9 !important;
    font-weight: 600;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #e0f0fa;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.groups .module header h2 .module-total-time i {
    font-size: 14px;
    color: #0ea5e9;
}

@media (max-width: 768px) {
    .groups .module header h2.module-header-title {
        max-width: 100% !important;
    }
}

/* UKRYWANIE ELEMENTÓW AKTYWNOŚCI GRUPY (Klasa z PHP) */
body.groups.bimv-hide-activity-forms #whats-new-form, 
body.groups.bimv-hide-activity-forms .activity-update-form, 
body.groups.bimv-hide-activity-forms #whats-new-options, 
body.groups.bimv-hide-activity-forms #whats-new-content,
body.groups.bimv-hide-activity-forms .group-activity-form {
    display: none !important; 
    visibility: hidden !important; 
    height: 0 !important; 
    overflow: hidden !important;
}

/* ==========================================================================
   BIMV: OVERRIDE - NAPRAWA UKŁADU GRUP (SZEROKOŚĆ I TŁA)
   ========================================================================== */

/* 1. Usunięcie "stosu białych pudełek" wewnątrz głównego kontenera grupy */
body.groups .bimv-bp-content-area,
body.groups .bimv-bp-inner-content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    border: none !important;
}

/* 2. Odblokowanie szerokości wewnętrznych dla BuddyPress */
body.groups #buddypress {
    width: 100% !important;
    max-width: 100% !important;
}

/* Reset wewnętrznego obszaru treści, by nie dorzucał niechcianego tła */
body.groups #buddypress #item-body {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* 3. Naprawa wąskiego paska postępu i sylabusa */
/* Znosimy starą blokadę z group.css, która dusiła moduły kursu do 75% */
body.groups .course .module header,
body.groups .course .module {
    max-width: 100% !important;
    width: 100% !important;
}

/* Rozciągnięcie sekcji postępu */
body.groups .kumar.course.coursesprogress,
body.groups .coursesprogress .meter {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ==========================================================================
   BIMV: ROZCIĄGNIĘCIE SYLABUSA (LISTY LEKCJI) W GRUPACH
   ========================================================================== */

/* Zmuszamy kontenery modułów i lekcji do bezwzględnego zajęcia 100% szerokości białego tła. 
   Neutralizuje to blokady narzucane przez globalne klasy motywu (np. .post) */
body.groups #buddypress #item-body article.module,
body.groups #buddypress #item-body article.post.module,
body.groups article.module {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    display: block !important;
    clear: both !important;
}

/* Wymuszenie 100% na nagłówku z tytułem modułu i czasem */
body.groups #buddypress #item-body article.module header,
body.groups article.module header {
    width: 100% !important;
    max-width: 100% !important;
}

/* Rozciągnięcie strefy dla lekcji nieprzypisanych do modułów (jeśli takie istnieją) */
body.groups #buddypress #item-body section.course-lessons {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
}

/* ==========================================================================
   BIMV: USUNIĘCIE BIAŁEJ RAMKI (WYPEŁNIENIE KONTENERA GRUPY)
   ========================================================================== */

/* 1. Likwidacja sztucznego paddingu z głównego boxa (który tworzył białe paski) */
body.groups:not(.bp-user) #main-container {
    padding: 0 !important;
    overflow: hidden !important; /* Bezpiecznie docina krawędzie zdjęcia do zaokrągleń boxa (15px) */
}

/* 2. Zneutralizowanie ukrytych marginesów siatki Bootstrapa */
body.groups:not(.bp-user) #main-container > .row {
    margin: 0 !important;
}

body.groups:not(.bp-user) #main-container > .row > div {
    padding: 0 !important; /* Wypuszcza zawartość do samych krawędzi */
}

/* 3. Przywrócenie oddechu (wewnętrznych marginesów) dla treści i widgetów (poniżej zdjęcia) */
body.groups #buddypress #item-body {
    padding: 30px 40px 50px 50px !important;
    box-sizing: border-box !important;
}

body.groups .sidebar.sidebar-main {
    padding: 30px 50px 50px 20px !important;
    box-sizing: border-box !important;
}

/* RWD dla smartfonów i tabletów */
@media (max-width: 991px) {
    body.groups #buddypress #item-body {
        padding: 20px 20px 30px 20px !important;
    }
    body.groups .sidebar.sidebar-main {
        padding: 0 20px 30px 20px !important;
    }
}

/* ==========================================================================
   BIMV: ZAOKRĄGLENIE AWATARA W SEKCJI AUTOR KURSU (SIDEBAR)
   ========================================================================== */
.group-widget.group-admins .sc-author img.avatar {
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    border: none !important;
    /* Dodajemy ten sam cień, co w aktywnościach, dla spójności */
    -webkit-box-shadow: 0px 6px 12px -3px rgba(75, 146, 247, 0.4) !important;
    -moz-box-shadow: 0px 6px 12px -3px rgba(75, 146, 247, 0.4) !important;
    box-shadow: 0px 6px 12px -3px rgba(75, 146, 247, 0.4) !important;
    margin: 0 !important;
}