/* =========================================================
   MECHANICAL ENGINEERING DEPARTMENT STYLES
   ========================================================= */

/* CSS Variables for Mechanical Engineering */
:root {
  --mech-primary: #1565c0;
  --mech-secondary: #0d47a1;
  --mech-light: #e3f2fd;
  --mech-dark: #0d47a1;
  --mech-accent: #42a5f5;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* =========================================================
   DEPARTMENT HEADER - MECHANICAL
   ========================================================= */
.department-header {
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-dark) 100%
  );
  position: relative;
  overflow: hidden;
}

.department-header::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 1000 100" fill="white" opacity="0.05"><path d="M0,70 Q250,10 500,70 T1000,70 L1000,100 L0,100 Z"/></svg>');
  background-size: cover;
}

.department-header .lead {
  font-size: 1.25rem;
  opacity: 0.9;
}

.department-info .badge {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.department-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3.5rem;
  color: white;
  border: 4px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.department-icon:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   INTERNAL NAVIGATION - MECHANICAL
   ========================================================= */
.internal-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.internal-nav .navbar-nav {
  gap: 1rem;
}

.internal-nav .nav-link {
  position: relative;
  color: var(--mech-dark);
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 20px;
}

.internal-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--mech-accent);
  transition: all 0.3s ease;
  border-radius: 2px;
  transform: translateX(-50%);
}

.internal-nav .nav-link:hover,
.internal-nav .nav-link.active {
  color: var(--mech-primary);
  background: var(--mech-light);
}

.internal-nav .nav-link:hover::after,
.internal-nav .nav-link.active::after {
  width: 80%;
}

/* =========================================================
   SECTION COMMON STYLES - MECHANICAL
   ========================================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--mech-dark);
  margin-bottom: 1.5rem;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-accent) 100%
  );
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

.section-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--mech-primary);
  transition: transform 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-box {
  background: linear-gradient(135deg, var(--mech-light) 0%, #e8f5e9 100%);
  border-left: 4px solid var(--mech-accent);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.highlight-box h5 {
  color: var(--mech-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.highlight-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.highlight-box li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.6;
}

.highlight-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--mech-accent);
  font-size: 1.2rem;
  line-height: 1;
}

/* =========================================================
   VISION & MISSION CARDS - MECHANICAL
   ========================================================= */
.mission-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--mech-primary);
  transition: transform 0.3s ease;
  height: 100%;
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mission-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-secondary) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  color: white;
}

.mission-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--mech-dark);
  margin-bottom: 1rem;
}

.mission-text {
  color: #555;
  line-height: 1.7;
  font-size: 1.1rem;
}

.mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mission-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
  line-height: 1.6;
  border-bottom: 1px solid #f0f0f0;
}

.mission-list li:last-child {
  border-bottom: none;
}

.mission-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mech-accent);
  font-weight: bold;
  font-size: 1.1rem;
}

.mission-list li strong {
  color: var(--mech-dark);
}

/* =========================================================
   PROGRAMMES SECTION - MECHANICAL
   ========================================================= */
.programme-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #e0e0e0;
}

.programme-header {
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-secondary) 100%
  );
  color: white;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.programme-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.programme-header .badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.programme-body {
  padding: 2rem;
}

.programme-info h5 {
  color: var(--mech-dark);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.programme-info p {
  color: #555;
  font-size: 1.1rem;
  font-weight: 500;
  padding-left: 1.75rem;
}

.programme-highlights h5 {
  color: var(--mech-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.programme-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.programme-highlights li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #555;
}

.programme-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mech-accent);
  font-weight: bold;
}

/* =========================================================
   ELIGIBILITY CARDS - MECHANICAL
   ========================================================= */
.eligibility-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

.eligibility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.eligibility-card .card-title {
  color: var(--mech-dark);
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--mech-light);
}

