/* Professors Page Styles */

:root {
  --primary-color: #1b4d9a;
  --accent-color: #f2c94c;
  --text-dark: #111;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --border-color: #eaeaea;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 25px rgba(27, 77, 154, 0.15);
}

.professors-section {
  padding: 60px 0;
  background-color: var(--bg-light);
}

.professors-block {
  margin-bottom: 60px;
}

.professors-block:first-child {
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.section-title i {
  margin-right: 15px;
  color: var(--accent-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.title-underline {
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
}

/* Distinguished Professors Grid */
.distinguished-professors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Professor Card Base Styles */
.professor-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.professor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(27, 77, 154, 0.05);
  transition: height 0.3s ease;
  z-index: 1;
}

.professor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.professor-card:hover::before {
  height: 4px;
}

.distinguished-card {
  border-top: 4px solid var(--accent-color);
}

.distinguished-card:hover::before {
  background: rgba(242, 201, 76, 0.1);
}

.leader-card {
  border-top: 4px solid var(--primary-color);
}

.staff-card {
  border-top: 2px solid #e0e0e0;
}

/* Image Wrapper */
.professor-image-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.professor-image-wrapper.small {
  height: 180px;
}

.professor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.professor-card:hover .professor-image {
  transform: scale(1.05);
}

/* Professor Badge */
.professor-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(242, 201, 76, 0.3);
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.leader-badge {
  background-color: var(--primary-color);
  color: var(--accent-color);
  box-shadow: 0 4px 10px rgba(27, 77, 154, 0.4);
}

/* Professor Info */
.professor-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.professor-name {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.professor-name.small {
  font-size: 1.1rem;
}

.professor-position {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 8px 0;
  font-weight: 500;
}

.professor-card-position {
  font-size: 0.85rem;
  color: #999;
  margin: 0 0 15px 0;
  font-style: italic;
}

/* Professor Details */
.professor-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #666;
  transition: color 0.3s ease;
}

.detail-item:hover {
  color: var(--primary-color);
}

.detail-item i {
  color: var(--primary-color);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.detail-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.detail-item a:hover {
  color: #0d2e5a;
  text-decoration: underline;
}

/* Faculty Professors Section */
.faculty-professors-section {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
}

.faculty-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0 0 30px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--accent-color);
  font-weight: 700;
}

.faculty-title i {
  margin-right: 10px;
  color: var(--accent-color);
}

/* Subsection */
.professors-subsection {
  margin-bottom: 40px;
}

.professors-subsection:last-child {
  margin-bottom: 0;
}

.professors-subtitle {
  font-size: 1.2rem;
  color: #444;
  margin: 0 0 20px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
}

/* Leaders Grid */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

/* Staff Grid */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/* Page Header */
.page-header {
  padding: 80px 0 40px;
  color: #fff;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.breadcrumb a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.professor-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.professor-card:nth-child(1) {
  animation-delay: 0.1s;
}

.professor-card:nth-child(2) {
  animation-delay: 0.2s;
}

.professor-card:nth-child(3) {
  animation-delay: 0.3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .distinguished-professors-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }

  .leaders-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.8rem;
  }

  .distinguished-professors-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .leaders-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .professor-image-wrapper {
    height: 220px;
  }

  .professor-image-wrapper.small {
    height: 150px;
  }

  .professor-info {
    padding: 20px;
  }

  .professor-name {
    font-size: 1.1rem;
  }

  .faculty-professors-section {
    padding: 25px 15px;
    border-left: 3px solid var(--primary-color);
  }

  .faculty-title {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .professors-section {
    padding: 40px 0;
  }

  .professionals-block {
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.4rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .distinguished-professors-grid {
    grid-template-columns: 1fr;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .professor-image-wrapper {
    height: 180px;
  }

  .professor-image-wrapper.small {
    height: 120px;
  }

  .professor-info {
    padding: 15px;
  }

  .professor-name {
    font-size: 1rem;
  }

  .professor-position {
    font-size: 0.85rem;
  }

  .professors-subsection {
    margin-bottom: 20px;
  }

  .professors-subtitle {
    font-size: 1rem;
  }

  .detail-item {
    font-size: 0.8rem;
  }
}

/* Print Styles */
@media print {
  .professors-section {
    padding: 20px 0;
  }

  .professor-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}
