/* =========================================
   KCC Research Page Styles 
   ========================================= */

:root {
  --kcc-bg-light: #f8f9fa;
  --kcc-bg-card: #f3f4f6;
  --kcc-blue-dark: #233166;
  --kcc-blue-light: #324388;
  --kcc-pink-accent: #d9217c;
  --kcc-text-main: #1f2937;
  --kcc-text-muted: #4b5563;
  --kcc-border: #e5e7eb;
}

/* Base Container */
.kcc-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero Section --- */
.research-hero-section {
  background-color: var(--kcc-bg-light);
  padding: 60px 0 30px;
  font-family: 'Inter', system-ui, sans-serif;
}

.research-department-label {
  color: var(--kcc-pink-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
  border-left: 3px solid var(--kcc-blue-dark);
  padding-left: 10px;
}

.research-main-title {
  color: var(--kcc-text-main);
  font-size: 2.8rem;
  font-weight: 600;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

.research-sub-title {
  color: var(--kcc-blue-dark);
  font-size: 2.2rem;
  font-weight: 400;
  margin: 0 0 25px 0;
}

.research-hero-description {
  color: var(--kcc-text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin-bottom: 35px;
}

/* Buttons */
.research-action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.kcc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--kcc-blue-dark);
  color: #ffffff;
  border: 1px solid var(--kcc-blue-dark);
}
.btn-primary:hover { background-color: var(--kcc-blue-light); }

.btn-outline-primary {
  background-color: transparent;
  color: var(--kcc-blue-dark);
  border: 1px solid var(--kcc-blue-dark);
}
.btn-outline-primary:hover { background-color: rgba(35, 49, 102, 0.05); }

.btn-outline-secondary {
  background-color: transparent;
  color: var(--kcc-text-muted);
  border: 1px solid var(--kcc-border);
}
.btn-outline-secondary:hover { background-color: var(--kcc-bg-card); }

/* --- Stats Row --- */
.research-stats-section {
  background-color: var(--kcc-bg-light);
  padding: 20px 0 40px;
}

.stats-flex-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.stat-card {
  flex: 1;
  min-width: 180px;
  background-color: var(--kcc-bg-card);
  padding: 25px 15px;
  border-radius: 12px;
  text-align: center;
}

.stat-number {
  display: block;
  color: var(--kcc-blue-dark);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-text {
  color: var(--kcc-text-muted);
  font-size: 0.9rem;
}

/* --- On This Page Navigation --- */
.research-navigation-section {
  background-color: var(--kcc-bg-light);
  padding-bottom: 60px;
}

.nav-section-label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 25px;
}

.nav-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.nav-card {
  background-color: #ffffff;
  border: 1px solid var(--kcc-border);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.nav-icon {
  font-size: 1.5rem;
  color: var(--kcc-blue-dark);
  margin-bottom: 12px;
}

.nav-card-title {
  color: var(--kcc-text-main);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-card-desc {
  color: var(--kcc-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.badge {
  background-color: #fce7f3;
  color: var(--kcc-pink-accent);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
}

/* --- Below The Fold Content --- */
.research-content-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.content-container {
  max-width: 900px;
}

.content-paragraph {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--kcc-text-main);
}

/* --- Overview Section --- */

.overview-title {
  color: var(--kcc-blue-dark);
  font-size: 2.2rem;
  font-weight: bold;          /* Made it bold */
  text-align: center;         /* Centered the text */
  text-decoration: underline; /* Added the underline */
  text-underline-offset: 8px; /* Pushes the underline down slightly for a cleaner look */
  margin-bottom: 30px;
}

.mb-4 {
  margin-bottom: 30px;
}
/* =========================================
   KCC Profile Cards (Structured Layout)
   ========================================= */

.kcc-profile-card {
  background-color: #ffffff;
  border: 1px solid var(--kcc-border);
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: 'Inter', system-ui, sans-serif;
}

/* Accordion Trigger Base button styles */
.kcc-profile-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px;
  cursor: pointer;
  text-align: left;
  display: block;
  transition: background-color 0.2s ease;
}
.kcc-profile-trigger:hover {
  background-color: var(--kcc-bg-light);
}

.profile-trigger-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-meta-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Rounded Profile Thumbnail fallback */
.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--kcc-bg-card);
  border: 1px solid var(--kcc-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kcc-text-muted);
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--kcc-text-main);
  margin: 0;
}

