/* ============================================================
   Poppins Team — Frontend Styles
   ============================================================ */

/* ---- Base ---- */
.pt-team-wrap *,
.pt-team-wrap *::before,
.pt-team-wrap *::after {
  box-sizing: border-box;
}

.pt-error {
  color: #cc0000;
  font-style: italic;
  padding: 8px 0;
}

/* ---- Grid ---- */
.pt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pt-cols-2 .pt-grid { grid-template-columns: repeat(2, 1fr); }
.pt-cols-3 .pt-grid { grid-template-columns: repeat(3, 1fr); }
.pt-cols-4 .pt-grid { grid-template-columns: repeat(4, 1fr); }
.pt-cols-5 .pt-grid { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .pt-cols-4 .pt-grid,
  .pt-cols-5 .pt-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .pt-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 16px; }
}
@media (max-width: 420px) {
  .pt-grid { grid-template-columns: 1fr !important; }
}

/* ---- Card ---- */
.pt-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
}

.pt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

/* Photo area */
.pt-card-photo {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 */
  overflow: hidden;
  background: #f0f0f0;
}

.pt-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.pt-card:hover .pt-card-photo img {
  transform: scale(1.05);
}

/* Overlay "View Profile" */
.pt-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pt-card:hover .pt-card-overlay {
  opacity: 1;
}

.pt-view-profile {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,0.8);
  padding: 6px 16px;
  border-radius: 4px;
}

/* Card info */
.pt-card-info {
  padding: 16px 14px 18px;
}

.pt-card-info .pt-member-name {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1a1a;
  line-height: 1.3;
}

.pt-card-info .pt-member-designation {
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  margin: 0 0 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pt-card-info .pt-member-subtitle {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

/* ============================================================
   Modal Overlay
   ============================================================ */

.pt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ptFadeIn 0.2s ease;
  padding: 20px;
}

@keyframes ptFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.pt-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 780px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: ptSlideUp 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes ptSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Close button */
.pt-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s;
}
.pt-modal-close:hover {
  background: #e0e0e0;
}

/* Prev / Next */
.pt-modal-prev,
.pt-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 40px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}
.pt-modal-prev { left: -48px; }
.pt-modal-next { right: -48px; }
.pt-modal-prev:hover,
.pt-modal-next:hover { background: rgba(0,0,0,0.8); }

@media (max-width: 900px) {
  .pt-modal-prev { left: -4px; border-radius: 0 4px 4px 0; }
  .pt-modal-next { right: -4px; border-radius: 4px 0 0 4px; }
}

/* Modal inner layout */
.pt-modal-inner {
  display: flex;
  gap: 0;
  min-height: 300px;
}

/* Left: photo */
.pt-modal-photo {
  flex: 0 0 260px;
  max-width: 260px;
  background: #f5f5f5;
}

.pt-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px 0 0 14px;
}

/* Right: content */
.pt-modal-content {
  flex: 1;
  padding: 32px 32px 28px;
  overflow: hidden;
}

.pt-modal-designation {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin: 0 0 4px;
}

.pt-modal-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.2;
}

.pt-modal-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 16px;
  font-style: italic;
}

.pt-modal-bio {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.65;
  margin-bottom: 18px;
  max-height: 200px;
  overflow-y: auto;
}

.pt-modal-bio p { margin: 0 0 10px; }
.pt-modal-bio p:last-child { margin-bottom: 0; }

/* Contact items */
.pt-modal-contacts {
  margin-bottom: 16px;
}

.pt-contact-item {
  font-size: 0.88rem;
  color: #555;
  margin: 0 0 6px;
}
.pt-contact-item strong {
  color: #333;
  font-weight: 600;
}
.pt-contact-item a {
  color: #555;
  text-decoration: none;
}
.pt-contact-item a:hover {
  color: #0073aa;
  text-decoration: underline;
}

/* Social icons */
.pt-social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pt-social-icons a,
.pt-modal-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  color: #555;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pt-social-icons a:hover,
.pt-modal-social a:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Responsive modal */
@media (max-width: 620px) {
  .pt-modal-inner {
    flex-direction: column;
  }
  .pt-modal-photo {
    flex: 0 0 220px;
    max-width: 100%;
    height: 220px;
  }
  .pt-modal-photo img {
    border-radius: 14px 14px 0 0;
  }
  .pt-modal-content {
    padding: 20px 20px 20px;
  }
  .pt-modal-name {
    font-size: 1.35rem;
  }
  .pt-modal-bio {
    max-height: 150px;
  }
}
