/* =========================================================
   COMMUNITY PAGE REDESIGN
========================================================= */

/* =========================================================
   FILTER BAR
========================================================= */

.ch-filter-bar {
  padding-top: 18px;
  padding-bottom: 6px;
}

.ch-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ch-filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6c757d;
  white-space: nowrap;
  margin: 0;
}

.ch-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ch-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1.5px solid #dee2e6;
  color: #495057;
  background: #fff;
  text-decoration: none;
  transition: all .15s ease;
  white-space: nowrap;
}

.ch-pill:hover {
  border-color: #0d6efd;
  color: #0d6efd;
  background: #f0f5ff;
  text-decoration: none;
}

.ch-pill--active {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff !important;
}

.ch-pill--active:hover {
  background: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
}

.ch-filter-divider {
  width: 1px;
  height: 28px;
  background: #dee2e6;
  margin: 0 4px;
}

.ch-filter-clear {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 20px;
}

.ch-reset-btn {
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.ch-filter-row {
  margin-top: 10px;
}

.ch-pill {
  background: none;
  cursor: pointer;
  outline: none;
}

/* ── Checkbox / radio filter groups ── */
.ch-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.ch-checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #343a40;
  cursor: pointer;
  white-space: nowrap;
  margin: 0;
}

.ch-checkbox-label input[type="checkbox"],
.ch-checkbox-label input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: #0d6efd;
  cursor: pointer;
  flex-shrink: 0;
}

.ch-filter-divider-v {
  width: 1px;
  min-height: 60px;
  background: #dee2e6;
  align-self: stretch;
  margin: 0 4px;
}

.ch-apply-btn {
  padding: 6px 22px;
  font-size: 0.85rem;
  border-radius: 6px;
  margin-top: 20px;
}

/* =========================================================
   COMMUNITY TYPE BADGE (listing cards)
========================================================= */

.ch-card__type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.ch-card__type-badge--private {
  background: rgba(220, 53, 69, 0.88);
  color: #fff;
}

.ch-card__type-badge--public {
  background: rgba(25, 135, 84, 0.88);
  color: #fff;
}

.ch-card__nature-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
}

.ch-card__nature-badge--general {
  background: rgba(108, 117, 125, 0.88);
  color: #fff;
}

.ch-card__nature-badge--think_tank {
  background: rgba(13, 110, 253, 0.88);
  color: #fff;
}

.ch-card__stats--blurred {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
}

/* =========================================================
   PRIVATE COMMUNITY BLUR GATE
========================================================= */

.community-content-area {
  position: relative;
}

/* Blur the inner content when locked */
.community-content-area.is-private-locked .community-content-inner {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* Full-area overlay sits on top of the blurred content */
.community-private-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
}

.community-private-overlay-inner {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  padding: 2.5rem 3rem;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.community-private-lock-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

body{
  background:#f4f7f9;
  color:#1f2937;
  font-family:inherit;
}

.container{
  max-width:1400px;
}

/* =========================================================
   HERO SECTION
========================================================= */

.community-hero{
  background:#fff;
  border-radius:20px;
  padding:28px 32px;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
  border:1px solid #edf1f4;
  position:relative;
  overflow:hidden;
  margin-top: 25px;
}

.community-hero::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:5px;
  background:#0eab4b;
}

