/* ============================================================
   TEAM PAGE — QAS MODERN STYLES
   Full image, no name/designation overlay,
   Keeps team badge & social icons
   ============================================================ */

/* ── TEAM HERO ── */
.team-hero {
  background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy-dark) 100%);
  color: white;
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.team-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.team-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-light), var(--red), var(--navy-light));
}
.team-hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  margin-bottom: 15px;
}
.team-hero .hero-description {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

/* ── FILTER SECTION ── */
.filter-section {
  padding: 20px 0 30px;
}
.filter-heading {
  text-align: center;
  margin-bottom: 30px;
}
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.filter-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  background: white;
  color: var(--navy);
  border: 2px solid var(--light-gray);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.3px;
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

/* ── TEAM GRID ── */
.team-section {
  background: var(--off-white);
  padding: 40px 0 100px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.team-group-heading {
  grid-column: 1 / -1;
  margin-top: 20px;
}
.team-group-heading:first-child {
  margin-top: 0;
}
.team-group-heading h3 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 5px;
}
.team-group-heading p {
  color: var(--text-light);
  font-size: 14px;
}

/* ── TEAM CARD (full image, no name overlay) ── */
.team-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(31,66,138,0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}
.team-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

/* Image container – no fixed height, adapts to content */
.team-card-image {
  position: relative;
  height: auto;                 /* image decides the height */
  min-height: 340px;            /* minimum to keep cards uniform */
  overflow: hidden;
  background: #f4f7fb;
}

/* Full image, no cropping */
.team-card-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;         /* whole photo visible */
  object-position: center;
  transition: transform 0.6s var(--ease-out);
}
.team-card:hover .team-card-image img {
  transform: scale(1.05);
}

/* ── OVERLAYS: hide name/designation bar only ── */
.team-card-overlay {
  display: none !important;    /* name & designation removed */
}

/* Gradient border on hover (decorative, no text) */
.team-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--navy-light), var(--red), var(--navy-light));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.team-card:hover .team-card-image::before {
  opacity: 1;
}

/* Shimmer scan line */
.team-card-image::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08) 0%, transparent 100%);
  z-index: 2;
  transition: top 0.55s var(--ease-out);
  transform: skewY(-4deg);
  pointer-events: none;
}
.team-card:hover .team-card-image::after {
  top: 110%;
}

/* ── BADGE (kept) ── */
.team-badge {
  position: absolute;
  top: 15px; left: 15px;
  background: white;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ── SOCIAL ICONS (kept, visible on hover) ── */
.team-card-social {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 4;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.team-card:hover .team-card-social {
  opacity: 1;
  transform: translateY(0);
}
.team-card-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.team-card-social a:hover {
  background: var(--red);
  color: white;
  transform: translateY(-3px);
}

/* ── NO RESULTS MESSAGE ── */
.no-members-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  color: var(--mid-gray);
}
.no-members-message i {
  font-size: 48px;
  margin-bottom: 15px;
}

/* ── RESPONSIVE ── */
@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card-image {
    min-height: 300px;
  }
}
@media (max-width: 576px) {
  .team-card-image {
    min-height: 260px;
  }
}



/* ── EMPLOYEE OF THE QUARTER (centered, larger certificate) ── */
.award-section.real-certificate {
  padding: 60px 0 80px;
  background: linear-gradient(135deg, #f9fafc 0%, #ffffff 100%);
}

.award-card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.award-card.real-cert-card {
  max-width: 1100px;
  width: 100%;
  margin: 40px auto 0;
  background: white;
  border-radius: 32px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 1px solid rgba(31,66,138,0.12);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.award-card.real-cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(31,66,138,0.3);
}

.real-cert-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 40px 50px;
  justify-content: center;
}

/* Winner Photo */
.real-cert-image {
  flex: 0 0 240px;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #f0f2f8;
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.15);
  border: 4px solid white;
  outline: 1px solid rgba(31,66,138,0.2);
}
.real-cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.real-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(13,30,66,0.9);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.3px;
}

/* Content */
.real-cert-content {
  flex: 1;
  min-width: 280px;
}
.real-cert-content h3 {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.real-cert-content .award-desig {
  font-size: 17px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 20px;
  border-left: 4px solid var(--red);
  padding-left: 18px;
}
.real-cert-content .award-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #2d3748;
  margin-bottom: 28px;
}

/* Certificate Box – larger preview */
.certificate-box {
  background: #f8faff;
  border-radius: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(31,66,138,0.12);
  margin-top: 12px;
}
.certificate-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.certificate-label i {
  color: #ffc107;
  font-size: 20px;
}
.certificate-link.pdf {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s;
}
.certificate-link.pdf:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.certificate-link.image {
  display: block;
  text-decoration: none;
}
.certificate-img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(31,66,138,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.certificate-link.image span {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
  background: rgba(31,66,138,0.05);
  padding: 6px 14px;
  border-radius: 30px;
  transition: background 0.2s;
}
.certificate-link.image:hover .certificate-img {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}
.certificate-link.image:hover span {
  background: rgba(31,66,138,0.12);
}

/* Responsive */
@media (max-width: 900px) {
  .real-cert-inner {
    padding: 30px;
    gap: 30px;
  }
  .real-cert-image {
    flex-basis: 200px;
  }
  .real-cert-content h3 {
    font-size: 28px;
  }
}
@media (max-width: 768px) {
  .real-cert-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .real-cert-image {
    width: 200px;
    flex-basis: auto;
  }
  .real-cert-content .award-desig {
    border-left: none;
    padding-left: 0;
    display: inline-block;
  }
  .certificate-box {
    text-align: center;
  }
  .certificate-img {
    max-height: 200px;
  }
}
