:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #514ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #9395fb 0%, #6f57f5 100%);
  --accent-color: #6366f1;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --bg-light: #f8fafc;
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-large: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}



.dept-hero-section {
  background: var(--primary-gradient);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.dept-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.dept-title-container {
  position: relative;
  z-index: 2;
}

.dept-main-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.dept-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.dept-content-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-large);
  margin-top: -2rem;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.dept-sidebar-nav {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 2rem 1rem;
  border-right: 1px solid #e5e7eb;
  min-height: 600px;
}

.dept-nav-pills {
  gap: 0.75rem;
}

.dept-nav-button {
  border: none;
  background: transparent;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dept-nav-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.dept-nav-button:hover {
  color: white;
  transform: translateX(4px);
  box-shadow: var(--shadow-medium);
}

.dept-nav-button:hover::before {
  left: 0;
}

.dept-nav-button.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-medium);
}

.dept-nav-icon {
  font-size: 1.1rem;
  width: 20px;
}

.dept-content-area {
  padding: 2.5rem;
}

.dept-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  text-align: center;
}

.dept-subsection-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
  position: relative;
  padding-left: 1rem;
}

.dept-subsection-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 24px;
  background: var(--accent-color);
  border-radius: 2px;
}

.dept-text-content {
  font-size: 15px;
  
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.dept-vision-mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.dept-vision-card,
.dept-mission-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid #657caa;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dept-vision-card::before,
.dept-mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.dept-vision-card:hover,
.dept-mission-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.dept-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dept-syllabus-table {
  background: white;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
}

.dept-table-header {
  background: var(--primary-gradient);
  color: white;
}

.dept-table-header th {
  font-weight: 600;
  padding: 1.25rem;
  border: none;
}

.dept-table-row td {
  padding: 1.25rem;
  vertical-align: middle;
  border-color: #b4bccc;
}

.dept-view-button {
  background: var(--secondary-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.dept-view-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  color: white;
}

.dept-lab-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dept-lab-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  background: white;
}

.dept-lab-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
}

.dept-lab-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.dept-lab-card:hover .dept-lab-image {
  transform: scale(1.05);
}

.dept-lab-caption {
  padding: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--text-primary);
}

.dept-alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border: 1px solid #93c5fd;
  color: #1e40af;
  border-radius: 12px;
  padding: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dept-alert-icon {
  font-size: 1.5rem;
}

.dept-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.dept-fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .dept-main-title {
    font-size: 2.5rem;
  }

  .dept-content-area {
    padding: 1.5rem;
  }

  .dept-sidebar-nav {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    min-height: auto;
  }

  .dept-nav-pills {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .dept-nav-button {
    white-space: nowrap;
    min-width: auto;
  }
}

.nav-pills .nav-link {
  font-weight: 500;
  border-radius: 0.25rem;
}

.syllabus-section {
  margin-bottom: 2rem;
}

.dept-syllabus-table th,
.dept-syllabus-table td {
  vertical-align: middle;
}

.dept-nav-pills > div {
  position: relative;
}

.dept-nav-pills > div::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #ccc;
 margin:auto;
  width: 90%;
}

