/* Family Page Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--nav-bg) 0%, var(--nav-bg-strong) 100%);
  color: white;
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb span {
  opacity: 0.7;
}

.page-header h1 {
  font-family: 'Merriweather', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* Family Content */
.family-content {
  padding: 3rem 0;
  background: #f8fafc;
}

.family-intro {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.family-intro h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 1.5rem;
}

.family-intro p {
  color: #000000;
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Family Members */
.family-members {
  margin-bottom: 4rem;
}

.family-member {
  margin-bottom: 3rem;
}

.member-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid #5a87a8;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.member-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5a87a8, #2f4f6f);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(90, 135, 168, 0.3);
  overflow: hidden;
  border: 3px solid #5a87a8;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.image-placeholder {
  font-size: 3rem;
  color: white;
}

.member-info {
  flex: 1;
}

.member-info h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 1rem;
  font-weight: 600;
  color: #2f4f6f;
  margin-bottom: 0.25rem;
}

.member-dates {
  font-size: 0.9rem;
  color: #5a87a8;
  margin-bottom: 1rem;
  font-style: italic;
}

.member-description p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.member-description p:last-child {
  margin-bottom: 0;
}

/* Family Dynamics */
.family-dynamics {
  margin-bottom: 4rem;
}

.family-dynamics h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2f4f6f;
  text-align: center;
  margin-bottom: 3rem;
}

.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.dynamic-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid #5a87a8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dynamic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dynamic-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.dynamic-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 1rem;
}

.dynamic-card p {
  color: #000000;
  line-height: 1.6;
  margin: 0;
}

/* Family Influence */
.family-influence {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 2px solid #5a87a8;
}

.family-influence h2 {
  font-family: 'Merriweather', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2f4f6f;
  text-align: center;
  margin-bottom: 3rem;
}

.influence-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.influence-text p {
  color: #000000;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.influence-text p:last-child {
  margin-bottom: 0;
}

.influence-quote {
  background: #f8fafc;
  border-radius: 8px;
  padding: 2rem;
  border-left: 4px solid #5a87a8;
}

.influence-quote blockquote {
  margin: 0;
  font-style: italic;
}

.influence-quote blockquote p {
  color: #000000;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.influence-quote blockquote cite {
  color: #000000;
  font-style: normal;
  font-weight: 600;
}

.influence-quote blockquote cite::before {
  content: '— ';
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .family-intro h2 {
    font-size: 1.75rem;
  }
  
  .family-intro p {
    font-size: 1rem;
  }
  
  .member-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .member-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }
  
  .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .image-placeholder {
    font-size: 2.5rem;
  }
  
  .member-info h3 {
    font-size: 1.25rem;
  }
  
  .family-dynamics h2,
  .family-influence h2 {
    font-size: 1.75rem;
  }
  
  .dynamics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .dynamic-card {
    padding: 1.5rem;
  }
  
  .influence-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .family-influence {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 2rem 0 1.5rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .family-content {
    padding: 2rem 0;
  }
  
  .family-intro {
    margin-bottom: 3rem;
  }
  
  .family-intro h2 {
    font-size: 1.5rem;
  }
  
  .member-card {
    padding: 1.5rem;
  }
  
  .member-image {
    width: 80px;
    height: 80px;
  }
  
  .member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
  }
  
  .image-placeholder {
    font-size: 2rem;
  }
  
  .member-info h3 {
    font-size: 1.1rem;
  }
  
  .family-dynamics h2,
  .family-influence h2 {
    font-size: 1.5rem;
  }
  
  .dynamic-card {
    padding: 1.25rem;
  }
  
  .dynamic-icon {
    font-size: 2.5rem;
  }
  
  .dynamic-card h3 {
    font-size: 1.1rem;
  }
  
  .family-influence {
    padding: 1.5rem;
  }
  
  .influence-quote {
    padding: 1.5rem;
  }
  
  .influence-quote blockquote p {
    font-size: 1rem;
  }
}

/* Animation for family members */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.family-member {
  animation: fadeInUp 0.6s ease forwards;
}

.family-member:nth-child(1) { animation-delay: 0.1s; }
.family-member:nth-child(2) { animation-delay: 0.2s; }
.family-member:nth-child(3) { animation-delay: 0.3s; }

.dynamic-card {
  animation: fadeInUp 0.6s ease forwards;
}

.dynamic-card:nth-child(1) { animation-delay: 0.1s; }
.dynamic-card:nth-child(2) { animation-delay: 0.2s; }
.dynamic-card:nth-child(3) { animation-delay: 0.3s; }
.dynamic-card:nth-child(4) { animation-delay: 0.4s; }

/* Print styles */
@media print {
  .page-header {
    background: white;
    color: black;
  }
  
  .member-card,
  .dynamic-card,
  .family-influence {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .member-image {
    background: #f0f0f0;
  }
  
  .image-placeholder {
    color: #666;
  }
  
  .influence-quote {
    background: #f9f9f9;
  }
}
