/* ------------------------------
   Style the tab
--------------------------------*/
.tab {
  float: left;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  width: 25%;
}

.tab button {
  display: block;
  background-color: inherit;
  color: black;
  padding: 22px 16px;
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: 0.3s;
  font-size: 17px;
  font-family: "Kanit";
}

.tab button:hover {
  background-color: #ddd;
}

.tab button.active {
  background-color: #f77100;
  color: #fff;
}

.tabcontent {
  float: left;
  padding: 0px 12px;
  border: 1px solid #ccc;
  width: 75%;
  border-left: none;
  font-family: "Kanit";
}

.tabcontent, h5, h6 {
  color: #666;
  font-family: "Kanit", "Barlow", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.3px;
  font-size: 20px;
}

.tabcontent, h4 { font-size: 20px; }
.tabcontent, h5 { font-size: 25px; }
.tabcontent, h6 { font-size: 30px; }

.expandableCollapsibleDiva, h1:hover {
  color: #f77100;
  cursor: pointer;
}

.h1-after { color: #666; }

.tabcontent, a {
  color: #f77100;
  transition: all 0.3s linear;
}

.tabcontent, a:hover {
  color: #f77100;
  text-decoration: none;
}

/* ------------------------------
   Buttons & Links
--------------------------------*/
.btn-link {
  color: #666;
  width: 100%;
  font-size: 16px;
  text-align: left;
}

.btn-link:hover,
.btn-link:focus,
.btn-link:active,
.btn-link.active,
.open > .dropdown-toggle.btn-link {
  color: #fff;
  background-color: #f77100;
  border-color: #f77100;
}

.btn:not(.btn__link):before {
  background-color: #f77100;
}

.card-header { padding: 0; }

/* ------------------------------
   Member Card
--------------------------------*/
.member {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.member__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  text-align: center;
  width: 100%;
}

.member .member__info p {
  font-size: 16px;
  font-weight: normal;
}

.member .member__info a {
  color: #9b9b9b;
  font-size: 16px;
}

.member .member_desc2 p {
  color: #666;
  font-size: 13px;
}

/* ✅ รูป 3:4 เหมือนบัตร */
.member__img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member__img .imgcommittee {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.border {
  padding: 10px;
  border-style: solid;
}

/* ------------------------------
   Tab Campus
--------------------------------*/
.tab-campus {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tab-campus, p { font-size: 16px; }

.tab-campus button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

.tab-campus button:hover {
  background-color: #ddd;
}

.tab-campus button.active {
  background-color: #f77100;
  color: #fff;
}

.tabcontent-campus {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  border-top: none;
}

.expandableCollapsibleDiva, h1:hover {
  color: #f77100;
  cursor: pointer;
}

.h1-after { color: #f77100; }

/* ------------------------------
   Responsive Adjustments
--------------------------------*/
@media (max-width: 768px) {
  .tab { width: 100%; float: none; }
  .tabcontent { width: 100%; float: none; border-left: 1px solid #ccc; }
  .member__img { aspect-ratio: 3 / 4; }
}
