/* =========================================
   🔹 GENERAL CONTENT
========================================= */
.dept-content {
  padding-left: 10px;
  padding-right:10px;
  padding-bottom:10px;
  padding-top:5px;
}

.section-title {
  color: #138808;
  font-weight: bold;
  margin-top: 15px;
  border-left: 5px solid #ff9933;
  padding-left: 8px;
}

.dept-content p,
.dept-content li {
  font-size: 17px;
  font-family: 'Roboto', sans-serif;
  line-height: 1.8;
  color:black;
  text-align:justify;
  font-weight:400;
}


/* =========================================
   🔹 TABS DESIGN
========================================= */
.dept-tabs-wrapper {
  background: #138808;
  padding: 10px;
  border-radius: 10px;
  z-index: 999;
}

.dept-menu-title {
  text-align: center;
  font-weight: bold;
  color: #fff;
  margin-bottom: 10px;
}

.dept-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;   /* 🔥 ADD THIS */
}

/* 🔥 TAB STYLE */
.dept-tabs .nav-link {
  background: #ffffff;
  color: #138808;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  text-transform:uppercase;
}

/* 🔥 HOVER EFFECT */
.dept-tabs .nav-link:hover {
  background: #0b5e05;
  color: #fff;
  transform: translateY(-2px);
}

/* 🔥 ACTIVE TAB (STRONG HIGHLIGHT) */
.dept-tabs .nav-link.active {
  background: #ff9933;
  color: #000;
  font-weight: bold;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* 🔥 OPTIONAL: KEEP ACTIVE EVEN ON HOVER */
.dept-tabs .nav-link.active:hover {
  background: #ff9933;
  color: #000;
}


/* =========================================
   🔽 DROPDOWN (SUBMENU) STYLING
========================================= */
.dropdown-menu {
  border-radius: 10px;
  padding: 6px 0;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  min-width: 220px;
}

/* 🔥 SUBMENU ITEMS */
.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 8px 15px;
  color: #138808;
  transition: all 0.3s ease;
  text-transform:uppercase;
}

/* 🔥 HOVER EFFECT */
.dropdown-menu .dropdown-item:hover {
  background: #138808;
  color: #fff;
  padding-left: 20px;
}

/* 🔥 ACTIVE SUBMENU ITEM */
.dropdown-menu .dropdown-item.active {
  background: #ff9933;
  color: #000;
  font-weight: bold;
}

/* 🔥 SMALL DIVIDER */
.dropdown-divider {
  margin: 5px 0;
}


/* =========================================
   📱 MOBILE TABS
========================================= */
@media (max-width: 768px) {

  .dept-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .dept-tabs .nav-item {
    width: 100%;
  }

  .dept-tabs .nav-link {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    border-radius: 8px;
  }

  .dropdown-menu {
    width: 100%;
  }
}


/* =========================================
   🔹 FACULTY TABLE (SAFE SCOPED)
========================================= */

/* Table wrapper */
.info #table-container,
.info .table-container {
  width: 100%;
  border-collapse: collapse;
}

/* Images */
.info #table-container img,
.info .table-container img {
  width: 100px;
  height: 100px;
}

/* Links */
.info #table-container a,
.info .table-container a {
  color: blue;
}

/* Cells */
.info #table-container th,
.info #table-container td,
.info .table-container th,
.info .table-container td {
  padding: 6px;
  text-align: center;
  font-size: 1rem;
  font-family: "Times New Roman", serif;
  line-height: 1.5;
  font-weight: 600;
  border: 1px solid black;
}

/* Hover */
.info #table-container tr:hover,
.info .table-container tr:hover {
  background-color: lightblue;
}

/* Header rows */
.info #table-container tr:nth-child(1),
.info #table-container tr:nth-child(2),
.info .table-container tr:nth-child(1),
.info .table-container tr:nth-child(2) {
  color: blue;
}

/* Column styling */
.info #table-container td:nth-child(2),
.info .table-container td:nth-child(2) {
  width: 28%;
  text-align: left;
}

.info #table-container td:nth-child(3),
.info .table-container td:nth-child(3) {
  width: 20%;
  color: brown;
}

.info #table-container td:nth-child(4),
.info .table-container td:nth-child(4) {
  width: 10%;
}

.info #table-container td:nth-child(5),
.info .table-container td:nth-child(5) {
  color: blue;
}


/* =========================================
   📱 TABLE RESPONSIVE FIX
========================================= */

/* Tablet */
@media (max-width: 992px) {

  .info #table-container,
  .info .table-container {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

}

/* Mobile */
@media (max-width: 768px) {

  .info #table-container th,
  .info #table-container td,
  .info .table-container th,
  .info .table-container td {
    font-size: 0.9rem;
    padding: 6px;
  }

  .info #table-container img,
  .info .table-container img {
    width: 60px;
    height: 60px;
  }

  .info #table-container td,
  .info .table-container td {
    white-space: normal;
  }

  .info #table-container td:nth-child(2),
  .info #table-container td:nth-child(3),
  .info #table-container td:nth-child(4),
  .info .table-container td:nth-child(2),
  .info .table-container td:nth-child(3),
  .info .table-container td:nth-child(4) {
    width: auto;
  }

}

/* Small mobile */
@media (max-width: 480px) {

  .info #table-container th,
  .info #table-container td,
  .info .table-container th,
  .info .table-container td {
    font-size: 0.8rem;
    padding: 5px;
  }

  .info #table-container img,
  .info .table-container img {
    width: 50px;
    height: 50px;
  }

}

/* =========================================
   DESKTOP ONLY → ENABLE HOVER
========================================= */
@media (min-width: 992px) {

  .dept-tabs .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

}


/* Box container */
.dept-box {
  background: linear-gradient(135deg, #3445b4, #4a5de3);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  gap: 15px;
  max-width: 650px;
  color: #fff;
}

/* Label styling */
.dept-label {
  font-weight: 600;
  font-size: 1rem;
  color: #f9f9f9;
  white-space: nowrap;
}

/* Select box */
.dept-select {
  max-width: 350px;
  background-color: #ffffff;
  color: #3445b4;
  font-weight: 500;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 6px 12px;
}

/* Hover/focus effects */
.dept-select:focus {
  border-color: #ffda77;
  box-shadow: 0 0 8px rgba(255,218,119,0.7);
  outline: none;
}

/* Dropdown item styling */
.dept-select option {
  padding: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3445b4;
  background-color: #f9f9f9;
}

/* Hover effect for dropdown items (works in Chrome/Edge) */
.dept-select option:hover {
  background-color: #e4ebff;
  color: #222;
}


