/* =========================================================
   MESSAGES STYLESHEET (css/messages.css)
   Leadership Messages Hub & Individual Message Pages
   GNIPST Life Sciences
   ========================================================= */

/* ---- Message Hub Section ---- */
.msg-hub-section {
  padding: 72px 0;
  background: #fbfdfb;
}

.msg-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.msg-hub-kicker::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--gold-500);
}

.msg-hub-heading {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.msg-hub-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 780px;
  margin: 0 0 40px;
}

/* ---- 3-Column Message Cards Grid ---- */
.msg-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.msg-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 30px -12px rgba(11, 59, 36, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  position: relative;
}
.msg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -12px rgba(11, 59, 36, 0.16);
  border-color: var(--accent);
}

.msg-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.2;
  background: #eef5f0;
  overflow: hidden;
}
.msg-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease;
}
.msg-card:hover .msg-card-img {
  transform: scale(1.03);
}

.msg-card-role-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--primary);
  color: #ffffff;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.msg-card-role-tag.founder {
  background: linear-gradient(135deg, #1b3d2f 0%, #0b3b24 100%);
  color: var(--gold-400);
}
.msg-card-role-tag.director {
  background: linear-gradient(135deg, #0b3b24 0%, #1a7a4a 100%);
  color: #ffffff;
}
.msg-card-role-tag.principal {
  background: linear-gradient(135deg, #1a7a4a 0%, #2e9e62 100%);
  color: #ffffff;
}

.msg-card-body {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.msg-card-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
  line-height: 1.35;
}
.msg-card-desig {
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold-600);
  margin: 0 0 16px;
  line-height: 1.45;
}
.msg-card-excerpt {
  font-size: .90rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 24px;
  flex-grow: 1;
  font-style: italic;
  border-left: 2px solid var(--gold-500);
  padding-left: 12px;
}

.msg-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-light);
}
.msg-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent-pale);
  color: var(--primary);
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.msg-card-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(11, 59, 36, 0.2);
}
.msg-card-link svg {
  transition: transform .25s ease;
}
.msg-card-link:hover svg {
  transform: translateX(4px);
}

/* =========================================================
   INDIVIDUAL MESSAGE PAGES (Detail View)
   ========================================================= */
.msg-detail-section {
  padding: 72px 0;
  background: #ffffff;
}

.msg-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.msg-detail-portrait {
  position: sticky;
  top: 100px;
}
.msg-detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 30px -10px rgba(11, 59, 36, 0.1);
  text-align: center;
}
.msg-detail-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: top center;
  background: #eef5f0;
}
.msg-detail-meta {
  padding: 24px 20px;
  border-top: 1px solid var(--line-light);
}
.msg-detail-meta h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 6px;
}
.msg-detail-meta span {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.5;
}

.msg-detail-content {
  max-width: 760px;
}
.msg-detail-content p {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.msg-detail-content p:last-child {
  margin-bottom: 0;
}

.msg-detail-quote {
  margin: 32px 0;
  padding: 26px 28px;
  border-left: 4px solid var(--gold-500);
  background: var(--accent-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--primary);
}

/* Bottom Leader Switcher */
.msg-switch-bar {
  margin-top: 56px;
  padding: 24px 28px;
  background: #fbfdfb;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.msg-switch-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}
.msg-switch-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.msg-switch-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: .84rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: #ffffff;
  border: 1px solid var(--line);
  text-decoration: none;
  transition: all .2s ease;
}
.msg-switch-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}
.msg-switch-btn.is-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .msg-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 820px) {
  .msg-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .msg-detail-portrait {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
}
@media (max-width: 680px) {
  .msg-hub-grid {
    grid-template-columns: 1fr;
  }
  .msg-hub-section,
  .msg-detail-section {
    padding: 48px 0;
  }
}
