/* Title card container */
.title-card {
  max-width: 900px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(124, 58, 237, 0.08) 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Main title styling */
.title-card h1 {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
  padding-bottom: 0;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Fallback for browsers that don't support background-clip */
  color: #2563eb;
}

/* Support for background-clip */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .title-card h1 {
    color: transparent;
  }
}

/* Author section styling */
.title-card h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 0;
  border: none;
}

/* Make author name a link if wrapped in anchor */
.title-card h2 a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.title-card h2 a:hover {
  opacity: 0.7;
}

/* Spacing for listing section */
#my-slides {
  margin-top: 4rem;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .title-card,
.quarto-dark .title-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(124, 58, 237, 0.12) 100%);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .title-card {
    margin: 2rem 1rem;
    padding: 2rem 1.5rem;
  }
  
  .title-card h1 {
    font-size: 2rem;
  }
  
  .title-card h2 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
  }
}

@media (max-width: 576px) {
  .title-card h1 {
    font-size: 1.75rem;
  }
  
  .title-card h2 {
    font-size: 1.1rem;
  }
}
