.members-slider
{
  width: 100%;
  display: block;
}

.members-wrap
{
  width: 100%;
  display: flex;
  flex-wrap: nowrap; /* ensures single row */
  gap: 1rem;
  padding: 1rem 0;
  align-items: flex-start;

}

.members
{
  flex: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}


.member
{
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 3px 3px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover
{
  transform: scale(1.1); /* ~3% bigger */
  margin: 2px 0 0 2px;
  box-shadow: 2px 2px 3px rgba(0,0,0,0.5);
}

.member-detail .details-box {
  background-color: white;
  height: auto;
  border-radius: 12px;
  padding: 1.5rem;
 padding-right: 0.5rem;
  margin: 20px auto;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  flex-grow: 1;
  overflow: visible;	
  box-sizing: border-box;
  /* border: 1px solid blue; */
  transition: height 0.4s ease;
}

.member-info
{
  position: relative;
  transition: height 0.4s ease;
  margin: 0;
  padding: 0;
   flex: 1 1 100%;
  padding: 1rem;
   box-sizing: border-box;
  overflow-wrap: break-word;
}

.member-info .column-wrap
{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
 
}

.member-info .column-wrap.active
{
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  margin: 0;
  padding: 0;
}

.member-info .left-column
{
  flex: 0 0 25%;
  max-width: 25%;
  gap: 0rem;
}

.member-info .right-column
{
  flex: 0 0 70%;
  max-width: 70%;
  gap: 0rem;
  /*
  border: 1px solid #fa0a10;
  */
}

.member-info .left-column .country-flag
{
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 35px 0;
}
.member-info .left-column .country-flag img
{
  width: 100%;
  border: 1px solid #e9e9e9;
}

.member-info .member-name
{
  margin: 0;
  padding: 0;
  text-align: right;
}

.member-info .member-office .para
{
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #ccc;
}

.member-info .member-office .para strong 
{
  flex: 0 0 100px; /* fixed width for label */
  text-align: right;
}

.member-info .member-office .address {
  flex: 1;
  line-height: 1.2;
}
.para strong,
.para .address,
.para a {
  padding: 0.5rem 0; /* vertical padding for all cells */
}

.member-info .point
{
  margin: 0;
  padding: 5px;
}

.member-info .point .para
{
  margin: 0;
  padding: 0;
  color: #565656;
}

.member-info strong
{
  color: #b1357e;
 letter-spacing: 0;
}

.member-info .member-page{
	margin: 0;
	padding: 0;
	text-align: right;
    }

.member-info .member-page a {
  flex: 1;
}

.member-page {
   position: relative;
  width: auto;
 min-height: 50px;
  padding: 0;
}

.member-page .member-detail-info {
  position: absolute;
  right: 0;
  bottom: 0; /* or wherever you want */
    }
 /*
.member-page .member-detail-info .icon{
  background-color: #ffffff;
}
*/

/* Innerpages stylesheets*/

.view-views-member .members-intro{
	margin: 1rem auto;
	padding-left: 20px;
}


/*--- member-institutions----- inner ---*/
.member-institution-inner{
	/*
	border: 1px  solid #ececec;
	*/
	width: 90%;
	margin: 0 auto;
	padding: 0;
}

#member_institution_inner{
	padding: 10px;
}

.member_institution_inner_head {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-around;
	width: 100%;
	margin: 0 auto;
	padding: 0;
	border: 1px solid #ececec;
	
}

.member_institution_logo,
.member_institution_flag_wraper{
	display: flex;
	flex-basis: 50%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	/*
	border: 1px solid #ff0f15;
	*/
	
} 

.member_institution_logo img,
.member_institution_flag_wraper .member_institution_flag img{
	margin: 0;
	padding: 10px;
}

.member_institution_country{
	display: block;
}

.member_institution_info,
.member_institution_contact,
.member_institution_abt {
	width: 100%;
	margin: 10px auto;
	padding: 10px;
	border: 1px solid #ececec;
}

.member_institution_info_row_1,
.member_institution_info_row_2,
.member_institution_info_row_3,
.member_institution_info_row_4,
.member_institution_info_row_5,
.member_institution_contact_row_1,
.member_institution_contact_row_2,
.member_institution_contact_row_3 {
	display: flex;
	flex-basis: 50%;
	justify-content: center;
	align-items: center;
}

.member_institution_name,
.member_institution_dez,
.member_institution_est,
.member_institution_ho,
.member_institution_web{
	width: 40%;
	margin: 0;
	padding: 5px 20px;
	text-align: right;
	font-weight: bold;
	color: #b1357e;
}

.member_institution_name-data,
.member_institution_dez-data,
.member_institution_est-data,
.member_institution_ho-data,
.member_institution_web-data{
	width: 40%;
	margin: 0;
	padding: 5px 20px;
}

.member_institution_add,
.member_institution_phn,
.member_institution_fax{
	width: 20%;
	margin: 0;
	padding: 5px 20px;
	text-align: right;
	font-weight: bold;
	color: #b1357e;
}

.member_institution_add-data,
.member_institution_phn-data,
.member_institution_fax-data {
	width: 70%;
	margin: 0;
	padding: 5px 20px;
}

@media (max-width: 768px) {
	
	.member-detail .details-box {
  padding: .5rem;
}

.member-info {
    height: 26vh !important;
    transition: none;
  }

 .member-info .column-wrap {
    width: 100%;
    flex-direction: row; /* default, but good to be explicit */
    font-size: .9rem;
    gap: 0rem;
  }

  .member-info .left-column {
    flex: 1 1 25%;
    margin: 0;
    padding: 0;
  }

  .member-info .right-columns {
    flex: 1 1 75%;
    max-width: 75%;
    margin: 0;
    padding: 0;
  }

  .member-info .member-name
  {
    padding: 5px;
  }
  .member-info .member-office .para
  {
    gap: 0rem;
    text-align: left;
  }

  .para strong,
  .para .address,
  .para a
  {
    padding: 2px; /* vertical padding for all cells */
  }

  .member-info .point
  {
    margin: 0;
    padding: 2px 0;
  }

.member-info .member-page{
	padding: 0;
	}
 


}