﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --color-primary: #264e7e;
  --color-secondary: #e0432f;
  --color-accent: #f26a2e;
  --color-text-dark: #1a1a1a;
  --color-text-light: #6c757d;
  --color-bg-light: #f0f3fa;
  --color-white: #ffffff;
  --color-primary-hover: #1f3f66;
  --color-secondary-hover: #c73726;
  --gradient-main: linear-gradient(135deg, #264e7e 0%, #e0432f 100%);
  --gradient-soft: linear-gradient(135deg,
      rgba(38, 78, 126, 0.07) 0%,
      rgba(224, 67, 47, 0.05) 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 2px 10px rgba(38, 78, 126, 0.07);
  --shadow-md: 0 8px 28px rgba(38, 78, 126, 0.11);
  --shadow-lg: 0 20px 48px rgba(38, 78, 126, 0.14);
  --navbar-h: 70px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lexend", sans-serif;
  background: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  font-size: 0.875rem;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--navbar-h);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--color-text-light);
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

input,
select,
textarea,
button {
  font-family: "Lexend", sans-serif;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}






/* ============================================================
   PORTAL WRAPPER
   ============================================================ */
.portal-wrapper {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding: 1rem 1.5rem 0rem;
}

/* ============================================================
   HERO CARD
   ============================================================ */
.hero-card {
  width: 258px;
  /*position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1rem;
  border: 1px solid rgba(38, 78, 126, 0.08);
  box-shadow: var(--shadow-md);
  height: calc(100vh - 15vh);
  position: sticky;
  left: 0px;
  top: calc(var(--navbar-h) + 1.25rem);
  overflow: hidden;*/
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle,
      rgba(38, 78, 126, 0.06) 0%,
      transparent 65%);
  top: -120px;
  right: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle,
      rgba(224, 67, 47, 0.06) 0%,
      transparent 65%);
  bottom: -60px;
  left: 28%;
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gradient-soft);
  border: 1px solid rgba(38, 78, 126, 0.14);
  padding: 0.32rem 0.85rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 0.9rem;
}

.hero-badge i {
  color: var(--color-accent);
  font-size: 0.62rem;
}

.hero-card h1 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.55rem;
  line-height: 1.2;
}

.hero-card-para {
  font-size: 13px;
}

.hero-card h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card>p {
  font-size: 12px;
  line-height: 1.25rem;
  margin: 0px;
  color: var(--color-text-light);
  max-width: 660px;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.9rem;
  margin: 1rem 0rem;
}

