/* =========================================================
   BIPLABI JUBAK SANGHA
   COMMITTEE PAGE
   Modern Professional Navy + Gold Design
   ========================================================= */


/* =========================================================
   GLOBAL
   ========================================================= */

.committee-page {
    background: #f5f6f8;
    min-height: 100vh;
}


/* =========================================================
   COMMITTEE BANNER
   ========================================================= */

.committee-banner {
    min-height: 300px;
    padding: 70px 20px;
    background:
        linear-gradient(
            135deg,
            #172554 0%,
            #1e3a8a 55%,
            #243b76 100%
        );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.committee-banner::before,
.committee-banner::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.10);
}

.committee-banner::before {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -100px;
}

.committee-banner::after {
    width: 350px;
    height: 350px;
    bottom: -200px;
    right: -120px;
}

.banner-content {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.banner-small {
    display: inline-block;
    color: #d4af37;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.banner-content h1 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
}

.banner-content p {
    margin: 0 auto;
    max-width: 700px;
    color: #dbe4f0;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   MAIN COMMITTEE SECTION
   ========================================================= */

.committee-section {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 75px 0 90px;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-heading > span {
    display: inline-block;
    color: #d4af37;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-heading h2 {
    margin: 0 0 14px;
    color: #172554;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
}

.section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   TWO COMMITTEE CHOICE BOXES
   ========================================================= */

.committee-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    max-width: 1050px;
    margin: 0 auto;
}

.committee-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    width: 100%;
    min-height: 190px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.committee-choice::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: #d4af37;
}

.committee-choice:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
    border-color: rgba(212, 175, 55, 0.55);
}

.choice-icon {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #172554;
    color: #d4af37;
    font-size: 30px;
}

.choice-content {
    flex: 1;
}

.choice-label {
    display: block;
    margin-bottom: 7px;
    color: #b38f1d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.choice-content h3 {
    margin: 0 0 8px;
    color: #172554;
    font-size: 25px;
    line-height: 1.25;
}

.choice-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.choice-arrow {
    flex: 0 0 auto;
    color: #172554;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.committee-choice:hover .choice-arrow {
    transform: translateX(6px);
}


/* =========================================================
   MEMBER LIST VIEW
   ========================================================= */

.committee-view {
    animation: committeeFadeIn 0.35s ease;
}

.committee-view[hidden] {
    display: none !important;
}

@keyframes committeeFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   BACK BUTTON
   ========================================================= */

.committee-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 28px;
    padding: 11px 18px;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #ffffff;
    color: #172554;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
    transition: all 0.25s ease;
}

.committee-back:hover {
    background: #172554;
    border-color: #172554;
    color: #ffffff;
    transform: translateX(-3px);
}


/* =========================================================
   MEMBER SECTION
   ========================================================= */

.committee-member-section {
    padding: 42px 0 10px;
    margin-bottom: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.committee-section-heading {
    max-width: 850px;
    margin: 0 auto 38px;
    padding: 0 25px;
    text-align: center;
}

.section-label {
    display: inline-block;
    color: #d4af37;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 8px;
}

.committee-section-heading h2 {
    margin: 0 0 10px;
    color: #172554;
    font-size: 34px;
    line-height: 1.25;
}

.committee-section-heading p {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   MEMBER GRID
   ========================================================= */

.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 0 28px 35px;
}


/* =========================================================
   MEMBER CARD
   ========================================================= */

.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.member-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #d4af37;
}

.member-card:hover,
.member-card:focus-visible {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.14);
    border-color: rgba(212, 175, 55, 0.45);
    outline: none;
}


/* =========================================================
   MEMBER PHOTO
   ========================================================= */

