/* ==========================
   ABOUT US PAGE STYLES
   ========================== */

/* Section background and layout */
#tab2 {
  background-color: #f7f9fc;
  padding: 40px 20px;
  text-align: center;
}
#tab2 .heading2 {
  font-size: 24px;
  font-weight: 700;
  color: #083B80;
  margin-bottom: 10px;
}
#tab2 .mission {
  font-size: 16px;
  font-weight: normal;
  color: #333;
  margin-bottom: 30px;
}
#tab2 .board-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}
#tab2 .card {
  background-color: #fff;
  border: 6px solid #083B80;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
#tab2 .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}
#tab2 .card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}
#tab2 .card .info {
  background-color: #083B80;
  color: #fff;
  padding: 12px 8px;
}
#tab2 .card .info .name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
}
#tab2 .card .info .role {
  font-size: 14px;
  font-weight: normal;
}
@media (max-width: 768px) {
  #tab2 .board-container { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 480px) {
  #tab2 .board-container { grid-template-columns: 1fr; }
}

/* ===== MODAL/PDF PANEL LAYOUT ===== */
.modal-backdrop.show {
  opacity: .55;
  position: fixed;
  inset: 0;
  height: 100vh;
}
.modal.fade { display: none !important; }
.modal.show { display: block !important; }
.modal-open .modal.director-modal { padding-left: 0 !important; }
.modal-open { overflow: hidden; }
.director-modal .modal-content {
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.director-modal-dialog.modal-lg {
  max-width: 1140px !important;
}
.modal.director-modal .modal-dialog {
  margin: 0 !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: auto;
  max-width: none;
}
.director-modal .modal-body {
  padding: 32px 36px;
  position: relative;
}
.director-modal .btn-close {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 2;
}

/* Two-column PDF modal layout */
.director-modal .director-panel {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
}
.director-modal .director-left {
  width: 300px !important;
  flex: 0 0 300px !important;
  text-align: center !important;
  padding-right: 32px !important;
  border-right: 1px solid #eceff1 !important;
  background: none !important;
}
.director-modal .director-right {
  display: block !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  overflow: visible !important;
  padding-left: 32px !important;
  box-sizing: border-box !important;
  position: static !important;
  float: none !important;
  color: inherit !important;
  background: none !important;
}
.director-modal .director-bio {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: auto !important;
  box-sizing: border-box !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  color: #374151 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  background: none !important;
  position: static !important;
  float: none !important;
}
.director-modal .director-bio p {
  margin-bottom: 10px !important;
}

/* Photo always correct size */
.director-modal .director-photo {
  width: 160px !important;
  height: 160px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  border: 6px solid #F3F6F9 !important;
  box-shadow: 0 0 0 1px #E5E9EF inset !important;
  margin-bottom: 14px !important;
  display: inline-block !important;
  max-width: none !important;
}
.director-modal .director-name { font-weight: 600; font-size: 20px; color: #1F2A37; }
.director-modal .director-role { margin-top: 6px; color: #5B6B7A; font-size: 15px; line-height: 1.35; }

@media (max-width: 991.98px) {
  .director-modal-dialog.modal-lg { max-width: 98vw !important; }
  .director-modal .modal-body { padding: 20px !important; }
  .director-modal .director-panel { flex-direction: column !important; }
  .director-modal .director-left {
    width: 100% !important;
    flex: none !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eceff1 !important;
    padding-right: 0 !important;
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
  }
  .director-modal .director-right {
    padding-left: 0 !important;
    max-width: 100% !important;
  }
}
.modal-content {
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.modal-body {
    padding: 2rem;
}

.director-bio {
    max-height: 60vh;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.modal .fw-semibold {
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.modal .text-muted.small {
    font-size: 0.85rem;
    color: #666;
}

.modal img.rounded-circle {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 2px solid #ddd;
}

.board-container .card img {
    border-radius: 0 !important;
    width: 120px;
    height: 120px;
    object-fit: cover;
    transition: transform 0.15s ease;
}

.board-container .card:hover img {
    transform: scale(1.05);
}

.btn-close {
    background-color: #eee;
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

/* Modal specific */
.modal .director-img {
    width: 220px;  /* fixed size */
    height: 220px;
    object-fit: cover;
    border-radius: 50%; /* circular */
}

.modal .director-info {
    max-height: 60vh;
    overflow-y: auto;
}
.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #f1f1f1;  /* light gray background */
  border: 1px solid #ccc;     /* light gray border */
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
  cursor: pointer;
  color: #333;
  padding: 0;
}

.modal-close-btn:hover {
  background-color: #e0e0e0; /* slightly darker on hover */
}

.committee-card {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.committee-title {
    font-weight: 600;
    margin-bottom: 10px;
}

.composition-text {
    font-size: 14px;
    margin-bottom: 10px;
}

.member-name {
    font-size: 12px;
    margin-top: 5px;
}

.committee-details ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.btn-outline-secondary {
    font-size: 13px;
}

.committee-card {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.committee-members img {
    width: 100px; /* same as board tiles */
    height: 100px;
    object-fit: cover;
}

.member-name {
    font-size: 12px;
    margin-top: 5px;
}

.committee-details {
    background-color: #f8f9fa;
}

