figure {
  border: 1px #cccccc solid;
  padding: 4px;
  margin: auto;
}

figcaption {
  background-color: green;
  color: white;
  font-style: italic;
  padding: 2px;
  text-align: center;
}

.main {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  padding: 20px 0;
}

.img-main {
  width: 100%;
  max-width: 270px;
  min-height: 330px;
  background: #00282a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    rgba(17, 17, 26, 0.08) 0px 6px 18px,
    rgba(17, 17, 26, 0.12) 0px 12px 36px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  margin-bottom: 10px;
}

/* Responsive Grid Layout */
@media (min-width: 992px) {
  .img-main {
    width: calc(33.333% - 14px);
    max-width: 270px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .img-main {
    width: calc(50% - 10px);
    max-width: 300px;
  }
}

@media (max-width: 767px) {
  .img-main {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 15px auto;
  }
}

.img-main:hover {
  transform: translateY(-6px);
  box-shadow: 
    rgba(17, 17, 26, 0.18) 0px 10px 24px,
    rgba(17, 17, 26, 0.22) 0px 16px 48px;
}

.img-top {
  width: 100%;
  height: 75px;
  background: #ffffff;
  border-bottom: 4px solid antiquewhite;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.img-top img {
  width: 150px !important;
  height: 150px !important;
  border-radius: 50% !important;
  border: 4px solid antiquewhite !important;
  object-fit: cover;
  position: absolute;
  top: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  z-index: 3;
  transition: transform 0.3s ease;
  background: #ffffff;
}

.img-main:hover .img-top img {
  transform: scale(1.05);
}

.img-bottom {
  width: 100%;
  background: #00282a;
  padding: 105px 15px 20px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  box-sizing: border-box;
}

.cfl-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: antiquewhite;
}

.cfl-card-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: #ffffff;
  line-height: 1.25;
}

.alumni-batch {
  font-size: 12px;
  font-weight: 600;
  color: orange;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cfl-card-content p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  color: rgba(250, 235, 215, 0.9);
}

.cfl-card-content p.desig {
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
  color: rgba(250, 235, 215, 0.9);
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cfl-card-content p.company {
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  color: antiquewhite;
  text-transform: uppercase;
}
