.community-photo-preview{

    display:none;
    flex-wrap:wrap;
    gap:10px;
    width:100%;
    margin-top:15px;

}

.community-photo-item{

    position:relative;

    width:calc(20% - 8px);
    height:120px;

    flex:0 0 calc(20% - 8px);

    overflow:hidden;

    border-radius:10px;

    border:1px solid #E5E7EB;

    box-sizing:border-box;

}

.community-photo-thumb{

    width:100%;
    height:100%;
    object-fit:cover;
    display:block;

}

.community-remove-photo{

    position:absolute;
    top:6px;
    right:6px;

    width:24px;
    height:24px;

    background:#000;
    color:#fff;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    cursor:pointer;

    font-size:14px;
    font-weight:bold;

}

.community-upload-progress{

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:4px;

    background:#E5E7EB;

    overflow:hidden;

    border-radius:0 0 10px 10px;

    transition:opacity .3s;

}

.community-upload-progress-bar{

    width:0%;

    height:100%;

    background:#1877F2;

    transition:width .15s linear;

}

/* ======================================
   Activity Card
====================================== */

.cc-activity-card{

    background:#fff;

    border-radius:20px;

    padding:24px;

    margin-bottom:14px;

    font-family:'Inter', sans-serif;

    box-shadow:0 2px 10px 0 rgba(15,23,42,.05);

}

/* ======================================
   Activity Header
====================================== */

.cc-activity-header{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    width:100%;

}

.cc-header-left{

    display:flex;

    align-items:flex-start;

    gap:12px;

}

.cc-user-avatar{

    width:50px;

    height:50px;

    border-radius:50%;

    overflow:hidden;

    flex-shrink:0;

}

.cc-user-avatar img{

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:50%;

    display:block;

}

.cc-user-info{
    
    font-family:'Inter',sans-serif;

    display:flex;

    flex-direction:column;

}

.cc-user-name{
    
    font-family:'Inter',sans-serif;

    font-size:16px;

    font-weight:600;

    line-height:1.2;

}

.cc-post-time{

    font-size:13px;

    color:#888;

    margin-top:2px;

}

.cc-header-right{

    display:flex;

    align-items:flex-start;

}

.cc-menu-btn{

    background:none;

    border:none;

    cursor:pointer;

    font-size:22px;

    line-height:1;

    padding:0;

}

/* ======================================
   Post Body
====================================== */

.cc-post-body{

    margin-top:22px;

}

.cc-post-content{

    display:flex;

    flex-direction:column;

}

.cc-post-text{

    font-family:'Inter',sans-serif;

    font-size:16px;

    font-weight:400;

    line-height:1.9;

    color:#334155;

}

.cc-post-text p{

    margin:0 0 18px;

}

.cc-post-hashtags{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-top:8px;

}

.cc-post-hashtags a{

    color:#2563eb;

    text-decoration:none;

    font-weight:500;

}

/* ======================================
   Post Images
====================================== */

.cc-post-media,
.cc-post-text img,
.cc-post-text .bpfb_images img{

    width:100%;

}

.cc-post-text img,
.cc-post-text .bpfb_images img{

    display:block;

    width:100%;

    height:420px;

    object-fit:cover;

    border-radius:18px;

    margin-top:20px;

}

.cc-post-text .bpfb_images{

    width:100%;

}

/* ======================================
   Footer
====================================== */


.cc-post-footer{

    display:flex;

    justify-content:space-around;

    align-items:center;

    padding-top:20px;

    margin-top:22px;

    border-top:1px solid #EEF2F7;

}

.cc-action-item{

    display:flex;

    align-items:center;

    gap:8px;

    color:#64748B;

    cursor:pointer;

    transition:.25s ease;

    font-family:'Inter',sans-serif;

    font-size:14px;

    font-weight:500;

}

.cc-action-item svg{

    width:20px;

    height:20px;

}

.cc-action-item .cc-action-text{

    margin-top: -3px;

}

.cc-action-item:hover{

    color:#2563EB;

}



/*======================================
  Comment Container
======================================*/

.cc-comment-container{

    display:none;

    margin-top:18px;

}

.cc-comment-wrapper{

    display:flex;

    flex-direction:column;

}

.cc-comment-header{

    display:flex;

    align-items:flex-start;

    gap:12px;

}

.cc-comment-avatar{

    width:40px;

    height:40px;

    border-radius:50%;

    background:#e5e7eb;

    flex-shrink:0;

}

.cc-comment-body{

    flex:1;

    display:flex;

    justify-content:space-between;

    gap:12px;

}

.cc-comment-info{

    display:flex;

    flex-direction:column;

    gap:2px;

}

