/* assets/css/team.css - Fixed Gap System & High Quality Cards */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --team-orange: #000000;
  --team-orange-hover: #111111;
  --team-orange-light: #d8ff3e;
  --team-orange-border: #e5e7eb;
  --team-dark: #111827;
  --team-body: #4b5563;
  --team-border: #e5e7eb;
}

/* Typography matching Home Page (Space Grotesk for headings, Space Mono for body/tags) */
.font-sans-body {
  font-family: 'Space Mono', monospace !important;
  line-height: 1.6;
  color: #4b5563;
}

.font-heading-title,
.font-heading {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  letter-spacing: -0.02em;
  text-transform: none !important; /* Display member names cleanly in proper Title Case */
}

.font-mono-tag {
  font-family: 'Space Mono', monospace !important;
  letter-spacing: 0.05em;
}

/* Color utility classes used on team page */
.text-team-orange {
  color: #111111 !important;
}

.bg-team-orange-light {
  background-color: #d8ff3e !important;
  color: #000000 !important;
}

.border-team-orange {
  border-color: #e5e7eb !important;
}

/* Global Container */
.team-page-container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Clear section blocks with explicit margins and clear boundaries */
.team-section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid #e5e7eb;
  position: relative;
  box-sizing: border-box;
  clear: both;
}

.team-section:first-of-type {
  border-top: none;
  padding-top: 2rem;
}

/* Section Header Styling */
.section-header-block {
  margin-bottom: 2.25rem;
}

.section-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #111111;
  margin-bottom: 0.5rem;
}

.section-main-title {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-size: 1.875rem;
  font-weight: 500;
  color: #000000;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-main-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 0.5rem;
  max-width: 36rem;
  line-height: 1.6;
}

/* Hero Section Grid */
.team-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 992px) {
  .team-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.team-hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.25rem 1rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.hero-stat-card:hover {
  border-color: #ea580c;
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.12);
  transform: translateY(-2px);
}

/* Executive Grid Layout (The Main Two) */
.exec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .exec-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.exec-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 640px) {
  .exec-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.exec-card:hover {
  border-color: #ea580c;
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.exec-img-box {
  width: 160px;
  height: 160px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f3f4f6;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .exec-img-box {
    margin: 0;
    width: 140px;
    height: 140px;
  }
}

.exec-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.exec-card:hover .exec-img-box img {
  transform: scale(1.03);
}

.exec-content-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Advisors Grid Layout */
.advisors-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .advisors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .advisors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Core Ops Grid Layout (3 columns) */
.core-ops-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .core-ops-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .core-ops-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.advisor-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.advisor-card:hover {
  border-color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
}

.small-photo-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f3f4f6;
  margin-bottom: 1rem;
  border: 2px solid #e5e7eb;
}

.small-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.advisor-card:hover .small-photo-box img {
  transform: scale(1.08);
}


.advisor-avatar-badge {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  background: #fafaf8;
  border: 2px solid #e5e7eb;
  color: #000000;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  transition: all 0.3s ease;
}

.advisor-card:hover .advisor-avatar-badge {
  transform: scale(1.08);
  background: #d8ff3e;
  color: #000000;
  border-color: #d8ff3e;
}

/* Directors Grid Layout */
.directors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .directors-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.director-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}

.director-card:hover {
  border-color: #000000;
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.director-img-box {
  width: 100%;
  height: 240px;
  border-radius: 0.875rem;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f3f4f6;
}

.director-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.director-card:hover .director-img-box img {
  transform: scale(1.03);
}

/* Research Associates Grid (Matching Directors layout and card proportions) */
.research-grid-5 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}

.research-grid-5 > .advisor-card {
  flex: 0 1 calc(33.333% - 1rem);
  min-width: 250px;
  max-width: 340px;
  padding: 1.5rem 1.25rem !important;
}

@media (max-width: 768px) {
  .research-grid-5 > .advisor-card {
  flex: 0 1 calc(50% - 1rem);
  min-width: 200px;
  }
}

@media (max-width: 480px) {
  .research-grid-5 > .advisor-card {
  flex: 0 1 100%;
  }
}

/* Interns Grid Layout */
.interns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .interns-grid {
  grid-template-columns: repeat(4, 1fr);
  }
}

.intern-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

.intern-card:hover {
  border-color: #000000;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08);
}

.intern-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #f3f4f6;
}

.intern-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.intern-card:hover .intern-img-box img {
  transform: scale(1.06);
}

.intern-info {
  padding: 1rem 0.75rem;
  text-align: center;
  background: #ffffff;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Social Buttons */
.social-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  background-color: #000000;
  color: #d8ff3e;
}

/* Modal Overlay Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: 1.25rem;
  max-width: 32rem;
  width: 100%;
  padding: 2rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}
