﻿/* Board Members Component */

        /* =====================================================
           Board Members â€” Redesigned
           Dignified Portrait Cards for Quran Association
        ===================================================== */

        @keyframes bmFadeUp {
            from { opacity: 0; transform: translateY(22px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        /* â”€â”€â”€ Section â”€â”€â”€ */
        .bm-section {
            padding: 80px 0 100px;
            background: #f8fafc;
            position: relative;
            overflow: hidden;
        }

        .bm-section::before,
        .bm-section::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
        }

        .bm-section::before {
            top: -180px;
            right: -180px;
            width: 520px;
            height: 520px;
            background: radial-gradient(circle, rgba(38,51,112,0.05) 0%, transparent 70%);
        }

        .bm-section::after {
            bottom: -140px;
            left: -140px;
            width: 420px;
            height: 420px;
            background: radial-gradient(circle, rgba(12,127,174,0.05) 0%, transparent 70%);
        }

        /* â”€â”€â”€ Grid â”€â”€â”€ */
        .bm-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

        /* â”€â”€â”€ Card â”€â”€â”€ */
        .bm-card {
            background: #fff;
            border-radius: 26px;
            overflow: hidden;
            box-shadow: 0 4px 28px rgba(38,51,112,0.08), 0 0 0 1px rgba(226,232,240,0.7);
            transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
                        box-shadow 0.4s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
        }

        .bm-card:hover {
            transform: translateY(-12px);
            box-shadow: 0 28px 64px rgba(38,51,112,0.13),
                        0 0 0 1px rgba(12,127,174,0.12);
        }

        /* â”€â”€â”€ Top band â”€â”€â”€ */
        .bm-card__band {
            width: 100%;
            height: 96px;
            flex-shrink: 0;
            position: relative;
            overflow: hidden;
            background: linear-gradient(140deg, #1a2451, #263370, #0d6fa0);
        }

        /* Subtle crosshatch pattern on band */
        .bm-card__band::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 14px),
                repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 14px);
        }

        /* Chairman band gets richer gradient */
        .bm-card.bm-lead .bm-card__band {
            height: 116px;
            background: linear-gradient(140deg, #12193a, #263370, #0c7fae, #0d8fb8);
        }

        /* â”€â”€â”€ Chairman badge â”€â”€â”€ */
        .bm-lead-badge {
            position: absolute;
            top: 14px;
            right: 16px;
            z-index: 5;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: linear-gradient(135deg, #ffd700, #f59e0b);
            color: #1a1a2e;
            font-size: 10.5px;
            font-weight: 800;
            padding: 5px 13px;
            border-radius: 50px;
            box-shadow: 0 4px 14px rgba(245,158,11,0.45);
            letter-spacing: 0.3px;
        }

        [dir="ltr"] .bm-lead-badge { right: auto; left: 16px; }

        /* â”€â”€â”€ Photo ring â”€â”€â”€ */
        .bm-card__photo-ring {
            width: 106px;
            height: 106px;
            border-radius: 50%;
            margin: -53px auto 0;
            position: relative;
            z-index: 4;
            padding: 3px;
            background: linear-gradient(135deg, #263370, #0c7fae, #5DD0F0);
            box-shadow: 0 8px 28px rgba(38,51,112,0.22);
            flex-shrink: 0;
            transition: box-shadow 0.35s ease, transform 0.35s ease;
        }

        .bm-card:hover .bm-card__photo-ring {
            box-shadow: 0 14px 38px rgba(38,51,112,0.3);
            transform: scale(1.04);
        }

        /* Chairman gets gold ring */
        .bm-card.bm-lead .bm-card__photo-ring {
            width: 124px;
            height: 124px;
            margin-top: -62px;
            background: linear-gradient(135deg, #ffd700, #f59e0b, #263370, #0c7fae);
            box-shadow: 0 10px 34px rgba(245,158,11,0.3), 0 0 0 4px rgba(255,215,0,0.12);
        }

        .bm-card__photo-inner {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            overflow: hidden;
            border: 3px solid #fff;
            background: #e2e8f0;
        }

        .bm-card__photo-inner img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* â”€â”€â”€ Body â”€â”€â”€ */
        .bm-card__body {
            padding: 16px 24px 26px;
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        .bm-card__name {
            font-size: 17px;
            font-weight: 800;
            color: #0f172a;
            margin: 14px 0 0;
            line-height: 1.35;
        }

        .bm-card.bm-lead .bm-card__name { font-size: 20px; }

        /* Decorative divider */
        .bm-card__sep {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            width: 100%;
            margin: 13px 0 11px;
        }

        .bm-card__sep::before,
        .bm-card__sep::after {
            content: '';
            height: 1px;
            flex: 1;
            max-width: 48px;
        }

        .bm-card__sep::before {
            background: linear-gradient(90deg, transparent, #cbd5e1);
        }

        .bm-card__sep::after {
            background: linear-gradient(90deg, #cbd5e1, transparent);
        }

        .bm-card__sep-gem {
            width: 7px;
            height: 7px;
            background: #0c7fae;
            transform: rotate(45deg);
            border-radius: 1px;
            flex-shrink: 0;
        }

        .bm-card.bm-lead .bm-card__sep-gem { background: #f59e0b; }

        /* Role */
        .bm-card__role {
            font-size: 13px;
            font-weight: 600;
            color: #0c7fae;
            margin: 0;
            line-height: 1.4;
        }

        .bm-card.bm-lead .bm-card__role { display: none; } /* title shown in badge instead */

        /* â”€â”€â”€ Social links â”€â”€â”€ */
        .bm-card__socials {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            margin-top: auto;
            padding-top: 18px;
        }

        .bm-social {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: #fff !important;
            text-decoration: none;
            transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1),
                        box-shadow 0.28s ease;
        }

        .bm-social:hover {
            transform: translateY(-4px);
            color: #fff !important;
        }

        .bm-social.tw  {
            background: #000;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }

        .bm-social.tw:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.3); }

        .bm-social.li  {
            background: #0a66c2;
            box-shadow: 0 3px 10px rgba(10,102,194,0.3);
        }

        .bm-social.li:hover { box-shadow: 0 8px 20px rgba(10,102,194,0.4); }

        .bm-social.ph  {
            background: linear-gradient(135deg, #263370, #0c7fae);
            box-shadow: 0 3px 10px rgba(38,51,112,0.25);
        }

        .bm-social.ph:hover { box-shadow: 0 8px 20px rgba(38,51,112,0.35); }

        /* â”€â”€â”€ Bottom accent line â”€â”€â”€ */
        .bm-card__accent {
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #263370, #0c7fae, #5DD0F0);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s ease;
            flex-shrink: 0;
        }

        [dir="ltr"] .bm-card__accent { transform-origin: left; }
        .bm-card:hover .bm-card__accent { transform: scaleX(1); }

        /* Featured (chairman) gold accent */
        .bm-card.bm-lead .bm-card__accent {
            background: linear-gradient(90deg, #263370, #0c7fae, #ffd700);
        }

        /* â”€â”€â”€ Responsive â”€â”€â”€ */
        @media (max-width: 991px) {
            .bm-grid { grid-template-columns: repeat(2, 1fr); }
        }

        @media (max-width: 575px) {
            .bm-section { padding: 56px 0 72px; }
            .bm-grid { grid-template-columns: 1fr; gap: 22px; }
        }
