/* Department-specific CSS */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #0d6efd;
  --accent-color: #0a58ca;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-light: #f8f9fa;
  --text-dark: #2c3e50;
  --text-secondary: #6c757d;
  --success-color: #198754;
}

main {
  margin-top: 120px;
}

.department-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 120px 0 80px;
}

.stats-counter {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.vision-mission-section {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  background-color: var(--bg-primary);
  transition: transform 0.3s ease;
}

.vision-mission-section:hover {
  transform: translateY(-5px);
}

.vision-mission-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.resource-list {
  list-style-type: none;
  padding-left: 0;
}

.resource-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.resource-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success-color);
  font-weight: bold;
}

.tabs-container {
  margin-top: 20px;
}

.nav-tabs .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 3px solid var(--primary-color);
}

.tab-content {
  padding: 20px 0;
}

.student-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background-color: var(--bg-primary);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.project-content {
  padding: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.project-tag {
  background-color: var(--bg-secondary);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline:after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-date {
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  position: absolute;
  top: 15px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-date {
  right: -100px;
}

.timeline-item:nth-child(even) .timeline-date {
  left: -100px;
}

.timeline-item:after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  top: 25px;
  z-index: 1;
}

.timeline-item:nth-child(odd):after {
  right: -10px;
}

.timeline-item:nth-child(even):after {
  left: -10px;
}

.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  border-radius: 10px 10px 0 0 !important;
  padding: 15px 20px;
}

/* Semester Cards */
.semester-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  overflow: hidden;
}

.semester-card:hover {
  transform: translateY(-5px);
}

.semester-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 15px 20px;
  border-bottom: none;
}

.subject-item {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.subject-item:hover {
  background-color: var(--bg-light);
}

.subject-item:last-child {
  border-bottom: none;
}

.outcomes-list {
  list-style-type: none;
  padding-left: 0;
}

.outcomes-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.outcomes-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: bold;
}

.course-highlight {
  background-color: #e8f4fd;
  border-left: 4px solid var(--primary-color);
  padding: 15px;
  margin: 15px 0;
  border-radius: 0 5px 5px 0;
}

.semester-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-left: 10px;
}

.curriculum-accordion .accordion-button {
  font-weight: 600;
  padding: 15px 20px;
}

.curriculum-accordion .accordion-button:not(.collapsed) {
  background-color: #e8f4fd;
  color: var(--primary-color);
}

.subject-details {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  margin-top: 10px;
}

/* Section Title */
.section-title {
  position: relative;
  margin-bottom: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
}

.text-center .section-title:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Contact Info */
.contact-info {
  text-align: center;
  padding: 20px;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* Lab Equipment Cards */
.equipment-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}

.equipment-card:hover {
  transform: translateY(-5px);
}

.equipment-image {
  height: 200px;
  object-fit: cover;
}

/* Specialized Badges */
.infrastructure-badge,
.pharmacy-badge,
.mechanical-badge {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 10px;
}

.lab-feature {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.lab-feature i {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Pharmacy Specific Styles */
.pill-icon {
  background: var(--primary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .timeline:after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-date {
    left: 15px !important;
    right: auto !important;
  }
  
  .timeline-item:after {
    left: 21px !important;
  }
  
  .student-projects-grid {
    grid-template-columns: 1fr;
  }
}