.community-icon img{
  width:90px;
  height:90px;
  border-radius:18px;
  object-fit:cover;
  border:4px solid #fff;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}

.community-hero h5{
  font-size:28px;
  margin-bottom:6px;
  color:#111827;
}

.community-hero small{
  font-size:14px;
  color:#6b7280 !important;
  line-height:1.5;
}

.community-join-btn{
  background:#0eab4b !important;
  border:none;
  color:#fff;
  padding:12px 22px;
  border-radius:12px;
  font-weight:600;
  transition:.25s ease;
  box-shadow:0 4px 10px rgba(23,133,76,.2);
}

.community-join-btn:hover{
  background:#12663a;
  transform:translateY(-2px);
  color:#fff;
}

/* =========================================================
   STAT BOXES
========================================================= */

.community-stat-box{
  background:#fff;
  border-radius:18px;
  padding:24px 20px;
  text-align:center;
  border:1px solid #edf1f4;
  box-shadow:0 4px 12px rgba(0,0,0,.03);
  transition:.25s;
  height:100%;
}

.community-stat-box:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.community-stat-box h6{
  font-size:28px;
  font-weight:700;
  margin-bottom:6px;
  color:#0eab4b;
}

.community-stat-box small{
  font-size:13px;
  color:#6b7280;
  text-transform:uppercase;
  letter-spacing:.04em;
}

/* =========================================================
   MAIN CONTENT CARDS
========================================================= */

.institute-info-box,
.card-clean,
.forum-item{
  background:#fff;
  border-radius:18px;
  border:1px solid #edf1f4;
  box-shadow:0 4px 12px rgba(0,0,0,.03);
}

.institute-info-box{
  overflow:hidden;
}

.institute-section-header{
  padding:18px 22px;
  background:#fff !important;
  border-bottom:1px solid #f1f3f5;
  font-weight:700;
  font-size:15px;
  color:#111827;
}

.institute-info-body{
  padding:22px;
  font-size:14px;
  color:#4b5563;
  line-height:1.8;
}

/* =========================================================
   DISCUSSION LIST
========================================================= */

.forum-item{
  padding:22px !important;
  transition:.25s;
}

.forum-item:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.06);
}

.forum-item h6{
  margin-bottom:10px;
}

.forum-item h6 a{
  color:#111827;
  text-decoration:none;
  font-size:17px;
  font-weight:700;
  line-height:1.5;
}

.forum-item h6 a:hover{
  color:#0eab4b;
}

.forum-item .badge{
  border-radius:30px;
  padding:6px 12px;
  font-size:12px;
  background:#eef7f1 !important;
  color:#0eab4b !important;
  border:none !important;
}

.forum-item small{
  color:#6b7280 !important;
}

.forum-item .border-end{
  border-color:#edf1f4 !important;
}

/* =========================================================
   SEARCH BAR
========================================================= */

form .form-control{
  border-radius:12px;
  border:1px solid #dce3e8;
  min-height:42px;
  box-shadow:none !important;
}

form .form-control:focus{
  border-color:#0eab4b;
  box-shadow:0 0 0 4px rgba(23,133,76,.08) !important;
}

.btn-success{
  background:#0eab4b;
  border-color:#0eab4b;
  border-radius:12px;
  padding:10px 18px;
  font-weight:600;
}

.btn-success:hover{
  background:#12663a;
  border-color:#12663a;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{
  position:sticky;
  top:20px;
}

.card-clean{
  padding:20px;
}

.card-clean h6{
  font-size:15px;
  font-weight:700;
  margin-bottom:16px;
}

/* =========================================================
   RESOURCE / NEWS / EVENT ITEMS
========================================================= */

.resource-item,
.expert-item{
  display:flex;
  align-items:flex-start;
  gap:14px;
  margin-bottom:18px;
}

.resource-item:last-child,
.expert-item:last-child{
  margin-bottom:0;
}

.resource-item img,
.expert-item img{
  width:54px;
  height:54px;
  object-fit:cover;
  border-radius:12px;
  flex-shrink:0;
}

.resource-item a{
  text-decoration:none;
}

.resource-item .fw-semibold,
.expert-item .fw-semibold{
  color:#111827;
  font-size:14px;
  line-height:1.4;
}

.resource-item .fw-semibold:hover{
  color:#0eab4b;
}

.resource-item .text-muted,
.expert-item .text-muted{
  font-size:12px;
}

