/* ===== Member Single Container ===== */

body, .member-single {
    font-family: 'Cairo', sans-serif !important;
}
.member-single {
    /*max-width: 800px; 
    margin: 20px auto;*/
    padding: 10px;
    border-radius: 12px;
    background-color: #fff;
    box-sizing: border-box;
}

/* ===== Header (Image + Info) ===== */
.member-header {
    display: flex;
    align-items: center; /* vertical centering */
    /* gap: 20px; */
    flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Image on the left */
.member-image {
    order: 1; /* image first */
    flex: 0 0 250px;
    text-align: left;
}

/*.member-image img {
    width: 100%;
    border-radius: 0;
    object-fit: cover;
    display: block;
} */
.member-image {
    width: 364px;
    height: 327px;
    overflow: hidden; /* crop anything that exceeds */
    border-radius: 60px !important;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* keeps the image proportional and fills the box */
    display: block;
}

/* Text on the right */
.member-info {
    order: 2; /* text second */
    /* flex: 1; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 37px;
    text-align: right;
    gap: 15px;
}

.member-title {
    text-align: center;
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 85px;
    color: black;
}

.member-name {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000000;
}

.member-role {
       	font-size: 36px;
        font-weight: 700;
        color: black;
        margin-bottom: 5px;
}

.member-meta {
    display: flex;
    align-items: center;
    gap: 10px; 
   
}

.member-date,
.member-status {
    display: inline-block;
    font-size: 22px; /* adjust as needed */
    color: black; /* adjust as needed */
    font-weight: 500;
}


/* ===== Biography ===== */
.member-description {
  margin-top: 40px;
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 1.6;
    color: #000000;
   /* text-align: right; */
    font-weight: 400;
    text-align: justify;
}

/* ===== Back Button and Share Section on same line ===== */
.under-hr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  flex-direction: row-reverse;
}

/* Left Button */
.back-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 223px;
    height: 58px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: #090909;
    background: #fff;
    border: 1px solid #000;
    border-radius: 121px;
}
section#a2a_follow_widget-2 {
    background-color: white;
    display: contents;
}
.addtoany_list a, .widget .addtoany_list a {
    border: 0;
    box-shadow: none;
    display: inline-block;
    font-size: 16px;
    padding: 0px 0px;
}
/* Right Share Block */

.member-share .share-text {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
  	color: #000000;
}

html:lang(ar) .member-share-icons a {
    margin-left: 10px;
    font-size: 20px;
    color: #000;
}
html:lang(fr) .member-share-icons a , 
html:lang(tzm) .member-share-icons a , 
html:lang(en) .member-share-icons a {
    margin-right: 10px;
    font-size: 20px;
    color: #000;
}

section#a2a_follow_widget-2 .addtoany_list {
    display: flex !important;
    flex-direction: row-reverse !important; /* right → left */
    direction: rtl !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  
   .member-header {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .member-info {
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
    }
   .member-image {
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
}
  @media (max-width: 768px) {
    .member-title {
        text-align: center;
        font-size: 27px;
    }
    .member-header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
   }
    .member-info {
     margin-right: 0px;
   }
    .under-hr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
  }
}
