:root {
  --primary: #1678eb;
  --primary-dark: #0d4ea2;
  --gold: #f4c400;
  --gold-dark: #d5a900;
  --text: #182433;
  --muted: #66758a;
  --white: #ffffff;
  --bg: #f4f7fb;
  --soft: #edf2f7;
  --dark: #0f1724;
  --border: rgba(14, 25, 40, 0.08);
  --shadow: 0 14px 36px rgba(10, 25, 50, 0.10);
  --shadow-lg: 0 24px 70px rgba(10, 25, 50, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1400px, calc(100% - 20px));
  margin: 0 auto;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 13px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  flex-wrap: wrap;
}

/* =========================
   HEADER / NAV
========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.nav {
  min-height: 122px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-shrink: 1;
}

.site-logo {
  width: 220px;
  height: 120px;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  flex-shrink: 0;
}

.brand-fallback {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: none;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
  margin-left: 10px;
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--text);
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 24px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.small {
  padding: 12px 18px;
  border-radius: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
}

/* =========================
   SECTION / HERO
========================= */
.section {
  padding: 90px 0;
}

.section-light {
  background: var(--bg);
}

.section-soft {
  background: linear-gradient(180deg, #eef3f8, #e9eff6);
}

.section-tag {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--primary);
}

.section-tag-light {
  color: var(--gold);
}

.section-head {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-head.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.1;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 110px 0 70px;
  min-height: 700px;
}

.researcher-page-hero-premium {
  padding-bottom: 86px;
}

.researcher-hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.researcher-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  transition: opacity 0.9s ease;
}

.researcher-hero-slide.is-active {
  opacity: 1;
}

.researcher-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 23, 36, 0.76) 0%, rgba(15, 23, 36, 0.58) 42%, rgba(15, 23, 36, 0.42) 100%),
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(22, 120, 235, 0.10), transparent 22%);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
}

.researcher-hero-lead {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255,255,255,.88);
}

.researcher-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.researcher-hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.researcher-hero-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
  transition: transform 0.2s ease, background 0.2s ease;
}

.researcher-hero-dot.is-active {
  background: var(--gold);
  transform: scale(1.14);
}

/* =========================
   HERO GRID + DASHBOARD
========================= */
.premium-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.researcher-dashboard-hero {
  display: flex;
  justify-content: flex-end;
}

.researcher-dashboard-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(10,25,50,.18);
}

.researcher-dashboard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.dashboard-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.researcher-dashboard-top h3 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.dashboard-status {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.researcher-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.researcher-stat-box {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.researcher-stat-box strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.researcher-stat-box span {
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.researcher-progress-box {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.researcher-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
}

.researcher-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}

.researcher-progress-bar span {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #ffe27a);
}

/* =========================
   SECURITY PANEL
========================= */
.researcher-security-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.researcher-security-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(244,196,0,.10), transparent 24%),
    radial-gradient(circle at bottom right, rgba(22,120,235,.10), transparent 28%);
  pointer-events: none;
}

.researcher-security-panel > * {
  position: relative;
  z-index: 2;
}

.side-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22,120,235,.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.researcher-security-left h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.researcher-security-left p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.researcher-security-right {
  display: grid;
  gap: 14px;
}

.researcher-security-item {
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff, #eef5fd);
  border: 1px solid rgba(22,120,235,.08);
}

.researcher-security-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 18px;
}

.researcher-security-item span {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   ACCESS CARDS
========================= */
.researcher-access-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.researcher-access-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,25,40,.05);
  padding: 26px 24px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.researcher-access-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.researcher-access-head h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 28px;
}

.researcher-access-head p {
  margin: 0 0 20px;
  color: var(--muted);
}

.researcher-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.researcher-form-row {
  display: grid;
  gap: 16px;
}

.researcher-form-row.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.researcher-input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

.researcher-input-group input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fcfdff;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.researcher-input-group input:focus {
  border-color: rgba(22,120,235,.45);
  box-shadow: 0 0 0 4px rgba(22,120,235,.08);
}

