/* ═══════════════════════════════════════════
   MD'S MESSAGE — md-message.css
   Depends on: common.css (variables),
               page-hero.css (hero section)
═══════════════════════════════════════════ */

/* ─────────────────────────────────────────
   MD SECTION
───────────────────────────────────────── */
.md-section {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, #f8f9fd 0%, #fff 40%, #f8f9fd 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle radial wash — left side this time (portrait is on right) */
.md-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(12, 29, 88, 0.04) 0%, transparent 70%);
  pointer-events: none;
}
.md-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 108, 6, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Two-column grid — message left, portrait right (reversed from founder page) */
.md-wrapper {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* ─── LEFT: Message column ─── */
.md-message-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Tag + heading */
.md-msg-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.md-msg-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(12, 29, 88, 0.07);
  color: var(--navy);
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(12, 29, 88, 0.12);
  align-self: flex-start;
}
.md-msg-tag svg { color: var(--orange); }

.md-msg-title {
  font-family: 'Nunito', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.md-msg-title span {
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.md-msg-title span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  border-radius: 2px;
}

/* Welcome highlight block */
.md-highlight-quote {
  display: flex;
  gap: 20px;
  align-items: stretch;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-d) 100%);
  border-radius: 14px;
  padding: 28px 30px;
}
.md-highlight-bar {
  flex-shrink: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--gold) 100%);
}
.md-highlight-quote p {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  line-height: 1.75;
}
.md-highlight-quote p strong {
  color: #fff;
  font-weight: 700;
}

/* Body paragraphs */
.md-msg-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.md-msg-body p {
  font-family: 'Nunito', sans-serif;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
}
.md-closing {
  font-family: 'Nunito', sans-serif;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
}

/* Vivekananda pull-quote */
.md-vivekananda-quote {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f0f4ff 0%, #fef8f3 100%);
  border-radius: 14px;
  padding: 28px 30px;
  border: 1px solid rgba(232, 108, 6, 0.15);
  position: relative;
  overflow: hidden;
}
.md-vivekananda-quote::before {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(232, 108, 6, 0.06);
  pointer-events: none;
}
.md-vq-mark {
  flex-shrink: 0;
  color: var(--orange);
  opacity: 0.5;
  margin-top: 2px;
}
.md-vq-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.md-vq-content p {
  font-family: 'Nunito', sans-serif;
  font-size: 17px !important;
  font-style: italic;
  font-weight: 600 !important;
  color: var(--navy) !important;
  margin: 0;
  line-height: 1.7;
}
.md-vq-attr {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.04em;
}

/* Signature block */
.md-signature-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}
.md-sig-line {
  height: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--border) 60%, transparent 100%);
  border-radius: 2px;
}
.md-sig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.md-sig-name {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 6px;
}
.md-sig-role {
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--orange);
  line-height: 1.4;
}
.md-sig-emblem {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}

/* ─── RIGHT: Portrait column ─── */
.md-portrait-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 120px;
}

.md-portrait-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(12, 29, 88, 0.05),
    0 20px 60px rgba(12, 29, 88, 0.13),
    0 0 0 1px rgba(224, 230, 245, 0.8);
}

/* Accent slab — navy at bottom for MD (inverted from founder page) */
.md-portrait-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(0deg, var(--navy-d) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.md-portrait-img-wrap {
  position: relative;
  z-index: 0;
  padding: 28px 28px 0 28px;
  background: var(--light);
  text-align: center;
}
.md-portrait-img-wrap img {
  width: 100%;
  max-width: 260px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px 10px 0 0;
  filter: drop-shadow(0 6px 20px rgba(12, 29, 88, 0.2));
}

/* Identity card */
.md-identity-card {
  background: var(--navy);
  padding: 18px 22px;
  position: relative;
  z-index: 2;
}
.md-identity-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.md-identity-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.md-identity-text strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.md-identity-text span {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 3px;
}

/* Value pillars grid */
.md-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.md-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.3s ease;
}
.md-pillar:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 20px rgba(232, 108, 6, 0.1);
  transform: translateY(-2px);
}
.md-pillar-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: rgba(232, 108, 6, 0.09);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: all 0.3s ease;
}
.md-pillar:hover .md-pillar-icon {
  background: var(--orange);
  color: #fff;
}
.md-pillar-text strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.md-pillar-text span {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

/* JIS badge */
.md-jis-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.md-jis-badge img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.md-jis-badge div span {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.md-jis-badge div strong {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1199px) {
  .md-wrapper {
    grid-template-columns: 1fr 320px;
    gap: 48px;
  }
  .md-msg-title { font-size: 36px; }
}

@media (max-width: 991px) {
  .md-section { padding: 60px 0 70px; }
  .md-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  /* On tablet, portrait moves above message */
  .md-message-col { order: 2; }
  .md-portrait-col {
    order: 1;
    position: relative;
    top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
  }
  .md-portrait-frame { grid-column: 1 / -1; }
  .md-pillars        { grid-column: 1; }
  .md-jis-badge      { grid-column: 2; align-self: start; }
  .md-msg-title      { font-size: 32px; }
}

@media (max-width: 768px) {
  .md-portrait-col {
    display: flex;
    flex-direction: column;
  }
  .md-msg-title         { font-size: 28px; }
  .md-highlight-quote p { font-size: 15.5px; }
  .md-msg-body p        { font-size: 15px; }
  .md-vq-content p      { font-size: 15.5px !important; }
}

@media (max-width: 480px) {
  .md-section           { padding: 40px 0 50px; }
  .md-msg-title         { font-size: 25px; }
  .md-highlight-quote   { padding: 20px; }
  .md-highlight-quote p { font-size: 14.5px; }
  .md-vivekananda-quote { padding: 20px; }
  .md-vq-content p      { font-size: 14.5px !important; }
  .md-sig-name          { font-size: 19px; }
  .md-pillars           { grid-template-columns: 1fr; }
}