/* =========================================================================
   institution-custom.css
   Pixel-perfect alignment and styling for the Institution page
   ========================================================================= */

/* Main layout boundary matching the image */
.institution-main {
  padding-top: 150px; /* Clears fixed header */
  padding-bottom: 80px;
}

.institution-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

/* 1. Dashed Hero Box */
.hero-dashed-box {
  border: 2px dashed #000;
  padding: 80px 40px;
  text-align: center;
  margin-bottom: 50px;
}

.hero-display-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  line-height: 1.35;
  font-weight: 400;
  color: #000;
  margin: 0;
}

.hero-display-title .italic-blue {
  color: var(--c-blue-accent);
  font-style: italic;
}

/* 2. Founders Yellow Stack */
.founders-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
}

.founder-card-solid {
  background-color: var(--c-yellow, #f8de22);
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 44px 50px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.founder-title {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 2.1rem;
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

.founder-bio {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #000;
  font-weight: 400;
  margin: 0;
}

.founder-quote-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.li-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2e2b4d;
  flex-shrink: 0;
}

.li-icon-box svg {
  width: 25px;
  height: 25px;
  display: block;
}

.quote-divider {
  width: 1.5px;
  height: 32px;
  background-color: #2e2b4d;
  flex-shrink: 0;
}

.founder-quote {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.92rem;
  font-weight: 500;
  color: #2e2b4d;
  line-height: 1.4;
  margin: 0;
}

/* 3. Text Blocks (Family Office Backing) */
.text-block-section {
  margin-bottom: 70px;
}

.section-serif-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: #000;
  margin-bottom: 15px;
}

.section-standard-text {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #222;
  font-weight: 300;
}

/* 4. Shared Philosophy Cards */
.philosophy-section {
  margin-bottom: 20px;
}

.philosophy-cards-row {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}

.phil-card {
  background: #fff;
  flex: 1;
  min-height: 280px;
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0,0,0,0.05); /* Slight framing */
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.phil-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #000;
}

.phil-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto; /* Centers the icon */
}

.phil-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .institution-main {
    padding-top: 100px;
    padding-bottom: 50px;
  }
  
  .institution-wrapper {
    padding: 0 20px;
  }

  .hero-dashed-box { 
    padding: 34px 18px; 
    margin-bottom: 28px;
  }
  
  .hero-display-title { 
    font-size: 1.85rem; 
    line-height: 1.25;
  }
  
  .founders-stack {
    margin-bottom: 45px;
    width: 100%;
  }

  .founder-card-solid { 
    padding: 24px 20px 20px 20px; 
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .founder-title { 
    font-size: 1.55rem; 
    line-height: 1.15;
  }

  .founder-title .title-role {
    font-size: 1.25rem;
    font-weight: 700;
  }

  .founder-bio {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .founder-quote-row {
    gap: 10px;
    margin-top: 4px;
    align-items: center;
  }

  .li-icon-box svg {
    width: 22px;
    height: 22px;
  }

  .quote-divider {
    height: 34px;
  }

  .founder-quote {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  
  .text-block-section {
    margin-bottom: 45px;
  }

  .section-serif-heading {
    font-size: 1.7rem;
  }

  .section-standard-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .philosophy-cards-row {
    flex-direction: column;
    gap: 18px;
  }

  .phil-card { 
    min-height: 200px; 
    padding: 24px 20px;
  }
}