.members-filter-tabs {
    margin-bottom: 12px;
}
.tab-item {
    display: inline-block;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid #ddd;
    margin-right: 5px;
    cursor: pointer;
}
.tab-item.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.members-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.member-single-card {
    border: 1px solid var(--border-gray);
    background: #fff;
    padding: 8px;
    text-align: center;
}
.member-avatar img, .empty-avatar {
    width: 100%;
    height: 125px;
    object-fit: cover;
    background: #eaeaea;
}
.badge-role {
    display: block;
    font-size: 11px;
    color: #777;
    margin-top: 5px;
}
.member-meta .name {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    margin-top: 2px;
}
.social-mini-icons {
    margin-top: 6px;
    font-size: 11px;
    color: #888;
}

.pressclub-pagination {
    margin-top: 20px;
    text-align: center;
}
.pressclub-pagination a, .pressclub-pagination span {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    margin: 0 2px;
    font-size: 13px;
}
.pressclub-pagination .current {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}


/* কন্টেইনার ও ট্যাব */
.members-filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 50px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-item:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.tab-item.active {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 126, 52, 0.3);
}

/* মেম্বার গ্রিড */
.members-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* মেম্বার সিঙ্গেল কার্ড */
.member-single-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 12px 12px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

/* টপ গ্রেডিয়েন্ট বর্ডার লাইন */
.member-single-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #8b0000, #ff4d4d, #f59e0b);
    opacity: 0.85;
    transition: height 0.3s ease;
}

/* কার্ড হোভার মোশন ও লিফটিং */
.member-single-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(139, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.04);
    border-color: rgba(139, 0, 0, 0.25);
}

.member-single-card:hover::before {
    height: 4.5px;
}

/* মেম্বার এভাটার/ছবি ফ্রেম */
.member-avatar {
    position: relative;
    width: 104px;
    height: 104px;
    margin: 4px auto 12px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, #8b0000, #f87171, #facc15);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.18);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.member-single-card:hover .member-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 0, 0, 0.28);
}

/* পারফেক্ট ইমেজ সাইজিং (কেটে যাবে না বা বাঁকা হবে না) */
.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #ffffff;
    display: block;
    transition: filter 0.3s ease;
}

.member-avatar .empty-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 26px;
}

/* পদবী ব্যাজ */
.badge-role {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #8b0000;
    background: rgba(139, 0, 0, 0.07);
    border-radius: 20px;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    border: 1px solid rgba(139, 0, 0, 0.12);
}

/* সদস্যের নাম */
.member-meta .name {
    font-size: 14.5px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.member-single-card:hover .name {
    color: #8b0000;
}

/* সোশ্যাল ও কন্টাক্ট মিনি বাটন */
.social-mini-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

.social-mini-icons span,
.social-mini-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-size: 11px;
    color: #64748b;
    background: #f8fafc;
    border-radius: 50%;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.social-mini-icons a:hover,
.social-mini-icons span:hover {
    background: linear-gradient(135deg, #8b0000, #b91c1c);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(139, 0, 0, 0.25);
}

/* পেজিনেশন ডিজাইন */
.pressclub-pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pressclub-pagination a,
.pressclub-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}

.pressclub-pagination a:hover {
    background: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.25);
}

.pressclub-pagination .current {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 3px 8px rgba(30, 126, 52, 0.3);
}

/* ডার্ক মোড সাপোর্ট */
body.dark-mode .member-single-card {
    background: #18181b !important;
    border-color: #27272a !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .member-single-card:hover {
    border-color: #8b0000 !important;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.3);
}

body.dark-mode .member-avatar img {
    border-color: #18181b;
}

body.dark-mode .member-meta .name {
    color: #f4f4f5 !important;
}

body.dark-mode .badge-role {
    background: rgba(139, 0, 0, 0.2);
    color: #fca5a5;
    border-color: rgba(139, 0, 0, 0.35);
}

body.dark-mode .social-mini-icons {
    border-color: #27272a;
}

body.dark-mode .social-mini-icons span,
body.dark-mode .social-mini-icons a {
    background: #27272a;
    border-color: #3f3f46;
    color: #cbd5e1;
}

body.dark-mode .tab-item {
    background: #27272a;
    color: #cbd5e1;
    border-color: #3f3f46;
}

/* সোশ্যাল ও কন্টাক্ট আইকন বার */
.social-mini-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
    width: 100%;
}

/* প্রতিটি আইকনের মূল বাটন */
.social-mini-icons a,
.social-mini-icons span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* ১. ফেসবুক ব্র্যান্ড কালার */
.social-mini-icons a.pc-btn-fb {
    background: #1877f2;
    color: #ffffff !important;
}

/* ২. হোয়াটসঅ্যাপ ব্র্যান্ড কালার */
.social-mini-icons a.pc-btn-wa {
    background: #25d366;
    color: #ffffff !important;
}

/* ৩. জিমেইল/ইমেইল ব্র্যান্ড কালার */
.social-mini-icons a.pc-btn-mail {
    background: #ea4335;
    color: #ffffff !important;
}

/* ৪. ফোন কল ব্র্যান্ড কালার */
.social-mini-icons a.pc-btn-call {
    background: #0284c7;
    color: #ffffff !important;
}

/* হোভার অ্যানিমেশন */
.social-mini-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* ========================================================
   প্রতিটি ক্যাটাগরি পেজের পৃথক প্রিমিয়াম ডিজাইন
   ======================================================== */
