.ut-teachers-grid {
  margin: 24px 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ut-teacher-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.ut-navigation {
  text-align: center;
  margin-bottom: 16px;
}

.ut-teacher-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ut-teacher-image img {
  width: 100%;
  max-width: 240px;
  height: auto;
}

.ut-line {
  height: 3px;
  background: linear-gradient(90deg, #007cba, #00a0d2);
  width: 20%;
  transition: all 0.3s ease-in-out;
}

.ut-teacher-card:hover .ut-line {
  width: 100%;
}

.ut-teacher-info {
  flex: 1;
}

.ut-teacher-title {
  font-size: 24px;
  line-height: 30px;
  font-weight: 700;
  margin: 0 0 10px;
}

.ut-teacher-title a {
  text-decoration: none;
  color: #333;
}

.ut-teacher-name {
  font-size: 1.1em;
  font-weight: bold;
  margin: 8px 0;
  color: #333;
}

.ut-teacher-days,
.ut-teacher-phone,
.ut-teacher-email {
  font-size: 18px;
  margin: 5px 0;
  color: #000;
}

.subcategory-title a:hover {
  color: var(--secondary-color);
}

.ut-teacher-email a {
  color: var(--primary-color);
  text-decoration: none;
}

.ut-teacher-email a:hover {
  text-decoration: underline;
}

.ut-single-teacher .ut-teacher-header {
  margin-bottom: 20px;
}

.ut-single-teacher .ut-teacher-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ut-single-teacher .ut-teacher-image img {
  max-width: 240px;
}

.ut-teacher-tabs {
  margin-top: 20px;
}

.ut-tab-nav {
  list-style: none;
  padding: 0;
  display: flex;
  margin-bottom: 20px !important;
}

.ut-tab-item {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 20px;
  color: #666;
  transition: color 0.3s;
}

.ut-tab-item.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

.ut-tab-item:hover {
  color: var(--secondary-color);
}

.ut-tab-pane {
  display: none;
  font-size: 18px;
  line-height: 26px;
}

.ut-tab-pane.active {
  display: block;
}

.ut-tab-content {
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.ut-departments-grid {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.ut-department-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  gap: 20px;
}

.ut-department-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ut-department-image {
  height: 200px;
  overflow: hidden;
  text-align: center;
  margin: 30px 0;
}

.ut-department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.ut-department-card:hover .ut-department-image img {
  transform: scale(1.05);
}

.ut-department-content {
  padding: 25px;
}

.ut-department-name {
  font-size: 24px;
  margin: 0 0 15px;
  line-height: 1.3;
}

.ut-department-name a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ut-department-name a:hover {
  color: #007cba;
}

.ut-department-toggle {
  cursor: pointer;
  transition: color 0.3s ease;
}

.ut-toggle-icon {
  font-size: 18px;
  font-weight: bold;
  background: #f0f0f0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ut-department-toggle:hover .ut-toggle-icon,
.ut-department-toggle.active .ut-toggle-icon {
  background: #007cba;
  color: white;
}

.ut-department-description {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
  border-left: 4px solid #007cba;
  color: #666;
  line-height: 1.6;
}

.ut-department-meta {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: 20px;
}

.ut-department-meta p {
  margin: 5px 0;
  color: #555;
}

.ut-sub-departments {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ut-sub-title {
  color: #333;
  margin-bottom: 15px;
  font-size: 18px;
}

.ut-sub-departments-grid {
  display: flex;
  flex-direction: column;
  margin-top: 30px;
}

.ut-sub-department-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.ut-sub-department-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: #007cba;
}

.ut-sub-department-image {
  height: 180px;
  overflow: hidden;
}

.ut-sub-department-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ut-sub-department-card:hover .ut-sub-department-image img {
  transform: scale(1.05);
}

.ut-sub-department-content {
  padding: 25px;
}

.ut-sub-department-name {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 15px;
}

.ut-sub-department-name a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ut-sub-department-name a:hover {
  color: var(--secondary-color);
}

.ut-sub-department-description {
  font-size: 14px;
  color: #000;
  line-height: 1.6;
  margin: 15px 0;
}

.ut-no-departments,
.ut-no-teachers {
  text-align: center;
  padding: 60px 20px;
  color: #000;
  font-size: 18px;
}

.ut-breadcrumb {
  margin-bottom: 30px;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: #666;
}

.breadcrumb-item a {
  color: #007cba;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.ut-section-title {
  color: #333;
  font-size: 28px;
  margin: 40px 0 25px;
  font-weight: 600;
}

.ut-btn {
  background-color: var(--btn-background);
  color: #fff !important;
  padding: 14px 40px;
  border: none;
  border-radius: var(--border-btn-radius);
  font-size: 18px;
  line-height: 26px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 4px 8px 8px rgb(255 0 0 / 40%);
  transition: all 0.5s ease;
  font-weight: 600;
}

.ut-btn:hover {
  background-color: var(--btn-hover);
  color: #fff;
  transform: translateY(-4px);
}

.ut-btn-primary {
  background: #007cba;
  color: white;
}

.ut-btn-secondary {
  background: var(--secondary-color);
  color: #fff !important;
}

.ut-btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .ut-teacher-layout,
  .ut-single-teacher .ut-teacher-layout {
    flex-direction: column;
  }

  .ut-teacher-image img,
  .ut-single-teacher .ut-teacher-image img {
    max-width: 100%;
  }

  .ut-tab-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem;
    margin: 0;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    white-space: nowrap;
  }

  .ut-tab-item {
    padding: 10px;
  }

  .ut-teacher-image {
    width: 100%;
  }

  .ut-department-content,
  .ut-sub-department-content {
    padding: 20px;
  }

  .ut-department-description {
    padding: 20px;
  }

  .ut-section-title {
    font-size: 20px;
  }

  .ut-teacher-title {
    font-size: 20px;
  }

  .ut-teacher-name {
    font-size: 16px;
  }
}
