div.groups-header div#cover-image-container, div#buddypress div.bp-wrap nav#object-nav.groups-nav{
    display:none !important;
}

div.view-mobile-community article div.bp-wrap div.bb-profile-grid.bb-grid{
    display: flex;
    flex-direction: column-reverse;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    aside.widget_bp_widget_btn_invite, div#volunteer-donation-community{
        display: none;
    }

    div#groups-buttons-action-nav-bar div.col .group-btn-action-mobile{
        color: black;
        background-color: lightgrey;
        border: lightgrey;
        font-size: 15px;
        padding-right: 1rem!important;
        padding-left: 1rem!important;
    }

    div#groups-buttons-action-nav-bar div.col{
        padding: 0px 0px;
    }

    #custom-copy-link-container{
        text-align: end;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    aside.widget_bp_widget_btn_invite, div#volunteer-donation-community{
        display: none;
    }

    div#groups-buttons-action-nav-bar div.col .group-btn-action-mobile{
        color: black;
        background-color: lightgrey;
        border: lightgrey;
        font-size: 15px;
        padding-right: 1.5rem!important;
        padding-left: 1.5rem!important;
    }

    div#groups-buttons-action-nav-bar div.col{
       padding: 0px 0px;
    }

    #custom-copy-link-container{
        text-align: end;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    aside.widget_bp_widget_btn_invite, div#volunteer-donation-community{
        display: block;
    }
    
    a.en-language-change, a.en-language-change img, a.es-language-change, a.es-language-change img{
        display: block !important;
    }

    #custom-copy-link-container {
        position: absolute;
        top: -10px;
        right: 20px;
    }
} 

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    #secondary.widget-area > div.scrolling-data-index {
        width: 100%;
        max-width: 100% !important;
    }

    div#content div.site-content-grid div#secondary.widget-area{
        width: 26.66%;
    }

    aside.widget_bp_widget_btn_invite, div#volunteer-donation-community{
        display: block;
    }

    div#content div.site-content-grid div#primary main#main article.bp_group div.bb-profile-grid .widget-area:not(.widget-area-secondary) {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 55%;
        flex: 0 0 55%;
        max-width: 55%;
    }
  
    div#group-activity .bb-sticky-sidebar.scrolling-data-index{
        position: fixed;
        width: 39%;
    }

    #custom-copy-link-container {
        position: absolute;
        top: -10px;
        right: 20px;
    }
} 

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    div#content div.site-content-grid div#secondary.widget-area{
        width: 26.66%;
    }

    aside.widget_bp_widget_btn_invite, div#volunteer-donation-community{
        display: block;
    }

    div#content div.site-content-grid div#secondary.widget-area > .scrolling-data-index {
        width: 25.66% !important;
    }

    div#content div.site-content-grid div#primary main#main article.bp_group div.bb-profile-grid .widget-area:not(.widget-area-secondary) {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 55%;
        flex: 0 0 55%;
        max-width: 55%;
    }
  
    div#group-activity .bb-sticky-sidebar.scrolling-data-index{
        position: fixed;
        width: 39%;
    }

    #custom-copy-link-container {
        position: absolute;
        top: -10px;
        right: 20px;
    }
}

#mobile-group-info.custom-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

#mobile-group-info {
    .custom-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .custom-logo-container {
        flex-shrink: 0;
    }

    .custom-logo {
        width: 50px;
        height: 50px;
        border-radius: 50%;
    }

    .custom-title-container {
        flex-grow: 1;
        margin-left: 15px;
    }

    .custom-title-container h1 {
        margin: 0;
        font-size: 1.5em;
        white-space: normal;
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 30px;
    }

    .custom-verified {
        display: flex;
        align-items: center;
        font-size: 0.9em;
        color: #4caf50;
        margin-top: 5px;
    }

    .custom-verified .bb-icon-check.bb-icon-rf {
        margin-left: 5px;
    }

    #custom-copy-link-container .copy-link {
        background-color: #fff;
        border: 2px solid #a2eeff;
        border-radius: 20px;
        padding: 5px 10px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        font-weight: bold;
        color: #000;
        margin-bottom: 0;
    }

    #custom-copy-link-container .copy-link i {
        margin-right: 5px;
        display: inline-block;
        vertical-align: middle;
    }

    #custom-copy-link-container .copy-link:hover {
        background-color: #e0e0e0;
    }

    .custom-social-icons {
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .custom-social-icon {
        width: 30px;
        height: 30px;
        margin: 0 5px;
    }

    .custom-card-body {
        display: flex;
        justify-content: center;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .custom-card-body .col {
        flex: 1;
        max-width: 33.333%;
        display: flex;
        justify-content: center;
        margin: 5px;
    }

    .custom-card-body .btn {
        background-color: #e0e0e0;
        color: #000;
        flex: 1;
        max-width: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    .custom-card-body.two-buttons .col {
        max-width: 50%;
    }    
}