/* ============================================
   ABOUT US PAGE STYLES
   ============================================ */

/* ============================================
   CLUB HISTORY - RICH EDITORIAL
   ============================================ */

.history-section {
  background: var(--color-bg-cream);
  padding: var(--spacing-3xl) 0;
  margin-bottom: var(--spacing-3xl);
}

.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

.history-narrative h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-xl);
}

.history-narrative p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
}

.history-narrative p:last-of-type {
  margin-bottom: var(--spacing-xl);
}

/* Affiliation badges with seals */
.affiliation-badges {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--color-border);
}

.affiliation-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.affiliation-seal {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

/* Placeholder gradient for when no image is provided */
.affiliation-seal-placeholder {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
}

.affiliation-info {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.affiliation-info strong {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

/* Visual timeline - vertical on desktop */
.timeline-visual {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 3px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-gold));
}

.timeline-item {
  position: relative;
  padding-left: 100px;
  margin-bottom: var(--spacing-2xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-node {
  position: absolute;
  left: 26px;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-white);
  border: 4px solid var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-bg-cream);
  z-index: 2;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.timeline-event {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   WHAT WE DO - SIMPLE TEXT NO CARDS
   ============================================ */

.what-we-do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-3xl);
}

.activity-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.activity-item p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   LEADERSHIP BOARD
   ============================================ */

.leadership-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
}

.leadership-grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.leader-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xl);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.leader-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  object-fit: cover;
}

/* Placeholder gradient for when no image is provided */
.leader-photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.leader-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.leader-title {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.leader-email {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  word-break: break-word;
}

.leader-email:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================
   LINK CARDS (PAST PRESIDENTS + DOCUMENTS)
   ============================================ */

.link-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--spacing-xl) var(--spacing-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.link-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-left-color: var(--color-primary-dark);
}

.link-card-text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.link-card-text p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
}

.link-card-arrow {
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.link-card:hover .link-card-arrow {
  transform: translateX(4px);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

/* ============================================
   LOCAL MAGIC CLUBS
   ============================================ */

.clubs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.club-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.club-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.club-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.club-detail {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.club-detail-label {
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 80px;
}

.club-contact {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-border);
}

.club-contact a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.club-contact a:hover {
  text-decoration: underline;
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-section .section-label {
  text-align: center;
}

.contact-intro {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--spacing-2xl);
}

.contact-form {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-2xl);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--color-text-primary);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

.form-submit button {
  padding: 0.875rem 2.5rem;
}

.contact-alt {
  text-align: center;
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.contact-alt a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-alt a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS
   ============================================ */

@media (max-width: 1200px) {
  .leadership-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .history-grid {
    grid-template-columns: 1fr;
  }

  .what-we-do-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .leadership-grid-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .leadership-grid-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .documents-grid {
    grid-template-columns: 1fr;
  }

  .clubs-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .history-section {
    padding: var(--spacing-2xl) 0;
  }

  /* Timeline goes horizontal on mobile */
  .history-grid {
    display: flex;
    flex-direction: column;
  }

  .timeline-visual {
    order: 2;
    padding: var(--spacing-xl) 0 0;
  }

  .affiliation-badges {
    order: 3;
  }

  /* Horizontal timeline layout */
  .timeline-line {
    top: 40px;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
  }

  .timeline-visual {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    padding-bottom: var(--spacing-lg);
  }

  .timeline-item {
    flex: 0 0 auto;
    padding-left: 0;
    padding-top: 80px;
    margin-bottom: 0;
    min-width: 140px;
    text-align: center;
  }

  .timeline-node {
    left: 50%;
    top: 26px;
    transform: translateX(-50%);
  }

  .timeline-year {
    font-size: 1.5rem;
  }

  .timeline-event,
  .timeline-desc {
    text-align: center;
  }

  .leadership-grid-top {
    grid-template-columns: 1fr;
  }

  .leadership-grid-main {
    grid-template-columns: 1fr;
  }

  .link-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .affiliation-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .history-section,
  .leader-card,
  .club-card,
  .link-card {
    page-break-inside: avoid;
    box-shadow: none;
  }

  .hero-small,
  .full-width-cta-light {
    display: none;
  }
}