/* Teacher Page Enhanced Styles */

.teacher-section-enhanced {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
  margin-bottom: 40px;
}

.section-intro {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 3px solid #e2e8f0;
}

.section-intro h2 {
  margin: 0 0 12px 0;
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-intro h2 i {
  color: var(--primary-color);
  font-size: 36px;
}

.section-intro p {
  margin: 0;
  font-size: 16px;
  color: #64748b;
  font-weight: 500;
}

/* Teacher Grid */
.teacher-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Teacher Card */
.teacher-card-enhanced {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
}

.teacher-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(2, 102, 112, 0.2);
  border-color: var(--primary-color);
}

/* Teacher Image Wrapper */
.teacher-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: #f1f5f9;
}

.teacher-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.teacher-card-enhanced:hover .teacher-photo {
  transform: scale(1.05);
}

/* Teacher Placeholder */
.teacher-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-placeholder i {
  font-size: 80px;
  color: white;
  z-index: 2;
}

.placeholder-circle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.circle-1 {
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
}

.circle-2 {
  bottom: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
}

/* Teacher Badge */
.teacher-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 3;
}

.teacher-badge i {
  font-size: 24px;
  color: #10b981;
}

/* Teacher Info */
.teacher-info {
  padding: 25px 20px;
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  text-align: center;
}

.teacher-name {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.teacher-designation {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-color);
}

.teacher-department {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #e0f2fe;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #0369a1;
}

.teacher-department i {
  font-size: 16px;
}

/* Hover Effects */
.teacher-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 4;
}

.teacher-card-enhanced:hover::before {
  transform: scaleX(1);
}

/* Responsive */
@media (max-width: 992px) {
  .teacher-grid-enhanced {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
  }
  
  .section-intro h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .teacher-section-enhanced {
    padding: 25px 20px;
  }
  
  .teacher-grid-enhanced {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .section-intro h2 {
    font-size: 24px;
  }
  
  .teacher-name {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .teacher-grid-enhanced {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  
  .teacher-info {
    padding: 20px 15px;
  }
  
  .teacher-name {
    font-size: 16px;
  }
  
  .teacher-designation {
    font-size: 14px;
  }
  
  .teacher-department {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Staff Page Specific Styles */
.staff-section .section-intro h2 i {
  color: #f59e0b;
}

.staff-placeholder {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.staff-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.staff-badge i {
  color: white;
}

.staff-designation {
  color: #f59e0b !important;
}

.staff-role {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.staff-role i {
  color: #f59e0b;
}

.staff-card:hover {
  border-color: #f59e0b !important;
}

.staff-card::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%) !important;
}

/* ==========================================================================
   Designation filter dropdown (/teacher?designation=<id>)
   ========================================================================== */
.teacher-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
    padding: 16px 20px;
    background: #f6fbfc;
    border: 1px solid #e2eef1;
    border-radius: 14px;
}

.teacher-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    color: #10263d;
    white-space: nowrap;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.teacher-filter-label i {
    color: var(--primary-color);
}

.teacher-filter-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1 1 260px;
}

.teacher-select-wrap {
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
}

.teacher-select {
    width: 100%;
    padding: 11px 38px 11px 14px;
    border: 1px solid #d8e6ea;
    border-radius: 10px;
    background: #fff;
    color: #23415c;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Noto Sans Bengali', sans-serif;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.teacher-select:hover {
    border-color: var(--primary-color);
}

.teacher-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(12, 146, 165, 0.15);
}

.teacher-select-caret {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 13px;
    color: #6c8698;
}

.teacher-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    font-family: 'Noto Sans Bengali', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.teacher-filter-btn:hover {
    background: #0b6d72;
    transform: translateY(-1px);
}

.teacher-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #e3c3c3;
    background: #fff;
    color: #b4453f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Noto Sans Bengali', sans-serif;
    transition: background 0.2s, border-color 0.2s;
}

.teacher-filter-reset:hover {
    background: #fdf3f3;
    border-color: #d99b9b;
    color: #9a3833;
}

.no-results .btn {
    margin-top: 14px;
}

@media (max-width: 575px) {
    .teacher-filter {
        padding: 14px;
        gap: 10px;
    }

    .teacher-filter-controls,
    .teacher-select-wrap {
        flex: 1 1 100%;
        max-width: none;
    }
}