.member-photo {
    width: 150px;
    height: 150px;
    margin: 8px auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 5px solid #ffffff;
    outline: 3px solid #d4af37;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.member-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}


/* =========================================================
   MEMBER INFORMATION
   ========================================================= */

.member-info {
    width: 100%;
}

.member-info h3 {
    margin: 5px 0 8px;
    color: #172554;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   DESIGNATION
   ========================================================= */

.member-card .designation {
    display: inline-block;
    color: #a37e12;
    background: #fff8df;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 18px;
}


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

.modal-member-details {
    min-width: 0;
    align-self: center;
}

.modal-member-badge,
.modal-designation {
    display: inline-block;
    margin: 0 0 10px;
    padding: 7px 15px;
    border-radius: 20px;
    background: #fff8df;
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #a37e12;
    font-size: 13px;
    font-weight: 700;
}

.modal-member-details h2 {
    margin: 0 0 24px;
    color: #172554;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}


/* =========================================================
   MODAL DETAIL LIST
   ========================================================= */

.member-detail-list {
    display: grid;
    gap: 0;
}

.member-detail-item {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.member-detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.detail-value {
    color: #172554;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    word-break: break-word;
}

.detail-value.status-active {
    color: #15803d;
    font-weight: 700;
}

#modal-member-father {
    color: #172554;
    font-weight: 500;
}


/* =========================================================
   MEMBER MODAL DETAIL ROWS
   ========================================================= */

.modal-detail-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid #e5e7eb;
}

.modal-detail-row:last-child {
    border-bottom: 0;
}

.modal-detail-label {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.modal-detail-value {
    min-width: 0;
    color: #172554;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* =========================================================
   MEMBER DETAILS MODAL
   ========================================================= */

.member-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.72);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.member-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.member-modal-overlay {
    position: absolute;
    inset: 0;
}

.member-modal-content {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.28);
    transform: translateY(15px) scale(0.98);
    transition: transform 0.25s ease;
}

.member-modal.active .member-modal-content {
    transform: translateY(0) scale(1);
}

.member-modal-body {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
    padding: 48px 42px;
}

.modal-member-photo {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    background: #f1f5f9;
    border: 4px solid #fff8df;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.modal-member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #172554;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-modal-close:hover {
    background: #d4af37;
    color: #172554;
}

body.modal-open {
    overflow: hidden;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #172554;
    color: #ffffff;
    text-align: center;
    padding: 25px 15px;
    margin-top: 0;
}

.site-footer p {
    margin: 0 0 5px;
    font-size: 13px;
    color: #dbe4f0;
}

.site-footer h4 {
    margin-bottom: 12px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .committee-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .committee-choice-grid {
        grid-template-columns: 1fr;
        max-width: 750px;
    }

    .banner-content h1 {
        font-size: 40px;
    }

    .member-modal-body {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 28px;
        padding: 38px 32px 40px;
    }

    .modal-member-photo {
        width: 185px;
        height: 185px;
    }

    .member-detail-item {
        grid-template-columns: 155px minmax(0, 1fr);
    }
}


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

@media (max-width: 700px) {

    .committee-banner {
        min-height: 260px;
        padding: 55px 20px;
    }

    .banner-small {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .committee-section {
        width: 90%;
        padding: 50px 0 60px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .committee-choice {
        min-height: 160px;
        padding: 24px 20px;
        gap: 15px;
    }

    .choice-icon {
        flex-basis: 58px;
        width: 58px;
        height: 58px;
        border-radius: 15px;
        font-size: 23px;
    }

    .choice-content h3 {
        font-size: 20px;
    }

    .choice-content p {
        font-size: 13px;
    }

    .committee-section-heading h2 {
        font-size: 27px;
    }

    .committee-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 18px 25px;
    }

    .member-card {
        padding: 28px 20px;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }

    .member-info h3 {
        font-size: 18px;
    }

    /* MOBILE MODAL */

    .member-modal {
        padding: 12px;
    }

    .member-modal-content {
        width: 100%;
        max-height: 94vh;
        border-radius: 20px;
    }

    .member-modal-body {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 50px 22px 28px;
        text-align: center;
    }

    .modal-member-photo {
        width: 150px;
        height: 150px;
    }

    .modal-member-details h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .modal-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
        text-align: left;
    }

    .member-detail-list {
        text-align: left;
    }

    .member-detail-item {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 12px 0;
        text-align: left;
    }

    .detail-label {
        font-size: 12px;
    }

    .detail-value {
        font-size: 14px;
    }

    .member-modal-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .committee-choice {
        padding: 20px 15px;
    }

    .choice-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .choice-content h3 {
        font-size: 18px;
    }

    .member-card {
        padding: 25px 15px;
    }

    .member-info h3 {
        font-size: 18px;
    }

    .member-modal-body {
        padding: 38px 16px 22px;
    }
}