/**
 * JAINA Committee Pages - Editorial Stylesheet
 * Bulletproof Pixel-Based Sizing & Tightened Spacing
 */

/* 1. CSS Variables */
:root {
  --jc-bg-color: #fcfbf8;
  --jc-surface: #ffffff;
  --jc-surface-alt: #f4f1ea;
  --jc-text-main: #1a1e24;
  --jc-text-muted: #474f5c;
  --jc-heading: #09101d;
  --jc-accent: #a68a61;
  --jc-border: #e8e4dc;
  --jc-btn-bg: #09101d;
  --jc-btn-text: #ffffff;

  --jc-font-sans: 'Inter', system-ui, sans-serif;
  --jc-font-serif: 'Playfair Display', Georgia, serif;

  --jc-radius-sm: 4px;
  --jc-radius-md: 8px;
  --jc-radius-lg: 12px;
  --jc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03);
  --jc-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* 2. Base Resets */
.jc-wrapper {
  background-color: var(--jc-bg-color);
  color: var(--jc-text-main);
  font-family: var(--jc-font-sans);
  line-height: 1.6;
  font-size: 18px; /* Force larger base size */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.jc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 3. Typography */
.jc-h1, .jc-h2, .jc-h3, .jc-h4 {
  font-family: var(--jc-font-serif);
  color: var(--jc-heading);
  margin-top: 0;
  font-weight: 500;
}

.jc-h1 { 
  font-size: clamp(36px, 5vw, 56px); 
  line-height: 1.1; 
  letter-spacing: -0.02em; 
  margin-bottom: 16px;
}

.jc-h2 { 
  font-size: clamp(28px, 4vw, 36px); 
  line-height: 1.2; 
}

.jc-h3 { 
  font-size: 24px; 
  margin-bottom: 8px;
}

.jc-h4 { 
  font-size: 18px; 
}

.jc-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--jc-accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.jc-text-lead {
  font-size: 20px;
  color: var(--jc-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* FIX: Force formatting tags to stay inline so they don't break sentences apart */
.jc-text-lead strong, 
.jc-text-lead b, 
.jc-text-lead em, 
.jc-text-lead i, 
.jc-text-lead a, 
.jc-text-lead span,
.jc-prose strong, 
.jc-prose b, 
.jc-prose em, 
.jc-prose i, 
.jc-prose a, 
.jc-prose span {
    display: inline !important;
}

/* 4. Buttons & Links */
.jc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--jc-btn-bg);
  color: var(--jc-btn-text);
  padding: 12px 24px;            
  font-size: 16px;               
  font-weight: 500;
  border-radius: var(--jc-radius-sm);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.jc-btn:hover {
  background-color: #1f2a44;
  transform: translateY(-1px);
}

/* 5. Sections - REDUCED PADDING TO FIX WHITE SPACE */
.jc-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .jc-section {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}

.jc-section-divider {
  border-top: 1px solid var(--jc-border);
}

.jc-section-header {
  margin-bottom: 16px;
}

.jc-section-header .jc-h3 {
  display: inline-block;
  position: relative;
  margin-bottom: 0;
  padding-bottom: 8px;
}

.jc-section-header .jc-h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--jc-heading); 
}

.jc-section-header-center {
  text-align: center;
  margin-bottom: 32px;
}

/* 6. Hero Layout */
.jc-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.jc-hero-content {
  max-width: 600px;
}

.jc-hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--jc-radius-lg);
}

@media (min-width: 992px) {
  .jc-hero {
    grid-template-columns: 1.2fr 1fr;
  }
}

.jc-hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 992px) {
  .jc-hero-logo-wrap {
    justify-content: flex-end; 
  }
}
.jc-hero-logo {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
}

/* 7. Mission Section */
.jc-mission {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.jc-mission-text {
  font-size: 20px;
  line-height: 1.8;
  color: var(--jc-text-main);
  font-weight: 300;
}

.jc-mission-quote {
  color: var(--jc-border);
  font-family: var(--jc-font-serif);
  font-size: 96px;
  line-height: 1;
  text-align: center;
}

@media (min-width: 768px) {
  .jc-mission {
    grid-template-columns: 1fr 3fr 1fr;
    align-items: flex-start;
  }
}

/* 8. Grid Layouts */
.jc-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 576px) {
  .jc-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .jc-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 11. Leadership Cards */
.jc-leader-card {
  background-color: var(--jc-surface);
  border-radius: var(--jc-radius-md);
  overflow: hidden;
  box-shadow: var(--jc-shadow-sm);
  text-align: center;
  transition: box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.02);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jc-leader-card:hover {
  box-shadow: var(--jc-shadow-md);
}

.jc-leader-card:hover .jc-leader-img,
.jc-leader-card:hover .jc-leader-monogram {
  filter: grayscale(100%);
}

.jc-leader-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--jc-surface-alt);
  margin-bottom: 16px;
  transition: filter 0.5s ease;
}

.jc-leader-monogram {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--jc-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jc-font-serif);
  font-size: 32px;
  color: var(--jc-text-muted);
  margin-bottom: 16px;
  transition: filter 0.5s ease;
}

.jc-leader-info {
  width: 100%;
}

.jc-leader-name {
  font-family: var(--jc-font-sans);
  font-weight: 600;
  color: var(--jc-heading);
  margin-bottom: 4px;
  font-size: 18px;
}

.jc-leader-role {
  font-size: 14px;
  color: var(--jc-text-muted);
}

/* 12. CTA Section */
.jc-cta {
  background-color: var(--jc-surface-alt);
  border-radius: var(--jc-radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .jc-cta {
    flex-direction: row;
    text-align: left;
    padding: 40px 48px;
  }
}

.jc-cta-icon {
  width: 56px;
  height: 56px;
  color: var(--jc-accent);
  flex-shrink: 0;
}

.jc-cta-content {
  flex-grow: 1;
}

.jc-cta-title {
  font-family: var(--jc-font-serif);
  font-size: 24px;
  color: var(--jc-heading);
  margin-bottom: 8px;
  font-weight: 500;
}

.jc-cta-text {
  color: var(--jc-text-muted);
  font-size: 18px;
}