.researcher-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.researcher-login-options {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.forgot-link {
  color: var(--primary);
  font-weight: 600;
}

.researcher-mini-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faff, #eef5fd);
  border: 1px solid rgba(22,120,235,.08);
}

.researcher-mini-panel h4 {
  margin: 0 0 8px;
  color: var(--primary);
}

.researcher-mini-panel p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   SERVICES
========================= */
.researcher-grid-pro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.researcher-card-pro {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
  position: relative;
  border: 1px solid rgba(14,25,40,.05);
}

.researcher-card-pro:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.researcher-card-top {
  height: 90px;
  background:
    radial-gradient(circle at top left, rgba(244,196,0,.24), transparent 35%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.researcher-card-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: -41px auto 0;
  background: #fff;
  border: 6px solid #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  position: relative;
  z-index: 2;
  color: var(--primary);
}

.researcher-card-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.researcher-card-body {
  padding: 20px 20px 24px;
  text-align: center;
}

.researcher-card-body h3 {
  margin: 12px 0 10px;
  color: var(--primary);
  font-size: 22px;
}

.researcher-card-body p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* =========================
   ACTIVITY
========================= */
.researcher-activity-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.researcher-activity-item {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(14,25,40,.05);
  padding: 20px 18px;
}

.researcher-activity-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 18px;
}

.researcher-activity-item span {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   CTA PANEL
========================= */
.researcher-cta-panel {
  margin-top: 34px;
  background: linear-gradient(135deg, #ffffff, #eef5fd);
  border: 1px solid rgba(22,120,235,.08);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.researcher-cta-content h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 24px;
}

.researcher-cta-content p {
  margin: 0;
  color: var(--muted);
}

/* =========================
   FOOTER CLAIR
========================= */
.footer {
  margin-top: auto;
  background: #eef3f8;
  color: #2f3b4a;
  padding: 38px 0 16px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
}

.footer-main {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 14px;
}

.footer-brand-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1f73df;
}

.footer-brand-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #607189;
  max-width: 240px;
}

.footer-column h4 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 800;
  color: #6f6889;
  text-transform: uppercase;
}

.footer-column p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #2f3b4a;
}

.footer-column a {
  color: #2f3b4a;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: #1678eb;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 25, 40, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  color: #607189;
  font-size: 14px;
  line-height: 1.7;
}