.custom-category-header {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.cat-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.cat-icon-badge {
    font-size: 20px;
}

.cat-type-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.cat-page-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
}

.cat-glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b0000, #dc2626, #f59e0b);
}

/* মেম্বার কার্ড গ্রিড */
.members-dynamic-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-member-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.avatar-holder {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8fafc;
    border: 3px solid #f1f5f9;
}

.avatar-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.role-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-member-card .name {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.category-member-card .name a {
    color: #1e293b;
    text-decoration: none;
}

/* সোশ্যাল স্ট্রিপ */
.card-social-strip {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.s-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.s-btn.fb { background: #1877f2; }
.s-btn.wa { background: #25d366; }
.s-btn.mail { background: #ea4335; }
.s-btn.phone { background: #0284c7; }
.s-btn:hover { transform: scale(1.15); }

/* ========================================================
   ভিন্ন ভিন্ন ক্যাটাগরির নিজস্ব কালার থিম
   ======================================================== */
/* ১. স্থায়ী সদস্য (রয়্যাল মেরুন) */
.theme-permanent .role-pill { background: rgba(139, 0, 0, 0.1); color: #8b0000; }
.theme-permanent .category-member-card:hover { border-color: #8b0000; }

/* ২. সম্মানপ্রদ জীবন সদস্য (গোল্ডেন রয়্যাল) */
.theme-honorary .role-pill { background: rgba(217, 119, 6, 0.12); color: #b45309; }
.theme-honorary .avatar-holder { border-color: #fde68a; box-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
.theme-honorary .cat-glow-line { background: linear-gradient(90deg, #d97706, #fbbf24); }

/* ৩. আজীবন দাতা সদস্য (এমারেল্ড গ্রিন) */
.theme-donor .role-pill { background: rgba(5, 150, 105, 0.12); color: #047857; }
.theme-donor .avatar-holder { border-color: #a7f3d0; }
.theme-donor .cat-glow-line { background: linear-gradient(90deg, #059669, #34d399); }

/* ৪. প্রয়াত সদস্য (মর্যাদাপূর্ণ ডার্ক/মেমোরিয়াল) */
.theme-deceased .category-member-card { background: #fafafa; border-color: #cbd5e1; }
.theme-deceased .avatar-holder { filter: grayscale(100%); border-color: #94a3b8; }
.theme-deceased .role-pill { background: #475569; color: #ffffff; }
.theme-deceased .cat-glow-line { background: #475569; }
.deceased-tribute-badge span {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 700;
    font-style: italic;
}


/* ========================================================
   ১. ব্যবস্থাপনা কমিটি লেআউট (২ নম্বর ছবির হুবহু পিরামিড)
   ======================================================== */
.committee-group-banner {
    width: 100%;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.committee-group-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.committee-header-text {
    text-align: center;
    margin-bottom: 35px;
}
.committee-session-badge {
    color: #15803d;
    font-size: 15px;
    font-weight: 800;
}
.committee-header-text h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 5px 0 0 0;
}
.section-underline {
    width: 50px;
    height: 3px;
    background: #15803d;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* পিরামিড গ্রিড */
.hierarchical-pyramid-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.pyramid-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 15px;
    width: calc(25% - 20px);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s ease;
}
.pyramid-card:hover {
    transform: translateY(-4px);
}
.pyramid-card .avatar-wrap {
    width: 95px;
    height: 95px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8fafc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.pyramid-card .avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pyramid-card .name {
    font-size: 14.5px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
}
.pyramid-card .role {
    font-size: 12px;
    color: #15803d;
    font-weight: 700;
}

/* ========================================================
   ২. স্থায়ী সদস্য পেজ ডিজাইন
   ======================================================== */
.permanent-header {
    background: linear-gradient(135deg, #fffcf5 0%, #ffffff 100%);
    border: 1px solid #fef08a;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 25px;
    text-align: center;
}
.gold-badge {
    color: #b45309;
    font-weight: 700;
    font-size: 13px;
}
.permanent-header h1 {
    font-size: 26px;
    color: #1e293b;
    margin: 5px 0;
}
.permanent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 20px;
}
.permanent-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.perm-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}
.permanent-card .meta-item {
    font-size: 12px;
    color: #64748b;
    margin: 3px 0;
}

/* ========================================================
   ৩. প্রয়াত সদস্য পেজ ডিজাইন
   ======================================================== */
.deceased-header {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 25px;
    text-align: center;
}
.tribute-badge {
    color: #475569;
    font-weight: 700;
    font-size: 13px;
}
.deceased-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.deceased-card {
    background: #fafafa;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px 15px;
    text-align: center;
}
.avatar-holder.grayscale img {
    filter: grayscale(100%);
}
.deceased-tag {
    background: #334155;
    color: #ffffff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 8px;
}
.tribute-text {
    font-size: 12px;
    font-style: italic;
    color: #64748b;
    margin: 4px 0 0;
}

/* পেজিনেশন */
.pressclub-pagination {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.pressclub-pagination .page-numbers {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
}
.pressclub-pagination .page-numbers.current {
    background: #8b0000;
    color: #ffffff;
    border-color: #8b0000;
}

/* মোবাইল রেসপন্সিভ */
@media (max-width: 768px) {
    .pyramid-card {
        width: calc(50% - 15px);
    }
}
