/* ===== MEC & HOD (Modern Styled Like District Cards) ===== */
/* ======= Title ======= */
.main__title {
  font-size: 2.125rem;
  font-weight: 800;
  color: #000 !important;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}
.main__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 4px;
  background: #ffcc33;
  border-radius: 2px;
}

   .management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; /* Adjusts spacing between cards */
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.profile-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%; /* Take full width of grid cell */
  margin: 0;   /* Remove auto margin inside grid */
}

/* Hover */
.profile-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .management-grid {
    grid-template-columns: 1fr; /* Stack cards on small screens */
  }

  .profile-card {
    max-width: 100%;
  }
}

/* Header Match */
.profile-card .card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #ffd700 0%, #ffcc33 100%);
  color: #000 !important;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.profile-title {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Body Style */
.profile-card .card-body {
  padding: 24px;
  background: #fafcff;
}

/* Info Items */
.profile-card .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
}

.profile-card .info-item:last-child {
  margin-bottom: 0;
}

.profile-card .info-icon {
  font-size: 1.1rem;
  margin-right: 12px;
  color: #000;
  width: 22px;
  text-align: center;
}

.profile-card .info-label {
  font-weight: 600;
  color: #37474f;
  margin-bottom: 3px;
}

.profile-card .info-value {
  color: #455a64;
  font-size: 0.95rem;
}

.profile-card .info-value a {
  color: #198754;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted #198754;
}

.profile-card .info-value a:hover {
  color: #0a3d27;
  border-bottom-style: solid;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    max-width: 92%;
  }
}