/* =========================
   RESPONSIVE FOOTER
========================= */
@media (max-width: 1180px) {
  .footer-main {
    grid-template-columns: 280px 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 920px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .footer {
    padding: 28px 0 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo {
    width: 120px;
    height: 120px;
  }

  .footer-brand-title {
    font-size: 20px;
  }

  .footer-column h4 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-bottom p {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .footer-logo {
    width: 105px;
    height: 105px;
  }

  .footer-brand-title {
    font-size: 18px;
  }
}

/* =========================
   REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
  .premium-grid,
  .researcher-access-layout,
  .researcher-security-panel {
    grid-template-columns: 1fr;
  }

  .researcher-dashboard-hero {
    justify-content: flex-start;
  }

  .researcher-grid-pro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .researcher-activity-board {
    grid-template-columns: 1fr;
  }

  .nav {
    min-height: 108px;
    padding: 8px 0;
  }

  .site-logo {
    width: 180px;
    height: 96px;
  }

  .brand-text {
    margin-left: 8px;
  }

  .nav-links {
    gap: 18px;
    margin-right: 0;
  }

  .footer-main {
    grid-template-columns: 280px 1fr 1fr;
  }

  .footer-column:last-child {
    grid-column: 2 / 4;
  }
}

@media (max-width: 920px) {
  .nav {
    min-height: 96px;
    padding: 8px 0;
  }

  .site-logo {
    width: 150px;
    height: 82px;
  }

  .brand-text {
    margin-left: 6px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 13px;
    max-width: 260px;
    white-space: normal;
    line-height: 1.25;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 16px;
    margin-right: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(22,120,235,.06);
  }

  .nav-links a::after {
    display: none;
  }

  .researcher-form-row.two-cols,
  .researcher-stats-grid,
  .researcher-grid-pro {
    grid-template-columns: 1fr;
  }

  .researcher-dashboard-card,
  .researcher-access-card,
  .researcher-security-panel,
  .researcher-cta-panel {
    padding: 20px 18px;
  }

  .researcher-dashboard-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .researcher-login-options,
  .researcher-hero-actions,
  .researcher-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .researcher-access-head h3,
  .researcher-cta-content h3 {
    font-size: 24px;
  }

  .researcher-security-left h2 {
    font-size: 28px;
  }

  .researcher-hero-lead {
    font-size: 16px;
  }

  .page-hero {
    min-height: 600px;
    padding: 90px 0 56px;
  }

  .researcher-hero-overlay {
    background:
      linear-gradient(180deg, rgba(15, 23, 36, 0.76) 0%, rgba(15, 23, 36, 0.58) 52%, rgba(15, 23, 36, 0.44) 100%);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column:last-child {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .footer {
    padding: 28px 0 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo {
    width: 120px;
    height: 120px;
  }

  .footer-brand-title {
    font-size: 20px;
  }

  .footer-column h4 {
    font-size: 16px;
  }

  .footer-column p,
  .footer-bottom p {
    font-size: 14px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1240px, calc(100% - 14px));
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 0;
  }

  .nav {
    min-height: 84px;
    padding: 6px 0;
    gap: 10px;
  }

  .brand {
    gap: 8px;
  }

  .site-logo {
    width: 118px;
    height: 64px;
  }

  .brand-text {
    margin-left: 4px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
    max-width: 150px;
    white-space: normal;
    line-height: 1.25;
  }

  .section {
    padding: 68px 0;
  }

  .page-hero {
    min-height: 540px;
    padding: 72px 0 42px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 10vw, 48px);
  }

  .researcher-hero-lead {
    font-size: 15px;
    line-height: 1.7;
  }

  .researcher-hero-dots {
    margin-top: 18px;
  }

  .footer-main {
    gap: 20px;
  }
}

@media (max-width: 420px) {
  .site-logo {
    width: 104px;
    height: 58px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
    max-width: 130px;
  }

  .researcher-hero-lead {
    font-size: 15px;
  }

  .researcher-stat-box strong {
    font-size: 24px;
  }

  .page-hero {
    min-height: 500px;
  }

  .footer-logo {
    width: 105px;
    height: 105px;
  }

  .footer-brand-title {
    font-size: 18px;
  }
}


/* =========================================================
   FNRSIT - NAVIGATION PREMIUM : SURVOL + CLIC ACTIF
   Ajouté pour donner un vrai fond visuel aux boutons du menu.
========================================================= */
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.nav-links a::after {
  display: none !important;
}

.nav-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 120, 235, 0.26);
}

.nav-links a:active {
  transform: translateY(0) scale(0.97);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: #11315b;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 12px 28px rgba(244, 196, 0, 0.28);
}

.nav-links a:focus-visible {
  outline: none;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 0 4px rgba(22, 120, 235, 0.18);
}

@media (max-width: 920px) {
  .nav-links a {
    width: 100%;
    justify-content: flex-start;
    padding: 13px 15px;
    border-radius: 14px;
  }

  .nav-links a:hover,
  .nav-links a.active,
  .nav-links a[aria-current="page"] {
    transform: translateX(4px);
  }
}


/* =========================================================
   FNRSIT - EFFETS PREMIUM : ESPACE CHERCHEUR
========================================================= */
.researcher-card-pro,
.researcher-access-card,
.researcher-security-panel,
.researcher-activity-item,
.researcher-cta-panel,
.researcher-dashboard-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transform: translateY(0) scale(1);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
  will-change: transform;
}

