/* ========== TEACHER PROFILE STYLES ========== */

.tp-container {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 15px;
  padding: 10px;
  scroll-behavior: smooth;
}

.tp-card {
  flex: 0 0 auto;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tp-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.tp-card h3 {
  font-size: 18px;
  margin: 10px 0 5px;
  color: #222;
}

.tp-card p {
  font-size: 14px;
  margin: 2px 0;
  color: #444;
}

.tp-more {
  display: none;
  text-align: left;
  font-size: 13px;
  margin-top: 8px;
  border-top: 1px solid #eee;
  padding-top: 5px;
}

.tp-toggle {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 6px 10px;
  margin-top: 6px;
  cursor: pointer;
  border-radius: 5px;
  font-size: 13px;
  transition: background 0.2s;
}

.tp-toggle:hover {
  background: #005d88;
}

/* Responsive layout: wrap cards on smaller screens */
@media (max-width: 1024px) {
  .tp-container {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
  }
  .tp-card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .tp-card {
    width: 100%;
  }
}
