/* faculty.css - Modern & neat Faculty UI */
:root {
  --accent: #0a7d42;
  --accent-2: #00a5cf;
  --card-bg: #fff;
  --muted: #6b7280;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(2,10,10,0.06);
}

.faculty-page .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero area */
.faculty-hero {
  display: flex; gap: 20px; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.faculty-hero .hero-left h2 { margin: 0; font-size: 28px; color: var(--accent); }
.faculty-hero .muted { color: var(--muted); margin-top:6px }



/* Grid Layout */
#facultyGrid {
  display: grid;
  grid-column: 1 / -1;
  max-width: 900px;
  gap: 25px;
 
  margin: 0 auto;
  justify-items: center;
}

/* Cards */
.faculty-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display:flex;
  gap:12px;
  align-items:center;
  width: 100%;
  max-width: 900px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.faculty-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(2,10,10,0.08);
}

/* Principal card full width and centered */
.faculty-card.principal {
  grid-column: 1 / -1;
  max-width: 900px;
}

/* Photo + details */
.photo img { width:140px; height:140px; object-fit:cover; border-radius:9px; }
.meta { flex: 1; }
.name { margin: 0; font-size: 16px; font-weight:700; color:#06221a; }
.dept { color:var(--accent-2); font-weight:600; margin-top:3px; }
.expert { color:var(--muted); font-size:13px; margin-top:4px; }

/* Actions */
.actions { display:flex; gap:8px; align-items:center; }
.btn { padding:8px 12px; border-radius:8px; cursor:pointer; border:none; background:var(--accent-2); color:white; font-weight:600; }
.btn.outline { background:transparent; border:1px solid var(--accent-2); color:var(--accent-2); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(2,6,10,0.45); z-index:1200; padding: 20px; }
.modal[aria-hidden="false"] { display:flex; }
.modal-dialog { background: white; border-radius: 12px; width: 880px; max-width: 96%; overflow: hidden; }
.modal-close { position:absolute; right:16px; top:12px; background:transparent; border:none; font-size:18px; cursor:pointer; }
.modal-body { display:flex; gap:18px; padding: 20px; align-items: flex-start; }
.modal-left img { width:200px; height:200px; object-fit:cover; border-radius:10px; }
.modal-right h3 { margin:0 0 6px 0; font-size:20px; color:var(--accent); }
.modal-right .muted { color:var(--muted); margin-bottom:10px; }

/* Responsive */
@media (max-width:900px){
  .faculty-hero { flex-direction: column; align-items:flex-start; gap:12px; }
  #facultySearch { width:100%; max-width:420px; }
  .modal-body { flex-direction: column; align-items:center; text-align:center; }
  .modal-left img { width:160px; height:160px; }
}

/* Prevent screen overflow */
body { overflow-x: hidden; }