.researcher-card-pro::before,
.researcher-access-card::before,
.researcher-security-panel::after,
.researcher-activity-item::before,
.researcher-cta-panel::before,
.researcher-dashboard-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(22, 120, 235, 0.16), transparent 36%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.researcher-card-pro > *,
.researcher-access-card > *,
.researcher-security-panel > *,
.researcher-activity-item > *,
.researcher-cta-panel > *,
.researcher-dashboard-card > * {
  position: relative;
  z-index: 2;
}

.researcher-card-pro:hover,
.researcher-access-card:hover,
.researcher-security-panel:hover,
.researcher-activity-item:hover,
.researcher-cta-panel:hover,
.researcher-dashboard-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 76px rgba(10, 25, 50, 0.22);
  border-color: rgba(22, 120, 235, 0.22);
}

.researcher-card-pro:hover::before,
.researcher-access-card:hover::before,
.researcher-security-panel:hover::after,
.researcher-activity-item:hover::before,
.researcher-cta-panel:hover::before,
.researcher-dashboard-card:hover::before {
  opacity: 1;
}

.researcher-card-top,
.researcher-card-icon,
.researcher-card-body h3,
.researcher-card-pro .btn,
.researcher-access-card .btn,
.researcher-cta-panel .btn,
.dashboard-status,
.researcher-progress-bar span {
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease,
    color 0.35s ease,
    filter 0.35s ease;
}

.researcher-card-pro:hover .researcher-card-top {
  background:
    radial-gradient(circle at top left, rgba(244, 196, 0, 0.34), transparent 36%),
    linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.researcher-card-pro:hover .researcher-card-icon {
  transform: translateY(-7px) scale(1.10) rotate(-3deg);
  color: var(--gold-dark);
  box-shadow: 0 20px 44px rgba(10, 25, 50, 0.20);
}

.researcher-card-pro:hover .researcher-card-body h3 {
  color: var(--gold-dark);
  transform: translateY(-2px);
}

.researcher-card-pro:hover .btn,
.researcher-access-card:hover .btn,
.researcher-cta-panel:hover .btn {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(22, 120, 235, 0.24);
  filter: brightness(1.04);
}

.researcher-dashboard-card:hover .dashboard-status {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #11315b;
}

.researcher-dashboard-card:hover .researcher-progress-bar span {
  filter: brightness(1.08);
}

@media (max-width: 760px) {
  .researcher-card-pro:hover,
  .researcher-access-card:hover,
  .researcher-security-panel:hover,
  .researcher-activity-item:hover,
  .researcher-cta-panel:hover,
  .researcher-dashboard-card:hover {
    transform: translateY(-7px) scale(1.012);
  }
}

/* Site-wide mobile fixes for researcher pages */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
}

@media (max-width: 920px) {
  .container {
    width: min(100% - 24px, 100%) !important;
  }

  .nav {
    min-height: auto !important;
    padding: 10px 0 !important;
    align-items: center !important;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .site-logo {
    width: min(150px, 42vw) !important;
    height: auto !important;
  }

  .brand-text {
    min-width: 0;
  }

  .page-hero {
    min-height: auto !important;
    padding: 76px 0 58px !important;
  }

  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.7rem) !important;
  }

  .premium-grid,
  .researcher-stats-grid,
  .researcher-access-layout,
  .researcher-form-row.two-cols,
  .researcher-grid-pro,
  .footer-main {
    grid-template-columns: 1fr !important;
  }

  .researcher-dashboard-hero,
  .researcher-card-pro,
  .researcher-access-card,
  .researcher-security-panel,
  .researcher-cta-panel,
  .researcher-dashboard-card {
    width: 100%;
    max-width: 100%;
  }

  .researcher-hero-actions,
  .researcher-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .researcher-hero-actions .btn,
  .researcher-form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 18px, 100%) !important;
  }

  .site-logo {
    width: min(118px, 36vw) !important;
  }

  .researcher-card-pro,
  .researcher-access-card,
  .researcher-security-panel,
  .researcher-cta-panel,
  .researcher-dashboard-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  input,
  textarea,
  select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }
}

