/* IMC shared component styles — single source of truth for PageHeader, SectionHeader,
   MemberCard, lab project views, and the "Coming Soon" lab placeholder. */

/* ---- Shared keyframes ---- */
@keyframes phFadeUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes phPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes phLineGrow {
  from { width: 0; }
  to { width: 120px; }
}
@keyframes phShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes phGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(1,21,62,0.05); }
  50% { box-shadow: 0 8px 30px rgba(197,165,90,0.15); }
}
@keyframes phFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes phTitleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(197,165,90,0.1); }
  50% { text-shadow: 0 0 40px rgba(197,165,90,0.3); }
}

/* ---- PageHeader ---- */
.pageheader-container { border-bottom: none !important; }
.ph-icon {
  font-size: 38px; color: #c5a55a; margin-bottom: 2px;
  animation: phPulse 2s ease-in-out infinite; line-height: 1;
}
.ph-main-title {
  font-size: 2.8rem; font-weight: 900; letter-spacing: 2px;
  background: linear-gradient(135deg, #01153e 0%, #1a3a6e 30%, #c5a55a 60%, #1a3a6e 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: phFadeUp 0.8s ease both, phShimmer 4s ease-in-out infinite 1s;
  margin: 0 0 6px 0; line-height: 1.2;
}
.ph-subtitle {
  color: #5a6478; font-size: 1rem; margin: 0 auto 14px; max-width: 500px;
  animation: phFadeUp 0.8s ease 0.15s both;
}
.ph-header-line {
  width: 120px; height: 3px;
  background: linear-gradient(90deg, #01153e, #c5a55a, #01153e);
  border-radius: 4px; margin: 0 auto 0;
  animation: phLineGrow 0.8s ease 0.3s both;
}
@media (max-width: 768px) {
  .ph-main-title { font-size: 2rem; }
}

/* ---- Shared card reveal ---- */
.wow-ph { animation: phFadeUp 0.6s ease both; }
.wow-ph:nth-child(1) { animation-delay: 0.1s; }
.wow-ph:nth-child(2) { animation-delay: 0.2s; }
.wow-ph:nth-child(3) { animation-delay: 0.3s; }
.wow-ph:nth-child(4) { animation-delay: 0.4s; }
.wow-ph:nth-child(5) { animation-delay: 0.5s; }

/* ---- SectionHeader ---- */
.ms-section-header {
  text-align: center;
  margin-bottom: 16px;
}
.ms-section-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #01153e 0%, #c5a55a 50%, #01153e 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: phShimmer 3s linear infinite;
  margin-bottom: 6px;
}
.ms-section-desc {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 14px;
}
.ms-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}
.ms-section-divider .line {
  flex: 0 1 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c5a55a, transparent);
}
.ms-section-divider .diamond {
  color: #c5a55a;
  font-size: 1rem;
}

/* ---- MemberCard ---- */
.ms-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(1, 21, 62, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ms-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(1, 21, 62, 0.12);
}
.ms-card-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #c5a55a;
  padding: 3px;
  margin-bottom: 12px;
  background: #f5f5f5;
}
.ms-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #01153e;
  margin-bottom: 2px;
}
.ms-card-email {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 6px;
  word-break: break-all;
}
.ms-card-topic {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.4;
  font-style: italic;
}
.ms-card-topic-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c5a55a;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ---- LabProjectsView / ComingSoonLab ---- */
.lab-hero { text-align: center; padding: 30px 0 20px; }
.lab-hero .lab-badge {
  display: inline-block; background: linear-gradient(135deg, #01153e, #0a2450);
  color: #c5a55a; font-size: 0.65rem; font-weight: 700; padding: 5px 16px;
  border-radius: 20px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 12px; border: 1px solid rgba(197, 165, 90, 0.2);
}
.lab-hero h1 {
  font-size: 1.6rem; font-weight: 800; color: #01153e; margin-bottom: 6px;
  animation: phTitleGlow 3s ease infinite;
}
.lab-hero .hero-gold-line {
  width: 80px; height: 3px;
  background: linear-gradient(90deg, transparent, #c5a55a, transparent);
  margin: 10px auto 16px;
}
.lab-hero .hero-subtitle {
  color: #64748b; font-size: 0.88rem; max-width: 560px; margin: 0 auto; line-height: 1.7;
}
.lab-hero .hero-stats { display: flex; justify-content: center; gap: 30px; margin-top: 16px; }
.lab-hero .hero-stat-num { font-size: 1.5rem; font-weight: 700; color: #c5a55a; }
.lab-hero .hero-stat-label {
  font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em;
}

.projects-section { padding-bottom: 40px; }
.proj-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.proj-card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 14px rgba(1, 21, 62, 0.06); border: 1px solid #eef2f6;
  transition: all 0.4s ease;
}
.proj-card:hover {
  transform: translateY(-6px); box-shadow: 0 12px 36px rgba(1, 21, 62, 0.12);
  border-color: rgba(197, 165, 90, 0.3);
}
.proj-card .pc-img {
  width: 100%; height: 170px; object-fit: cover;
  border-bottom: 3px solid rgba(197, 165, 90, 0.2); display: block;
}
.proj-card:hover .pc-img { border-bottom-color: #c5a55a; }
.proj-card .pc-body { padding: 16px 18px 18px; }
.proj-card .pc-title {
  font-size: 0.95rem; font-weight: 700; color: #01153e;
  margin-bottom: 4px; line-height: 1.35;
}
.proj-card:hover .pc-title { color: #c5a55a; }
.proj-card .pc-sub { font-size: 0.75rem; color: #94a3b8; margin-bottom: 8px; }
.proj-card .pc-desc {
  font-size: 0.8rem; color: #475569; line-height: 1.6; margin-bottom: 12px;
}
.proj-card .pc-team {
  display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.proj-card .pc-team-label {
  font-size: 0.65rem; font-weight: 600; color: #c5a55a;
  text-transform: uppercase; letter-spacing: 0.06em; width: 100%; margin-bottom: 2px;
}
.proj-card .pc-member {
  font-size: 0.72rem; background: #f1f5f9; padding: 3px 10px; border-radius: 20px;
  color: #475569; font-weight: 500; display: inline-flex; align-items: center; gap: 4px;
}
.proj-card .pc-member.lead { background: #01153e; color: #c5a55a; font-weight: 600; }
.proj-card .pc-member i { font-size: 0.55rem; }

.coming-soon-wrap {
  text-align: center; padding: 80px 20px; max-width: 600px; margin: 0 auto;
}
.coming-soon-wrap h2 { font-size: 1.6rem; font-weight: 800; color: #01153e; margin-bottom: 10px; }
.coming-soon-wrap p { font-size: 0.92rem; color: #64748b; line-height: 1.7; }

@media (max-width: 768px) {
  .proj-grid { grid-template-columns: 1fr; }
  .lab-hero h1 { font-size: 1.2rem; }
}