.resource-item .item-title {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
/* =========================================================
   BUTTONS
========================================================= */

.btn{
  border-radius:10px;
  font-weight:600;
}

.btn-outline-secondary{
  border-color:#d6dde3;
  color:#4b5563;
}

.btn-outline-secondary:hover{
  background:#f3f4f6;
  color:#111827;
}

/* =========================================================
   MODAL
========================================================= */

.modal-content{
  border-radius:22px !important;
}

.modal-body .btn{
  border-radius:10px;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.alert-light{
  border:none;
  background:#fff;
  border-radius:16px;
  padding:28px;
  box-shadow:0 4px 12px rgba(0,0,0,.03);
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:991px){

  .community-hero{
    flex-direction:column;
    align-items:flex-start !important;
    gap:20px;
  }

  .sidebar{
    position:relative;
    top:auto;
  }

  .forum-item .border-end{
    border:none !important;
    margin-bottom:20px;
    padding-bottom:20px;
    border-bottom:1px solid #edf1f4 !important;
  }

}

@media(max-width:768px){

  .community-hero{
    padding:24px;
  }

  .community-hero h5{
    font-size:22px;
  }

  .community-stat-box{
    margin-bottom:16px;
  }

  .forum-item{
    padding:18px !important;
  }

}

/* Hide Drupal's Group operations block on community pages */
.path-community-home .block-group-operations-block,
.path-community-home .block-group-operations,
.path-community-home [id^="block-groupoperations"] {
  display: none !important;
}
#block-theme-acbf-groupoperations{
  display: none !important;
}

.block-group-operations{
  display: none !important;
}



/* ═══════════════════════════════════════════════════════════════════════════
   COMMUNITY HOME PAGE — redesigned
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Hero header ──────────────────────────────────────────────────────────── */
.ch-hero {
  background: linear-gradient(135deg, #f0faf5 0%, #e8f5ee 100%);
  border-bottom: 1px solid #d4edda;
  padding: 40px 0 32px;
}

.ch-hero__title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.ch-hero__subtitle {
  color: #6c757d;
  font-size: 0.95rem;
  margin: 0;
}

.ch-hero__add-btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ── Search bar ───────────────────────────────────────────────────────────── */
.ch-search-form {
  max-width: 680px;
}

.ch-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #d0d7de;
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
  gap: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: border-color .2s, box-shadow .2s;
}

.ch-search-wrap:focus-within {
  border-color: #17854c;
  box-shadow: 0 0 0 3px rgba(23,133,76,.12);
}

.ch-search-icon {
  color: #adb5bd;
  flex-shrink: 0;
}

.ch-search-input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
  background: transparent;
  min-width: 0;
  color: #212529;
}

.ch-search-input::placeholder {
  color: #adb5bd;
}

.ch-search-btn {
  padding: 6px 18px;
  font-size: 0.85rem;
  border-radius: 7px;
  flex-shrink: 0;
}

.ch-search-clear {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 7px;
  flex-shrink: 0;
}

/* ── Results meta line ────────────────────────────────────────────────────── */
.ch-results-meta {
  padding-top: 20px;
  padding-bottom: 4px;
}

/* ── Community card ───────────────────────────────────────────────────────── */
.ch-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .22s ease, box-shadow .22s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

/* Banner */
.ch-card__banner {
  width: 100%;
  height: 168px;
  overflow: hidden;
  background: linear-gradient(135deg, #17854c 0%, #0e5c34 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-card__banner img {
  /* width: 100%;
  height: 100%; */
  object-fit: cover;
  display: block;
}

.ch-card__banner-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #17854c 0%, #1aad62 50%, #0e5c34 100%);
  opacity: .85;
}

/* Body */
.ch-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ch-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.35;
}

.ch-card__desc {
  font-size: 0.825rem;
  color: #6c757d;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 16px;
  min-height: 52px;
}

/* Stats row */
.ch-card__stats {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
  padding: 10px 0;
  margin-bottom: 16px;
}

.ch-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.ch-stat + .ch-stat {
  border-left: 1px solid #f0f2f5;
}

.ch-stat__icon {
  color: #17854c;
  margin-bottom: 2px;
}

