body {
  padding-top: 60px; /* Adjust based on navbar height */
  font-family: sans-serif;
  margin: 2rem;
  background-color: #f8f9fa;
}

.page-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: none;
  margin: 0;
}

.translation, .source, .commentary {
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  background-color: white;
}

.translation {
  width: 65%;
  align-self: flex-start;
}

.source {
  width: 65%;
  align-self: flex-end;
}

.commentary {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: center;
}

h2 {
  margin-top: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dee2e6;
  color: #495057;
}

.navigation {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .translation, .source, .commentary {
    width: 100%;
  }
}

.toc-card summary {
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.toc-card details {
  margin-bottom: 1rem;
}

/* Fixed Navbar */
.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 0.5rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Breadcrumb Navigation */
.breadcrumb-container {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb-section {
  font-weight: bold;
  margin-right: 1rem;
  white-space: nowrap;
  color: #343a40;
}

.breadcrumb-pages {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-page {
  position: relative;
  white-space: nowrap;
}

.breadcrumb-page:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: #6c757d;
}

.breadcrumb-page.active {
  font-weight: 500;
  color: #495057;
}

.breadcrumb-page a {
  text-decoration: none;
  color: #007bff;
}

.breadcrumb-page a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .breadcrumb-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .breadcrumb-section {
    margin-bottom: 0.5rem;
  }
  
  .breadcrumb-pages {
    flex-direction: row;
    align-items: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.5rem;
  }
  
  body {
    padding-top: 80px; /* Increase for mobile */
  }
}

.title-card {
  width: 100%;
  max-width: none;
  margin-bottom: 2rem;
}

.title-card .card-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.title-card .card-subtitle {
  font-size: 1.25rem;
  color: #6c757d;
}

.video-card {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.video-card .ratio {
  border-radius: 0.25rem;
  overflow: hidden;
}