/* Badge tags styling */
.profile-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}
.badge-phd { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.badge-pharmd { background: #faf5ff; color: #581c87; border: 1px solid #e9d5ff; }

.profile-role {
  color: var(--kcc-text-muted);
  font-weight: 500;
  margin: 6px 0 0 0;
  font-size: 1rem;
}

.profile-focus-text {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 8px 0 0 0;
}

/* Accordion indicators */
.profile-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}
.status-arrow {
  color: var(--kcc-text-muted);
  transition: transform 0.3s ease;
}

/* Trigger states */
.kcc-profile-card.is-open .status-arrow {
  transform: rotate(180deg);
}

/* CSS Grid Transition for collapse panel */
.kcc-profile-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.kcc-profile-card.is-open .kcc-profile-collapse {
  grid-template-rows: 1fr;
  border-top: 1px solid var(--kcc-border);
}

.profile-expanded-body {
  overflow: hidden;
  background-color: #fafafa;
}

.profile-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width: 768px) {
  .profile-grid { grid-template-columns: 280px 1fr; }
}

/* Sidebar & Metrics elements */
.profile-sidebar {
  display: flex;
  flex-col: column;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .profile-sidebar { border-right: 1px solid var(--kcc-border); padding-right: 24px; }
}

.profile-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
  margin: 0 0 4px 0;
}

.metrics-mini-grid {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--kcc-border);
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
}
.metric-item { flex: 1; }
.metric-item.border-x { border-left: 1px solid #f3f4f6; border-right: 1px solid #f3f4f6; }
.metric-val { display: block; font-size: 1.25rem; font-weight: 700; color: var(--kcc-text-main); }
.metric-lbl { display: block; font-size: 0.65rem; text-transform: uppercase; color: #6b7280; font-weight: 500; }

/* Link anchors */
.portal-links-stack { display: flex; flex-direction: column; gap: 8px; }
.portal-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--kcc-border);
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--kcc-text-main);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}
.portal-link:hover { background: var(--kcc-bg-light); color: var(--kcc-blue-light); border-color: #cbd5e1; }

.portal-tag { font-size: 0.65rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.tag-orcid { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.tag-pubmed { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.tag-scholar { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Main bio section structures */
.profile-main-bio { display: flex; flex-direction: column; gap: 24px; }
.bio-block { display: flex; flex-direction: column; }
.bio-text { font-size: 0.95rem; line-height: 1.6; color: var(--kcc-text-muted); margin: 6px 0 0 0; }
.bio-text strong { color: var(--kcc-text-main); }

.academic-timeline {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 16px;
  margin-top: 6px;
}
.academic-timeline p { font-size: 0.9rem; color: var(--kcc-text-muted); margin: 0 0 8px 0; }
.academic-timeline p:last-child { margin-bottom: 0; }
.academic-timeline p strong { color: var(--kcc-text-main); }

/* Awards design setup */
.awards-flex-row { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
@media (min-width: 640px) { .awards-flex-row { flex-direction: row; } }
.award-card {
  flex: 1;
  background: #fffdf5;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.award-icon { font-size: 1.2rem; line-height: 1; }
.award-title { font-size: 0.85rem; font-weight: 700; color: #78350f; margin: 0; }
.award-issuer { font-size: 0.75rem; color: #92400e; margin: 4px 0 0 0; }
/* Academic Highlight Box */
.academic-highlight-box {
  background-color: var(--kcc-bg-light);
  border-left: 4px solid var(--kcc-blue-light);
  padding: 25px 30px;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
}

.academic-highlight-box .content-paragraph {
  margin: 0; /* Removes extra bottom margin inside the box */
  color: var(--kcc-text-main);
}

/* Fix for in-page menu links hiding under the sticky header */
html {
  scroll-behavior: smooth; /* Gives a nice smooth scroll instead of an instant jump */
}

.research-content-section {
  scroll-margin-top: 200px; /* Creates a buffer so the header doesn't cover the title */
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .research-main-title { font-size: 2.2rem; }
  .research-sub-title { font-size: 1.8rem; }
  .stat-card { min-width: 45%; }
}
@media (max-width: 480px) {
  .stat-card { min-width: 100%; }
}