/* Administration page scoped styles */
.page-administration { --brand:#0a1f57; --border:#e5e7eb; --muted:#64748b; --accent-yellow:#facc15; --accent-sky:#0ea5e9; }
.page-administration .admin-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, #f8fbff);
  border-top: 4px solid var(--accent-yellow);
}

.page-administration .admin-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a; /* slate-900 */
  margin: 0 0 6px 0;
}

.page-administration .admin-header p {
  font-size: 1rem;
  color: #475569; /* slate-600 */
  margin: 0;
}

.page-administration .admin-cards {
  padding: 8px 0 40px;
}

.page-administration .admin-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 18px;
  margin-bottom: 16px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.page-administration .admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20,24,38,.12);
}
.page-administration .admin-card:focus-within {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 3px;
}

.page-administration .admin-card .photo {
  width: 180px;
  height: 210px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4c7cf2, #7aa7ff);
  border: 4px solid #e6f0ff;
  overflow: hidden;
  box-sizing: border-box; /* prevent border adding extra width/height */
}
.page-administration .admin-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-administration .admin-card .details .name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}

.page-administration .admin-card .details .role {
  display: inline-block;
  font-size: 0.95rem;
  color: #2563eb; /* blue-600 */
  font-weight: 600;
  margin-bottom: 10px;
}

.page-administration .admin-card .bio p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 10px 0;
  text-align: justify;
}

/* Back to top button */
.page-administration .back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.page-administration .back-to-top:hover {
  background: #1d4ed8;
}
.page-administration .back-to-top:focus-visible {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .page-administration .admin-card {
    grid-template-columns: 120px 1fr;
    padding: 14px;
  }
  .page-administration .admin-card .photo {
    width: 120px; height: 120px;
  }
}
@media (max-width: 640px) {
  .page-administration .admin-card {
    grid-template-columns: 1fr;
  }
  .page-administration .admin-card .photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5; /* keep a portrait box, but allow scaling */
  }
  .page-administration .admin-card .photo img {
    object-fit: contain; /* zoom out to fit whole image on mobile */
    width: 100%;
    height: 100%;
  }
}