/* ===============================
   User Card Refinement (Name + Designation)
=============================== */

.user-card {
  position: relative;
  flex: 0 0 auto;
  margin: 10px;
  border-radius: 30px;
  border: 1px solid var(--tri-border);
  background: var(--tri-surface);
  text-align: center;
  padding: 24px 10px;
  transition: all 0.3s ease;
  box-shadow: var(--tri-shadow);
  z-index: 1;
}

.user-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--tri-shadow-hover);
  z-index: 2;
}

.user-card .user-image img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--tri-primary);
  margin-bottom: 14px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-card h6.title-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--tri-primary);
  line-height: 1.2;
}

.user-card .designation {
  font-size: 14px;
  color: var(--tri-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

/* subtle accent line */
.user-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--tri-accent);
  border-radius: 3px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.user-card:hover::after {
  opacity: 1;
}

/* =======================================================
   Candidate Directory – Card Layout (Bootstrap Override Safe)
   Author: Updated by Keshava Rajavaram
   Version: 2.2 (Nov 2025)
======================================================= */

/* --- Ensure Bootstrap doesn't override --- */
.cs-directory-page .card.user-card {
  border: 2px solid #ffc000 !important;
  border-radius: 30px !important;
  background: #fff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: 10px;
}

.cs-directory-page .card.user-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  z-index: 2;
}

/* --- Avatar --- */
.cs-directory-page .user-card .user-image img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background: #1b3b4c;
  border: 3px solid #fff;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Name + Designation --- */
.cs-directory-page .user-card h6.title-name {
  font-size: 18px;
  font-weight: 600;
  color: #1b3b4c;
  text-align: center;
  margin-bottom: 4px;
  line-height: 1.3;
}

.cs-directory-page .user-card .card-block {
  text-align: center;
  padding: 16px 12px;
}

.cs-directory-page .user-card .card-block hr {
  width: 60%;
  margin: 10px auto;
  border-top: 1px solid #eaeaea;
}

/* --- Designation text (the first line under name) --- */
.cs-directory-page .user-card .card-block>p:first-of-type {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin: 4px 0 10px;
}

/* --- Body text --- */
.cs-directory-page .user-card p {
  font-size: 13.5px;
  color: #555;
  margin: 2px 0;
}

.cs-directory-page .user-card span {
  font-weight: 500;
  color: #1b3b4c;
}

/* --- Badges for metrics --- */
.cs-directory-page .user-card .badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
}

/* College student card: visible counts (Bootstrap 5 dropped .badge-*; plain .badge + text-white was invisible) */
.cs-directory-page .user-card .trikona-college-stat-row {
  text-align: center;
}

.cs-directory-page .user-card .trikona-college-metric {
  display: inline-block;
  min-width: 1.75rem;
  margin-left: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 6px;
  color: #000 !important;
  vertical-align: middle;
}

.cs-directory-page .user-card .trikona-college-metric--active,
.cs-directory-page .user-card .trikona-college-metric--completed,
.cs-directory-page .user-card .trikona-college-metric--enrolled {
  background: #f9bc06;
}

.text-left{
  text-align: left !important;
}

/* --- Hover accent line --- */
.cs-directory-page .card.user-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60px;
  height: 3px;
  background: #ffc000;
  border-radius: 2px;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cs-directory-page .card.user-card:hover::after {
  opacity: 1;
}

.user_profile {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

/* Contain the Bootstrap row inside .team-boxed */
.card.team-boxed {
  padding: 0 12px;
  /* Add inner padding to absorb .row negative margins */
}

/* Optionally tune Bootstrap's row spacing */
.card.team-boxed .row.people {
  --bs-gutter-x: 1rem;
  /* horizontal spacing between columns */
  --bs-gutter-y: 0rem;
  /* vertical spacing between rows */
  margin-left: 0;
  /* prevent overflow */
  margin-right: 0;
  /* prevent overflow */
}

.page-numbers .current {
  background-color: #ffc107 !important;
  border-color: #ffc107 !important;
  color: #000;
  font-weight: 600;
}

.page-numbers a,
.pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 6px;
  border: 1px solid #ddd !important;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Jai candidate_ irectory css */
.page-template-candidate_directory a.btn,
.page-template-candidate_directory button#toggle-view {
  background-color: #ffc107;
  font-weight: 400;
  border-radius: 30px;
}

.cs-directory-page a {
  text-decoration: none;
}

.cs-directory-page h6.title {
  color: #222;
  font-weight: 600;
  font-size: 18px;
}

.cs-directory-page button.btn.btn-light {
  background-color: #ffc107;
  border-radius: 30px;
  margin-left: 10px;
}

.cs-directory-page button.btn.cstm-btn {
  background-color: #ffc107;
  border-radius: 30px;
}

.cs-directory-page .card.user-card,
.card {
  border-radius: 30px !important;
}

.cs-directory-page .custom_filter {
  margin-top: -55px;
  z-index: 9999;
  padding-left: 20px;
  padding-right: 20px;
}

.select2-container--classic .select2-selection--multiple{
  border-radius: 16px !important;
}

.cs-directory-page form .card {
  padding: 15px;
  padding-bottom: 50px;
  background: none;
  position: static;
  overflow: hidden;
  border-radius: 16px !important;
}

.select2-container--classic .select2-selection--multiple {
  padding: 10px !important;
  line-height: 1 !important;
}

.cs-directory-page .candidate_directory_main .p-0 {
  padding: 0 10px !important;
}



/* --- Responsive --- */
@media (max-width: 992px) {
  .cs-directory-page .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .cs-directory-page .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}