/* Biography 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;
}

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

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.main-content {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.biography-article {
  line-height: 1.7;
}

.biography-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.biography-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.biography-section h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.biography-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.5rem;
  background: linear-gradient(135deg, #5a87a8, #2f4f6f);
  border-radius: 2px;
}

.biography-text p {
  margin-bottom: 1.5rem;
  color: #000000;
  font-size: 1rem;
}

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

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Saint Image */
.saint-image-container {
  text-align: center;
  margin: 0;
  padding: 0;
}

.saint-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid #f8fafc;
  display: block;
  margin: 0 auto;
}

.saint-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.sidebar-card:first-child {
  padding: 0.5rem;
}

.sidebar-card h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #2f4f6f;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.info-list,
.feature-list,
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li,
.feature-list li,
.link-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #000000;
}

.info-list li:last-child,
.feature-list li:last-child,
.link-list li:last-child {
  border-bottom: none;
}

.info-list li strong {
  color: #2f4f6f;
  font-weight: 600;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.link-list a {
  color: #5a87a8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.link-list a:hover {
  color: #2f4f6f;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .sidebar {
    order: -1;
  }
  
  .sidebar-card {
    padding: 1.25rem;
  }
  
  .sidebar-card:first-child {
    padding: 0.4rem;
  }
  
  .saint-image {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 2rem 0 1.5rem;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .biography-content {
    padding: 2rem 0;
  }
  
  .main-content {
    padding: 1.5rem;
  }
  
  .biography-section h2 {
    font-size: 1.5rem;
  }
  
  .biography-text p {
    font-size: 0.95rem;
  }
  
  .saint-image {
    max-width: 180px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 1.5rem 0 1rem;
  }
  
  .page-header h1 {
    font-size: 1.75rem;
  }
  
  .main-content {
    padding: 1rem;
  }
  
  .biography-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .biography-section h2 {
    font-size: 1.25rem;
    padding-left: 0.75rem;
  }
  
  .biography-section h2::before {
    width: 3px;
    height: 1.25rem;
  }
  
  .sidebar-card {
    padding: 1rem;
  }
  
  .sidebar-card:first-child {
    padding: 0.3rem;
  }
  
  .sidebar-card h3 {
    font-size: 1.1rem;
  }
  
  .saint-image {
    max-width: 150px;
  }
}

/* Print styles */
@media print {
  .page-header {
    background: white;
    color: black;
  }
  
  .biography-content {
    background: white;
  }
  
  .main-content,
  .sidebar-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .sidebar {
    display: none;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
  }
}

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

.biography-section {
  animation: fadeInUp 0.6s ease forwards;
}

.biography-section:nth-child(1) { animation-delay: 0.1s; }
.biography-section:nth-child(2) { animation-delay: 0.2s; }
.biography-section:nth-child(3) { animation-delay: 0.3s; }
.biography-section:nth-child(4) { animation-delay: 0.4s; }
.biography-section:nth-child(5) { animation-delay: 0.5s; }

/* Focus styles for accessibility */
.breadcrumb a:focus,
.link-list a:focus {
  outline: 2px solid #5a87a8;
  outline-offset: 2px;
  border-radius: 4px;
}
