/* =========================================
   GLOBAL SAFETY (IMPORTANT FOR ZOOM)
========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================================
   MAIN HEADING
========================================= */
.faculty-main-heading {
  font-size: 32px;
  font-weight: 700;
  color: #0b1c3f;
}

/* =========================================
   SLIDER SECTION
========================================= */
#facultySlider {
  position: relative;
}

/* SLIDES */
.faculty-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.faculty-slide.active {
  display: block;
  opacity: 1;
}

/* =========================================
   SLIDER CARD
========================================= */
.faculty-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  max-width: 1200px; /* WIDE CARD */
  margin: auto;
  overflow: hidden;
  position: relative;
}

/* LEFT RED ACCENT */
.accent {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: #dc3545;
  z-index: 2;
}

/* PROGRESS BAR */
.faculty-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: #dc3545;
  z-index: 5;
}

/* IMAGE (SLIDER) */
.faculty-img-wrap {
  overflow: hidden;
}

.faculty-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   SLIDER TEXT
========================================= */
.badge-exp {
  background: #fdecec;
  color: #dc3545;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 10px;
}

.faculty-title {
  color: #dc3545;
  font-weight: 700;
  margin-bottom: 10px;
}

.faculty-desc {
  color: #000;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* SKILLS */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills span {
  background: #f1f1f1;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  border: 1px solid #ddd;
  color: #333;
}

/* =========================================
   GRID VIEW (RESPONSIVE & ZOOM SAFE)
========================================= */
.faculty-grid-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faculty-grid-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}

/* IMAGE — ZOOM SAFE USING ASPECT RATIO */
.faculty-grid-img {
  width: 100%;
  aspect-ratio: 3 / 4; /* portrait ratio */
  overflow: hidden;
  position: relative;
}

.faculty-grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* GRID BODY */
.faculty-grid-body {
  padding: 18px;
  text-align: center;
  flex-grow: 1;
}

.grid-exp {
  display: inline-block;
  background: #fdecec;
  color: #dc3545;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  margin-bottom: 8px;
}

.grid-title {
  font-size: 18px;
  font-weight: 700;
  color: #dc3545;
  margin-bottom: 6px;
}

.grid-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* =========================================
   RESPONSIVE TWEAKS
========================================= */
@media (max-width: 768px) {
  .faculty-main-heading {
    font-size: 26px;
  }

  .faculty-card {
    max-width: 100%;
  }
}
