/* ===================================================
   BOARD OF DIRECTORS (BOD) SECTION — FINAL SMOOTH JUSTIFY
   =================================================== */

/* Section container */
#BOD {
  padding-top: 50px;
  padding-bottom: 80px;
}

/* Title styling */
#BOD .title h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}
#BOD .title p {
  font-size: 16px;
  color: #555;
}

/* ===== Card styling ===== */
#BOD .single-defination {
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
#BOD .single-defination:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===== Director Images ===== */
#BOD .single-defination img {
  display: block;
  height: 340px; /* Larger image */
  width: auto;
  max-width: 100%;
  margin: 0 auto 12px;
  object-fit: contain;
  object-position: center bottom;
}

/* Responsive image size */
@media (max-width: 991.98px) {
  #BOD .single-defination img { height: 280px; }
}
@media (max-width: 575.98px) {
  #BOD .single-defination img { height: 220px; }
}

/* ===== Names & role ===== */
#BOD .single-defination h4 {
  font-weight: 700;
  font-size: 18px;
  margin-top: 10px;
  margin-bottom: 10px;
}
#BOD .single-defination p {
  font-size: 15px;
  color: #DFA029;
  line-height: 1.6;
}

/* ===== Collapse Panel ===== */
/* Applies justification before, during, and after animation */
#BOD .single-defination .collapse,
#BOD .single-defination .collapse.show,
#BOD .single-defination .collapsing {
  margin-top: 12px;
  background: #fafafa;
  padding: 16px 18px;
  border: 1px solid #eee;
  border-radius: 10px;
  line-height: 1.7;
  color: #444;
  text-align: justify !important;
  text-justify: inter-word;
  transition: all 0.3s ease;
}

/* Ensure every element inside the collapse is justified */
#BOD .single-defination .collapse *,
#BOD .single-defination .collapse.show *,
#BOD .single-defination .collapsing * {
  text-align: justify !important;
  text-justify: inter-word;
  color: #444;
  line-height: 1.7;
}

/* Fix Bootstrap .text-center inside collapse */
#BOD .single-defination .collapse .text-center,
#BOD .single-defination .collapsing .text-center {
  text-align: justify !important;
}

/* ===== Layout alignment ===== */
#BOD .row.justify-content-center {
  justify-content: center;
  text-align: center;
}
#BOD .row.justify-content-center.mt-5 {
  margin-top: 70px;
  justify-content: center;
}

/* Optional outline for debugging */
/* #BOD { outline: 2px solid red; } */
