/* ============================================================
   Contact Us page — ported from the draft, refined to match the
   Authors / Partners design (clean white hero, navy titles, teal accents).
   ============================================================ */

/* ---- Hero banner ---- */
.contact-hero {
  background: #ffffff;
  padding: 40px 24px 26px;
  text-align: center;
  position: relative;
  border-bottom: 1px solid #e8ece9;
}
.contact-hero-inner {
  max-width: 820px;
  margin: 0 auto;
}
.contact-hero-title {
  color: #1b2733;
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 0.2px;
}
.contact-hero-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 14px auto 0;
  background: #0bb89c;
  border-radius: 2px;
}
.contact-hero-subtitle {
  color: #5a6b73;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 720px;
}

/* ---- Main container ---- */
.contact-main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 56px 24px;
  box-sizing: border-box;
}

/* ---- Section titles ---- */
.contact-section-title {
  color: #1b3b5a;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin: 46px 0 8px 0;
  letter-spacing: 0.2px;
}
.contact-section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 12px auto 0;
  background: #0bb89c;
  border-radius: 2px;
}
.contact-section-subtitle {
  color: #5a6b73;
  font-size: 15px;
  text-align: center;
  margin: 14px auto 26px;
  max-width: 640px;
}

/* ---- Grids ---- */
.contact-lead-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}
.contact-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

/* ---- Card base ---- */
.contact-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e6ebe9;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 8px 22px rgba(16,24,40,0.05);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.contact-card:hover {
  box-shadow: 0 2px 6px rgba(16,24,40,0.06), 0 16px 34px rgba(11,184,156,0.12);
  transform: translateY(-3px);
}

/* Lead card — horizontal */
.contact-card--lead {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
/* Team card — vertical */
.contact-card--team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

/* ---- Photo ---- */
.contact-photo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  padding: 4px;
  background: linear-gradient(135deg, #0bb89c 0%, #1b3b5a 100%);
  box-sizing: border-box;
}
.contact-photo--sm {
  width: 104px;
  height: 104px;
  margin-bottom: 6px;
}

/* ---- Details ---- */
.contact-details {
  min-width: 0;
}
.contact-card--team .contact-details {
  width: 100%;
}
.contact-role {
  font-size: 12.5px;
  font-weight: 700;
  color: #0bb89c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
}
.contact-name {
  font-size: 16.5px;
  font-weight: 700;
  color: #1b3b5a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
.contact-title,
.contact-dept,
.contact-org,
.contact-location {
  font-size: 13px;
  color: #6b7c8a;
  margin: 0 0 2px 0;
  line-height: 1.5;
}
.contact-title {
  color: #44525c;
  font-weight: 600;
}
.contact-email {
  margin: 10px 0 0 0;
  font-size: 14px;
}
.contact-email-link {
  color: #0bb89c;
  text-decoration: none;
  font-weight: 600;
  word-break: break-word;
}
.contact-email-link:hover {
  text-decoration: underline;
}

/* ---- Bio button ---- */
.contact-bio-btn {
  margin-top: 14px;
  padding: 7px 18px;
  background: transparent;
  border: 1.5px solid #0bb89c;
  color: #0bb89c;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.contact-bio-btn:hover {
  background: #0bb89c;
  color: #fff;
}

/* ---- Bio modal ---- */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(16,24,40,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  animation: contact-modal-fadein 0.2s ease;
}
@keyframes contact-modal-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.contact-modal-card {
  background-color: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  animation: contact-modal-slidein 0.25s ease;
}
@keyframes contact-modal-slidein {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.contact-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #0e4d40 0%, #0bb89c 100%);
  flex-shrink: 0;
}
.contact-modal-title {
  color: #fff;
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
}
.contact-modal-x {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.contact-modal-x:hover {
  background: rgba(255,255,255,0.35);
}
.contact-modal-body {
  padding: 24px 28px 28px;
  font-size: 15px;
  line-height: 1.75;
  color: #344;
  text-align: left;
  overflow-y: auto;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .contact-lead-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .contact-main {
    padding: 8px 14px 36px 14px;
  }
}
@media (max-width: 600px) {
  .contact-card--lead {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .contact-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .contact-team-grid {
    grid-template-columns: 1fr;
  }
}

/* --- End Contact Us Page Styles --- */
