/* FIRST IAS INSTITUTE — Faculty listing & profile styles */

.fias-faculty-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 55%, #3d3200 100%);
  color: #fff;
  padding: 60px 0 50px;
  text-align: center;
}
.fias-faculty-hero h1 {
  font-family: var(--font-secondary, "Work Sans", sans-serif);
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff !important;
}
.fias-faculty-hero p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92) !important;
}

.fias-breadcrumb {
  background: #f5f6f8;
  padding: 12px 0;
  border-bottom: 1px solid #e8eaee;
}
.fias-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .9rem;
  color: var(--color-default, #364d59);
}
.fias-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: #999;
}
.fias-breadcrumb a {
  color: var(--color-default, #364d59);
  text-decoration: none;
}
.fias-breadcrumb a:hover {
  color: var(--color-primary, #feb900);
}

.fias-faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  padding: 36px 0 50px;
}

.fias-teacher-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #eef0f5;
}
.fias-teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.fias-card-photo {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, #f7f3e6 0%, #efe6c8 100%);
  overflow: hidden;
  position: relative;
}
.fias-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .35s ease;
}
.fias-teacher-card:hover .fias-card-photo img {
  transform: scale(1.03);
}
.fias-card-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-secondary, "Work Sans", sans-serif);
  font-size: 2rem;
  font-weight: 700;
  height: 100%;
}

.fias-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fias-card-top {
  padding: 14px 16px 6px;
  text-align: center;
}
.fias-card-top h3 {
  font-family: var(--font-secondary, "Work Sans", sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.25;
}
.fias-card-title {
  font-size: .8rem;
  color: #555;
  margin-bottom: 4px;
  line-height: 1.35;
}
.fias-card-exp {
  font-size: .76rem;
  color: #888;
  font-weight: 600;
}
.fias-card-body {
  padding: 0 16px 10px;
  flex: 1;
}
.fias-card-body p {
  font-size: .82rem;
  color: #555;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.fias-card-footer {
  padding: 0 16px 16px;
  text-align: center;
}
.fias-btn-profile {
  display: inline-block;
  background: var(--color-primary, #feb900);
  color: #1a1a1a;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.fias-btn-profile:hover {
  background: #ffc732;
  color: #1a1a1a;
}

/* Profile */
.fias-profile-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 55%, #3d3200 100%);
  color: #fff;
  padding: 36px 0 40px;
}
.fias-profile-hero-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.fias-profile-photo-card {
  width: 210px;
  height: 260px;
  flex: 0 0 210px;
  border-radius: 14px;
  overflow: hidden;
  background: #efe6c8;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  border: 3px solid rgba(254, 185, 0, 0.85);
}
.fias-profile-photo-card img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.fias-profile-photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.6rem;
  font-weight: 700;
  width: 100%;
  height: 100%;
}
.fias-profile-hero-copy {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
}
.fias-profile-hero-copy h1 {
  font-family: var(--font-secondary, "Work Sans", sans-serif);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff !important;
}
.fias-profile-title {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92) !important;
  margin-bottom: 12px;
  line-height: 1.45;
}
.fias-profile-meta,
.fias-profile-qual {
  font-size: .95rem;
  color: rgba(255, 255, 255, 0.88) !important;
  margin-bottom: 8px;
  line-height: 1.5;
}
.fias-profile-meta i,
.fias-profile-qual i {
  color: var(--color-primary, #feb900) !important;
  margin-right: 4px;
}

.fias-profile-content {
  padding: 45px 0 60px;
}

.fias-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  margin-bottom: 35px;
  background: #000;
}
.fias-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fias-video-placeholder {
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e1, #ffe082);
  padding: 60px 30px;
  text-align: center;
  margin-bottom: 35px;
}
.fias-video-placeholder i {
  font-size: 3rem;
  color: #1a1a1a;
  margin-bottom: 14px;
  display: block;
}
.fias-video-placeholder p {
  font-size: 1.05rem;
  color: #37474f;
  margin-bottom: 6px;
}
.fias-video-placeholder .fias-phone {
  font-size: .95rem;
  color: #555;
}
.fias-video-placeholder a {
  color: #1a1a1a;
  font-weight: 600;
}

.fias-subjects-section h2,
.fias-bio-section h2 {
  font-family: var(--font-secondary, "Work Sans", sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--color-primary, #feb900);
  display: inline-block;
}

.fias-subjects-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 35px;
}
.fias-subjects-list li {
  background: #fff3cd;
  color: #1a1a1a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .88rem;
  font-weight: 600;
}

.fias-bio-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-default, #364d59);
  margin-bottom: 16px;
}

.fias-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #1a1a1a;
  font-weight: 600;
  text-decoration: none;
}
.fias-back-link:hover {
  color: var(--color-primary, #feb900);
}

@media (max-width: 767px) {
  .fias-faculty-hero h1 {
    font-size: 1.8rem;
  }
  .fias-faculty-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0 36px;
  }
  .fias-teacher-card {
    flex-direction: row;
    align-items: stretch;
  }
  .fias-card-photo {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 50%;
    margin: 14px 0 14px 14px;
    overflow: hidden;
  }
  .fias-card-photo-fallback {
    border-radius: 50%;
    font-size: 1.2rem;
  }
  .fias-card-body {
    display: none;
  }
  .fias-card-top {
    text-align: left;
    padding: 12px 12px 4px;
  }
  .fias-card-footer {
    text-align: left;
    padding: 0 12px 12px;
  }
  .fias-profile-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .fias-profile-photo-card {
    width: 160px;
    height: 200px;
    flex-basis: auto;
  }
  .fias-profile-hero-copy h1 {
    font-size: 1.55rem;
  }
}