.eligibility-card .table {
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.eligibility-card .table th {
  background: var(--mech-light);
  color: var(--mech-dark);
  font-weight: 600;
  border-color: #dee2e6;
  padding: 1rem;
}

.eligibility-card .table td {
  border-color: #dee2e6;
  padding: 0.75rem 1rem;
}

.eligibility-card .table-primary {
  background: linear-gradient(135deg, var(--mech-light) 0%, #e3f2fd 100%);
}

.eligibility-card .table-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

/* =========================================================
   PEOs, POs & PSOs CARDS
   ========================================================= */
.peo-card,
.pso-card {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--mech-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.peo-card:hover,
.pso-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.peo-header,
.pso-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.peo-number,
.pso-number {
  background: var(--mech-primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  font-size: 0.9rem;
}

.peo-header h5,
.pso-header h5 {
  color: var(--mech-dark);
  font-weight: 600;
  margin: 0;
  font-size: 1.1rem;
}

.peo-body,
.pso-body {
  padding-left: 3.5rem;
}

.peo-body p,
.pso-body p {
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* PO Table Styles */
#poTableBody tr {
  transition: background-color 0.3s ease;
}

#poTableBody tr:hover {
  background-color: var(--mech-light);
}

#poTableBody td:first-child {
  font-weight: 600;
  color: var(--mech-dark);
  text-align: center;
  vertical-align: middle;
}

#poTableBody td {
  color: #555;
  line-height: 1.6;
  padding: 1rem;
}

/* =========================================================
   FACILITIES GRID - MECHANICAL
   ========================================================= */
.facility-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.facility-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--mech-accent);
}

.facility-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-accent) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: white;
}

.facility-card h5 {
  color: var(--mech-dark);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.facility-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* =========================================================
   RESEARCH SECTION - MECHANICAL
   ========================================================= */
.research-highlights {
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--mech-light);
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease;
}

.highlight-item:hover {
  transform: translateX(5px);
  background: #e3f2fd;
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--mech-primary);
  margin-top: 0.25rem;
}

.highlight-item h5 {
  color: var(--mech-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.highlight-item p {
  color: #666;
  margin: 0;
  font-size: 0.9rem;
}

#researchSupervisorsBody tr {
  transition: background-color 0.3s ease;
}

#researchSupervisorsBody tr:hover {
  background-color: var(--mech-light);
}

/* =========================================================
   CAREER SECTION - MECHANICAL
   ========================================================= */
.career-content {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.career-sectors h4,
.job-positions h4 {
  color: var(--mech-dark);
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mech-light);
}

.career-sector-card,
.job-position-card {
  background: var(--mech-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  border-left: 4px solid var(--mech-accent);
  transition: all 0.3s ease;
  height: 100%;
}

.career-sector-card:hover,
.job-position-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  background: white;
  border-color: var(--mech-primary);
}

.career-sector-card h6,
.job-position-card h6 {
  color: var(--mech-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.career-sector-card p,
.job-position-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   EVENTS SECTION - MECHANICAL
   ========================================================= */
.event-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.event-header {
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-secondary) 100%
  );
  color: white;
  padding: 1.25rem;
}

.event-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.event-body {
  padding: 1.5rem;
}

.event-body h5 {
  color: var(--mech-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.event-body p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.event-body strong {
  color: var(--mech-dark);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #888;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

/* Events Table */
#pastEventsTable tr {
  transition: background-color 0.3s ease;
}

#pastEventsTable tr:hover {
  background-color: var(--mech-light);
}

#pastEventsTable th {
  background: linear-gradient(135deg, var(--mech-light) 0%, #e3f2fd 100%);
  color: var(--mech-dark);
  font-weight: 600;
  border-color: #dee2e6;
}

#pastEventsTable td {
  border-color: #dee2e6;
}

#pastEventsTable a {
  color: var(--mech-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

#pastEventsTable a:hover {
  color: var(--mech-dark);
  text-decoration: underline;
}

/* =========================================================
   TIE-UPS SECTION - MECHANICAL
   ========================================================= */
.tieup-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tieup-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--mech-accent);
}

.tieup-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--mech-light);
  transition: all 0.3s ease;
}

.tieup-card:hover .tieup-logo {
  border-color: var(--mech-accent);
  transform: scale(1.05);
}

.tieup-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tieup-card h5 {
  color: var(--mech-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.tieup-card p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

/* =========================================================
   BACK TO TOP BUTTON - MECHANICAL
   ========================================================= */
#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-secondary) 100%
  );
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: var(--shadow-md);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
}

