.elementor-91 .elementor-element.elementor-element-6ee0f6b{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;}.elementor-91 .elementor-element.elementor-element-774a986{--display:flex;--min-height:417px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-91 .elementor-element.elementor-element-8bf8b6c{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-91 .elementor-element.elementor-element-60b0e51{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}@media(min-width:768px){.elementor-91 .elementor-element.elementor-element-774a986{--width:30%;}.elementor-91 .elementor-element.elementor-element-8bf8b6c{--width:25%;}.elementor-91 .elementor-element.elementor-element-60b0e51{--width:25%;}}/* Start custom CSS for html, class: .elementor-element-78f7991 *//* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text&display=swap');

/* Profile Card Container */
.profile-card {
  position: relative;
  width: 100%;            /* full width of parent */
  max-width: 320px;       /* limit on large screens */
  aspect-ratio: 3/4;      /* keep proportion (3:4) */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  cursor: pointer;
  font-family: 'DM Serif Text', serif;
  margin: auto;
}

/* Image */
.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Name always visible at bottom center */
.profile-card .name {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 1.4rem; /* scalable font */
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  z-index: 2;
  text-align: center;
  width: 100%;
}

/* Hidden details */
.profile-card .details {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: rgba(255,255,255,0.95);
  color: #222;
  font-size: 0.9rem;
  text-align: center;
  transition: height 0.5s ease;
  padding: 0 8px;
  box-sizing: border-box;
}

/* Show details on hover (desktop) */
.profile-card:hover .details {
  height: 70%;
  padding-top: 8px;
}

/* Table styling */
.profile-card .details table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  text-align: center;
}

.profile-card .details table td {
  padding: 4px 6px;
  font-size: 0.85rem;
}

.profile-card .details table td strong {
  color: #e41779;
  font-size: 0.9rem;
}

/* ----------------------------
   📱 Responsive Adjustments
---------------------------- */

/* For tablets */
@media (max-width: 768px) {
  .profile-card {
    max-width: 260px;
  }

  .profile-card .name {
    font-size: 1.2rem;
  }

  .profile-card .details table td {
    font-size: 0.8rem;
  }
}

/* For small mobiles */
@media (max-width: 480px) {
  .profile-card {
    max-width: 200px;
  }

  .profile-card .name {
    font-size: 1rem;
  }

  .profile-card .details table td {
    font-size: 0.7rem;
    padding: 3px 4px;
  }

  .profile-card .details table td strong {
    font-size: 0.75rem;
  }
}/* End custom CSS */