/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f6f9fc;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 30px 15px;
}

/* Faculty Section */
.faculty-section {
  width: 100%;
  max-width: 1200px;
}

.faculty-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  padding: 25px;
  border: 1px solid #e6eef9;
}

/* Title */
.faculty-title-box {
  background: linear-gradient(135deg, #5a8dee, #67c3f3);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faculty-title-box h2 {
  font-size: 22px;
  font-weight: 700;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  background: #eef4ff;
  font-weight: 600;
  color: #3366cc;
  cursor: pointer;
  transition: 0.3s;
}

.tab-button.active {
  background: #3366cc;
  color: #fff;
  box-shadow: 0 4px 10px rgba(51,102,204,0.25);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Search Bar */
.search-box {
  text-align: center;
  margin: 15px 0 25px;
}

.search-box input {
  width: 100%;
  max-width: 480px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #c6d9f7;
  border-radius: 30px;
  outline: none;
  transition: 0.3s;
}

.search-box input:focus {
  border-color: #3366cc;
  box-shadow: 0 0 8px rgba(51,102,204,0.25);
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* Table Head */
thead {
  background: #eef4ff;
  color: #3366cc;
}

thead th {
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 2px solid #ddd;
}

/* Table Body */
tbody td {
  padding: 14px;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px solid #f1f5fc;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:nth-child(even) {
  background: #f9fcff;
}

tbody tr:hover {
  background: #f0f6ff;
  transition: 0.3s;
}

/* Profile Image */
.profile-pic {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid black;
  cursor: pointer;
  transition: 0.3s;
}

.profile-pic:hover {
  transform: scale(3.05);
}

/* Resume Button */
.resume-btn {
  display: inline-block;
  padding: 7px 14px;
  background: #5a8dee;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  transition: 0.3s;
}

.resume-btn:hover {
  background: #3366cc;
  box-shadow: 0 3px 10px rgba(51,102,204,0.25);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  border-radius: 10px;
  overflow: hidden;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  thead {
    font-size: 13px;
  }
  tbody td {
    font-size: 13px;
    padding: 10px;
  }
  .profile-pic {
    width: 70px;
    height: 70px;
  }
}