.ch-stat strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.1;
}

.ch-stat span {
  font-size: 0.7rem;
  color: #9aa0a6;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* CTA button */
.ch-card__btn {
  font-size: 0.875rem;
  padding: 9px;
  border-radius: 8px;
  margin-top: auto;
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.ch-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #dee2e6;
}

.ch-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.ch-empty h6 {
  color: #495057;
  font-weight: 600;
}

/* ----------------New design 15 Jun, 2026 ---------------*/

/* Profile */
.profile-banner{
    background: linear-gradient(135deg, #ffffff 0%, #e1e1e1 55%, #effff4 100% 100%) !important;
    /* position: relative; */
    overflow: hidden;
    padding: 30px 30px;
    margin-bottom: 30px;
    margin-top: 30px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
    box-shadow: var(--box-shadow-md);
    /* position: sticky; */
    z-index: 1;
    top: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.myprof-avatar{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
    display: block;
    overflow: hidden;
}
.myprof-name {
    font-size: var(--fs-28);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -.3px;
}

.metrics-card{
    border-radius: 10px;
    box-shadow: var(--box-shadow-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-white);
    padding: 20px;
}

.metrics-card > h3{
    font-size: var(--fs-24);
}

.metrics-card > h1{
    font-size: var(--fs-24);
}
.metric-card-icon{
    border-radius: 50%;
    padding: 10px 13px;
    background-color: var(--primary-alt);
    color: var(--primary);
    font-size: var(--fs-28);
    display: inline-block;
}
.metrics-card > .card-left{
    display: grid;
}

.metrics-card h5{
    font-size: var(--fs-16);
    color: var(--gray-600);
}

.metrics-card h1{
    font-size: var(--fs-28);
    color: var(--gray-700);
}
.my-profile-cont{
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-card-border);
    box-shadow: var(--box-shadow-md);
}
.my-profile-nav {
    background-color: var(--bg-white);
}
.my-profile-nav .nav-item.show .nav-link, .my-profile-nav .nav-link.active{
    border:0px;
    border-bottom: 3px solid var(--primary);
    border-radius: 0px;
    background-color: var(--primary-alt);
    font-weight: var(--fw-600);
    padding: 15px 25px;
    color: var(--primary);
}

.my-profile-nav .nav-link, .my-profile-nav .nav-link{
    border:0px;
    border-radius: 0px;
    font-weight: var(--fw-400);
    padding: 15px 25px;
}

.nav-link:focus, .nav-link:hover{
    color: var(--primary);
    background-color: var(--primary-alt);
}

.my-profile-content > .tab-pane{
    padding: 20px;
    background-color: var(--bg-white);
    min-height: 400px;
}
.myprof-avatar{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
    display: block;
    overflow: hidden;
}
.myprof-name {
    font-size: var(--fs-28);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.15;
    letter-spacing: -.3px;
}
.sub-title-option {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}
.myprof-org {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}
.myprof-org > i {
    color: var(--primary);
}

.up-asset-search-wrap{
    position: relative;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.up-asset-search-wrap > input{
    border-radius: 50px;
    padding-left: 50px;
    width: 100%;
    min-height: 47px;
}
.up-asset-search-wrap > span{
    position: absolute;
    left: 18px;
    top: 12px;
}
.up-asset-search-wrap > button{
    min-width: 240px;
}
.up-asset-search:focus{
    outline: 0;
    border-color: var(--primary);
}
.com-search{
    min-width: 130px !important;
}
.com-refresh{
    min-width: 30px !important;
    padding: 10px 15px;
}
.replies-cont{
    background-color: var(--primary-alt);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    overflow: hidden;
}
.discus-details{
    border-left: 1px solid var(--gray-card-border);
    padding-left: 15px;
}
.discussion-list:hover{
    background-color: var(--primary-alt);
}
.form-text, .form-submit, .form-email, .form-select {
  border-radius: none !important;
}
.community-join-btn{
  margin-bottom: 15px!important;
}