.cc-comment-name{

    font-size:14px;

    font-weight:600;

    color:#111827;
    
   margin-bottom: -2px;

}

.cc-comment-text{

    font-size:14px;

    line-height:1.7;

    color:#475569;
    
    margin-top:0;

}

.cc-comment-menu-btn{

    background:none;

    border:none;

    cursor:pointer;

    font-size:18px;

    color:#64748b;

}

.cc-comment-popup{

    display:none;

    position:absolute;

    top:42px;

    right:0;

    min-width:180px;

    background:#fff;

    border-radius:14px;

    box-shadow:0 10px 30px rgba(15,23,42,.12);

    overflow:hidden;

    z-index:100;

    padding:8px;

}

.cc-popup-active{

    display:block;

}

.cc-comment-popup button{

    width:100%;

    border:none;

    outline:none;

    background:transparent;

    padding:12px 14px;

    border-radius:10px;

    text-align:left;

    cursor:pointer;

    font-family:'Inter',sans-serif;

    font-size:14px;

    font-weight:500;

    color:#334155;

    transition:.2s ease;

}

.cc-comment-popup button:hover{

    background:#f1f5f9;

}

.cc-comment-popup button:last-child{

    color:#dc2626;

}

.cc-comment-popup button:last-child:hover{

    background:#fef2f2;

}

.cc-comment-wrapper{

    position:relative;

}

.cc-comment-footer{

    display:flex;

    gap:18px;

    margin-top:10px;

    margin-left:52px;

    font-size:13px;

    color:#64748b;

}

.cc-comment-footer span{

    cursor:pointer;

}

/*======================================
  Comment Composer
======================================*/

.cc-comment-composer{

    margin-top:18px;

    padding-top:16px;

    border-top:1px solid #eef2f7;
    
    

}

.cc-composer-row{

    display:flex;

    align-items:center;

    gap:12px;

    width:100%;
    
    overflow:visible;

}

.cc-composer-avatar{

    width:42px;

    height:42px;

    border-radius:50%;

    background:#e5e7eb;

    flex-shrink:0;

}

.cc-composer-input{

    flex:1;

    height:44px;

    display:flex;

    align-items:center;

    background:#f8fafc;

    border-radius:999px;

    overflow:hidden;
    

}

.cc-comment-input, .cc-reply-input{

    width:100%;

    height:100%;

    border:none;

    outline:none;

    background:transparent;

    border-radius:0;

    padding:0 18px;

    font-family:'Inter',sans-serif;

    font-size:14px;

    color:#334155;

}

.cc-comment-input::placeholder, .cc-comment-input::placeholder{

    color:#94a3b8;

}

.cc-comment-input:focus, .cc-comment-input:focus{

    background:#fff;

    box-shadow:0 0 0 2px rgba(59,130,246,.15);

}

.cc-composer-send{

    width:42px;

    height:42px;

    flex-shrink:0;

}

.cc-comment-submit{

    width:42px;

    height:42px;

    border:none;

    outline:none;

    border-radius:50%;

    background:#2563eb;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:.25s ease;

}

.cc-comment-submit:hover{

    background:#1d4ed8;

    transform:scale(1.05);

}

.cc-comment-submit img{

    width:18px;

    height:18px;

    filter:brightness(0) invert(1);

}

/*======================================
 Reply Composer
======================================*/

.cc-reply-composer{

    display:none;

    margin-top:12px;

    margin-left:52px;

    padding-top:8px;

}




/*==================================================
MOBILE + TABLET COMMUNITY LAYOUT
==================================================*/

@media (max-width:1024px){

/* Layout */

.cc-content-wrap{

    display:block !important;

    padding:0 !important;
    margin:0 !important;

}

/* Feed */

.cc-feed-area{

    width:100% !important;

    margin:0 !important;
    padding:0 4px !important;

}

/* Remove Elementor spacing */

.cc-feed-area .e-con-inner,
#dynamic-content,
#cc-feed-list,
#feed-content{

    padding:0 !important;
    margin:0 !important;
    gap:8px !important;

}

/* Remove widget spacing */

#dynamic-content > .elementor-widget,
#dynamic-content > .elementor-element{

    margin:0 !important;
    padding:0 !important;

}

/* Composer + Feed cards */

.bp-composer-shortcode,
.cc-activity-card{

    margin:0  !important;

    width:100% !important;

    border-radius:14px;

    box-sizing:border-box;

}

/* Remove remaining white gutters */

.elementor-widget-shortcode{

    margin:0 !important;

}

.elementor-widget-container{

    margin:0 !important;
    padding:0 !important;

}

/* Hide right sidebar */