#backToTop:hover {
  background: linear-gradient(
    135deg,
    var(--mech-secondary) 0%,
    var(--mech-dark) 100%
  );
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* =========================================================
   RESPONSIVE DESIGN - MECHANICAL
   ========================================================= */
@media (max-width: 768px) {
  .department-header {
    padding: 2.5rem 0;
  }

  .department-header h1 {
    font-size: 2rem;
  }

  .department-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    margin-top: 1.5rem;
  }

  .section-card,
  .mission-card,
  .eligibility-card,
  .contact-card,
  .career-content {
    padding: 1.5rem;
  }

  .internal-nav .navbar-nav {
    gap: 0.25rem;
    text-align: center;
  }

  .internal-nav .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
  }

  .programme-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .programme-header .badge {
    align-self: flex-start;
  }

  .contact-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-item i {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  #backToTop {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .peo-header,
  .pso-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .peo-number,
  .pso-number {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .peo-body,
  .pso-body {
    padding-left: 0;
  }
}

@media (max-width: 576px) {
  .department-header .badge {
    display: block;
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }

  .section-card,
  .mission-card,
  .eligibility-card {
    padding: 1.25rem;
  }

  .highlight-box {
    padding: 1rem;
  }

  .peo-card,
  .pso-card {
    padding: 1rem;
  }

  .facility-card {
    padding: 1.25rem;
  }

  .event-card {
    margin-bottom: 1rem;
  }

  .tieup-card {
    padding: 1.25rem;
  }

  .tieup-logo {
    width: 100px;
    height: 100px;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* =========================================================
   ANIMATIONS - MECHANICAL
   ========================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* =========================================================
   PRINT STYLES - MECHANICAL
   ========================================================= */
@media print {
  .internal-nav,
  #backToTop,
  .btn,
  .event-card:hover,
  .department-icon,
  .contact-map {
    display: none !important;
  }

  .section-card,
  .mission-card,
  .eligibility-card,
  .contact-card,
  .career-content {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }

  .department-header {
    background: white !important;
    color: black !important;
    padding: 1rem 0 !important;
  }

  .department-header .badge {
    background: #f0f0f0 !important;
    color: black !important;
    border: 1px solid #ccc !important;
  }

  a {
    color: black !important;
    text-decoration: none !important;
  }

  .table {
    break-inside: avoid;
  }
}

/* =========================================================
   COURSES ACCORDION - MECHANICAL
   ========================================================= */
.courses-accordion .accordion-item {
  border: 1px solid #dee2e6;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.courses-accordion .accordion-button {
  background: linear-gradient(135deg, var(--mech-light) 0%, #e3f2fd 100%);
  color: var(--mech-dark);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border: none;
}

.courses-accordion .accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    var(--mech-primary) 0%,
    var(--mech-secondary) 100%
  );
  color: white;
  box-shadow: none;
}

.courses-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231565c0'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

.courses-accordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(0deg);
}

.courses-accordion .accordion-body {
  padding: 1.5rem;
  background: #f8f9fa;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.course-table thead {
  background: var(--mech-dark);
  color: white;
}

.course-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.course-table tbody tr {
  transition: background-color 0.3s ease;
  border-bottom: 1px solid #dee2e6;
}

.course-table tbody tr:hover {
  background-color: var(--mech-light);
}

.course-table td {
  padding: 0.75rem 1rem;
  color: #555;
  font-size: 0.95rem;
}

.course-code {
  font-weight: 600;
  color: var(--mech-dark);
}

.course-credits {
  text-align: center;
  font-weight: 600;
  color: var(--mech-primary);
}

.course-type {
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-weight: 500;
}

.course-type.theory {
  background: #e8f5e9;
  color: #2e7d32;
}

.course-type.practical {
  background: #e3f2fd;
  color: #1565c0;
}

.course-type.lab {
  background: #f3e5f5;
  color: #7b1fa2;
}

.course-type.project {
  background: #fff3e0;
  color: #ef6c00;
}

.semester-summary {
  background: white;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--mech-accent);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  font-size: 0.9rem;
}

.summary-item i {
  color: var(--mech-primary);
}

.summary-total {
  font-weight: 600;
  color: var(--mech-dark);
  font-size: 1.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid #dee2e6;
  margin-top: 0.5rem;
}
