/* ─── Department Pages Modern Styling ─── */

/* ─── Department Hero Section (using page-banner class from style.css) ─── */

/* ─── Department Navigation Tabs ─── */
.dept-nav {
  /* background: #fff; */
  /* box-shadow: var(--shadow-md); */
  position: relative;
  z-index: 1000;
  /* border-bottom: 3px solid var(--gold); */
}

.dept-nav .nav-pills {
  gap: 8px;
  padding: 16px 0;
}

.dept-nav .nav-link {
  color: var(--text-mid);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  border: 2px solid var(--border);
  transition: var(--tr);
  background: #fff;
}

.dept-nav .nav-link:hover {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-pale);
}

.dept-nav .nav-link.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: var(--shadow-gold);
}

.dept-nav .nav-link i {
  margin-right: 8px;
}

/* ─── Department Content Section ─── */
.dept-content {
  padding: 60px 0;
  background: var(--light);
  min-height: 500px;
}

/* ─── Section Headers ─── */
.dept-section-header {
  margin-bottom: 40px;
  position: relative;
}

.dept-section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dept-section-header h2 i {
  color: var(--gold);
  font-size: 1.8rem;
}

.dept-section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  line-height: 1.7;
}

.dept-section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-top: 16px;
  border-radius: 2px;
}

/* ─── Info Cards ─── */
.dept-info-card {
  background: #fff;
  border-radius: var(--cell-radius-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  margin-bottom: 32px;
  transition: var(--tr);
}

.dept-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.dept-info-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dept-info-card h3 i {
  color: var(--gold);
  font-size: 1.3rem;
}

.dept-info-card p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 16px;
}

.dept-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dept-info-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

.dept-info-card ul li:last-child {
  border-bottom: none;
}

.dept-info-card ul li i {
  color: var(--gold);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─── Faculty Cards ─── */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.faculty-card {
  background: #fff;
  border-radius: var(--cell-radius-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--tr);
  position: relative;
}

.faculty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--tr);
}

.faculty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--gold);
}

.faculty-card:hover::before {
  transform: scaleX(1);
}

.faculty-card .faculty-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--green-pale), var(--green-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.faculty-card .faculty-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faculty-card .faculty-img .placeholder {
  font-size: 4rem;
  color: var(--green);
  opacity: 0.3;
}

.faculty-card .faculty-info {
  padding: 24px;
}

.faculty-card .faculty-info h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.faculty-card .faculty-info .designation {
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.faculty-card .faculty-info .qualification {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ─── Course Cards ─── */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.course-card {
  background: #fff;
  border-radius: var(--cell-radius-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--tr);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card .course-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-pale);
  color: var(--gold-dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: 1px solid var(--gold-light);
}

.course-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.course-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.course-card .course-meta {
  display: flex;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.course-card .course-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-card .course-meta span i {
  color: var(--gold);
}

/* ─── Highlight Cards ─── */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.highlight-card {
  background: linear-gradient(135deg, var(--green-pale) 0%, #fff 100%);
  border-radius: var(--cell-radius-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-color: var(--gold);
}

.highlight-card .highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--cell-radius-sm);
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 20px;
  transition: var(--tr);
}

.highlight-card:hover .highlight-icon {
  transform: rotate(-5deg) scale(1.1);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
}

.highlight-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.highlight-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ─── Stats Row ─── */
.dept-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.dept-stat {
  background: #fff;
  border-radius: var(--cell-radius-md);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: center;
  transition: var(--tr);
}

.dept-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.dept-stat .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.dept-stat .stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── Responsive Design ─── */
@media (max-width: 992px) {
  .dept-hero {
    padding: 80px 0 60px;
  }

  .dept-nav {
    top: 20px;
  }

  .dept-nav .nav-pills {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dept-content {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .dept-hero h1 {
    font-size: 2rem;
  }

  .dept-hero .dept-tagline {
    font-size: 1.1rem;
  }

  .dept-nav .nav-link {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .faculty-grid,
  .course-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .dept-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dept-stats {
    grid-template-columns: 1fr;
  }
}

/* ─── Animations ─── */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