.stat-card {
  position: relative;
  background: var(--color-bg-light);
  padding: 0.625rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(38, 78, 126, 0.08);
  transition: var(--transition);
  overflow: hidden;
  cursor: default;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.stat-icon i {
  font-size: 0.72rem;
  color: #fff;
}

.stat-card h2 {
  font-size: 1.1875rem;
  ;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-card span {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(38, 78, 126, 0.16);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

/* Search Bar */
.search-wrap {
  position: relative;
}

.search-icon-wrap {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 0.82rem;
  pointer-events: none;
}

.main-search {
  display: flex;
  gap: 0.75rem;
}

.main-search input {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(38, 78, 126, 0.14);
  font-size: 0.85rem;
  background: var(--color-white);
  color: var(--color-text-dark);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.main-search input::placeholder {
  color: #adb5bd;
}

.main-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(38, 78, 126, 0.09);
}

.main-search button {
  background: var(--gradient-main);
  border: none;
  padding: 0.5rem 1.6rem;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(38, 78, 126, 0.28);
  white-space: nowrap;
}

.main-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 67, 47, 0.35);
}

.main-search button:active {
  transform: translateY(0);
}

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.dashboard-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

/* ============================================================
   FILTER SIDEBAR
   ============================================================ */
.filter-sidebar {
  width: 272px;
  height: calc(100vh - 13vh);
  background: #ffffff;
  border-radius: 16px;
  border: 1.5px solid #dde3f0;
  box-shadow: 0 2px 12px rgba(14, 28, 53, 0.08);
  overflow: hidden;
  align-self: start;
  position: sticky;
  top: 80px;
}

.filter-section {
  /*max-height: calc(100vh - var(--navbar-h) - 13rem);
  overflow-y: auto;
  background: #fff;
  flex: 1;
  overflow-y: auto;
  padding: 15px;*/
  padding: 16px 18px;
  max-height: calc(100vh - 230px);
  overflow-y: auto;

}

.filter-header {
  /*display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(38, 78, 126, 0.07);*/
  color: #fff;
  padding: 15px 18px;
  background: linear-gradient(135deg, #2e4053 0%, #253649 100%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-header i {
  font-size: 18px;
  color: #e85418;
}

.filter-header h3 {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.filter-title {
  /* font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding:0rem 0.625rem;*/
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.filter-title .icon-box {
  width: 28px;
  height: 28px;
  background: var(--gradient-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--color-accent);
  border: 1px solid rgba(38, 78, 126, 0.1);
  flex-shrink: 0;
}

.filter-badge {
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.12rem 0.42rem;
  border-radius: 100px;
}

/* Section */
.filter-section {
  /* margin-bottom: 1.1rem;*/
}

.filter-section-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  padding-left: 0.1rem;
}

.filter-group {
  margin-bottom: 0.65rem;
}

.filter-group label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.28rem;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.3125rem 0.625rem;
  font-size: 0.76rem;
  background: var(--color-bg-light);
  border: 1.5px solid rgba(38, 78, 126, 0.1);
  border-radius: 8px;
  transition: var(--transition);
  color: var(--color-text-dark);
  outline: none;
}

.filter-group input:hover,
.filter-group select:hover {
  border-color: rgba(38, 78, 126, 0.22);
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(38, 78, 126, 0.08);
}

.filter-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23264E7E' opacity='.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.filter-buttons {
  display: flex;
  gap: 0.55rem;
  /*margin-top: 1.1rem;*/
  /* padding-top: 0.9rem;*/
  border-top: 1px solid rgba(38, 78, 126, 0.07);
  padding: 5px 10px;
}

.filter-btn {
  flex: 1;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 0.62rem 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.74rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  box-shadow: 0 3px 10px rgba(38, 78, 126, 0.24);
}

.filter-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(224, 67, 47, 0.3);
}

.reset-btn {
  flex: 0 0 auto;
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid rgba(38, 78, 126, 0.14);
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.74rem;
  cursor: pointer;
  transition: var(--transition);
}

.reset-btn:hover {
  background: rgba(224, 67, 47, 0.06);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-area {
  flex: 1;
  min-width: 0;
}

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding: 0 0.2rem;
}

.result-info {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.result-info strong {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ============================================================
   RESEARCHER GRID
   ============================================================ */
.researcher-grid {
  padding-right: 12px;
  overflow-y: auto;
  /*height: calc(100vh - 30vh);*/
  /* display: grid;
  grid-template-columns: repeat(1,1fr);
  gap: 1.2rem; */
}

/* ============================================================
   RESEARCHER CARD
   ============================================================ */
.top-mid-area {
  height: calc(100vh - 15vh);
}

.mid-banner-area {
  height: calc(100vh - 28vh);
  /* overflow-y: auto; */
  background-color: #fff;
  padding: 1rem;
  border-radius: var(--radius-xl);

}

.researcher-card {
  background: var(--color-white);
  margin-bottom: 5px;
  border-radius: var(--radius-lg);
  padding: 0rem;
  border: 1.5px solid rgba(38, 78, 126, 0.08);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.inner-researcher-card-one {
  padding: 10px;
}

/* Top accent */
.card-accent {
  position: absolute;
  top: 0;
  left: 1.35rem;
  right: 1.35rem;
  height: 3px;
  background: var(--gradient-main);
  border-radius: 0 0 3px 3px;
  transform: scaleX(0);
  transition: transform 0.35s ease;
  transform-origin: left;
}

.researcher-card:hover .card-accent {
  transform: scaleX(1);
}

/* Hover glow */
.researcher-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.researcher-card:hover {
  transform: translateY(-5px);
  border-color: rgba(38, 78, 126, 0.18);
  box-shadow: var(--shadow-lg);
}

.researcher-card:hover::after {
  opacity: 1;
}

.researcher-card-footer {
  background-color: transparent !important;
}

/* Header */
.researcher-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
  padding: 0.7rem 0.5rem 0.5rem 0.5rem;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.researcher-header img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid rgba(38, 78, 126, 0.12);
  transition: var(--transition);
}

.researcher-card:hover .researcher-header img {
  border-color: rgba(38, 78, 126, 0.28);
  transform: scale(1.04);
}

.vdot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vdot i {
  font-size: 0.42rem;
  color: #fff;
}

.vdot.pending {
  background: var(--color-accent);
}

.researcher-meta {
  flex: 1;
  min-width: 0;
}

.researcher-meta h3 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.12rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.researcher-meta .desig {
  font-size: 0.67rem;
  color: var(--color-text-light);
  font-weight: 500;
  display: block;
  margin-bottom: 0.38rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.63rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--gradient-soft);
  border: 1px solid rgba(38, 78, 126, 0.12);
  padding: 0.18rem 0.52rem;
  border-radius: 100px;
}

.loc-chip i {
  font-size: 0.56rem;
  color: var(--color-accent);
}

/* Details grid */
.details {
  /* display: grid;
  grid-template-columns: 1fr 1fr 1fr; */
  gap: 5px;
  margin-bottom: 0rem;
  padding: 0rem 0.5rem 0.5rem 0.5rem;
  position: relative;
  z-index: 1;
}

.d-item {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.68rem;
  color: var(--color-text-dark);
  font-weight: 500;
}

.d-item i {
  width: 21px;
  height: 21px;
  background: rgba(38, 78, 126, 0.07);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: var(--transition);
}

.researcher-card:hover .d-item i {
  background: rgba(38, 78, 126, 0.13);
}

.card-divider {
  height: 1px;
  background: rgba(38, 78, 126, 0.07);
  margin: 0.7rem 0;
  position: relative;
  z-index: 1;
}

/* Tags */
.tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 0.9rem;
  position: relative;
  z-index: 1;
}

.tag {
  font-size: 0.6rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(38, 78, 126, 0.07);
  color: var(--color-primary);
  border: 1px solid rgba(38, 78, 126, 0.12);
  transition: var(--transition);
  cursor: default;
  letter-spacing: 0.1px;
}

.tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
}

/* Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
  background-color: #fff;
}

.status {
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.26rem 0.65rem;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status i {
  font-size: 0.48rem;
  color: #22c55e;
}

.status.status-pending {
  background: rgba(242, 106, 46, 0.1);
  color: var(--color-accent);
  border-color: rgba(242, 106, 46, 0.2);
}

.status.status-pending i {
  color: var(--color-accent);
}

.view-btn {
  position: relative;
  overflow: hidden;
  background: transparent;
  border: 1.5px solid var(--color-primary);
  padding: 0.38rem 1rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: var(--transition);
}

.view-btn::before {
  z-index: -1;
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.view-btn span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.view-btn:hover::before {
  transform: scaleX(1);
}

.view-btn:hover {
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(38, 78, 126, 0.26);
}

.view-btn:hover span {
  color: #fff;
}

/* ============================================================
   NO RESULT
   ============================================================ */
.no-result {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  display: none;
  border: 1.5px dashed rgba(38, 78, 126, 0.18);
  height: calc(100vh - 44vh);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.no-result-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(38, 78, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.no-result-icon i {
  font-size: 1.4rem;
  color: var(--color-primary);
  opacity: 0.45;
}

.no-result h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.no-result p {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */
.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 3px 10px rgba(38, 78, 126, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(224, 67, 47, 0.3);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-width: max-content;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {

  .filter-sidebar,
  .hero-card {
    width: 256px;
  }
}

@media (max-width: 992px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .filter-sidebar,
  .hero-card {
    width: 100%;
    position: relative;
    top: 0;
    max-height: none;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-card {

    padding: 1.75rem 1.5rem 1.5rem;

  }

  .navbar-right {
    display: none;
  }

}

@media (max-width: 640px) {
  .portal-wrapper {
    padding: 1.25rem 1rem 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .researcher-grid {
    grid-template-columns: 1fr;
  }

  .hero-card h1 {
    font-size: 1.4rem;
  }

  .top-navbar {
    padding: 0 1.25rem;
  }
}

@media (max-width: 420px) {
  .main-search {
    flex-direction: column;
  }

  .main-search button {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
  }
}

.details i {
  font-size: 0.65rem;
  color: var(--color-accent);
  width: 1rem;
}

.details p {
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  color: var(--color-primary);
  gap: 0.3rem;
  background: rgba(38, 78, 126, 0.05);
  padding: 0.3125rem 0.625rem;
  border-radius: 2rem;
  margin: 0px;
}

/************/
/* ── RIGHT PANEL ── */
.right-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.portal-info-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #dde3f0;
  box-shadow: 0 2px 12px rgba(14, 28, 53, 0.08);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.portal-info-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: rgba(232, 84, 24, 0.06);
  border-radius: 50%;
}

.badge-ecosystem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff0ea;
  color: #c73e10;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: 1px solid #ffd4c0;
}

.portal-info-title {
  font-size: 17px;
  font-weight: 700;
  color: #0e1c35;
  margin-bottom: 9px;
  letter-spacing: -0.4px;
  line-height: 1.35;
  position: relative;
}

.portal-info-desc {
  font-size: 12px;
  color: #8a94ad;
  line-height: 1.7;
  font-weight: 400;
}

/* ── STAT GRID ── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #dde3f0;
  box-shadow: 0 2px 12px rgba(14, 28, 53, 0.08);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(14, 28, 53, 0.12);
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.si-orange {
  background: #fff0ea;
  color: #e85418;
}

.si-purple {
  background: #efedfc;
  color: #5b4fcf;
}

.si-teal {
  background: #e2f5ef;
  color: #0f9b72;
}

.si-amber {
  background: #fef3e2;
  color: #b46b0a;
}

.stat-card-num {
  font-size: 30px;
  font-weight: 800;
  color: #0e1c35;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 10px;
  font-weight: 600;
  color: #8a94ad;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-card-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
}

.bar-orange {
  background: #e85418;
}

.bar-purple {
  background: #5b4fcf;
}

.bar-teal {
  background: #0f9b72;
}

.bar-amber {
  background: #f5a623;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/************/


/**********************/
/* ── MAIN PANEL ── */
.main-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ── SEARCH BAR ── */
.search-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #dde3f0;
  box-shadow: 0 2px 12px rgba(14, 28, 53, 0.08);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-count {
  font-size: 12px;
  color: #8a94ad;
  font-weight: 500;
  white-space: nowrap;
}

.search-count b {
  color: #0e1c35;
  font-weight: 700;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1.5px solid #dde3f0;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #0e1c35;
  background:  #f5f7fd;
  outline: none;
  transition: all 0.18s;
}

.search-input::placeholder {
  color: #8a94ad;
}

.search-input:focus {
  border-color: #0e1c35;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 28, 53, 0.08);
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a94ad;
  font-size: 17px;
  pointer-events: none;
}

.btn-search {
  background: #2e4053;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.btn-search:hover {
  background: #e85418;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 84, 24, 0.3);
}

/* ── RESEARCHER CARDS ── */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.researcher-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #dde3f0;
  box-shadow: 0 2px 12px rgba(14, 28, 53, 0.08);
  padding: 18px 20px;
  /*display: flex;*/
  align-items: center;
  gap: 15px;
  /* cursor: pointer; */
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
}

.researcher-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 16px 0 0 16px;
  transition: width 0.22s;
}

.card-orange::before {
  background: #e85418;
}

.card-purple::before {
  background: #5b4fcf;
}

.card-teal::before {
  background: #0f9b72;
}

.researcher-card:hover {
  box-shadow:  0 12px 48px rgba(14,28,53,0.16);
  transform: translateY(-3px);
  border-color: #c8d0e4;
}

.researcher-card:hover::before {
  width: 7px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.av-orange {
  background: #fff0ea;
  color: #e85418;
  border: 2px solid #ffd4c0;
}

.av-purple {
  background: #efedfc;
  color: #5b4fcf;
  border: 2px solid #cec9f5;
}

.av-teal {
  background: #e2f5ef;
  color: #0f9b72;
  border: 2px solid #9fe0cb;
}

.card-info {
  flex: 1;
  min-width: 0;
}

.card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0e1c35;
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.card-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #8a94ad;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 0px;
}

.card-role i {
  font-size: 12px;
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f0f3fa;
  border: 1px solid #dde3f0;
  border-radius: 20px;
  padding: 4px 11px;
  font-size: 12px;
  color: #4a5775;
  ;
  font-weight: 500;
  transition: all 0.15s;
}

.stat-pill:hover {
  background: #e8ecf5;
  border-color: #c8d0e4;
}

.stat-pill i {
  font-size: 13px;
  color: #8a94ad;
}

.stat-pill b {
  color: #0e1c35;
  font-weight: 700;
}

.btn-view-profile {
  background: #fff;
  border: 2px solid #0e1c35;
  color: #0e1c35;
  padding: 9px 18px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-view-profile:hover {
  background: #0e1c35;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 28, 53, 0.25);
}

/* ── PAGINATION ── */
.pagination-bar {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #dde3f0;
  box-shadow: 0 2px 12px rgba(14, 28, 53, 0.08);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.pg-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid #dde3f0;
  background: #f5f7fd;
  color: #4a5775 !important;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  -webkit-border-radius: ;
  -moz-border-radius: ;
  -ms-border-radius: ;
  -o-border-radius: ;
}

.pg-btn:hover {
  border-color: #2e4053;
  color: #2e4053!important;
  background: #fff;
}

.pg-btn.active {
  background: #2e4053 !important;
  border-color: #2e4053 !important;
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(14, 28, 53, 0.25) !important;
}

/**********************/

.claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    /* padding: 12px 22px; */
    border: none;
    /* border-radius: 12px; */
    /* background: linear-gradient(135deg, #4f46e5, #7c3aed); */
    /* color: white; */
    /* font-size: 15px; */
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
    transition: all 0.25s ease;
}

.claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.35);
}

.claim-btn:active {
    transform: scale(0.97);
}

.icon {
    font-size: 18px;
}

/* .claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
} */

/* .claim-btn:hover {
    background: #059669;
    transform: translateY(-2px);
} */