/* SECTION */
.ssvn-teacher-section {
  padding: 10px 20px;
  background: #ffffff;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
}

/* TITLE */
.ssvn-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 15px;
}

/* LINE */
.ssvn-line {
  max-width: 700px;
  height: 4px;
  background: linear-gradient(to right, #7fd1c7, #cccccc);
  margin: 0 auto 50px;
}

/* WRAPPER */
.ssvn-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: auto;
  padding: 0 80px; /* creates space inside for arrows */
}

/* CAROUSEL */
.ssvn-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 40px;
  padding: 20px 10px;
}

.ssvn-carousel::-webkit-scrollbar {
  display: none;
}

/* Firefox */
.ssvn-carousel {
  scrollbar-width: none;
}

/* IE / old Edge */
.ssvn-carousel {
  -ms-overflow-style: none;
}

/* CARD */
.ssvn-card {
  min-width: 300px;
  max-width: 300px;
  background: #4f9da6;
  border-radius: 30px;
  padding: 25px 20px 35px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  text-align: center;
  transition: transform 0.3s ease;
}

.ssvn-card:hover {
  transform: translateY(-10px);
}

/* SUBJECT */
.ssvn-subject {
  color: #e8f7f9;
  font-size: 1.2rem;
  /*text-decoration: underline;*/
    margin-bottom: 15px;
  letter-spacing: 0.5px;
}

/* PHOTO */
.ssvn-photo {
	  width: 180px;
	  height: 180px;
	  margin: 0 auto 20px;
	  border-radius: 50%;
	  background: #ffffff;
	  overflow: hidden;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	/*width: 180px;
	height: 180px;
	margin: 0 auto 20px;
	border-radius: 50%;
	padding: 6px;
	background: #ffffff;
	overflow: hidden;*/ /* forces image to stay inside circle */
}

.ssvn-photo img {
	  width: 100%;
	  height: 100%;
	  border-radius: 50%;
	  object-fit: cover;
	  display: block;
}

/* NAME */
.ssvn-name {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* QUALIFICATION */
.ssvn-qualification {
  color: #dff6f9;
  font-size: 1.2rem;
}

/* ARROWS */
.ssvn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: red;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
}

.ssvn-arrow.left { left: -70px; }
.ssvn-arrow.right { right: -70px; }

.ssvn-arrow:hover {
  color: #b30000;
}

/* MOBILE */
@media (max-width: 768px) {
	.ssvn-carousel-wrapper {
		/*position: relative;
		max-width: 1200px;
		margin: auto;*/
		padding: 0 2px; /* creates space inside for arrows */
	}
	.ssvn-carousel {
	  gap: 40px;                /* remove space between cards */
	  padding: 10px;           /* no inner padding */
	  scroll-snap-type: x mandatory; /* snap to each card */
	}
/*  .ssvn-card {
    min-width: 260px;
    max-width: 260px;
  }*/
	.ssvn-card {
	  min-width: 80vw;     /* take full screen width */
	  max-width: 80vw;
	  margin: 0 auto;
	  scroll-snap-align: center;
	}

  .ssvn-photo {
    width: 140px;
    height: 140px;
  }

  .ssvn-name {
    font-size: 1.2rem;
  }


	 /* Swipe hint */
  .ssvn-carousel::after {
    content: "Swipe →";
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-top: 10px;
  }
	.ssvn-arrow.left { left: -60px; }
	.ssvn-arrow.right { right: -60px; }
}