.cc-right-column{

    display:none !important;

}

}



/*=====================================================
 MOBILE / TABLET COMPOSER
=====================================================*/

@media (max-width:1024px){

/*----------------------------------
Composer Card
----------------------------------*/

.cc-post-composer{

    padding:14px !important;

}

/*----------------------------------
Top Row
----------------------------------*/

/* =====================================
TOP ROW FIX
===================================== */

@media (max-width:1024px){

.cc-composer-top,
.cc-composer-top > .e-con-inner{

    display:flex !important;

    flex-direction:row !important;

    flex-wrap:nowrap !important;

    align-items:center !important;

    justify-content:flex-start !important;

    gap:12px !important;

}

/* Avatar */

.cc-avatar{

    width:52px !important;

    min-width:52px !important;

    max-width:52px !important;

    flex:0 0 52px !important;

}

/* Input */

.custom-post-input{

    flex:1 1 auto !important;

    width:100% !important;

    min-width:0 !important;

}

.custom-post-input > .e-con-inner{

    display:flex !important;

    width:100% !important;

}

.custom-post-input #whats-new{

    width:100% !important;

    height:44px !important;

    min-height:44px !important;

}

}
/*----------------------------------
Preview
----------------------------------*/

.community-photo-preview{

    width:100%;
    margin-top:12px;

}

/*----------------------------------
Bottom Row
----------------------------------*/

.cc-composer-bottom{

    display:flex !important;

    flex-direction:row !important;

    justify-content:space-between;

    align-items:center;

    gap:16px;

    margin-top:14px;

}

/*----------------------------------
Left Icons
----------------------------------*/

.custom-post-action{

    display:flex !important;

    flex-direction:row !important;

    align-items:center;

    flex-wrap:wrap;

    gap:16px;

    flex:1;

}

/* Prevent Elementor stacking */

.custom-post-action > .e-con-inner{

    display:flex !important;

    flex-direction:row !important;

    align-items:center;

    gap:16px;

    flex-wrap:wrap;

}

/* Icons */

.custom-post-action .composer-action{

    width:auto !important;
    height:auto !important;

}

/*----------------------------------
Post Button Area
----------------------------------*/

.custom-post-in{

    margin-left:auto;

    flex:0 0 auto;

}

/* Keep button compact */

.custom-post-in .elementor-button{

    min-width:90px;

}

/*----------------------------------
Fix Elementor Containers
----------------------------------*/

.cc-composer-top > .e-con-inner,
.cc-composer-bottom > .e-con-inner{

    display:flex !important;

    flex-direction:row !important;

    align-items:center;

    width:100%;

}

/*----------------------------------
Spacing
----------------------------------*/

.cc-post-composer .elementor-widget{

    margin-bottom:0 !important;

}

/* Placeholder */

.custom-post-input #whats-new::placeholder{

    font-size:14px;
    color:#9CA3AF;

}

.custom-post-input #whats-new{

    font-size:14px;

}

/* Bottom Row */

.cc-composer-bottom{

    display:flex !important;

    align-items:center !important;

    justify-content:space-between !important;

}

/* Custom Post */

.custom-post-in{

    margin-left:auto;

    display:flex !important;

    align-items:center;

    justify-content:flex-end;

}

/* Elementor inner */

.custom-post-in>.e-con-inner{

    display:flex !important;

    flex-direction:row !important;

    align-items:center !important;

    justify-content:flex-end !important;

    gap:8px;

}

/* Button */

.custom-post-in .elementor-button{

    min-width:90px;

}

/* Pencil icon */

.custom-post-in .elementor-icon{

    display:flex;

    align-items:center;

    justify-content:center;

}

}
/*=========================================
Hero Tabs Mobile
=========================================*/

@media (max-width:1024px){

.cc-hero-tab{

    display:flex !important;

    flex-direction:row !important;

    flex-wrap:nowrap !important;

    justify-content:flex-start !important;

    align-items:center !important;

    gap:12px;

    overflow-x:auto !important;

    overflow-y:hidden !important;

    white-space:nowrap;

    -webkit-overflow-scrolling:touch;

    scrollbar-width:none;

    padding:0 10px;

}

.cc-hero-tab::-webkit-scrollbar{
    display:none;
}

/* Every tab */

.cc-hero-tab .community-tab{

    display:flex !important;

    flex:0 0 auto !important;

    width:auto !important;

    min-width:120px !important;

    justify-content:center !important;

    align-items:center !important;

    padding:10px 8px !important;

}

/* Heading */

.cc-hero-tab .elementor-heading-title{

    font-size:14px !important;

    white-space:nowrap !important;

    line-height:1.2 !important;

    text-align:center;

}

}