/* Modern Faculty Section Styles */
.faculty-modern-area {
  background-color: #f8f9fa; /* Very light grey */
  position: relative;
  z-index: 1;
}

.faculty-modern-container {
  max-width: 1500px;
  margin: 0 auto;
}

.faculty-modern-area .section-title .sub-title {
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.faculty-modern-area .section-title h2 {
  font-size: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.faculty-modern-area .section-title p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

.faculty-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  height: 100%;
  transition: all 0.4s ease;
}

.faculty-card .image {
  position: relative;
  height: 493px;
  width: 100%;
  overflow: hidden;
}

.faculty-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.faculty-card:hover .image img {
  transform: scale(1.08);
}

.faculty-card .content {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  transform: none !important;
}



.faculty-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.faculty-card .tags a {
  background-color: var(--primary-color, #0b2e59);
  color: #fff;
  font-size: 13px;
  padding: 5px 15px;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.faculty-card .tags a:hover {
  background-color: #f35c27; /* Dustrian orange */
}

.faculty-card .title {
  margin-bottom: 0;
}

.faculty-card .title a {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
}

.faculty-card .title a:hover {
  color: #f35c27;
}

.faculty-card .inner-content {
  max-height: 150px;
  opacity: 1;
  overflow: hidden;
  transition: all 0.4s ease;
  margin-top: 15px;
  position: relative;
}

.faculty-card .inner-content p {
  color: #e0e0e0;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
  padding-right: 60px; /* Space for button */
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faculty-card .details-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50px;
  height: 50px;
  background-color: #f35c27;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s;
  transform: translateX(0);
  opacity: 1;
}

.faculty-card .details-btn:hover {
  background-color: #fff;
  color: #f35c27;
}

/* Skeleton Loading */
.skeleton-box {
  background-color: #e2e8f0;
  border-radius: 0;
  height: 493px;
  position: relative;
  overflow: hidden;
  animation: pulse 1.5s infinite;
  margin-bottom: 30px;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .faculty-modern-area .section-title h2 {
    font-size: 32px;
  }
}

@media (max-width: 767px) {
  .faculty-modern-area .section-title h2 {
    font-size: 28px;
  }
  
  .faculty-card .image {
    height: 260px;
  }
  
  .skeleton-box {
    height: 260px;
  }
  
  .faculty-card .content {
    padding: 20px;
  }
  
  .faculty-card .title a {
    font-size: 20px;
  }
  
  .faculty-card:hover .inner-content {
    max-height: 200px;
  }
}
