.bord_of_directors_container {
    width: 100%;
    /* padding: 110px 0 50px; */
}

.bord_of_directors_container_area {
    width: 95%;
    margin: auto;
}

.bord_of_directors_container_area_header {
    background-color: #F8F8F8;
    padding: 30px 34px;
    margin-top: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}
.bord_derictor_head{
    display: flex;
    align-items: center;
    gap: 15px;
}
.header_title h1 i{
        font-size: 25px;
    }

.bord_of_directors_container_area_header h1 {
    color: #3E3E86;
    font-size: 22px;
}
.bord_of_directors_container_area_header label{
    color: #666;
}
.bord_of_directors_container_area_header select{
   padding: 10px 60px 10px 5px;
   background-color: #ffffff;
   border: 1px dotted #eeeeee;
   
}
.dord_of_derectors_tools{
    display: flex;
    align-items: center;
    height: 100%;
}
.bord_of_Derectors_search input{
    width: 350px;
    max-width: 450px;
    min-width: 150px;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.index_member_details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center all cards horizontally */
    gap: 20px 30px;
    margin: 20px 0;
}

.member-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 300px;
    height: 330px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease;
    will-change: transform, box-shadow;
  }
  
  .member-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    background-color: #f9f9f9;
  }
  
.member-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    /* object-fit: contain; */
}

.member-card h3 {
    margin: 10px 0 5px;
    font-size: 18px;
}

.member-card p {
    margin: 0;
    color: #666;
    font-size: 16px;
    padding: 10px 0;
}

.member-card button {
    margin-top: 10px;
    padding: 12px 12px;
    background: #3E3E86;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.member-card button:hover,
.member-card button:focus {
    background: #ff4d47;
    outline: none;
}

.modal {
    display: flex;
    justify-content: center;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 150px;
    width: 100%;
    height: 90%;
    
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-top: 10px;
    padding: 10px 10px 120px 0px;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
    overflow: scroll;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    overflow-y: scroll;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.modal-header {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-header img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: contain;
}

.modal-header-details h2 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #3E3E86;
}

.modal-header-details p {
    margin: 3px 0;
    font-size: 14px;
    color: #555;
}

.modal-details {
    margin-top: 15px;
}

.modal-details p {
    margin: 6px 0;
    font-size: 14px;
    color: #444;
}

.modal-details a {
    color: #007bff;
}

@media(max-width: 1200px) {

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .bord_of_Derectors_search{
        width: 100%;
        padding: 0px;
    }
    .bord_of_Derectors_search input{
        width: 100%;
        margin-left: -10px;


    }
    .bord_derictor_head{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    

    .modal-header img {
        margin-bottom: 10px;
        
    }
    .bord_of_directors_container_area_header {
        display: block;
        justify-content: space-between;
        padding-top: 30px;
    }
    .member-card{
        /* This rule in the media query is now redundant but kept for safety */
        margin: auto;
    }
    .bord_of_Derectors_search{
        margin: 10px;
    }
    .modal {
        padding-top: 40px;
        margin: 0px;
    }
}