/* === Consent Form Page === */
.consent-wrapper {
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.consent-card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.consent-header {
  background: linear-gradient(135deg, var(--kc-navy), var(--kc-navy-light));
  color: #fff;
  padding: 2rem;
  text-align: center;
}
.consent-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
  font-size: 0.875rem;
}
.consent-brand .brand-icon {
  background: var(--kc-orange);
  width: 34px; height: 34px;
  border-radius: 8px;
}
.consent-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.consent-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.consent-steps {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
}
.consent-steps [data-lucide] { width: 14px; height: 14px; }
.consent-step { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.1); }
.consent-step.active {
  background: var(--kc-orange);
  color: #fff;
  font-weight: 600;
}

.consent-body {
  padding: 2rem;
  max-height: 65vh;
  overflow-y: auto;
}
.consent-meta {
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.consent-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.consent-section:last-of-type { border-bottom: none; }
.consent-section h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--kc-navy);
  margin-bottom: 0.5rem;
}
.consent-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--kc-orange-lighter);
  color: var(--kc-orange);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.consent-section p, .consent-section ul {
  color: var(--foreground);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.consent-section ul { padding-left: 1.5rem; }
.consent-section ul li { margin-bottom: 4px; }
.consent-section-highlight {
  background: var(--kc-orange-lighter);
  border-left: 4px solid var(--kc-orange);
  padding: 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.5rem;
}
.consent-section-highlight h6 { color: var(--kc-navy); }

.consent-footer {
  padding: 1.25rem 2rem;
  background: var(--card);
  border-top: 1px solid var(--border);
  position: sticky;
  bottom: 0;
}
.consent-agree {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--kc-navy);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.consent-agree input {
  width: 18px;
  height: 18px;
  accent-color: var(--kc-orange);
  cursor: pointer;
}
.consent-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.consent-actions .btn {
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .consent-header { padding: 1.5rem 1rem; }
  .consent-body { padding: 1.25rem; max-height: 55vh; }
  .consent-footer { padding: 1rem; }
  .consent-actions { flex-direction: column; }
  .consent-actions .btn { width: 100%; }
  .consent-steps { font-size: 0.7rem; gap: 0.25rem; }
}

/* === About Page (Research Project) === */
.about-hero {
  background: linear-gradient(135deg, var(--kc-navy), var(--kc-navy-light));
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--kc-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.about-hero-title {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.about-hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.about-hero-en {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.about-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.about-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}
.about-hero-tags [data-lucide] { width: 14px; height: 14px; color: var(--kc-orange); }

.about-stat {
  background: var(--muted);
  padding: 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border-top: 3px solid var(--kc-orange);
}
.about-stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--kc-navy);
  line-height: 1.1;
}
.about-stat-label {
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-top: 4px;
}

.about-obj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: 100%;
  transition: all 0.15s;
}
.about-obj-card:hover {
  border-color: var(--kc-orange);
  box-shadow: var(--shadow-md);
}
.about-obj-icon {
  width: 40px; height: 40px;
  background: var(--kc-orange-lighter);
  color: var(--kc-orange);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.about-obj-icon [data-lucide] { width: 22px; height: 22px; }
.about-obj-num {
  font-size: 0.7rem;
  color: var(--kc-orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.about-obj-card h6 { color: var(--kc-navy); font-weight: 700; margin-bottom: 6px; }

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 1rem;
  position: relative;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}
.about-timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
}
.about-timeline-dot {
  width: 38px; height: 38px;
  background: var(--kc-orange);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--card);
}
.about-timeline-body { padding-top: 4px; }
.about-timeline-body h6 { color: var(--kc-navy); font-weight: 700; margin-bottom: 4px; }

.about-content-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border-radius: var(--radius-lg);
  transition: all 0.15s;
}
.about-content-card:hover {
  background: var(--kc-orange-lighter);
}
.about-content-card [data-lucide] {
  width: 28px; height: 28px;
  color: var(--kc-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem;
}
.about-skill-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--kc-orange);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--foreground);
}
.about-skill-chip span {
  width: 26px; height: 26px;
  background: var(--kc-orange-lighter);
  color: var(--kc-orange);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.about-researcher-card {
  text-align: center;
  padding: 0 0 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  overflow: hidden;
}
.about-researcher-card:hover {
  border-color: var(--kc-navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.about-researcher-card .fw-semibold,
.about-researcher-card .about-researcher-role,
.about-researcher-card small {
  padding: 0 1rem;
  display: block;
}

/* Photo wrapper — aspect ratio 2:3 (portrait) */
.about-researcher-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--muted);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.about-researcher-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.35s ease;
}
.about-researcher-card:hover .about-researcher-photo {
  transform: scale(1.04);
}

/* Fallback avatar (shown if image fails) */
.about-researcher-photo-wrap .about-researcher-avatar {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--kc-navy), var(--kc-navy-light));
}
.about-researcher-role {
  font-size: 0.75rem;
  color: var(--kc-orange);
  font-weight: 700;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* Background section (expanded) */
.about-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--foreground);
}
.about-stat { position: relative; padding-top: 2.25rem; }
.about-stat-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px !important;
  height: 18px !important;
  color: var(--kc-orange);
  opacity: 0.45;
}
.about-problems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.about-problem-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff5f5;
  border: 1px solid #fee2e2;
  border-left: 4px solid var(--destructive);
  border-radius: var(--radius-sm);
}
.about-problem-item [data-lucide] {
  width: 22px; height: 22px;
  color: var(--destructive);
  flex-shrink: 0;
  margin-top: 2px;
}
.about-solution {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--kc-orange-lighter), #fff);
  border: 1px solid var(--kc-orange);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}
.about-solution > [data-lucide] {
  width: 36px; height: 36px;
  color: var(--kc-orange);
  flex-shrink: 0;
  margin-top: 4px;
}
.about-citation {
  padding: 0.65rem 0.85rem;
  background: var(--muted);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--muted-fg);
  font-style: italic;
}
.about-citation [data-lucide] {
  vertical-align: -2px;
  margin-right: 4px;
  color: var(--muted-fg);
}

/* Contact map */
.contact-map-wrap {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
}
@media (max-width: 991px) { .contact-map-wrap { min-height: 300px; } }

/* === New activity types: Text / PDF / Survey === */
.text-activity-content { line-height: 1.7; word-break: break-word; }
.text-activity-content h1, .text-activity-content h2, .text-activity-content h3 { margin-top: 1rem; }
.text-activity-content img { max-width: 100%; height: auto; border-radius: 6px; }
.text-activity-content ul, .text-activity-content ol { padding-left: 1.5rem; }
.text-activity-content a { color: var(--link); }

.rte-editor {
  line-height: 1.6;
}
.rte-editor:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 0.2rem var(--primary-lighter); }
.rte-toolbar [data-lucide] { width: 16px; height: 16px; }

.survey-rating-opt {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.35rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; user-select: none;
}
.survey-rating-opt:has(input:checked) { background: var(--primary); color: #fff; border-color: var(--primary); }
.survey-q { padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); }

/* Custom 65:35 split for the course settings tab (responsive: stacks below lg) */
@media (min-width: 992px) {
  .col-lg-65 { flex: 0 0 auto; width: 65%; }
  .col-lg-35 { flex: 0 0 auto; width: 35%; }
}
